Quote argument-hint values in SKILL.md frontmatter#60
Open
thejesh23 wants to merge 1 commit into
Open
Conversation
Author
|
Tracking issue: #61 — 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.
Bug
Two SKILL.md files use unquoted square brackets in their
argument-hint:YAML frontmatter:.claude/skills/create-html-mock/SKILL.md:argument-hint: [feature description].claude/skills/extract-requirements-from-mock/SKILL.md:argument-hint: [feature-name]Per YAML 1.2 flow syntax,
[X]parses as a sequence (array), not a string. Tools that consume this frontmatter and requireargument-hintto be a string will reject or misrender these skills.Impact
GitHub Copilot CLI 1.0.65 requires
argument-hintto be a string and rejects arrays. There is also a latent equivalent issue tracked for Claude Code in anthropics/claude-code#22161.Fix
Quote the values so YAML parses them as strings:
The rendered hint (
[feature description],[feature-name]) is unchanged — only the YAML type changes from sequence to string.The other three SKILL.md files in
.claude/skills/use<feature-name>(angle brackets), which YAML already parses as a string, so they need no change.Test plan
python3 -c "import yaml; ..."on both files:argument-hintnow parses asstr('[feature description]','[feature-name]') instead oflist.[feature description]/[feature-name]in tool UIs.