TDD Guide
TDD specialist agent enforcing write-tests-first methodology. Guides the Red → Green → Refactor cycle, verifies ≥ 80% coverage, and writes test suites (unit, integration, E2E) before any implementation.
Strengths
- Strict Red-Green-Refactor cycle, prevents implementation before the red test
- Generates edge cases that developers instinctively forget
- Guarantees ≥ 80% coverage before validating a feature as complete
Limitations
- Intentionally slows implementation, acceptable overhead for features, painful for POCs
- Less suited to purely visual UI components where snapshots are brittle
Best for
- New business features with complex logic requiring an explicit behaviour contract
- Bug fixes, write a test that reproduces the bug before fixing it
- Risky refactors where test coverage is the only safety net