What problem does it solve?
tdd-agent solves the problem of building reliable software by forcing correctness decisions into an executable test lifecycle, preventing agents from writing code first and discovering issues late.
Core Features & Use Cases
- Phase-Contract TDD Workflow: Runs the Red (write failing tests), Green (implement until tests pass), and Refactor (improve without breaking) loop with explicit contracts.
- Anti-Tampering Guardrails: Detects and flags test modification during the Green phase to reduce the risk of passing by changing tests.
- Coverage Gate and Regression Handling: Uses a coverage threshold as a pipeline gate and specifies how to respond to regressions by returning to Red with failing test context.
- When to Use / When Not to: Provides criteria for test-verifiable correctness versus subjective output or spike-stage exploration.
Quick Start
Use the tdd-agent skill to turn acceptance criteria into failing tests first, then implement the minimum code to make those tests pass, and finally refactor while ensuring the test suite stays green.