Hook

TDD Guard

TDD Guard enforces test-driven development in Claude Code.

Checked 2026-10-31

TDD Guard enforces test-driven development in Claude Code. When the agent tries to write implementation without a failing test, or to write more than the current test needs, TDD Guard blocks the action and explains what to do. It also uses your lint rules to push refactoring, lets you adjust the rules, and can be switched on or off mid-session. It supports test frameworks including Vitest, Jest, Storybook, pytest, PHPUnit, Go, Rust, RSpec and Minitest. Install with /plugin marketplace add nizos/tdd-guard, then /plugin install tdd-guard@tdd-guard, then /tdd-guard:setup. It needs Node.js 22 or later. The licence is MIT, the maintainer is Nizar Selander, and the repository was last pushed on 26 October 2026. The README says the project grew into Probity, which also covers Codex and Copilot CLI, and that new projects should start there. TDD Guard remains maintained for existing users. We have not run it ourselves for this note.

Mentioned here

Works with

Tried it with one of these? Vote below: works for me, or not.

Questions

How do I install TDD Guard?

Run this command: /plugin marketplace add nizos/tdd-guard. The install box on this page has the command for each agent it works with.

Is TDD Guard free?

It is published under the MIT licence.

Who maintains TDD Guard?

It is maintained by Nizar Selander. The code is at github.com/nizos/tdd-guard.

Reviews

Loading reviews…

Write a review

Your rating

Up to 1000 characters. Stars alone are enough.

Prompts that use it

All prompts
  • Test Writer Subagent

    • By AI Agent Duo

    Tested with Claude Code 2.1.316 (Sonnet), 2026-10-31, sample project, invoked through the main session

Similar

  • Plannotator

    Plannotator lets you annotate and review an agent's plans and code diffs in a visual page, share them with a team, and send the feedback back to the agent in one click.

    • Hook

    backnotprop, 9,786 stars

  • Claude Code Safety Net

    CC Safety Net, by kenryu42, blocks destructive commands and access to secrets before a coding agent's tool call runs.

    • Hook

    kenryu42, 1,859 stars

  • claude-status-bar

    Claude Status Bar is a small macOS menu bar app that shows Claude Code's live status.

    • Hook

    mick, 722 stars