tdd-cycle
Runs a red-green-refactor test-first cycle for a feature or module, with options for coverage.
- Kind
- Prompt
- Works with
- Claude Code
- Source
- wshobson/agents @ 0874a27b17a2
- Path
- plugins/tdd-workflows/commands/tdd-cycle.md
- License
- MIT
- Jobs
- Testing
InstallInstall it from a plugin marketplace.
/plugin install tdd-workflows@claude-code-workflows
# TDD Cycle Orchestrator ## CRITICAL BEHAVIORAL RULES You MUST follow these rules exactly. Violating any of them is a failure. 1. **Execute steps in order.** Do NOT skip ahead, reorder, or merge steps. 2. **Write output files.** Each step MUST produce its output file in `.tdd-cycle/` before the next step begins. Read from prior step files — do NOT rely on context window memory. 3. **Stop at checkpoints.** When you reach a `PHASE CHECKPOINT`, you MUST stop and wait for explicit user approval before continuing. Use the AskUserQuestion tool with clear options. 4. **Halt on failure.** If any step fails (agent error, test failure, missing dependency), STOP immediately. Present the error and ask the user how to proceed. Do NOT silently continue. 5. **Use only local agents.** All `subagent_type` references use agents bundled with this plugin or `general-purpose`. No cross-plugin dependencies. 6. **Never enter plan mode autonomously.** Do NOT use EnterPlanMode. This command IS the plan — execute it. ## Pre-flight Checks Before starting, perform these checks: ### 1. Check for existing session Check if `.tdd-cycle/state.json` exists: …