From superpowers-ccg
Use when implementing any feature or bugfix, before writing implementation code. Covers writing the failing test first, watching it fail, then minimal code to pass.
How this skill is triggered — by the user, by Claude, or both
Slash command
/superpowers-ccg:test-driven-developmentThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Write the test first. Watch it fail. Write the minimal code to pass. Refactor.
Write the test first. Watch it fail. Write the minimal code to pass. Refactor.
Routing, gates, and the worker response format live in
coordinating-multi-model-work — load it first.
NO NEW BEHAVIOR WITHOUT A FAILING TEST FIRST
NO REFACTOR WITHOUT PASSING CHARACTERIZATION COVERAGE
For changed behavior, a test you never saw fail remains unproven. Wrote code before the test? Delete it and start over — don't keep it "as reference", don't "adapt" it while writing the test. Violating the letter of this rule violates the spirit of it.
For behavior-preserving refactors, establish passing characterization tests first. Refactor in small steps while keeping them green. Do not manufacture a failure when behavior must remain unchanged.
(Routing table, gates, and worker mechanics are canonical in coordinating-multi-model-work.)
| Excuse | Reality |
|---|---|
| "Too simple to test" | Simple code breaks. The test takes 30 seconds. |
| "I'll test after" | Tests written after pass immediately — they prove nothing. |
| "Tests-after are the same" | After = "what does this do?"; first = "what should it do?" |
| "Already manually tested" | Ad-hoc, no record, can't re-run. Automated is systematic. |
| "Deleting work is wasteful" | Sunk cost. Unverified code is the debt, not the rewrite. |
| "Hard to test" | Hard to test = hard to use. Listen to the test; simplify design. |
skills/coordinating-multi-model-work/SKILL.md — gates, routing, worker response format.skills/systematic-debugging/SKILL.md — Phase 4 fixes start from a failing test.skills/verifying-before-completion/SKILL.md — fresh evidence before claiming done.npx claudepluginhub sitien173/superpowers-ccg --plugin superpowers-ccgCreates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.