iapro-community/orquestrador-maestro/ralph
Claude Code and agent skill by iapro-community/orquestrador-maestro
- community
Checking that the SKILL.md file is still in the repository.
Self-referential loop until task completion with architect verification
Install
npx vskill@latest install iapro-community/orquestrador-maestro/ralphSKILL.md
The same SKILL.md was published earlier as iapro-community/orquestrador-maestro/ralph.
[RALPH + ULTRAWORK - ITERATION {{ITERATION}}/{{MAX}}]
Your previous attempt did not output the completion promise. Continue working on the task.
<Purpose> Ralph is a persistence loop that keeps working on a task until it is fully complete and architect-verified. It wraps ultrawork's parallel execution with session persistence, automatic retry on failure, and mandatory verification before completion. </Purpose>
<Use_When>
- Task requires guaranteed completion with verification (not just "do your best")
- User says "ralph", "don't stop", "must complete", "finish this", or "keep going until done"
- Work may span multiple iterations and needs persistence across retries
- Task benefits from parallel execution with architect sign-off at the end
</Use_When>
<Do_Not_Use_When>
- User wants a full autonomous pipeline from idea to code -- use
autopilotinstead - User wants to explore or plan before committing -- use
planskill instead - User wants a quick one-shot fix -- delegate directly to an executor agent
- User wants manual control over completion -- use
ultraworkdirectly
</Do_Not_Use_When>
<Why_This_Exists> Complex tasks often fail silently: partial implementations get declared "done", tests get skipped, edge cases get forgotten. Ralph prevents this by looping until work is genuinely complete, requiring fresh verification evidence before allowing completion, and using tiered architect review to confirm quality. </Why_This_Exists>
<Execution_Policy>
- Fire independent agent calls simultaneously -- never wait sequentially for independent work
- Use
run_in_background: truefor long operations (installs, builds, test suites) - Always pass the
modelparameter explicitly when delegating to agents - Read
docs/shared/agent-tiers.mdbefore first delegation to select correct agent tiers - Deliver the full implementation: no scope reduction, no partial completion, no deleting tests to make them pass
- Default to concise, evidence-dense progress and completion reporting unless the user or risk level requires more detail
- Treat newer user task updates as local overrides for the active workflow branch while preserving earlier non-conflicting constraints
- If correctness depends on additional inspection, retrieval, execution, or verification, keep using the relevant tools until the execution loop is grounded
- Continue through clear, low-risk, reversible next steps automatically; ask only when the next step is materially branching, destructive, or preference-dependent
</Execution_Policy>
<Steps>
- Pre-context intake (required before planning/execution loop starts):
- Assemble or load a context snapshot at
.omx/context/{task-slug}-{timestamp}.md(UTCYYYYMMDDTHHMMSSZ). - Minimum snapshot fields:
- task statement
- desired outcome
- known facts/evidence
- constraints
- unknowns/open questions
- likely codebase touchpoints
- If an existing relevant snapshot is available, reuse it and record the path in Ralph state.
- If request ambiguity is high, gather brownfield facts first. When session guidance enables
USE_OMX_EXPLORE_CMD, preferomx explorefor simple read-only repository lookups with narrow, concrete prompts; otherwise use the richer normal explore path. Then run$deep-interview --quick <task>to close critical gaps. - Do not begin Ralph execution work (delegation, implementation, or verification loops) until snapshot grounding exists. If forced to proceed quickly, note explicit risk tradeoffs.
- Review progress: Check TODO list and any prior iteration state
- Continue from where you left off: Pick up incomplete tasks
- Delegate in parallel: Route tasks to specialist agents at appropriate tiers
- Simple lookups: LOW tier -- "What does this function return?"
- Standard work: STANDARD tier -- "Add error handling to this module"
- Complex analysis: THOROUGH tier -- "Debug this race condition"
- When Ralph is entered as a ralplan follow-up, start from the approved available-agent-types roster and make the delegation plan explicit: implementation lane, evidence/regression lane, and final sign-off lane using only known agent types
- Run long operations in background: Builds, installs, test suites use
run_in_background: true - Visual task gate (when screenshot/reference images are present):
- Run
$visual-verdictbefore every next edit. - Require structured JSON output:
score,verdict,category_match,differences[],suggestions[],reasoning. - Persist verdict to
.omx/state/{scope}/ralph-progress.jsonincluding numeric + qualitative feedback. - Default pass threshold:
score >= 90. - URL-based cloning tasks: When the task description contains a target URL (e.g., "clone https://example.com"), invoke
$web-cloneinstead of$visual-verdict. The web-clone skill handles the full extraction → generation → verification pipeline and uses$visual-verdictinternally for visual scoring.
- Verify completion with fresh evidence:
a. Identify what command proves the task is complete b. Run verification (test, build, lint) c. Read the output -- confirm it actually passed d. Check: zero pending/in_progress TODO items
- Architect verification (tiered):
- <5 files, <100 lines with full tests: STANDARD tier minimum (architect role)
- Standard changes: STANDARD tier (architect role)
- >20 files or security/architectural changes: THOROUGH tier (architect role)
- Ralph floor: always at least STANDARD, even for small changes
7.5 Mandatory Deslop Pass:
- After Step 7 passes, run
oh-my-codex:ai-slop-cleaneron all files changed during the Ralph session. - Scope the cleaner to changed files only; do not widen the pass beyond Ralph-owned edits.
- Run the cleaner in standard mode (not
--review). - If the prompt contains
--no-deslop, skip Step 7.5 entirely and proceed with the most recent successful verification evidence.
7.6 Regression Re-verification:
- After the deslop pass, re-run all tests/build/lint and read the output to confirm they still pass.
- If post-deslop regression fails, roll back cleaner changes or fix and retry. Then rerun Step 7.5 and Step 7.6 until the regression is green.
- Do not proceed to completion until post-deslop regression is green (unless
--no-deslopexplicitly skipped the deslop pass).
- On approval: Run
/cancelto cleanly exit and clean up all state files - On rejection: Fix the issues raised, then re-verify at the same tier
</Steps>
<Tool_Usage>
- Before first MCP tool use, call
ToolSearch("mcp")to discover deferred MCP tools - Use
ask_codexwithagent_role: "architect"for verification cross-checks when changes are security-sensitive, architectural, or involve complex multi-system integration - Skip Codex consultation for simple feature additions, well-tested changes, or time-critical verification
- If ToolSearch finds no MCP tools or Codex is unavailable, proceed with architect agent verification alone -- never block on external tools
- Use
state_write/state_readfor ralph mode state persistence between iterations - Persist context snapshot path in Ralph mode state so later phases and agents share the same grounding context
</Tool_Usage>
State Management
Use the omx_state MCP server tools (state_write, state_read, state_clear) for Ralph lifecycle state.
- On start:
state_write({mode: "ralph", active: true, iteration: 1, max_iterations: 10, current_phase: "executing", started_at: "<now>", state: {context_snapshot_path: "<snapshot-path>"}})
- On each iteration:
state_write({mode: "ralph", iteration: <current>, current_phase: "executing"})
- On verification/fix transition:
state_write({mode: "ralph", current_phase: "verifying"}) or state_write({mode: "ralph", current_phase: "fixing"})
- On completion:
state_write({mode: "ralph", active: false, current_phase: "complete", completed_at: "<now>"})
- On cancellation/cleanup:
run $cancel (which should call state_clear(mode="ralph"))
Scenario Examples
Good: The user says continue after the workflow already has a clear next step. Continue the current branch of work instead of restarting or re-asking the same question.
Good: The user changes only the output shape or downstream delivery step (for example make a PR). Preserve earlier non-conflicting workflow constraints and apply the update locally.
Bad: The user says continue, and the workflow restarts discovery or stops before the missing verification/evidence is gathered.
<Examples> <Good> Correct parallel delegation:
Why good: Three independent tasks fired simultaneously at appropriate tiers. </Good>
<Good> Correct verification before completion:
Why good: Fresh evidence at each step, architect verification, then clean exit. </Good>
<Bad> Claiming completion without verification: "All the changes look good, the implementation should work correctly. Task complete." Why bad: Uses "should" and "look good" -- no fresh test/build output, no architect verification. </Bad>
<Bad> Sequential execution of independent tasks:
Why bad: These are independent tasks that should run in parallel, not sequentially. </Bad> </Examples>
<Escalation_And_Stop_Conditions>
- Stop and report when a fundamental blocker requires user input (missing credentials, unclear requirements, external service down)
- Stop when the user says "stop", "cancel", or "abort" -- run
/cancel - Continue working when the hook system sends "The boulder never stops" -- this means the iteration continues
- If architect rejects verification, fix the issues and re-verify (do not stop)
- If the same issue recurs across 3+ iterations, report it as a potential fundamental problem
</Escalation_And_Stop_Conditions>
<Final_Checklist>
- [ ] All requirements from the original task are met (no scope reduction)
- [ ] Zero pending or in_progress TODO items
- [ ] Fresh test run output shows all tests pass
- [ ] Fresh build output shows success
- [ ] lsp_diagnostics shows 0 errors on affected files
- [ ] Architect verification passed (STANDARD tier minimum)
- [ ] ai-slop-cleaner pass completed on changed files (or --no-deslop specified)
- [ ] Post-deslop regression tests pass
- [ ]
/cancelrun for clean state cleanup
</Final_Checklist>
<Advanced>
PRD Mode (Optional)
When the user provides the --prd flag, initialize a Product Requirements Document before starting the ralph loop.
Detecting PRD Mode
Check if {{PROMPT}} contains --prd or --PRD.
Detecting --no-deslop
Check if {{PROMPT}} contains --no-deslop. If --no-deslop is present, skip the deslop pass entirely after Step 7 and continue using the latest successful pre-deslop verification evidence.
Visual Reference Flags (Optional)
Ralph execution supports visual reference flags for screenshot tasks:
- Repeatable image inputs:
-i <image-path>(can be used multiple times) - Image directory input:
--images-dir <directory>
Example: ralph -i refs/hn.png -i refs/hn-item.png --images-dir ./screenshots "match HackerNews layout"
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingcodex/skills/ralph/SKILL.md
Popularity
- Repository stars
- 58
- Repository forks
- 10
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/iapro-community/orquestrador-maestro/ralph)