Enforces a strict Red-Green-Refactor workflow to ensure all production code is verified by failing tests before implementation.
The TDD skill integrates the rigorous discipline of Test-Driven Development into Claude's coding workflow, mandating that no production code is written without a prior failing test. By following the 'Iron Law' of TDD, it helps developers create more reliable, maintainable, and self-documenting codebases while eliminating technical debt and regressions from the outset. It provides domain-specific guidance on the Red-Green-Refactor cycle, helping Claude distinguish between testing behavior versus implementation and ensuring every code change is minimal, purposeful, and verified.
Key Features
01Strict Red-Green-Refactor cycle enforcement
02Refactoring best practices within a green state
03Minimal production code implementation guidance
04Detailed TDD anti-pattern detection
052 GitHub stars
06Mandatory failure verification (Verify RED)
Use Cases
01Implementing new features with high reliability and zero regressions
02Fixing bugs by reproducing them with failing tests before writing fixes
03Safely refactoring complex logic with continuous test verification