
Xiaolai
- 5 repo stars
- Updated May 19, 2026
- xiaolai/tdd-guardian-for-claude
TDD Guardian is a Claude Code plugin that enforces strict test-driven development discipline with automated quality gates so developers can block commits until tests, coverage, and optional mutation checks pass.
About
TDD Guardian is a Claude Code marketplace plugin that enforces rigorous test-driven development through specialized subagents, automated quality gates, and hook-based commit blocking. It runs a six-step workflow covering planning, test design, implementation, coverage audit, mutation testing, and review. Developers reach for it when they want Claude to follow test-first discipline with measurable coverage thresholds rather than ad hoc testing. Installation is via the xiaolai marketplace with project initialization through /tdd-guardian:init.
- Six-agent TDD workflow from planning through review
- PreToolUse hooks block git commit/push without fresh gate passes
- Configurable coverage thresholds defaulting to 100%
- Optional mutation testing validates test robustness
- Auto-detects stack via /tdd-guardian:init
Xiaolai by the numbers
- Data as of Jul 18, 2026 (Skillselion catalog sync)
/plugin marketplace add xiaolai/tdd-guardian-for-claudeAdd your badge
Show developers this marketplace is listed on Skillselion. Paste this into your README.
| repo stars | ★ 5 |
|---|---|
| Last updated | May 19, 2026 |
| Repository | xiaolai/tdd-guardian-for-claude ↗ |
How do I stop Claude Code from skipping tests, writing weak assertions, or committing code that fails coverage thresholds?
Enforce strict TDD with coverage gates, mutation testing, and hook-blocked commits during Claude Code development.
Who is it for?
Teams and developers who want hook-enforced TDD with coverage gates and a multi-agent test-first workflow in Claude Code.
Skip if: Developers who prefer manual test discipline, rapid prototyping without gates, or projects without an established test runner.
What you get
Produces passing test suites, coverage reports, optional mutation results, and gate state that unblocks commits only after quality thresholds are met.
Recommended Marketplaces
FAQ
What commands does TDD Guardian provide?
/tdd-guardian:init auto-detects your stack and generates config; /tdd-guardian:workflow runs the full six-agent TDD pipeline.
How does it block bad commits?
PreToolUse and TaskCompleted hooks intercept git commit, push, and gh pr create until tests, coverage, and optional mutation gates pass within a freshness window.
Can I bypass the gates temporarily?
Yes, set the TDD_GUARD_BYPASS environment variable to skip all gates for a session.