TDD Guard

1.6.3 · active · verified Tue Apr 21

TDD Guard is an npm package providing automated Test-Driven Development enforcement for AI agents, specifically within the Claude Code environment. It is currently at version 1.6.3 and exhibits a rapid release cadence, with frequent updates addressing bugs, introducing new features, and enhancing refactoring capabilities. Its primary function is to ensure AI agents adhere strictly to TDD principles by proactively blocking actions that violate test-first or minimal implementation rules, such as adding code without accompanying failing tests or implementing beyond the scope of current test requirements. Key differentiators include its broad multi-language support (e.g., JavaScript, TypeScript, Ruby, Python, Go, Rust, PHP) and integration with numerous test frameworks (including Vitest, Jest, RSpec, and PHPUnit). The package also offers customizable validation rules, lint integration for automated refactoring support, and granular control over validation models and session management.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates the initial setup commands within Claude Code to install and configure TDD Guard.

/plugin marketplace add nizos/tdd-guard
/plugin install tdd-guard@tdd-guard
/tdd-guard:setup

# After installation, you might need to restart your terminal session or IDE extension for the setup skill to appear.
# You can then start a Claude Code session, and TDD Guard will begin enforcing TDD principles.
# Example: If you try to write code without a failing test, it will block the action.

view raw JSON →