一键导入
dev-orchestrator
// Autonomous end-to-end development from requirement to delivery. Use when user wants complete automation, "build X for me", or full feature implementation without manual steps.
// Autonomous end-to-end development from requirement to delivery. Use when user wants complete automation, "build X for me", or full feature implementation without manual steps.
Break down PRD into atomic, testable tasks using CLI for modular storage
Autonomous implementation loop with TDD, fresh agents per task, and self-healing
Interactive requirement clarification through structured questions and PRD generation
Autonomous language and framework detection for any programming language. Use when user asks to "detect language", "what language is this project", or when initializing ralph-dev for a new project.
Systematic error recovery using root cause investigation before fixes
Two-stage code review, quality gates, and automated delivery (commit + PR)
| name | dev-orchestrator |
| description | Autonomous end-to-end development from requirement to delivery. Use when user wants complete automation, "build X for me", or full feature implementation without manual steps. |
| allowed-tools | ["Task","Read","Write","Bash"] |
| user-invocable | true |
Transform a user requirement into delivered, tested, production-ready code with ZERO manual intervention after initial clarification.
1. CLARIFY → Questions & PRD (interactive)
2. BREAKDOWN → Atomic tasks (autonomous)
3. IMPLEMENT → Code + tests (autonomous)
4. HEAL → Auto-fix errors (on-demand, invoked by Phase 3)
5. DELIVER → Verify + commit + PR (autonomous)
All state persists in .ralph-dev/:
state.json - Current phase, progress (managed by CLI)prd.md - Product requirements documenttasks/ - Task files with index.json# Parse mode from arguments
MODE="new" # or "resume", "status", "cancel"
case "$MODE" in
resume)
# Load existing state
PHASE=$(ralph-dev state get --json | jq -r '.phase')
;;
new)
# Archive existing session if present
ralph-dev state archive --force --json 2>/dev/null
ralph-dev state set --phase clarify
ralph-dev detect --save # Detect language config
PHASE="clarify"
;;
esac
while true; do
# Always re-query phase from CLI (context-compression safe)
PHASE=$(ralph-dev state get --json | jq -r '.phase')
case "$PHASE" in
clarify) invoke_skill "phase-1-clarify" ;;
breakdown) invoke_skill "phase-2-breakdown" ;;
implement) invoke_skill "phase-3-implement" ;;
deliver) invoke_skill "phase-5-deliver" ;;
complete) echo "✅ All phases complete!"; break ;;
*) echo "❌ Unknown phase: $PHASE"; exit 1 ;;
esac
done
Use Task tool to invoke each phase skill:
Tool: Task
Parameters:
subagent_type: "{phase-skill-name}"
description: "Execute {phase} phase"
prompt: "{phase-specific context}"
run_in_background: false
| Phase | Skill | Interactive | Key Output |
|---|---|---|---|
| 1. Clarify | phase-1-clarify | Yes | .ralph-dev/prd.md |
| 2. Breakdown | phase-2-breakdown | Yes (approval) | .ralph-dev/tasks/ |
| 3. Implement | phase-3-implement | No | Code + tests |
| 4. Heal | phase-4-heal | No | (invoked by Phase 3) |
| 5. Deliver | phase-5-deliver | Optional | Commit + PR |
| Command | Action |
|---|---|
/ralph-dev {requirement} | Start new session |
/ralph-dev resume | Continue from saved state |
/ralph-dev status | Show current progress |
/ralph-dev cancel | Archive and clear session |
clarify → breakdown → implement ⇄ heal → deliver → complete
ralph-dev state update --phase {next}| Limit | Value | Purpose |
|---|---|---|
| Orchestrator timeout | 12 hours | Prevent infinite loops |
| Per-phase timeout | Varies | Defined in each phase skill |
| Heal attempts | 3 per task | Circuit breaker |
| Error | Action |
|---|---|
| Phase fails | Log error, show diagnostics, don't auto-retry |
| User cancels | Save state, show resume command |
| Interrupted | State persists, resume on next session |
| Unknown phase | Report error, suggest manual state reset |
When resuming from each phase:
| Phase | Resume Action |
|---|---|
| clarify | Continue with remaining questions |
| breakdown | Show plan again for approval |
| implement | Get next task via ralph-dev tasks next |
| deliver | Re-run delivery checks |