nizos/tdd-guard โ€” GitHub Repository Preview
Developer Tools โ˜… 1.8k TypeScript

nizos/tdd-guard

by @nizos ยท

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.

Author avatar for @nizos
@nizos Project maintainer on GitHub
View Profile
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

Tags

#tdd#testing#claude-code#typescript#developer-tools#ci

Related Projects