Skip to content

fix: quote argument-hint so YAML parses as string (Copilot CLI 1.0.65 compat)#4

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

fix: quote argument-hint so YAML parses as string (Copilot CLI 1.0.65 compat)#4
thejesh23 wants to merge 1 commit into
tzengyuxio:mainfrom
thejesh23:fix/copilot-cli-1.0.65-argument-hint-string

Conversation

@thejesh23

@thejesh23 thejesh23 commented Jul 3, 2026

Copy link
Copy Markdown

Summary

All 47 SKILL.md files (and TEMPLATE.md) use:

argument-hint: [file-path]

Because [file-path] is unquoted, YAML parses it as an array (["file-path"]). GitHub Copilot CLI 1.0.65+ expects argument-hint to be a string and errors when it receives an array. Claude Code is currently lenient here but the same latent issue is tracked upstream in anthropics/claude-code#22161.

The fix is a one-character-per-file frontmatter change — quote the value:

argument-hint: "[file-path]"

The rendered hint (what users see in the CLI prompt) is unchanged — only the YAML type is corrected from array to string.

Scope

  • 47 × <skill>/SKILL.md — all skills in the repo
  • TEMPLATE.md — so newly created skills inherit the correct form

48 files, one line changed per file, no other content touched.

Reference

Test plan

  • grep -rn '^argument-hint:' --include='*.md' . — every match now has quoted value
  • YAML round-trip on sample files (yaml.safe_load) — argument-hint returns str '[file-path]', not list ['file-path']
  • Load a fixed skill under Copilot CLI 1.0.65+ — should no longer emit the argument-hint type error
  • Load a fixed skill under Claude Code — behavior unchanged (still shows [file-path] hint)

`argument-hint: [file-path]` is parsed by YAML as an array
(`["file-path"]`). Copilot CLI 1.0.65+ expects `argument-hint` to be a
string and errors when it receives an array. Quoting the value
(`argument-hint: "[file-path]"`) keeps the on-screen `[file-path]`
display unchanged while producing a scalar string.

Applied to all 47 SKILL.md files and TEMPLATE.md so future skills
inherit the corrected form.
@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