Quote argument-hint so YAML parses it as string#5
Open
thejesh23 wants to merge 1 commit into
Open
Conversation
Copilot CLI 1.0.65 requires argument-hint to be a string. Unquoted brackets ([crush-name-or-slug]) are parsed by YAML as a flow sequence, which fails schema validation. Wrapping the value in double quotes keeps it a string while preserving the display text.
Author
|
Tracking issue: #6 — 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
The frontmatter in
SKILL.mdcurrently declares:Unquoted square brackets are YAML flow-sequence syntax, so this parses as a list of one string (
["crush-name-or-slug"]) rather than the intended string"[crush-name-or-slug]".Copilot CLI 1.0.65 tightened its skill/prompt frontmatter schema and now requires
argument-hintto be a string. With the current value, loading this skill fails schema validation. Quoting the value keeps the same rendered hint while satisfying the string requirement:This also matches the YAML rule cited in the related fixes below:
argument-hint: [X]→argument-hint: "[X]"argument-hint: ["X"]→argument-hint: "X"Claude Code and other consumers accept the quoted form without behavior change, so this is a safe, backward-compatible fix.
Related
argument-hintYAML frontmatter with brackets causes React error #31 and unrecoverable TUI hang anthropics/claude-code#22161 — latent version of the same issue on Claude CodeTest plan
yaml.safe_loadyieldsargument-hintof typestrwith value"[crush-name-or-slug]"(previously a 1-element list).SKILL.md); a full-tree scan forargument-hintreturns no other occurrences.