Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

tdd-guard

> AI 编程
Open source

Automated TDD enforcement for Claude Code

2.3K stars0 likes4 views
WebsiteGitHub

About

Automated TDD enforcement for Claude Code

# TDD Guard > [!IMPORTANT] > **TDD Guard grew into [Probity](https://github.com/nizos/probity)**: the same > TDD enforcement, now for Claude Code, Codex, and GitHub Copilot CLI, with > more reliable validation and no test reporters to set up. New projects should > start there. TDD Guard remains maintained for the projects that rely on it. Automated Test-Driven Development enforcement for Claude Code.

TDD Guard ensures Claude Code follows Test-Driven Development principles. When your agent tries to skip tests or over-implement, TDD Guard blocks the action and explains what needs to happen instead. ## Features - **Test-First Enforcement** - Blocks implementation without failing tests - **Minimal Implementation** - Prevents code beyond current test requirements - **Lint Integration** - Enforces refactoring using your linting rules - **Customizable Rules** - Adjust validation rules to match your TDD style - **Flexible Validation** - Choose faster or more capable models for your needs - **Session Control** - Toggle on and off mid-session ## Getting Started ### Requirements - Node.js 22+ - A supported test framework (Vitest, Jest, Storybook, pytest, PHPUnit, Go, Rust, RSpec, Minitest) ### Installation Open Claude Code in your project and run: 1. `/plugin marketplace add nizos/tdd-guard` 2. `/plugin install tdd-guard@tdd-guard` 3. `/tdd-guard:setup` This adds the marketplace, installs the plugin, and configures the test reporter for your project. You may need to restart your terminal session or IDE extension for the setup skill to appear. For manual installation and configuration, see the [installation guide](docs/installation.md). ## Configuration - [Custom instructions](docs/custom-instructions.md) - Customize TDD validation rules - [Lint integration](docs/linting.md) - Automated refactoring support - [Strengthening enforcement](docs/enforcement.md) - Prevent agents from bypassing validation - [Ignore patterns](docs/ignore-patterns.md) - Control which files are validated - [Validation Model](docs/validation-model.md) - Choose faster or more capable model - [All settings](docs/configuration.md) - Complete settings documentation ## Security TDD Guard hooks run with your user permissions. We maintain automated security scanning, dependency audits, and welcome source code review. See [Claude Code's security considerations](https://docs.anthropic.com/en/docs/claude-code/hooks#security-considerations) for more on hook safety. ## Development ### Contributing Contributions are welcome! See the [contributing guidelines](CONTRIBUTING.md) to get started. **Contributors:** - Python/pytest support: [@Durafen](https://github.com/Durafen) - PHP/PHPUnit support: [@wazum](https://github.com/wazum) - Rust/cargo support: [@104hp6u](https://github.com/104hp6u) - Go support: [@sQVe](https://github.com/sQVe), [@wizzomafizzo](https://github.com/wizzomafizzo) - Storybook support: [@akornmeier](https://github.com/akornmeier) - Ruby/RSpec & Minitest support: [@Hiro-Chiba](https://github.com/Hiro-Chiba) ## Support - [Discussions](https://github.com/nizos/tdd-guard/discussions) - Ask questions and share ideas - [Issues](https://github.com/nizos/tdd-guard/issues) - Report bugs and request features ## License [MIT](LICENSE)

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptagentic-codingautomationclaude-codecode-quality

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryAI 编程
PricingOpen source

> Related tools

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.