fix(SKILL.md): quote argument-hint so YAML parses it as string#80
Open
thejesh23 wants to merge 1 commit into
Open
fix(SKILL.md): quote argument-hint so YAML parses it as string#80thejesh23 wants to merge 1 commit into
thejesh23 wants to merge 1 commit into
Conversation
Unquoted `[ex-name-or-slug]` is parsed as a YAML flow sequence, but Copilot CLI 1.0.65 requires `argument-hint` to be a string. Wrapping the value in quotes keeps the visual `[...]` hint while satisfying the string requirement.
Author
|
Tracking issue: #81 — 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
SKILL.mdhas:In YAML, an unquoted
[...]value is a flow sequence (an array), not a string. Copilot CLI 1.0.65 requiresargument-hintto be a string, so loading the skill currently fails validation on that runtime.The fix quotes the value so YAML parses it as a string while preserving the visible
[ex-name-or-slug]hint that users see:Verified locally with
yaml.safe_load— the value now parses asstr '[ex-name-or-slug]'instead oflist ['ex-name-or-slug']. Claude Code has been tolerant of the array form, but the same latent inconsistency has been reported there too (see refs below).YAML rule
argument-hint: [X]→ sequence[X](WRONG for tools expecting a string)argument-hint: "[X]"→ string"[X]"(CORRECT)argument-hint: ["X"]→ sequence["X"](WRONG)argument-hint: "X"→ string"X"(CORRECT)Scope
Full-tree scan for
argument-hint:in this repo turned up exactly one occurrence —SKILL.mdline 4. The generated per-exSKILL.mdtemplate embedded in this file (Step 5) does not emit anargument-hintfield, so no other changes are needed.References
argument-hintYAML frontmatter with brackets causes React error #31 and unrecoverable TUI hang anthropics/claude-code#22161Test plan
yaml.safe_loadon the updated frontmatter returnsargument-hintasstrcreate-exskill in Copilot CLI 1.0.65 and confirm the frontmatter validatescreate-exskill in Claude Code and confirm the[ex-name-or-slug]hint still renders as before