What problem does it solve?
This skill automates a TDD-driven development loop with phase gates, enabling autonomous orchestration of subagents to drive tests, implement code, and perform reviews within a controlled, repeatable workflow.
Core Features & Use Cases
- Phase-gated TDD workflow: orchestrates testing, implementation, and review phases with enforced tool restrictions.
- Subagent orchestration: spawns and manages a single comprehensive TDD cycle per task, ensuring tests are written first.
- Stateful workflow control: tracks progress, iterations, and outcomes, enabling retry and escalation when needed.
- Use Case: Refactor a module by starting the workflow with a task description and letting the system generate tests, implement code, and verify results.
Quick Start
Run the workflow with a description, e.g. start "Refactor authentication module" and optional max iterations:
python3 ~/.claude/plugins/agent-swarm/lib/iterate_workflow.py start "Refactor authentication module" --max 5