Add a new kata constraint to the current session mid-practice
Display current TDD kata session status including phase, TODO list, recent commits, and lessons learned. If phase is awaiting_decision, prompts user and resumes workflow.
Initialize a new TDD kata session with language setup, git initialization, and automatic handoff to tester agent
You are a TDD Green Phase Specialist. Your role is to write the simplest possible code that makes the failing test pass—nothing more.
You are a TDD Refactor Phase Specialist. Your role is to improve code structure after making tests pass, maintaining green tests throughout.
You are a TDD Red Phase Specialist. Your role is to write the next simplest failing test in a code kata session, following the Transformation Priority Premise and kata constraints.
Executes bash commands
Hook triggers when Bash tool is used
Uses power tools
Uses Bash, Write, or Edit tools
Has parse errors
Some configuration could not be fully parsed
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
A Claude Code plugin for practicing Test-Driven Development through code katas with strict Red-Green-Refactor cycle enforcement.
This plugin helps you practice TDD by guiding you through kata exercises with three specialized agents that enforce proper TDD discipline:
claude) installed and configuredcargo (install from rustup.rs)node and npmpython3 and pipjava and gradle or mavengo toolchainThe plugin will detect existing toolchains and guide you through installation if needed.
Use the plugin for a specific session without installing it globally:
# Clone the repository
git clone https://github.com/xpepper/tdd-kata-claude-plugin.git
# Run Claude Code with the plugin
claude --plugin-dir ./tdd-kata-claude-plugin
This works from any directory by pointing to the plugin location:
claude --plugin-dir /path/to/tdd-kata-claude-plugin
Install the plugin globally so it's automatically available in all sessions:
# Clone and copy to Claude plugins directory
git clone https://github.com/xpepper/tdd-kata-claude-plugin.git
mkdir -p ~/.claude/plugins
cp -r tdd-kata-claude-plugin ~/.claude/plugins/tdd-kata
# Now just run Claude normally - the plugin auto-loads
claude
Check that the plugin loaded successfully:
# Start Claude Code
claude
# Check available commands (should see start-kata, kata-status, etc.)
/help
Try the plugin with the classic FizzBuzz kata:
# 1. Create a practice directory
mkdir -p ~/katas/fizzbuzz
cd ~/katas/fizzbuzz
# 2. Create a kata description file
cat > kata.md <<'EOF'
# FizzBuzz Kata
## Description
Write a program that returns:
- "Fizz" for multiples of 3
- "Buzz" for multiples of 5
- "FizzBuzz" for multiples of both
- The number as a string otherwise
## Examples
- Input: 1 → Output: "1"
- Input: 3 → Output: "Fizz"
- Input: 5 → Output: "Buzz"
- Input: 15 → Output: "FizzBuzz"
## Constraints
- One level of indentation per method
- Don't use the ELSE keyword
EOF
# 3. Start Claude Code with the plugin
# Local usage (Option 1):
claude --plugin-dir /path/to/tdd-kata-claude-plugin
# Global installation (Option 2):
claude
# 4. In Claude Code, run:
/start-kata kata.md
# 5. Follow the agent guidance through RED-GREEN-REFACTOR cycles!
Start a new kata session with a description file:
/start-kata path/to/kata-description.md
Or provide the description interactively:
/start-kata
The plugin will:
Create a markdown file describing your kata:
# Kata Name
## Description
[What the program should do]
## Constraints (optional)
- One level of indentation per method
- Don't use the ELSE keyword
- Wrap all primitives and Strings
- First class collections
## Examples
[Input/output examples]
Once started, the plugin automatically cycles through TDD phases:
RED Phase (Tester Agent):
test: ...GREEN Phase (Implementer Agent):
feat: ...REFACTOR Phase (Refactorer Agent):
refactor: ... (if changes made)Check current kata status:
npx claudepluginhub xpepper/tdd-kata-claude-pluginOpportunistic refactoring detection via Boy Scout Rule: leave the code better than you found it.
Test-driven development methodology with red-green-refactor cycles and code review
Test-Driven Development (TDD) principles and red-green-refactor cycle enforcement.
Test-driven development skill that enforces red-green-refactor, one test at a time
Guides AI agents through disciplined coding practices. Language and build-system agnostic core with extensible language/build skills.
Automated Test-Driven Development enforcement
AI-driven development toolkit for TDD and SDD workflows, providing comprehensive command templates and agents to enhance developer productivity with Claude Code