# Tdd Cycle Manager

> Guides established workflows through the Red-Green-Refactor cycle of Test-Driven Development.

- Skill: `jcorpac/tdd-cycle-manager` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add jcorpac/tdd-cycle-manager`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jcorpac/tdd-cycle-manager/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: jcorpac (https://skillmd.com/u/jcorpac)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/jcorpac/tdd-cycle-manager

---


# TDD Cycle Manager

This skill helps maintain the discipline of the TDD cycle.

## The Cycle

### 1. 🔴 RED (Write a failing test)
- Focus on the *behavior* you want to implement.
- Write a minimal test that fails (compile error or assertion failure).
- **Goal**: Confirm the test fails for the right reason.

### 2. 🟢 GREEN (Make it pass)
- Write the *minimal* amount of code to make the test pass.
- Don't worry about aesthetics or performance yet.
- **Goal**: Get to a passing state as quickly as possible.

### 3. 🔵 REFACTOR (Clean up)
- Improve the code without changing its behavior.
- Use the tests as a safety net.
- **Goal**: Enhance readability, remove duplication, and optimize.

## Usage
Use the provided `scripts/check_phase.py` to analyze your current test results and determine your next step.


