Skip to content

Test that every documented command parses - #20

Merged
wilbeibi merged 3 commits into
mainfrom
skill-cli-parity-test
Sep 20, 2026
Merged

wilbeibi merged 3 commits into
mainfrom
skill-cli-parity-test

Conversation

@wilbeibi

Copy link
Copy Markdown
Owner

SKILL.md, README.md and the help screen each spell catchup invocations out by hand, so a renamed or removed flag can leave them teaching a command the binary rejects, and SKILL.md is what an agent reads before it ever runs catchup.

One new test file lifts every documented catchup … line out of all three and runs it through the real argument parser. A rejection names the document, the line, the command as written and the parser's own error. Each document carries a floor on how many invocations must be found, so a scanner that matches nothing fails rather than passes.

It also gates the SKILL.md frontmatter that install-skill depends on: the name matches the directory each copy is written to, and the description stays inside the 1024-character budget with no angle-bracket tokens a validator would read as markup.

Test code only. No production file changed, no new dependency.

wilbeibi and others added 3 commits September 20, 2026 13:08
SKILL.md, README.md and the help screen all spell catchup invocations
out by hand, so a renamed flag can leave them teaching a command the
binary rejects. The new test lifts every documented `catchup ...` line
out of the three and runs it through the real argument parser, naming
the document, the line and the parser's own error when one fails.

It also gates the SKILL.md frontmatter that install-skill depends on:
the name matches the directory each copy is written to, and the
description stays inside the 1024-character budget with no angle
bracket tokens a validator would read as markup.
README.md and the help screen are read by people, who try another spelling
when one is rejected. SKILL.md is the copy that fails quietly: an agent
following a stale line reports that catchup cannot do the thing and stops.
Binding all three tied the test to two documents whose drift a reader
corrects anyway, so the scan now covers the one that nobody is watching.

The extractor stays as it was — SKILL.md is Markdown too — and so does the
test that pins it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K1bnmAA2o7tPADLVLD46cA
@wilbeibi
wilbeibi merged commit 673f95d into main Sep 20, 2026
2 checks passed
@wilbeibi
wilbeibi deleted the skill-cli-parity-test branch September 21, 2026 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants