What problem does it solve?
This Skill solves the common issue of writing fragile, implementation-coupled tests that break during code refactors, and inconsistent adoption of test-driven development practices that lead to lower code quality and higher bug rates.
Core Features & Use Cases
- Full TDD Workflow Guidance: Step-by-step instructions for the red-green-refactor cycle, including planning, tracer bullet implementation, incremental test writing, and safe refactoring.
- Anti-Pattern Avoidance: Explicit guidance to avoid common TDD mistakes like horizontal slicing (writing all tests before any implementation) that lead to low-value, fragile tests.
- Supporting Best Practices: Reference materials for writing behavior-focused integration tests, designing testable interfaces, applying appropriate mocking at system boundaries, and identifying deep module opportunities.
- Use Case: A developer building a new user authentication feature can use this Skill to write a single tracer bullet test for the login flow first, implement minimal code to pass the test, then iterate through additional behaviors like password reset and rate limiting without writing tests that break when internal code structure changes.
Quick Start
Use the tdd skill to implement the new shopping cart checkout feature following the red-green-refactor workflow with behavior-focused integration tests.