What problem does it solve? Writing tests after implementation often produces brittle tests coupled to internal details that break during refactoring. This Skill enforces a disciplined test-first workflow where each test verifies observable behavior through public interfaces, producing a stable test suite that survives internal changes. ## Core Features & Use Cases - Red-Green Incremental Loop: Write one failing test, then the minimal code to pass it, repeating vertically instead of writing all tests upfront. - Interface Design for Testability: Apply dependency injection, return-value patterns, I/O separation, and seams so code is naturally easy to test. - Mocking and Refactoring Guidelines: Mock only at system boundaries (APIs, time, file system) and follow a smell-to-fix refactoring table after tests pass. - Use Case: When building a new checkout feature, ask the AI to drive development test-first: it will design the public interface, write one failing behavior test, implement the minimal passing code, and iterate until all behaviors are covered. ## Quick Start Use the tdd skill to build the new shopping cart feature test-first with a red-green loop.