What problem does it solve?
Test-driven development (TDD) helps teams build features with confidence by validating behavior via tests before implementing code. It reduces risk of regressions and clarifies requirements through a red-green-refactor loop. This skill guides practitioners to focus on public interfaces and observable behavior rather than internal implementation details.
Core Features & Use Cases
- Vertical slices: One test → one implementation cycle that keeps feedback fast.
- Public-interface focus: Tests verify user-visible behavior, not internals.
- Safe refactoring: Tests stabilize code during changes and document intended outcomes.
- Use Case: When starting a new feature or fixing a bug, follow a red-green-refactor loop to drive development and ensure regression safety.
Quick Start
Write a failing test, implement the minimal code to pass, then refactor for maintainability.