What problem does it solve? Writing tests after code, or writing all tests before implementation, produces brittle tests coupled to internal structure that break on every refactor. This Skill enforces a disciplined test-driven development workflow where tests verify observable behavior through public interfaces, so they survive refactors and act as living specifications. ## Core Features & Use Cases - Red-Green-Refactor Loop: Implements vertical slicing with tracer bullets—one failing test, minimal code to pass, then repeat—instead of horizontal batch testing. - Behavior-Focused Test Design: Provides guidelines and examples for writing integration-style tests through public APIs, with clear rules on when to mock (system boundaries only) and how to design testable interfaces. - Refactoring Guidance: Includes checklists for post-cycle refactoring such as extracting duplication, deepening modules, and applying SOLID principles. - Use Case: When building a new checkout feature, use this Skill to plan which behaviors to test, write one failing test at a time, implement minimal code per cycle, and refactor safely once all tests pass. ## Quick Start Use the tdd skill to build the new shopping cart feature test-first, one behavior at a time.