What problem does it solve?
TDD helps you build or fix features with confidence by using tests to drive the correct behavior through a repeatable red-green-refactor workflow.
Core Features & Use Cases
- Vertical-slice TDD workflow: Use tracer bullets (one test at a time) to implement the behavior needed next, avoiding horizontal slicing that produces brittle or misguided tests.
- Integration-style test emphasis: Prefer tests that verify observable behavior through public interfaces, so tests survive refactors.
- Guided design for testability: Plan interface changes, design boundaries for mockability, and limit mocking to system boundaries.
Use case: When you need to fix a bug or add a feature, you can iterate behavior-by-behavior: write a failing integration-style test for the next user-facing capability, implement the minimal code to make it pass, then refactor safely without breaking the verified behavior.
Quick Start
Use the tdd skill to plan, write one failing integration-style test, implement the minimal behavior to go red-to-green, and refactor while keeping tests green.