fix: quote argument-hint so YAML parses as string (Copilot CLI 1.0.65 compat)#4
Open
thejesh23 wants to merge 1 commit into
Open
Conversation
`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.
Author
|
Tracking issue: #5 — captures the bug diagnosis and reproducer separately for anyone searching the repo who lands there before this PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
All 47
SKILL.mdfiles (andTEMPLATE.md) use:Because
[file-path]is unquoted, YAML parses it as an array (["file-path"]). GitHub Copilot CLI 1.0.65+ expectsargument-hintto 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:
The rendered hint (what users see in the CLI prompt) is unchanged — only the YAML type is corrected from array to string.
Scope
<skill>/SKILL.md— all skills in the repoTEMPLATE.md— so newly created skills inherit the correct form48 files, one line changed per file, no other content touched.
Reference
Test plan
grep -rn '^argument-hint:' --include='*.md' .— every match now has quoted valueyaml.safe_load) —argument-hintreturnsstr '[file-path]', notlist ['file-path'][file-path]hint)