Skip to content

Test that every s1 command and flag in the shipped skill exists - #24

Merged
fatwang2 merged 1 commit into
masterfrom
test/skill-docs-match-cli
Dec 4, 2026
Merged

fatwang2 merged 1 commit into
masterfrom
test/skill-docs-match-cli

Conversation

@fatwang2

@fatwang2 fatwang2 commented Dec 4, 2026

Copy link
Copy Markdown
Member

新增 `tests/skill-docs.test.mjs`:从 SKILL.md 和 reference/examples.md 里抽出每一处 `s1 <命令> --参数`,逐条对照 `--help` 输出。命令或参数改名、删除时 CI 会失败,不会再悄悄误导 agent。

测试:`npm test` 60/60 通过;往 SKILL.md 里加一个假参数和一个假命令做变异测试,两者都被拦下。审计报告:https://app.notion.com/p/42c4a2eb2206815aa668f7efc3c61ed9

🤖 Generated with Claude Code

The agent skill teaches agents which commands and flags to use. A renamed
or removed option now fails CI instead of silently misleading agents.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fatwang2
fatwang2 merged commit 88c258e into master Dec 4, 2026
2 checks passed
@fatwang2
fatwang2 deleted the test/skill-docs-match-cli branch December 4, 2026 18:08
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.

1 participant