Author a new Claude skill and test it before publishing
何时使用: You have a draft SKILL.md and want it audited before sharing.
前置条件
- Skill cloned to ~/.claude/skills/ — git clone https://github.com/huangwb8/skills ~/.claude/skills/huangwb8-skills
步骤
-
Scaffold with init-projectUse init-project to scaffold AGENTS.md and CLAUDE.md for my new skill project.✓ 已复制→ Directive files appear with sensible defaults
-
Polish the prompt with better-promptRun better-prompt on my SKILL.md body.✓ 已复制→ Clearer, more executable wording
-
Stress-testNow auto-test-skill my SKILL.md — find weaknesses.✓ 已复制→ Failure modes named (vague triggers, missing examples, ambiguous steps)
-
Write the READMEwrite-skill-readme for this skill.✓ 已复制→ README following convention
结果: A skill that passes its own tests before anyone else sees it.
注意事项
- auto-test-skill flags everything and you fix nothing — Prioritize Critical + Warning; Suggestion-level is aspirational