What problem does it solve?
This Skill eliminates the common failures of ad-hoc test-driven development: writing brittle tests that break during code refactors, building features that don't match user requirements, and wasting effort on horizontal test writing that validates imagined behavior instead of actual user-facing functionality.
Core Features & Use Cases
- Vertical Tracer Bullet Workflow: Enforces one-test-one-implementation cycles instead of bulk test writing, ensuring each test validates real, observed behavior.
- Behavior-Focused Test Guidance: Teaches writing integration-style tests through public interfaces that survive internal refactors, avoiding implementation-coupled test failures.
- Anti-Pattern Protection: Explicitly warns against common TDD mistakes like horizontal slicing and speculative feature implementation.
- Use Case: When building a new user authentication feature, use this Skill to write a single test for valid login first, implement the minimal code to pass it, then iterate on edge cases like invalid passwords one test at a time.
Quick Start
Use the tdd skill to implement the new order tracking feature following the red-green-refactor vertical slice workflow, prioritizing tests for public interface behavior over internal implementation details.