skills/ralph/SKILL.md
Self-referential loop until task completion with architect verification
npx skillsauth add MeroZemory/oh-my-droid ralphInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
[RALPH + ULTRAWORK - ITERATION {{ITERATION}}/{{MAX}}]
Your previous attempt did not output the completion promise. Continue working on the task.
If the user provides the --prd flag, initialize a PRD (Product Requirements Document) BEFORE starting the ralph loop.
Check if {{PROMPT}} contains the flag pattern: --prd or --PRD
When --prd flag detected:
.omd/prd.json and .omd/progress.txt)--prd flag){
"project": "[Project Name]",
"branchName": "ralph/[feature-name]",
"description": "[Feature description]",
"userStories": [
{
"id": "US-001",
"title": "[Short title]",
"description": "As a [user], I want to [action] so that [benefit].",
"acceptanceCriteria": ["Criterion 1", "Typecheck passes"],
"priority": 1,
"passes": false
}
]
}
# Ralph Progress Log
Started: [ISO timestamp]
## Codebase Patterns
(No patterns discovered yet)
---
Guidelines for PRD creation:
After PRD created: Proceed to normal ralph loop execution using the user stories as your task list
User input: --prd build a todo app with React and TypeScript
Your workflow:
--prd flag.omd/prd.json with user stories.omd/progress.txtRalph automatically activates Ultrawork for maximum parallel execution. You MUST follow these rules:
| 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" |
| 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 | - | - |
| Visual | - | vision | - |
| Planning | - | - | planner |
| Critique | - | - | critic |
| Pre-Planning | - | - | analyst |
| Testing | - | qa-tester | - |
| Security | security-reviewer-low | - | security-reviewer |
| Build | build-fixer-low | build-fixer | - |
| TDD | tdd-guide-low | tdd-guide | - |
| Code Review | code-reviewer-low | - | code-reviewer |
CRITICAL: Always pass model parameter explicitly!
Task(subagent_type="oh-my-droid:architect-low", model="claude-haiku-4-5-20251001", prompt="...")
Task(subagent_type="oh-my-droid:executor", model="claude-sonnet-4-5-20250929", prompt="...")
Task(subagent_type="oh-my-droid:architect", model="claude-opus-4-5-20251101", prompt="...")
Run in Background (set run_in_background: true):
Run Blocking (foreground):
Before claiming completion, you MUST:
NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE
Before outputting the completion promise:
Skipping verification = Task NOT complete
When you believe the task is complete:
First, spawn Architect to verify your work (ALWAYS pass model explicitly!):
Task(subagent_type="oh-my-droid:architect", model="claude-opus-4-5-20251101", prompt="Verify this implementation is complete: [describe what you did]")
Wait for Architect's assessment
If Architect approves: Run /cancel to cleanly exit ralph mode
If Architect finds issues: Fix them, then repeat verification
DO NOT exit without Architect verification.
IMPORTANT: Use the cancel skill for proper state cleanup
When work is complete and Architect verification passes, run /cancel to cleanly exit ralph mode. This handles:
This ensures clean state for future sessions without leaving stale state files behind.
/cancel to cleanly exit and clean up all state filesOriginal task: {{PROMPT}}
documentation
Agentic memory system for writers - track characters, relationships, scenes, and themes
development
Decompose multi-step tasks into parallel sub-agent workloads, route each sub-task to the cheapest capable model tier (Haiku/Sonnet/Opus), run long-running commands in the background, and verify all deliverables before stopping. Use when the user asks to 'go fast', 'parallelize', 'ultrawork', or when a request contains 3+ independent sub-tasks that benefit from concurrent execution.
tools
QA cycling workflow - test, verify, fix, repeat until goal met
development
Parallel autopilot with file ownership partitioning