What problem does it solve?
New feature development often produces uncertain code and hidden edge cases because implementation is written before a clear executable specification. This skill replaces guesswork with a repeatable red‑green‑refactor cycle so features are defined by failing tests and implemented only to satisfy those tests.
Core Features & Use Cases
- Test-first scaffolding: Guide API design, write failing unit tests, and structure test suites before implementation.
- Iterative implementation: Instruct the developer or AI to implement the minimal code to make each failing test pass, then refactor.
- Integration and edge-case planning: Recommend integration tests and edge-case scenarios such as capacity, duplicates, and persistence.
- Use Case: Create a FavoriteManager feature by first authoring tests for construction, add/remove semantics, duplicate handling, and capacity limits, then implement the class iteratively until all tests pass.
Quick Start
TDD a new FavoriteManager by writing failing tests for construction, add, remove, duplicates, and capacity, then iteratively implement the minimal code to pass each test.