From ralph-dev
Orchestrates autonomous end-to-end development from requirements to delivered code via phases: clarify, breakdown, implement/heal, deliver with commits/PRs. For 'build X' automation.
npx claudepluginhub mylukin/ralph-dev --plugin ralph-devThis skill is limited to using the following tools:
Transform a user requirement into delivered, tested, production-ready code with ZERO manual intervention after initial clarification.
Runs autonomous AI coding loop with ralph-starter: checks project state, implements tasks from specs/GitHub/Linear/Notion/Figma issues, iterates code writing/validation/commits.
Orchestrates development lifecycle by auto-detecting project state from artifacts, selecting mission type, and routing to phases like brainstorm, specify, plan, execute. Use for new projects, resuming workflows, or tactical fixes.
Runs Ralph Loop autonomous dev loop: reads PRD/checklist, implements/tests/commits one item per session via Stop Hook, auto-branches/ignores state. Trigger: autodev, ralph loop for overnight progress.
Share bugs, ideas, or general feedback.
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 |