用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/AeyeOps/oh-my-codex --skill ralph命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | ralph |
| description | Self-referential loop until task completion with architect verification |
[RALPH + ULTRAWORK - ITERATION {{ITERATION}}/{{MAX}}]
Your previous attempt did not output the completion promise. Continue working on the task.
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.<Use_When>
<Do_Not_Use_When>
autopilot insteadplan skill insteadultrawork directly
</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>
run_in_background: true for long operations (installs, builds, test suites)model parameter explicitly when delegating to agentsdocs/shared/agent-tiers.md before first delegation to select correct agent tiers<Tool_Usage>
ToolSearch("mcp") to discover deferred MCP toolsask_codex with agent_role: "architect" for verification cross-checks when changes are security-sensitive, architectural, or involve complex multi-system integrationstate_write / state_read for ralph mode state persistence between iterationsUse the omx_state MCP server tools (state_write, state_read, state_clear) for Ralph lifecycle state.
state_write({mode: "ralph", active: true, iteration: 1, max_iterations: 10, current_phase: "executing", started_at: "<now>", state: {context_snapshot_path: "<snapshot-path>"}})state_write({mode: "ralph", iteration: <current>, current_phase: "executing"})state_write({mode: "ralph", current_phase: "verifying"}) or state_write({mode: "ralph", current_phase: "fixing"})state_write({mode: "ralph", active: false, current_phase: "complete", completed_at: "<now>"})$cancel (which should call state_clear(mode="ralph"))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.
<Escalation_And_Stop_Conditions>
/cancel<Final_Checklist>
/cancel run for clean state cleanup
</Final_Checklist>When the user provides the --prd flag, initialize a Product Requirements Document before starting the ralph loop.
Check if {{PROMPT}} contains --prd or --PRD.
Prompt-side $ralph workflow activation is lighter-weight than omx ralph --prd ....
It seeds Ralph workflow state and guidance, but it does not implicitly launch the
CLI entrypoint or apply the PRD startup gate. Treat omx ralph --prd ... as the
explicit PRD-gated path.
--no-deslopCheck 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.
Ralph execution supports visual reference flags for screenshot tasks:
-i <image-path> (can be used multiple times)--images-dir <directory>Example:
ralph -i refs/hn.png -i refs/hn-item.png --images-dir ./screenshots "match HackerNews layout"
$deep-interview --quick <task>.omx/interviews/{slug}-{timestamp}.md.omx/plans/prd-{slug}.md.omx/state/{scope}/ralph-progress.json (session scope when available, else root scope)--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
}
]
}
.omx/state/{scope}/ralph-progress.jsonUser input: --prd build a todo app with React and TypeScript
Workflow: Detect flag, extract task, create .omx/plans/prd-{slug}.md, create .omx/state/{scope}/ralph-progress.json, begin ralph loop.
--prd startup still validates machine-readable story state from .omx/prd.json..omx/plans/prd-{slug}.md remains the canonical storage/documentation artifact, but it is not yet the startup validation source..omx/prd.json exists and canonical PRD is absent, migrate one-way into .omx/plans/prd-{slug}.md..omx/progress.txt exists and canonical progress ledger is absent, import one-way into .omx/state/{scope}/ralph-progress.json.Run in background (run_in_background: true):
Run blocking (foreground):
Original task: {{PROMPT}}