Automated TDD enforcement for Claude Code
TDD Guard is a TypeScript npm package that hooks into Claude Code to enforce Test-Driven Development discipline during agentic coding sessions. It installs as a Claude Code plugin via three slash commands and intercepts the agent's file-writing actions to block two specific violations: writing implementation code before any failing tests exist, and writing more code than current tests require. It also integrates with project linters to enforce the refactor phase of the red-green-refactor cycle. When a violation is detected, the hook blocks the action and returns an explanation of what must happen first rather than silently failing. The tool supports ten test frameworks across multiple languages, including Vitest, Jest, pytest, PHPUnit, Go, Rust, RSpec, and Minitest. Validation can be routed to faster or more capable models depending on project needs, and enforcement can be toggled mid-session. Software developers who want Claude Code to respect TDD workflows rather than skip directly to passing implementations are the primary audience.
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Healthy fork ratio
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
git clone https://github.com/nizos/tdd-guardTools overview
What people ask about tdd-guard
What is nizos/tdd-guard?
+
nizos/tdd-guard is tools for the Claude AI ecosystem. Automated TDD enforcement for Claude Code It has 2.2k GitHub stars and was last updated 4d ago.
How do I install tdd-guard?
+
You can install tdd-guard by cloning the repository (https://github.com/nizos/tdd-guard) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is nizos/tdd-guard safe to use?
+
Our security agent has analyzed nizos/tdd-guard and assigned a Trust Score of 100/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.
Who maintains nizos/tdd-guard?
+
nizos/tdd-guard is maintained by nizos. The last recorded GitHub activity is from 4d ago, with 27 open issues.
Are there alternatives to tdd-guard?
+
Yes. On ClaudeWave you can browse similar tools at /categories/tools, sorted by popularity or recent activity.
Deploy tdd-guard to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/nizos-tdd-guard)<a href="https://claudewave.com/repo/nizos-tdd-guard"><img src="https://claudewave.com/api/badge/nizos-tdd-guard" alt="Featured on ClaudeWave: nizos/tdd-guard" width="320" height="64" /></a>More Tools
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
An AI SKILL that provide design intelligence for building professional UI/UX multiple platforms
🪨 why use many token when few token do trick — Claude Code skill that cuts 65% of tokens by talking like caveman
AI coding assistant skill (Claude Code, Codex, OpenCode, Cursor, Gemini CLI, and more). Turn any folder of code, SQL schemas, R scripts, shell scripts, docs, papers, images, or videos into a queryable knowledge graph. App code + database schema + infrastructure in one graph.
A light-weight and powerful meta-prompting, context engineering and spec-driven development system for Claude Code by TÂCHES.
CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies