# ralph > Self-referential loop until task completion with architect verification - Author: Yeachan-Heo - Repository: Yeachan-Heo/oh-my-claudecode - Version: 20260120122440 - Stars: 5996 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/Yeachan-Heo/oh-my-claudecode - Web: https://mule.run/skillshub/@@Yeachan-Heo/oh-my-claudecode~ralph:20260120122440 --- --- name: ralph description: Self-referential loop until task completion with architect verification user-invocable: true --- # Ralph Skill [RALPH + ULTRAWORK - ITERATION {{ITERATION}}/{{MAX}}] Your previous attempt did not output the completion promise. Continue working on the task. ## ULTRAWORK MODE (AUTO-ACTIVATED) Ralph automatically activates Ultrawork for maximum parallel execution. You MUST follow these rules: ### Parallel Execution Rules - **PARALLEL**: Fire independent calls simultaneously - NEVER wait sequentially - **BACKGROUND FIRST**: Use Task(run_in_background=true) for long operations (10+ concurrent) - **DELEGATE**: Route tasks to specialist agents immediately ### Smart Model Routing (SAVE TOKENS) | Task Complexity | Tier | Examples | |-----------------|------|----------| | Simple lookups | LOW (haiku) | "What does this function return?", "Find where X is defined" | | Standard work | MEDIUM (sonnet) | "Add error handling", "Implement this feature" | | Complex analysis | HIGH (opus) | "Debug this race condition", "Refactor auth module" | ### Available Agents by Tier | Domain | LOW (Haiku) | MEDIUM (Sonnet) | HIGH (Opus) | |--------|-------------|-----------------|-------------| | **Analysis** | `architect-low` | `architect-medium` | `architect` | | **Execution** | `executor-low` | `executor` | `executor-high` | | **Search** | `explore` | `explore-medium` | - | | **Research** | `researcher-low` | `researcher` | - | | **Frontend** | `designer-low` | `designer` | `designer-high` | | **Docs** | `writer` | - | - | **CRITICAL: Always pass `model` parameter explicitly!** ``` Task(subagent_type="oh-my-claudecode:architect-low", model="haiku", prompt="...") Task(subagent_type="oh-my-claudecode:executor", model="sonnet", prompt="...") Task(subagent_type="oh-my-claudecode:architect", model="opus", prompt="...") ``` ### Background Execution Rules **Run in Background** (set `run_in_background: true`): - Package installation: npm install, pip install, cargo build - Build processes: npm run build, make, tsc - Test suites: npm test, pytest, cargo test - Docker operations: docker build, docker pull **Run Blocking** (foreground): - Quick status checks: git status, ls, pwd - File reads, edits - Simple commands ## COMPLETION REQUIREMENTS Before claiming completion, you MUST: 1. Verify ALL requirements from the original task are met 2. Ensure no partial implementations 3. Check that code compiles/runs without errors 4. Verify tests pass (if applicable) 5. TODO LIST: Zero pending/in_progress tasks ## ARCHITECT VERIFICATION (MANDATORY) When you believe the task is complete: 1. **First**, spawn Architect to verify your work (ALWAYS pass model explicitly!): ``` Task(subagent_type="oh-my-claudecode:architect", model="opus", prompt="Verify this implementation is complete: [describe what you did]") ``` 2. **Wait for Architect's assessment** 3. **If Architect approves**: Output `{{PROMISE}}` 4. **If Architect finds issues**: Fix them, then repeat verification DO NOT output the completion promise without Architect verification. ## ZERO TOLERANCE - NO Scope Reduction - deliver FULL implementation - NO Partial Completion - finish 100% - NO Premature Stopping - ALL TODOs must be complete - NO TEST DELETION - fix code, not tests ## INSTRUCTIONS - Review your progress so far - Continue from where you left off - Use parallel execution and background tasks - When FULLY complete AND Architect verified, output: {{PROMISE}} - Do not stop until the task is truly done Original task: {{PROMPT}}