Developer Tools
โ
1.8k
TypeScript
nizos/tdd-guard
1.8k
Stars
136
Forks
19
Issues
TypeScript
Language
TDD Guard is an automated Test-Driven Development enforcement tool for Claude Code. Validates coding practices and prevents implementations that bypass testing requirements via Claude Code hooks. Supports TypeScript, JavaScript, Python, PHP, Go, Rust, and Storybook with multi-framework integration (Jest, Vitest, pytest, PHPUnit). Enforces test-first development, blocks over-engineering beyond test scope, and includes lint integration for refactoring. Customizable rules with session-level toggle control.
View on GitHub
git clone https://github.com/nizos/tdd-guard.git
Quick Start Example
bash
# Install globally
npm install -g tdd-guard
# Initialize in project
tdd-guard init
# Configure Claude Code hooks
# PreToolUse โ validates file writes
# UserPromptSubmit โ validates prompts
# SessionStart โ initialization
# TDD cycle enforced:
# Red โ Green โ Refactor