AI Card Bao DASH.AICARDBAO.COM
Home / 开源 / TDD Guard
AI TOOL / #12888

TDD Guard

An automated guardian tool that enforces Test-Driven Development (TDD) for Claude Code, ensuring that tests are written before the implementation code is developed.

Introduction

[!IMPORTANT] TDD Guard grew into 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.

Configuration

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 for more on hook safety.

Development

Contributing

Contributions are welcome! See the contributing guidelines to get started.

Contributors:

Support

License

MIT

Visits:4 Updated:2026-12-03 AI tools

Related

Portable Cloud USB Drive At 22:24:40 on December 14, 2023, this method became invalid; only the introductory article remains. When it comes to transferring files to unfamiliar computers or printing them out at a print shop, most people likely use a USB flash drive or rely on cloud storage services/social media accounts for online file transfer. However, you might not have a USB flash drive available, or you may have forgotten to bring it with you. Tencent Lemon Selection Tencent Lemon Selection is a software resource website launched by Tencent, which features a collection of free, genuine, and high-quality Mac products. If you’re looking for free and legitimate Mac software, this is the right place to start! All installation packages have undergone security scanning and verification by Tencent, so you can use them with confidence. Regular expression library any-rule is a powerful, open-source library of commonly used regular expressions. It currently includes 82 commonly used regex validation patterns, such as mobile phone number validation, ID card number validation, unified social credit code validation, and Chinese and English character validation. Regular expressions are hard to remember offhand, so we just look them up when we need them. Kosumi Hiraoka Sound Effects “Kosumi Hei’s Free Download Sound Effects” is, as the name implies, a website that allows users to download various sound effects for free. The design of the website is quite artistic and simple; it was created by a Japanese person named Kosumi Hei. All the free sound effects available on this website can be used in projects of your choice, such as films, short videos, games, presentations, animations, or stage performances. 7z decompression 7-Zip is an open-source compression software that offers extremely high compression ratios. It is free of charge, contains no pop-up advertisements, and occupies only 1MB in size. If you are tired of the pop-up ads associated with WinRAR, give 7-Zip a try! Key features of 7-Zip: It utilizes the LZMA and LZMA2 compression algorithms. Poki Poki Online Games Poki is a personalized free online game discovery platform. The most innovative games are carefully selected for you every day. Currently, the website contains up to 20,000 games. The games on the website are mainly the latest or puzzle games in recent years, such as Temple Escape, 2048, and Snake.