ralph
Self-referential loop until task completion with architect verification
npxskills add merozemory/oh-my-droid--skill ralphLoading…
Self-referential loop until task completion with architect verification
npxskills add merozemory/oh-my-droid--skill ralphLoading…
[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 |
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}}
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 |
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.
CLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.
CLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).