Description
TDD Guard is a plugin that enforces test-driven development in Claude Code. When the agent tries to skip tests or write more code than the current failing test needs, the guard blocks the action and explains what has to happen next. It checks for test-first behaviour, keeps implementations minimal, enforces refactoring with the project's lint rules, and lets you adjust the validation rules to fit your TDD style. Validation can use faster or more capable models, and you can switch the guard on and off during a session. js 22 or later and a supported test framework, such as Vitest, Jest, Storybook, pytest, PHPUnit, Go, Rust, RSpec or Minitest. The plugin is installed with Claude Code's plugin commands and a setup command that configures the test reporter for the project.…
Highlights
- Blocks implementation without a failing test
- Keeps implementations minimal
- Lint-based refactoring checks
- Customisable validation rules
- Works with many test frameworks
Ratings & Reviews
No ratings yet
Be the first to rate TDD Guard.
People also visit
TDD Guard FAQ
What does TDD Guard do?
It blocks Claude Code from skipping tests or over-implementing, and explains what should happen instead.
How do I install it?
Add the marketplace with /plugin marketplace add nizos/tdd-guard, install the plugin, then run /tdd-guard:setup.
What does it need?
Node.js 22 or later and a supported test framework.
Is there a newer project?
Yes. The README says TDD Guard has grown into Probity, which supports Claude Code, Codex and GitHub Copilot CLI. New projects should start there.
What are the best TDD Guard alternatives?
Popular alternatives to TDD Guard include Lazy Bird, CC Safety Net and Testera. See all TDD Guard alternatives
















