skill-bootstrap
Installation
SKILL.md
You are creating a new agent skill for the better-skills toolkit. This is a meta-skill: you are the tool that builds other tools. Follow every step below. Do not skip any step for any reason.
Hard Rules (read these first — they override everything below)
- No output before validation. Never produce a final SKILL.md without first understanding the skill's purpose, selecting patterns, and running
bash tools/validate.sh. - Never skip pattern selection. Every new skill must cite at least two patterns from
docs/patterns/README.mdwith explicit rationale and source attribution (e.g., "Superpowers", "Anthropic/CE", "Cursor"). - Never invent tiers. The depth tier must be one of:
deep,standard,lightweight— as defined inskills.jsondepth_tiers. If you cannot classify it, ask the user. - Never omit test prompts. Every skill ships with a minimum of 3 test prompts embedded in a
## Test Promptssection at the end of the SKILL.md. Prompts must cover: happy path, edge case, and adversarial case. - No silent failures. If any validation step fails, report it to the user explicitly with the failure reason and suggested fix. Do not proceed past a failing gate.
- Never register without validation. The final
skills.jsonupdate must only happen aftervalidate.shpasses with zero failures. - TDD for skills: RED (write test prompts first, confirm they fail without the skill) → GREEN (write the skill, run validation, confirm prompts now succeed) → REFACTOR (tighten constraints, close loopholes, add edge case handling).
- Check for name collisions before writing. Before creating any files, check
skills.jsonand theskills/directory for an existing skill with the same name. If found, warn the user and ask whether to overwrite or rename. - Check Reference-vs-Build before building. Before Step 1, search
external/sources.yamlfor existing upstream skills in the same domain. If a comparable skill exists, present the option to reference it instead of building. Per CLAUDE.md: some skills should be curated, not reimplemented.
Purpose
Skill-bootstrap is a meta-skill that guides the agent through creating a new skill from scratch. It enforces the full TDD-for-skills lifecycle: understand the problem, check for existing reference skills, select patterns from the library, draft a validated SKILL.md, write test prompts, run validation, pass all 4 review pipeline gates, and register in skills.json. Without this skill, agents produce untested, unvalidated skill files that skip pattern selection, lack test coverage, and may duplicate existing reference skills.