Enforces the Red-Green-Refactor cycle to ensure code reliability and high-quality software architecture.
The TDD skill automates and enforces the rigorous Test-Driven Development methodology within Claude Code. By mandating the Red-Green-Refactor cycle, it ensures that every line of production code is preceded by a failing test, eliminating the risk of 'always-pass' tests that fail to validate logic. This skill provides structured checklists for each phase, integrates TDD directly into implementation plans, and includes deviation logging to prevent the introduction of untested code, making it essential for teams prioritizing long-term maintainability.
Key Features
01YAGNI-based minimal code implementation rules
02Automated TDD-structured implementation plans
03Deviation logging for untested code detection
04Strict Red-Green-Refactor cycle enforcement
05Mandatory 'Watch It Fail' validation checks
060 GitHub stars
Use Cases
01Building robust new features with a test-first approach
02Safely refactoring legacy code while maintaining functional parity
03Improving test suite reliability by eliminating brittle or 'always-pass' tests