Enforces test-driven development in Claude Code by blocking edits that skip a failing test or over-implement, with lint-driven refactoring checks.
Use it now
Keep it with up to 9 other tools you're setting up, then share them all as one link.
Try this first
Ask your coding agent:
- Lint-Driven Refactoring
Use TDD Guard to run your project's linting rules during the refactor phase: ‹what you need›
Install the CLI
npm install -g tdd-guard
Setup guide: github.com/nizos/tdd-guard
Compare
Press Compare to add it to the tray at the bottom of the window, then pick up to 2 others anywhere on the site.
- Access
- CLI
- Auth
- None
- Skills
- 4
Skills
Test-First Enforcement
Blocks Claude Code from writing implementation code until a failing test exists, and explains what has to happen first.
Minimal Implementation Check
Rejects changes that implement more than the current failing test requires, keeping each step of the TDD cycle small.
Lint-Driven Refactoring
Runs your project's linting rules during the refactor phase so the agent cleans up code once the tests pass.
Custom Validation Rules
Applies your own TDD instructions, ignore patterns and choice of validation model to how the agent's edits are judged.