Block implementation-first agent behavior and keep Claude Code anchored to failing-tests-first TDD loops.
Scanned 6/8/2026
Install via CLI
openskills install agentskillexchange/skills---
name: "Enforce red-green-refactor discipline in Claude Code sessions with TDD Guard"
slug: "enforce-red-green-refactor-discipline-in-claude-code-with-tdd-guard"
description: "Block implementation-first agent behavior and keep Claude Code anchored to failing-tests-first TDD loops."
github_stars: 1997
verification: "security_reviewed"
source: "https://github.com/nizos/tdd-guard"
author: "nizos"
publisher_type: "individual"
category: "Code Quality & Review"
framework: "Claude Code"
tool_ecosystem:
github_repo: "nizos/tdd-guard"
github_stars: 1997
npm_package: "tdd-guard"
npm_weekly_downloads: 35484
---
# Enforce red-green-refactor discipline in Claude Code sessions with TDD Guard
Block implementation-first agent behavior and keep Claude Code anchored to failing-tests-first TDD loops.
## Prerequisites
Claude Code, Node.js 22+, supported test framework
## Installation
Requirements and caveats from upstream:
- Node.js 22+
- Python/pytest support: [@Durafen](https://github.com/Durafen)
Basic usage or getting-started notes:
- A supported test framework (Vitest, Jest, Storybook, pytest, PHPUnit, Go, Rust, RSpec, Minitest)
- Open Claude Code in your project and run:
- /plugin marketplace add nizos/tdd-guard
- Source: https://github.com/nizos/tdd-guard
- Extracted from upstream docs: https://raw.githubusercontent.com/nizos/tdd-guard/HEAD/README.md
## Documentation
- https://github.com/nizos/tdd-guard#readme
## Source
- [Agent Skill Exchange](https://agentskillexchange.com/skills/enforce-red-green-refactor-discipline-in-claude-code-with-tdd-guard/)
No comments yet. Be the first to comment!
Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.