# nizos/tdd-guard

Automated TDD enforcement for Claude Code

Repository: https://github.com/nizos/tdd-guard
Canonical: https://ross.abutalabs.com/products/tdd-guard
Language: TypeScript
License: MIT
License Family: permissive
Topics: agentic-coding, automation, claude-code, code-quality, hooks, llm-tools, tdd
Last push: 2026-08-16T11:57:48+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 98, release rhythm 78, longevity 30
- inputs: {"age_days": 422, "days_push": 17, "days_rel": 71, "gap_med": 0, "n_releases_24m": 80}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2314, forks 184 (observed 2026-08-28T04:06:36.759567+00:00)

## What it is
TDD Guard is a Claude Code plugin that automatically enforces test-driven development by intercepting agent actions via hooks and blocking violations like implementing without failing tests or over-implementing. It is configurable with custom rules, lint integration, and selectable validation models, and is now in maintenance mode in favor of its successor Probity.

## Use cases
- enforce tdd when coding with claude code
- stop the ai agent from writing code without failing tests first
- block over-implementation beyond current test requirements
- integrate linting into agent-driven refactoring
- customize tdd validation rules for my workflow
- keep ai coding sessions following test-first discipline

## When to choose
- you use Claude Code and want automated TDD enforcement
- you want hooks that block TDD violations with explanations
- you need configurable validation rules and lint integration for agent coding

## When to avoid
- you are starting a new project - the successor Probity supports more agents and is recommended
- you do not use Claude Code or an LLM coding agent
- you do not follow test-driven development
- your test framework is not among the supported ones

## Facets
- artifact type: plugin
- maturity: maintenance
- function: testing, developer-tools, middleware, workflow-automation
- domain: developer-tools, testing, artificial-intelligence
- platform: cli, cross-platform
- tags: tdd, claude-code, agentic-coding, hooks, code-quality, llm-tools, test-driven-development, automation, nodejs

## Member repositories
- nizos/tdd-guard (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:36.759567+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:39:27.310199+00:00, confidence not recorded.
  - readme: https://github.com/nizos/tdd-guard (fetched 2026-08-28T04:06:36.759567+00:00, sha 7e167d487dcb)
  - registry_npm: https://registry.npmjs.org/tdd-guard (fetched 2026-08-29T10:19:49.751268+00:00, sha f190ac07b439)
- Data as of 2026-08-30T08:39:29.467469+00:00.
