Enforce red-green-refactor discipline in Claude Code sessions with TDD Guard
Block implementation-first agent behavior and keep Claude Code anchored to failing-tests-first TDD loops.
Prerequisites
Claude Code, Node.js 22+, supported test framework
Installation
Requirements and caveats from upstream:
- Node.js 22+
- Python/pytest support: @Durafen
Basic usage or getting-started notes:
A supported test framework (Vitest, Jest, Storybook, pytest, PHPUnit, Go, Rust, RSpec, Minitest)
Open Claude Code in your project and run:
/plugin marketplace add nizos/tdd-guard
Extracted from upstream docs: https://raw.githubusercontent.com/nizos/tdd-guard/HEAD/README.md