Orchestrates a structured TDD development workflow including codebase exploration, work planning (with test plan), implementation, quality checks (tests/lint/format), and CodeRabbit code review...
This skill orchestrates a structured TDD development workflow across 9 phases (Phase 0โ8). Phase 8 (PR Review Comments) is optional and user-initiated.
The main agent is strictly an orchestrator โ it delegates all substantive work to sub-agents and only manages phase transitions and state.
Task tool to launch sub-agents for all exploration, planning, test design, implementation, and review workSkill tool to invoke other skills (e.g., run-quality-checks)Read only for workspace files: STATE.json, PLAN.md, QC_SUMMARY.md, QC_<CATEGORY>.raw, QC_<CATEGORY>.exitcode, QC_AUTOFIX.md, TASK_LIST.txtWrite only for STATE.jsonBash only for git operations and workspace directory managementTaskCreate/TaskUpdate/TaskList to track Implementation Units and fix items (NOT for phase tracking)git push or any remote push command โ push is a user-initiated action onlygh pr create or create pull requests in any form โ PR creation is a user-initiated action onlyCopy this checklist and track progress:
Workflow Progress:
- [ ] Phase 0: Pre-checks
- [ ] Phase 1: Exploration
- [ ] Phase 2: Planning (includes Test Plan)
- [ ] Phase 3: Approval Gate
- [ ] Phase 4: TDD Implementation
- [ ] Phase 5: Quality Checks
- [ ] Phase 6: User Review
- [ ] Phase 7: Final Report
- [ ] Phase 8: PR Review Comments (optional)
Before starting Phase 0, check for an existing workspace:
ls -d .ai-workspace/*_$(git branch --show-current | tr '/' '_') 2>/dev/nullSTATE.json.currentPhase exists in STATE.json:currentPhaseId if present (e.g., "quality-checks").AskUserQuestion:<currentPhaseId>)<work-dir> to existing workspace.currentPhaseId is present: find the matching entry in the Phases list below by its ID. If its file number differs from currentPhase (skill was renumbered), use the ID to identify the correct file. Then skip to that phase.currentPhaseId is absent (legacy STATE.json): fall back to currentPhase number.currentPhase โ proceed to Phase 0.Read each phase document only when you are ready to execute that phase. Do not read ahead.
exploration) โ Load past learnings, check profile, explore codebaseplanning) โ Create work plan and test plan based on exploration resultsapproval-gate) โ Present plan (including test plan) to user for approvalimplementation) โ Implement code following TDD methodologyquality-checks) โ Run tests, lint, formatting (max 3 retries)user-review) โ Present changes to user for approvalfinal-report) โ Summarize results and present to userpr-review) โ Address PR review comments (optional, user-initiated)task-planner (sonnet) drafts, test-plan-reviewer/general-plan-reviewer (opus, launched in parallel) review autonomously, task-planner revises โ max 3 rounds. On exceed, outstanding concerns are appended to PLAN.md's Unresolved Questions instead of looping further; the user decides in Phase 3.currentPhaseId to "quality-checks"currentPhaseId to "quality-checks"<work-dir>/STATE.json (initialize in Phase 0)When returning to Phase 5 from Phase 6 or 8, you MUST re-read the phase documents before executing them. This is because earlier phase instructions may have drifted out of your active attention due to intervening conversation.
Rule: Before executing Phase 5, re-read phases/5-quality-checks.md. Before executing Phase 6, re-read phases/6-user-review.md.
This applies every time you enter these phases, not just the first time. Treat each phase entry as if you are reading the instructions for the first time.
Use Claude Code's TaskCreate/TaskUpdate/TaskList tools for work-item-level progress tracking, NOT phase-level tracking (that is STATE.json's role).
| Type | Subject Format | Example |
|---|---|---|
| Implementation Unit | Implement Unit N: <name> |
Implement Unit 1: UserService CRUD |
| User Feedback Fix | Fix UF-<round>-<M>: <title> |
Fix UF-1-1: Error message in Japanese |
| PR Review Fix | Fix PR-<round>-<M>: <title> |
Fix PR-1-1: Missing validation |