fix(skills): make argument-hint a YAML string, not a one-element list - #1
Open
thejesh23 wants to merge 1 commit into
Open
Conversation
The `argument-hint:` frontmatter field in all 9 SKILL.md files was written as `argument-hint: ["..."]`, which is YAML flow-sequence syntax. YAML parses it as a one-element list `["..."]`, not as a string `"..."`. GitHub Copilot CLI 1.0.65 (released 2026-06) tightened its skill loader to require `argument-hint` to be a string, so all 9 DoneGraph skills silently fail to load in Copilot CLI 1.0.65+. The same shape is also a latent bug on Claude Code, tracked at anthropics/claude-code#22161 — Claude Code currently accepts either shape but the docs specify string. Fix: strip the outer `[` and `]` so each value is a plain YAML double-quoted string. References ---------- - GitHub Copilot CLI release notes / changelog for 1.0.65 - VS Code Agent Skills docs: `argument-hint` documented as a string (single-line prompt hint), not an array - Copilot CLI skills tutorial (`copilot-cli-for-beginners/05-skills`) also shows `argument-hint` as a plain string - Diagnostic reference: Egonex-AI/Understand-Anything#540 documents the same root cause with sources (currently open, not yet merged — cited as diagnostic reference only) Verified: `yaml.safe_load` on all 9 files now returns `str` for `argument-hint`, matching what Copilot CLI, VS Code, and Claude Code expect.
Author
|
Tracking issue: #2 — 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 9
SKILL.mdfiles inplugins/donegraph/skills/writeargument-hintas a flow-sequence rather than a string:The bug
In YAML, a bare
[opens a flow-sequence. Soargument-hint: ["X"]deserialises to the list["X"], not to the string"X". Skill loaders that expectargument-hintto be a string therefore see the wrong type and reject the skill.GitHub Copilot CLI 1.0.65 (released 2026-06) tightened its skill loader to require
argument-hintto be a string. As a result, every DoneGraph slash command silently fails to load in Copilot CLI 1.0.65+.Verified locally:
The fix
Strip the outer
[and]in all 9 files underplugins/donegraph/skills/:donegraph/SKILL.mddonegraph-capture/SKILL.mddonegraph-checkpoint/SKILL.mddonegraph-dashboard/SKILL.mddonegraph-done/SKILL.mddonegraph-proof/SKILL.mddonegraph-recap/SKILL.mddonegraph-start/SKILL.mddonegraph-summary/SKILL.mdOne logical change per file, one commit total.
Why this shape (string, not array)
argument-hintis documented as a single-line prompt hint (string), matching how it renders in the slash-command picker.copilot-cli-for-beginners/05-skills) — showsargument-hintas a plain YAML string in every example.Test plan
git diff main -- 'plugins/donegraph/skills/**/SKILL.md'— should show 9 files, each with a one-line change:["..."]→"...".Frontmatter sanity check — every file's
argument-hintdeserialises tostr:Copilot CLI 1.0.65+ — install the plugin, run
copilotin a project, confirm/donegraph,/donegraph-recap, etc. all appear in the slash-command picker (before this PR, none of them load).Claude Code — confirm the skills still load (Claude Code accepts both shapes today, so no regression expected).
Repo checks per
CONTRIBUTING.md:npm test— pure frontmatter change, no code paths touched; no impact expected.npm run typecheck— no.tsfiles changed.npm run build— no build inputs changed..github/workflows/ci.yml) — I rannpx prettier --checkon both the pre-patch and post-patch trees; the same set of pre-existing warnings appear either way (2 files after this PR vs 3 before; this PR incidentally fixes one). No new warnings introduced. The CI step is guarded with|| echo "Prettier not configured, skipping"and will not fail regardless.Scope
CONTRIBUTING.md: unaffected — no code-graph edges introduced, no render path touched, no snapshot fields added.