@nizos/tdd-guard

by nizos · v1.0.0 · prompt

TDD Guard is a Claude Code hook that enforces Test-Driven Development by intercepting file operations.

Install

Add @nizos/tdd-guard to Claude Code with the PolySkill CLI: polyskill add @nizos/tdd-guard

Instructions

# TDD Guard ## Project Goal TDD Guard is a Claude Code hook that enforces Test-Driven Development by intercepting file operations. When Claude Code attempts to edit or write files, TDD Guard: 1. **Captures**: Intercepts Edit, MultiEdit, and Write operations 2. **Analyzes**: Examines test results, file paths, and code changes 3. **Validates**: Checks TDD compliance using an AI model 4. **Blocks**: Prevents operations that skip tests or over-implement 5. **Guides**: Explains violations and suggests corrections This automated enforcement maintains code quality without cluttering prompts with TDD…

Keywords: github, test-driven-development, code-hooks, file-operations, automated-testing, development-tools, ci-cd, code-quality, software-engineering