T

tdd

bymattpocock·#15 trending

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

150,900stars
First seenFeb 10, 2026

Installation

Send this command to your AI agent:

npx skills add https://github.com/mattpocock/skills --skill tdd

Documentation

Test-driven development with vertical slices, behavior-focused tests, and incremental red-green-refactor cycles.

  • 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
  • Provides refactoring guidelines covering duplication extraction, module deepening, and SOLID principles, applied only after all tests pass