Skip to content

fix: quote argument-hint value so Copilot CLI 1.0.65 parses it as a string#4

Open
thejesh23 wants to merge 1 commit into
sravan27:mainfrom
thejesh23:fix/copilot-cli-1.0.65-argument-hint-string
Open

fix: quote argument-hint value so Copilot CLI 1.0.65 parses it as a string#4
thejesh23 wants to merge 1 commit into
sravan27:mainfrom
thejesh23:fix/copilot-cli-1.0.65-argument-hint-string

Conversation

@thejesh23

@thejesh23 thejesh23 commented Jul 3, 2026

Copy link
Copy Markdown

The bug

skills/init/SKILL.md has:

---
argument-hint: [--global]
---

YAML parses [--global] as a flow sequence (a list containing the single string --global), not as a string. Copilot CLI 1.0.65 tightened its frontmatter schema and now requires argument-hint to be a string — the sequence form fails validation and the /init skill fails to load.

The rule is the same as the recently-fixed latent issue in Claude Code proper (anthropics/claude-code#22161): unquoted [X] in slash-command frontmatter is a YAML array, not a hint string.

The fix

Wrap the value in double quotes so YAML treats it as a plain string:

- argument-hint: [--global]
+ argument-hint: "[--global]"

The rendered hint the user sees is identical ([--global]); only the parse type changes.

Scope

Full-tree scan for ^argument-hint:\s*\[ — one file affected:

  • skills/init/SKILL.md

The three argument-hint: lines in setup.sh (<symbol-name>, <file-path>, <query>) use angle-bracket forms, which YAML already treats as plain strings, so no change needed.

Test plan

  • python3 -c "import yaml,sys; d=yaml.safe_load(open('skills/init/SKILL.md').read().split('---')[1]); assert isinstance(d['argument-hint'], str), d['argument-hint']" passes
  • Copilot CLI 1.0.65 loads /init without a frontmatter validation error
  • The [--global] hint still renders literally in the CLI's help output

Unquoted `argument-hint: [--global]` parses as a YAML sequence
(list containing the single string "--global"). Copilot CLI 1.0.65
requires `argument-hint` to be a string and rejects the sequence,
which blocks loading the /init skill.

Wrapping the value in double quotes keeps the visible hint
identical for users while satisfying the schema.
@thejesh23

Copy link
Copy Markdown
Author

Tracking issue: #5 — captures the bug diagnosis and reproducer separately for anyone searching the repo who lands there before this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant