What problem does it solve?
Test-driven development guidance to keep tests focused on observable behavior rather than implementation details, preventing fragile tests that break during refactors and ensuring development proceeds in small, verifiable steps.
Core Features & Use Cases
- Red-Green-Refactor workflow guidance: write one failing test, implement the minimal code to pass, then refactor.
- Tracer-bullet approach for vertical slices: iterate one behavior at a time to avoid horizontal slicing and speculative work.
- Test design and mocking rules: prefer integration-style tests through public interfaces and mock only system boundaries.
- Interface and module design advice: deep modules, dependency injection, small surface areas, and refactor candidate checklists.
- Use cases include implementing new features, fixing bugs with confidence, and establishing a repeatable test-first process for teams.
Quick Start
Use the tdd skill to guide a red-green-refactor cycle by writing one failing integration-style test for the next behavior, implementing the minimal code to pass, and then refactoring.