tdd
Test-driven development with vertical slices, behavior-focused tests, and incremental red-green-refactor cycles.
What it does
- Red before green. Write the failing test first, then only enough code to pass it. Don't anticipate future tests or add speculative features.
- One slice at a time. One seam, one test, one minimal implementation per cycle.
- Refactoring is not part of the loop. It belongs to the review stage (see the code-review skill), not the red → green implementation cycle.
Requirements & configuration
Configuration: CONTEXT
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
Test-driven development with vertical slices, behavior-focused tests, and incremental red-green-refactor cycles.
Source
Repository: https://github.com/mattpocock/skills
tdd FAQ
What does the tdd skill do?
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests. Red before green. Write the failing test first, then only enough code to pass it. Don't anticipate future tests or add speculative features. One slice at a time. One seam, one test, one minimal implementation per cycle.
How do I install tdd?
Run: npx -y skills add https://github.com/mattpocock/skills --skill tdd --agent claude-code — the source lives at github.com/mattpocock/skills.
Maintain tdd?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[](https://getagentictools.com/skills/mattpocock-skills-tdd?ref=badge) npx agentictools info skills/mattpocock-skills-tdd The second line is the CLI lookup for this page — handy in READMEs and docs.