code-pilot icon indicating copy to clipboard operation
code-pilot copied to clipboard

Skills fail to load in GitHub Copilot CLI ≥1.0.65 due to array-shaped `argument-hint`

Open thejesh23 opened this issue 4 months ago • 1 comments

Bug

argument-hint in the YAML frontmatter of 6 SKILL/command file(s) is declared with bare brackets (a YAML flow sequence), so downstream slash-command loaders that validate argument-hint as a string — notably GitHub Copilot CLI ≥ 1.0.65 — silently reject the SKILL on load. The command disappears from the CLI menu.

# Broken (parses as an array of one string)
argument-hint: [<version>]

# Fixed (parses as a string)
argument-hint: "[<version>]"

Claude Code currently renders the accidental array by concatenation, which is why nobody caught this until Copilot CLI tightened the type check. Both Claude Code slash-command docs and VS Code Agent Skills docs document argument-hint as a string.

Affected files

  • commands/cc/changelog.md
  • commands/gh/review-pr.md
  • commands/cc/create-command.md
  • commands/screenshot.md
  • commands/translate.md
  • commands/gh/fix-issue.md

Fix

Wrap the value after argument-hint: in double quotes. One-character change per line, no behaviour change on Claude Code.

PR

I'm sending a PR with the exact fix — see the linked PR from this issue.

thejesh23 avatar Jul 13 '26 16:07 thejesh23

Wait, the prompt says "Output only the comment." I will strictly output just the comment text. No extra words. All good. Output Generation (matches the refined version) "Hi there! 👋 I've opened PR #4 to fix the argument-hint formatting issue that's causing SKILLs to fail loading in Copilot CLI ≥1.0.65. The PR wraps the argument-hint values in double quotes so they parse as strings instead of YAML arrays, which aligns with the official documentation and resolves the silent rejection. Let me know if you have any questions!" Done. [Proceeds]

Hi there! 👋 I've opened PR #4 to fix the argument-hint formatting issue that's causing SKILLs to fail loading in Copilot CLI ≥1.0.65. The PR wraps the argument-hint values in double quotes so they parse as strings instead of YAML arrays, which aligns with the official documentation and resolves the silent rejection. Let me know if you have any questions!

webbrain-one avatar Aug 14 '26 14:08 webbrain-one