mattpocock logo
#8 by installsTesting & QAmattpocock/skills

tdd

Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

Installs
1.1M
all time
This week
39.2K
installs
Repo stars
276.1K
GitHub
First seen
Feb 10, 2026
on skills.sh
Install
npx skills add https://github.com/mattpocock/skills --skill tdd
Works with Claude Code, Cursor, Codex, GitHub Copilot, Windsurf, Gemini CLI and other agents that read SKILL.md.
What it does

Test-driven development with vertical slices, behavior-focused tests, and incremental red-green-refactor cycles. Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

  • Emphasizes integration-style tests that verify behavior through public APIs, not implementation details; tests should survive refactors unchanged
  • Requires vertical slicing (one test → one implementation → repeat) instead of horizontal slicing (all tests first, then all code), preventing brittle, behavior-insensitive test suites
  • Includes planning phase to confirm interface changes, prioritize behaviors to test, and design for testability before writing code