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-guardResumen de Tools
Lo que la gente pregunta sobre tdd-guard
¿Qué es nizos/tdd-guard?
+
nizos/tdd-guard es tools para el ecosistema de Claude AI. Automated TDD enforcement for Claude Code Tiene 2.2k estrellas en GitHub y se actualizó por última vez 4d ago.
¿Cómo se instala tdd-guard?
+
Puedes instalar tdd-guard clonando el repositorio (https://github.com/nizos/tdd-guard) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.
¿Es seguro usar nizos/tdd-guard?
+
Nuestro agente de seguridad ha analizado nizos/tdd-guard y le ha asignado un Trust Score de 100/100 (tier: Verified). Revisa el desglose completo de comprobaciones superadas y flags en esta página.
¿Quién mantiene nizos/tdd-guard?
+
nizos/tdd-guard es mantenido por nizos. La última actividad registrada en GitHub es de 4d ago, con 27 issues abiertos.
¿Hay alternativas a tdd-guard?
+
Sí. En ClaudeWave puedes explorar tools similares en /categories/tools, ordenados por popularidad o actividad reciente.
Despliega tdd-guard en tu cloud
Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.
¿Mantienes este repo? Añade un badge a tu README
Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.
[](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>Más 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