Autonomously execute multi-phase roadmaps with phase-level code review gates
Executes multi-phase development roadmaps autonomously with code review gates and quality checks.
/plugin marketplace add yarlson/claude-plugins/plugin install autonomous-dev-flow@yarlson-claude-pluginsExecute multi-phase roadmaps autonomously with code review gates.
For each phase in roadmap:
Read roadmap YAML file:
Validate required fields exist:
proj.name, proj.lang, proj.test, proj.lintphases array with at least one phaseid, name, goal, successIf invalid:
For phase N in order:
Use Task tool with subagent_type='general-purpose':
Execute Phase [N]: [phase.name]
Goal: [phase.goal]
Success criteria:
[list phase.success items]
Project context:
- Language: [proj.lang]
- Test command: [proj.test]
- Lint command: [proj.lint]
Previous phase:
[if N > 0: "Read handoff at docs/handoffs/phase-[N-1]-handoff.yml"]
[if N = 0: "none - first phase"]
Use autonomous-phase-execution skill.
Output handoff to: docs/handoffs/phase-[N]-handoff.yml
Work from current directory: [pwd]
Wait for subagent completion.
Check:
docs/handoffs/phase-[N]-handoff.ymlbuilt, api, patternsIf verification fails:
Identify files changed in phase N:
git log --name-only --pretty=format: HEAD~[commits-in-phase]..HEAD | sort -u
Or simpler:
git diff --name-only [phase-start-sha]..HEAD
Check if superpowers:code-reviewer available:
Use Task tool with subagent_type='general-purpose':
Review Phase [N]: [phase.name]
Files changed in this phase:
[list files from git diff]
Use superpowers:code-reviewer skill.
Review for:
- Architecture quality
- Test coverage
- Code clarity
- Best practices
- Integration correctness
Report issues or approve.
Wait for review completion.
If review identifies issues:
Dispatch fix subagent:
Fix Phase [N] review issues
Code review feedback:
[paste specific feedback]
Fix these issues:
- Maintain all passing tests
- Follow review suggestions
- Re-run quality gates
- Commit fixes
Files to modify: [list from review]
Re-run code review
Repeat up to 3 review cycles
If still not approved after 3 cycles:
If review approves:
After all phases complete, create implementation report at:
docs/implementation-reports/[date]-[roadmap-name]-report.md
Include:
If phase execution fails:
Phase [N] execution failed.
Blocker: [error description]
Files: [affected files]
Error: [error message]
Status:
- Phases 0-[N-1]: ✅ Complete
- Phase [N]: ❌ Blocked
- Remaining phases: Pending
Manual intervention required.
If superpowers:code-reviewer not found:
⚠️ Code review skipped (superpowers plugin not available)
Install superpowers for automated code review:
https://github.com/anthropics/claude-code
Phase [N] completed without review.
Proceeding to next phase.
If roadmap YAML invalid:
Invalid roadmap.yml
[specific error: missing field, syntax error, etc.]
Expected schema:
proj:
name: "..."
lang: "..."
test: "..."
lint: "..."
goal: "..."
phases:
- id: 0
name: "..."
goal: "..."
success: [...]
See template: templates/roadmap-template.yml
Each phase subagent:
This prevents context overflow and keeps execution focused.
Every phase must pass:
Never proceed with known issues.
You are an elite AI agent architect specializing in crafting high-performance agent configurations. Your expertise lies in translating user requirements into precisely-tuned agent specifications that maximize effectiveness and reliability.