fix: quote argument-hint YAML for Copilot CLI 1.0.65 compatibility#9
Open
thejesh23 wants to merge 1 commit into
Open
fix: quote argument-hint YAML for Copilot CLI 1.0.65 compatibility#9thejesh23 wants to merge 1 commit into
thejesh23 wants to merge 1 commit into
Conversation
Copilot CLI 1.0.65 requires `argument-hint` to be a YAML string, but
unquoted values starting with `[` or `{` are parsed as flow-sequences or
flow-mappings. Several frontmatter blocks and one template example were
either invalid YAML or produced non-string types.
- `.claude/skills/build-with-agent-team/SKILL.md`: `[plan-path] [num-agents]` -> quoted string
- `.claude/commands/commit.md`: `[files...]` -> quoted string
- `.claude/commands/create-pr.md`: `[base-branch]` -> quoted string
- `.claude/commands/prd.md`: `[feature/product idea] ...` -> quoted string (was unparseable YAML)
- `.claude/commands/create-command.md`: template examples using `{...}` placeholders now show the quoted form so newly generated commands are compliant
Values that already begin with `<` (plain scalar) or are already quoted
were left unchanged.
Author
|
Tracking issue: #10 — 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
Several
.claude/files haveargument-hint:frontmatter values whose YAML parses as a flow-sequence or flow-mapping (or fails entirely), instead of the string that Copilot CLI 1.0.65 now strictly requires. This PR quotes the affected values.The YAML rule
In YAML, an unquoted scalar that begins with
[or{starts a flow-collection, not a string:argument-hint: [files...]->list(['files...'])argument-hint: [X] [Y]-> invalid YAML (two flow-sequences at one key)argument-hint: [X] (extra)-> invalid YAMLargument-hint: "[X] [Y]"->"[X] [Y]"(string, correct)Values that begin with
<or a letter (plain scalars) are already strings, so they were left unchanged.Verification
Before the fix, several frontmatter blocks failed
yaml.safe_loadoutright (e.g.prd.md, and the same class asSKILL.md's two-sequences case). After the fix, all four affected frontmatter values parse as strings.Files changed
.claude/skills/build-with-agent-team/SKILL.md[plan-path] [num-agents]"[plan-path] [num-agents]".claude/commands/commit.md[files...]"[files...]".claude/commands/create-pr.md[base-branch]"[base-branch]".claude/commands/prd.md[feature/product idea] (blank = start with questions).claude/commands/create-command.md{If needed}/{Input description}Untouched (already valid):
implement.md,plan.md,rca.md,review-pr.md, and the<input>example increate-command.md.References
argument-hintYAML frontmatter with brackets causes React error #31 and unrecoverable TUI hang anthropics/claude-code#22161Test plan
yaml.safe_loadon each fixed frontmatter returns astrprd.mdpre-fix was unparseable YAML; post-fix parses cleanlyargument-hinttype error