A persistence loop that runs tasks until they are finished and architect-verified.
Install
mkdir -p .claude/skills/ralph-yangyuan-zhen && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/17505" && unzip -o skill.zip -d .claude/skills/ralph-yangyuan-zhen && rm skill.zipInstalls to .claude/skills/ralph-yangyuan-zhen
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
[OMX] Self-referential loop until task completion with architect verificationKey capabilities
- →Persist task progress across sessions
- →Execute independent agent calls in parallel
- →Require architect verification for task completion
- →Handle tasks spanning multiple iterations
- →Generate a context snapshot for tasks
- →Break down tasks into user stories with acceptance criteria
How it works
Ralph operates as a persistence loop that continues working on a task until it is complete and architect-verified. It wraps parallel execution with session persistence and automatic retry on failure.
Inputs & outputs
When to use ralph
- →Ensure complex bug fix completion
- →Run multi-iteration tasks
- →Automate verified feature implementation
About this skill
[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 explicit architect native-subagent verification 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) - The documented-leader preflight is not a general native-session gate. Run
omx ralplan preflight --jsononly when native role routing reportsrole_routing_unavailableand Ralph attempts adapted Ralplan Planner, Architect, or Critic authority, adapted role-intent, or adapted consensus authority. Onunsupported_documented_leader_proof, stop before that adapted authority and use a Codex surface with documented root proof or a reviewed alternative workflow. Do not infer root authority fromsession_id, undocumentedthread_id, session/pointer/transcript/cwd state, absent child data, or prompt labels. Ordinary native planning, lifecycle, state, status, health, HUD, runtime, setup, install, sync, and unrelated delegation remain outside this preflight boundary and under their existing controls. - When the native surface exposes
agent_typerole routing, setagent_typeto an installed OMX role and never omit it for OMX work; usereasoning_effortfor per-dispatch intensity when needed. - OMX adapted role-pass protocol: when native routing is
role_routing_unavailable, do not fabricateagent_type. On the exact reviewed Codex releases 0.144.5, 0.145.0, 0.146.1, and 0.148.0-alpha.5, only an attempted adapted Ralplan Planner, Architect, Critic, role-intent, or consensus authority path requiresomx ralplan preflight --jsonand fails closed onunsupported_documented_leader_proof; every other version remains unknown and fails closed. Do not use prompt labels, task-name carriers, pending intents, markers, oromx ralplan role-intent writeas substitutes. - Preserve legacy Ralph tier intent through native reasoning effort: LOW ->
low, STANDARD ->medium, THOROUGH ->xhigh - Deliver the full implementation: no scope reduction, no partial completion, no deleting tests to make them pass
- Apply the shared workflow guidance pattern: outcome-first framing, concise visible updates for multi-step execution, local overrides for the active workflow branch, validation proportional to risk, explicit stop rules, and automatic continuation for safe reversible steps. Ask only for material, destructive, credentialed, external-production, or preference-dependent branches.
- Integrate with Codex goal mode when goal tools are available: inspect the active thread goal with
get_goal, preserve it as the top-level stop condition, and only callupdate_goal({status: "complete"})after a Ralph completion audit proves the objective is actually achieved. </Execution_Policy>
Content truncated.
When not to use it
- →When a full autonomous pipeline from idea to code is desired
- →When the user wants to explore or plan before committing to a task
- →When a quick one-shot fix is needed
Limitations
- →Does not provide a full autonomous pipeline from idea to code
- →Requires architect verification before task completion
- →Does not offer manual control over completion
How it compares
Ralph ensures guaranteed task completion with mandatory verification and persistence across sessions, unlike a single-shot execution that might not track progress or require sign-off.
Compared to similar skills
ralph side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| ralph (this skill) | 0 | 6mo | No flags | Advanced |
| executing-plans | 6 | 5mo | No flags | Intermediate |
| task-think | 1 | 3mo | No flags | Advanced |
| map-workflows-guide | 0 | 7mo | Review | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by yangyuan-zhen
View all by yangyuan-zhen →You might also like
executing-plans
obra
Use when you have a written implementation plan to execute in a separate session with review checkpoints
task-think
telegramdesktop
Orchestrate a multi-phase implementation workflow for this repository with artifact files under .ai/task-slug and optional fresh codex exec child runs per phase. Use when the user wants one prompt to drive context gathering, planning, implementation, verification, and review iterations while keeping the main session context clean.
map-workflows-guide
diegosouzapw
Comprehensive guide for choosing the right MAP workflow based on task type and requirements
executing-plans
liujiarui0918
Use to execute a written plan. Run tasks in batches with human checkpoints.
aif-improve
vanyastaff
Refine and enhance an existing implementation plan with a second iteration. Re-analyzes the codebase, checks for gaps, missing tasks, wrong dependencies, and improves the plan quality. Use after /aif-plan to polish the plan before implementation, or to improve an existing /aif-fix plan.
brainstorming
doviettung96
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements, and design before implementation.