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 tests verify observable behavior through public interfaces, so they survive internal code changes. ## Core Features & Use Cases - Red-Green-Refactor Loop: Enforces vertical slicing with one failing test followed by minimal implementation, avoiding the anti-pattern of writing all tests before all code. - Behavior-Focused Testing: Provides criteria and examples distinguishing good integration-style tests from implementation-coupled tests that mock internal dependencies. - Design Guidance: Includes references on deep modules, interface design for testability, mocking boundaries, and refactoring candidates. - Use Case: When adding a checkout feature to an application, use this Skill to plan the public interface, write one failing test for the first behavior, implement minimal code to pass it, and repeat incrementally before refactoring. ## Quick Start Use the tdd skill to implement the new feature with a test-first red-green-refactor workflow.