ralph
Skill2 starsChanged 5 months agoMITView on GitHub
Self-referential persistence loop that keeps working on a task until it is fully complete and architect-verified, with parallel delegation, automatic retry, and a mandatory verification gate. Use when guaranteed completion matters. Triggers: 'ralph', 'don't stop', 'must complete', 'finish this', 'keep going until done'.
31 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- jellydn/my-ai-toolstheir own version, first seen Sep 28, 2026
- Yeachan-Heo/oh-my-claudecodetheir own version, first seen Sep 22, 2026
- MortuisVMain/ai-agent-superpowerstheir own version, first seen Sep 15, 2026
- tylerprogramming/claude-skillstheir own version, first seen Aug 9, 2026
- Q00/ouroborostheir own version, first seen Jul 31, 2026
- SantanderAI/ralphtheir own version, first seen Jun 17, 2026
Used with
Projects with it also use compound-engineering, prd and 2 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
JokerRunSkillcompound-engineering
Compound Engineering workflow for AI-assisted development. Use when planning features, executing work, reviewing code, or codifying learnings. Follows the Plan → Work → Review → Compound loop where each unit of engineering makes subsequent work easier. Triggers on: plan this feature, implement this, review this code, compound learnings, create implementation plan, systematic development.
Also in 3 projects that use this
GitHubSkillprd
Generate high-quality Product Requirements Documents (PRDs) for software systems and AI-powered features. Includes executive summaries, user stories, technical specifications, and risk analysis.
Also in 11 projects that use this
VercelSkillagent-browser
Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.
Also in 3 projects that use this
VercelSkillvercel-react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
Also in 3 projects that use this
Other versions31 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- lza6/claw-code-tingfeng★ 423% same
Wrote their own version · 30
- Yeachan-Heo/oh-my-claudecode★ 40ksame name
- Q00/ouroboros★ 6.2ksame name
- opentabs-dev/opentabs★ 967same name
- rohunj/claude-build-workflow★ 231same name
- jellydn/my-ai-tools★ 122same name
- hellangleZ/burn-in-cceverywhere-ralph★ 112same name
- SantanderAI/ralph★ 96same name
- dgk-dev/dgk-gpt★ 56same name
- Open-Harness/open-harness★ 19same name
- simone-rizzo/ralph-wiggum-claude-code-★ 17same name
20 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository46 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-slop-cleanerSkill
- analyzeSkill
- ask-claudeSkill
- ask-geminiSkill
- askSkill
- autopilotSkill
- autoresearch-goalSkill
- autoresearchSkill
- best-practice-researchSkill
- build-fixSkill
- cancelSkill
- code-reviewSkill
- configure-notificationsSkill
- deep-interviewSkill
- deepsearchSkill
- designSkill
- doctorSkill
- ecomodeSkill
- frontend-ui-uxSkill
- git-masterSkill
- helpSkill
- hudSkill
- noteSkill
- omx-setupSkill
- performance-goalSkill
- pipelineSkill
- planSkill
- prometheus-strictSkill
- ralph-initSkill
- ralplanSkill
- reviewSkill
- security-reviewSkill
- skillSkill
- swarmSkill
- tddSkill
- teamSkill
- traceSkill
- ultragoalSkill
- ultraqaSkill
- ultraworkSkill
- visual-ralphSkill
- visual-verdictSkill
- web-cloneSkill
- wikiSkill
- workerSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. 0 are common, 8 are distinctive, and 10 are very specific to this project.
0
Common
Most of the 28 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 34
Use run_in_background: true for long operations (installs, builds, test suites).
- Distinctive: line 43
If a relevant snapshot exists, reuse it and record the path in the task list.
- Very specific: line 44
If ambiguity is high, gather brownfield facts first via repository inspection (Read/Grep/Glob/Bash) or the Explore subagent, then run …
- Distinctive: line 45
Do not begin Ralph execution (delegation, implementation, verification) until snapshot grounding exists.
- Distinctive: line 46
Review progress: Check the task list and any prior iteration state.
- Very specific: line 52
When Ralph is entered as a plan/consensus follow-up, start from the approved available-agent-types roster: implementation lane, …
- Very specific: line 66
After step 7 passes, run a deslop/cleanup pass (e.g.
- Very specific: line 68
After the deslop pass, re-run all tests/build/lint and read the output to confirm green.
- Very specific: line 69
If post-deslop regression fails, roll back cleaner changes or fix and retry.
- Very specific: line 74
Use the Agent tool framed as architect for verification cross-checks when changes are security-sensitive or architectural.
- Distinctive: line 83
Stop and report when a fundamental blocker requires user input (missing credentials, unclear requirements, external service down).
- Distinctive: line 84
Stop when the user says "stop", "cancel", "abort".
- Distinctive: line 86
If architect rejects, fix and re-verify (do not stop).
- Distinctive: line 87
If the same issue recurs across 3+ iterations, report it as a potential fundamental problem.
- Very specific: line 100
When the user provides --prd, initialize a Product Requirements Document before the loop:
- Very specific: line 101
Run deep-interview --quick <task> for a compact requirements pass.
- Very specific: line 102
Create canonical artifacts: PRD at .omw/ralph/prd-{slug}.md.
- Distinctive: line 107
If present, skip the deslop pass after step 7 and continue with the latest successful pre-deslop verification evidence.
“Common” is measured: kept by at least 6 in 10 of the 28 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Ported from oh-my-codex
ralph. OMX runtime conventions ($macroinvocation,omxCLI,.omx/state directory) are replaced with WorkBuddy idioms (Skill tool, Agent tool, task list,.workbuddy/memory).
Ralph
Ralph is a persistence loop that keeps working on a task until it is fully complete and architect-verified. It wraps parallel execution with session persistence, automatic retry on failure, and mandatory verification before completion.
Use When
- Task requires guaranteed completion with verification (not just "do your best").
- User says "ralph", "don't stop", "must complete", "finish this", "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.
Do Not Use When
- User wants a full autonomous pipeline from idea to code — use the pipeline/autopilot path.
- User wants to explore or plan first — use
plan. - User wants a quick one-shot fix — delegate directly to an executor Agent.
- User wants manual control over completion — execute directly.
Why This Exists
Complex tasks fail silently: partial implementations declared "done", tests skipped, edge cases forgotten. Ralph prevents this by looping until work is genuinely complete, requiring fresh verification evidence before completion, and using an explicit architect Agent verification to confirm quality.
Execution Policy
- Fire independent Agent calls simultaneously — never wait sequentially for independent work.
- Use
run_in_background: truefor long operations (installs, builds, test suites). - Preserve legacy Ralph tier intent through model selection if available: LOW → light model, STANDARD → default, THOROUGH → strongest available model. (WorkBuddy model routing is environment-dependent; only apply when a lighter/heavier model is selectable.)
- 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, local overrides, validation proportional to risk, explicit stop rules, automatic continuation for safe reversible steps. Ask only for material, destructive, credentialed, external-production, or preference-dependent branches.
Steps
- Pre-context intake (required before the loop starts):
- Assemble or load a context snapshot at
.omw/ralph/context-{task-slug}-{timestamp}.md(UTCYYYYMMDDTHHMMSSZ). - Minimum fields: task statement, desired outcome, known facts/evidence, constraints, unknowns/open questions, likely codebase touchpoints.
- If a relevant snapshot exists, reuse it and record the path in the task list.
- If ambiguity is high, gather brownfield facts first via repository inspection (Read/Grep/Glob/Bash) or the Explore subagent, then run
deep-interview --quick <task>to close critical gaps. - Do not begin Ralph execution (delegation, implementation, verification) until snapshot grounding exists. If forced to proceed, note explicit risk tradeoffs.
- Assemble or load a context snapshot at
- Review progress: Check the task list and any prior iteration state.
- Continue from where you left off: Pick up incomplete tasks.
- Delegate in parallel: Route tasks to specialist Agent calls (Agent tool,
subagent_type: general-purpose) with a clear role framing and appropriate model intensity:- Simple lookups: light model — "What does this function return?"
- Standard work: default model — "Add error handling to this module"
- Complex analysis: strongest model — "Debug this race condition"
- When Ralph is entered as a
plan/consensus follow-up, start from the approved available-agent-types roster: implementation lane, evidence/regression lane, final sign-off lane.
- Run long operations in background: builds, installs, test suites use
run_in_background: true. - Visual task gate (when screenshot/reference images are present): before every next edit, run a visual verdict step requiring structured JSON (
score,verdict,category_match,differences[],suggestions[],reasoning). Persist verdict to.omw/ralph/{scope}/progress.json. Default pass threshold:score >= 90. For URL-based visual cloning tasks, route through the dedicated visual-clone skill if available. - Verify completion with fresh evidence: a. Identify the command that 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 task-list items.
- Architect verification (Agent role, separate call):
- <5 files, <100 lines with full tests: Agent (
subagent_type: general-purpose, default model) minimum. - Standard changes: Agent default model.
20 files or security/architectural changes: Agent strongest model.
- Ralph floor: always run an explicit architect Agent, even for small changes. 7.5 Mandatory Deslop Pass:
- After step 7 passes, run a deslop/cleanup pass (e.g. invoke the
ai-slop-cleanerskill if available, scoped to changed files only, standard mode). If the prompt contains--no-deslop, skip this step entirely. 7.6 Regression Re-verification: - After the deslop pass, re-run all tests/build/lint and read the output to confirm green.
- If post-deslop regression fails, roll back cleaner changes or fix and retry. Do not proceed to completion until green (unless
--no-deslop).
- <5 files, <100 lines with full tests: Agent (
- On approval: report final elapsed time and a completion summary; then clean up task list items. (No hidden runtime goal state to clear.)
- On rejection: Fix the issues raised, then re-verify with the same role/model profile.
Tool Usage
- Use the Agent tool framed as
architectfor verification cross-checks when changes are security-sensitive or architectural. - Skip extra consultation for simple, well-tested changes.
- Track Ralph lifecycle state in the task list (TaskCreate/TaskUpdate) and/or append to
.workbuddy/memory/YYYY-MM-DD.md. Never shell out to a runtime CLI. - Persist the context snapshot path in the task list so later phases share grounding.
Completion Audit (Stop Gate)
Before declaring complete, build a prompt_to_artifact_checklist mapping every user requirement, named workflow, file, command, gate, and deliverable to a concrete artifact/evidence item, plus verification_evidence entries (commands, exit status, files inspected). Write the Ralph completion state to .omw/ralph/{scope}/progress.json with a top-level completion_audit field. Read it back and verify completion_audit.passed === true, a non-empty checklist, and non-empty evidence before producing the final answer. Do not write bare checklist/evidence fields by themselves.
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", "abort".
- Continue working when the system sends "continue" — the iteration proceeds.
- If architect rejects, fix and re-verify (do not stop).
- If the same issue recurs across 3+ iterations, report it as a potential fundamental problem.
Final Checklist
- All requirements met (no scope reduction)
- Zero pending/in_progress task-list items
- Fresh test run output shows all tests pass
- Fresh build output shows success
- Architect verification passed (explicit Agent call minimum)
- Deslop pass completed on changed files (or
--no-deslop) - Post-deslop regression tests pass
Advanced
PRD Mode (Optional)
When the user provides --prd, initialize a Product Requirements Document before the loop:
- Run
deep-interview --quick <task>for a compact requirements pass; persist output to.omw/ralph/interviews/{slug}-{timestamp}.md. - Create canonical artifacts: PRD at
.omw/ralph/prd-{slug}.md; progress ledger at.omw/ralph/{scope}/progress.json. - Parse the task (everything after
--prd); break into user stories (right-sized, verifiable, independent, priority-ordered). - Proceed to the normal Ralph loop using user stories as the task list.
--no-deslop
If present, skip the deslop pass after step 7 and continue with the latest successful pre-deslop verification evidence.
Visual Reference Flags (Optional)
Ralph supports visual reference flags for screenshot tasks: -i <image-path> (repeatable), --images-dir <directory>.
Background Execution Rules
Run in background (run_in_background: true): package installation, builds, test suites, docker operations.
Run blocking (foreground): quick status checks, file reads/edits, simple commands.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

