Enforces a strict Red-Green-Refactor workflow by generating failing tests before implementation to ensure high code quality and test coverage.
The TDD skill transforms Claude into a disciplined development partner that strictly adheres to the Test-Driven Development methodology. It guides you through the essential cycle of defining interfaces, writing failing tests (Red), implementing minimal passing code (Green), and refactoring for optimization. By mandating an 80%+ test coverage threshold and prioritizing test creation before any functional code is written, this skill minimizes regressions, improves software design, and ensures that critical business logic is fully verified from the start.
Key Features
01Automated Red-Green-Refactor cycle enforcement
02Interface and type scaffolding for new features
030 GitHub stars
04Edge case and error condition identification
05Failing test generation prior to code implementation
06Coverage verification with an 80% minimum threshold
Use Cases
01Fixing bugs by creating reproduction tests before applying fixes
02Implementing new features with a focus on reliability and modularity
03Building critical business logic that requires 100% test coverage