[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75G6A2SJX4H7YAR9Y9H336F":3,"skill-same:01M75G6A2SJX4H7YAR9Y9H336F":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M75G6A2SJX4H7YAR9Y9H336F","ralph",null,"Self-referential loop until task completion with architect verification","agisota\u002Fold-one","agisota","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F121413592?v=4","01M75B4BRNT67EC1NDRT8QZEP2","01M75B4BS7QR9VP580MSCPTS3X",3,"MIT","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Foh-my-codex\u002Fskills\u002Fralph\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: ralph\ndescription: Self-referential loop until task completion with architect verification\n---\n\n[RALPH + ULTRAWORK - ITERATION {{ITERATION}}\u002F{{MAX}}]\n\nYour previous attempt did not output the completion promise. Continue working on the task.\n\n\u003CPurpose>\nRalph 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.\n\u003C\u002FPurpose>\n\n\u003CUse_When>\n- Task requires guaranteed completion with verification (not just \"do your best\")\n- User says \"ralph\", \"don't stop\", \"must complete\", \"finish this\", or \"keep going until done\"\n- Work may span multiple iterations and needs persistence across retries\n- Task benefits from parallel execution with architect sign-off at the end\n\u003C\u002FUse_When>\n\n\u003CDo_Not_Use_When>\n- User wants a full autonomous pipeline from idea to code -- use `autopilot` instead\n- User wants to explore or plan before committing -- use `plan` skill instead\n- User wants a quick one-shot fix -- delegate directly to an executor agent\n- User wants manual control over completion -- use `ultrawork` directly\n\u003C\u002FDo_Not_Use_When>\n\n\u003CWhy_This_Exists>\nComplex 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.\n\u003C\u002FWhy_This_Exists>\n\n\u003CExecution_Policy>\n- Fire independent agent calls simultaneously -- never wait sequentially for independent work\n- Use `run_in_background: true` for long operations (installs, builds, test suites)\n- Always pass the `model` parameter explicitly when delegating to agents\n- Read `docs\u002Fshared\u002Fagent-tiers.md` before first delegation to select correct agent tiers\n- Deliver the full implementation: no scope reduction, no partial completion, no deleting tests to make them pass\n- Default to concise, evidence-dense progress and completion reporting unless the user or risk level requires more detail\n- Treat newer user task updates as local overrides for the active workflow branch while preserving earlier non-conflicting constraints\n- If correctness depends on additional inspection, retrieval, execution, or verification, keep using the relevant tools until the execution loop is grounded\n- Continue through clear, low-risk, reversible next steps automatically; ask only when the next step is materially branching, destructive, or preference-dependent\n\u003C\u002FExecution_Policy>\n\n\u003CSteps>\n0. **Pre-context intake (required before planning\u002Fexecution loop starts)**:\n   - Assemble or load a context snapshot at `.omx\u002Fcontext\u002F{task-slug}-{timestamp}.md` (UTC `YYYYMMDDTHHMMSSZ`).\n   - Minimum snapshot fields:\n     - task statement\n     - desired outcome\n     - known facts\u002Fevidence\n     - constraints\n     - unknowns\u002Fopen questions\n     - likely codebase touchpoints\n   - If an existing relevant snapshot is available, reuse it and record the path in Ralph state.\n   - If request ambiguity is high, gather brownfield facts first. When session guidance enables `USE_OMX_EXPLORE_CMD`, prefer `omx explore` for simple read-only repository lookups with narrow, concrete prompts; otherwise use the richer normal explore path. Then run `$deep-interview --quick \u003Ctask>` to close critical gaps.\n   - Do not begin Ralph execution work (delegation, implementation, or verification loops) until snapshot grounding exists. If forced to proceed quickly, note explicit risk tradeoffs.\n1. **Review progress**: Check TODO list and any prior iteration state\n2. **Continue from where you left off**: Pick up incomplete tasks\n3. **Delegate in parallel**: Route tasks to specialist agents at appropriate tiers\n   - Simple lookups: LOW tier -- \"What does this function return?\"\n   - Standard work: STANDARD tier -- \"Add error handling to this module\"\n   - Complex analysis: THOROUGH tier -- \"Debug this race condition\"\n   - When Ralph is entered as a ralplan follow-up, start from the approved **available-agent-types roster** and make the delegation plan explicit: implementation lane, evidence\u002Fregression lane, and final sign-off lane using only known agent types\n4. **Run long operations in background**: Builds, installs, test suites use `run_in_background: true`\n5. **Visual task gate (when screenshot\u002Freference images are present)**:\n   - Run `$visual-verdict` **before every next edit**.\n   - Require structured JSON output: `score`, `verdict`, `category_match`, `differences[]`, `suggestions[]`, `reasoning`.\n   - Persist verdict to `.omx\u002Fstate\u002F{scope}\u002Fralph-progress.json` including numeric + qualitative feedback.\n   - Default pass threshold: `score >= 90`.\n   - **URL-based cloning tasks**: When the task description contains a target URL (e.g., \"clone https:\u002F\u002Fexample.com\"), invoke `$web-clone` instead of `$visual-verdict`. The web-clone skill handles the full extraction → generation → verification pipeline and uses `$visual-verdict` internally for visual scoring.\n6. **Verify completion with fresh evidence**:\n   a. Identify what command proves the task is complete\n   b. Run verification (test, build, lint)\n   c. Read the output -- confirm it actually passed\n   d. Check: zero pending\u002Fin_progress TODO items\n7. **Architect verification** (tiered):\n   - \u003C5 files, \u003C100 lines with full tests: STANDARD tier minimum (architect role)\n   - Standard changes: STANDARD tier (architect role)\n   - >20 files or security\u002Farchitectural changes: THOROUGH tier (architect role)\n   - Ralph floor: always at least STANDARD, even for small changes\n7.5 **Mandatory Deslop Pass**:\n   - After Step 7 passes, run `oh-my-codex:ai-slop-cleaner` on **all files changed during the Ralph session**.\n   - Scope the cleaner to **changed files only**; do not widen the pass beyond Ralph-owned edits.\n   - Run the cleaner in **standard mode** (not `--review`).\n   - If the prompt contains `--no-deslop`, skip Step 7.5 entirely and proceed with the most recent successful verification evidence.\n7.6 **Regression Re-verification**:\n   - After the deslop pass, re-run all tests\u002Fbuild\u002Flint and read the output to confirm they still pass.\n   - If post-deslop regression fails, roll back cleaner changes or fix and retry. Then rerun Step 7.5 and Step 7.6 until the regression is green.\n   - Do not proceed to completion until post-deslop regression is green (unless `--no-deslop` explicitly skipped the deslop pass).\n8. **On approval**: Run `\u002Fcancel` to cleanly exit and clean up all state files\n9. **On rejection**: Fix the issues raised, then re-verify at the same tier\n\u003C\u002FSteps>\n\n\u003CTool_Usage>\n- Before first MCP tool use, call `ToolSearch(\"mcp\")` to discover deferred MCP tools\n- Use `ask_codex` with `agent_role: \"architect\"` for verification cross-checks when changes are security-sensitive, architectural, or involve complex multi-system integration\n- Skip Codex consultation for simple feature additions, well-tested changes, or time-critical verification\n- If ToolSearch finds no MCP tools or Codex is unavailable, proceed with architect agent verification alone -- never block on external tools\n- Use `state_write` \u002F `state_read` for ralph mode state persistence between iterations\n- Persist context snapshot path in Ralph mode state so later phases and agents share the same grounding context\n\u003C\u002FTool_Usage>\n\n## State Management\n\nUse the `omx_state` MCP server tools (`state_write`, `state_read`, `state_clear`) for Ralph lifecycle state.\n\n- **On start**:\n  `state_write({mode: \"ralph\", active: true, iteration: 1, max_iterations: 10, current_phase: \"executing\", started_at: \"\u003Cnow>\", state: {context_snapshot_path: \"\u003Csnapshot-path>\"}})`\n- **On each iteration**:\n  `state_write({mode: \"ralph\", iteration: \u003Ccurrent>, current_phase: \"executing\"})`\n- **On verification\u002Ffix transition**:\n  `state_write({mode: \"ralph\", current_phase: \"verifying\"})` or `state_write({mode: \"ralph\", current_phase: \"fixing\"})`\n- **On completion**:\n  `state_write({mode: \"ralph\", active: false, current_phase: \"complete\", completed_at: \"\u003Cnow>\"})`\n- **On cancellation\u002Fcleanup**:\n  run `$cancel` (which should call `state_clear(mode=\"ralph\")`)\n\n\n## Scenario Examples\n\n**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.\n\n**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.\n\n**Bad:** The user says `continue`, and the workflow restarts discovery or stops before the missing verification\u002Fevidence is gathered.\n\n\u003CExamples>\n\u003CGood>\nCorrect parallel delegation:\n```\ndelegate(role=\"executor\", tier=\"LOW\", task=\"Add type export for UserConfig\")\ndelegate(role=\"executor\", tier=\"STANDARD\", task=\"Implement the caching layer for API responses\")\ndelegate(role=\"executor\", tier=\"THOROUGH\", task=\"Refactor auth module to support OAuth2 flow\")\n```\nWhy good: Three independent tasks fired simultaneously at appropriate tiers.\n\u003C\u002FGood>\n\n\u003CGood>\nCorrect verification before completion:\n```\n1. Run: npm test           → Output: \"42 passed, 0 failed\"\n2. Run: npm run build      → Output: \"Build succeeded\"\n3. Run: lsp_diagnostics    → Output: 0 errors\n4. Delegate to architect at STANDARD tier  → Verdict: \"APPROVED\"\n5. Run \u002Fcancel\n```\nWhy good: Fresh evidence at each step, architect verification, then clean exit.\n\u003C\u002FGood>\n\n\u003CBad>\nClaiming completion without verification:\n\"All the changes look good, the implementation should work correctly. Task complete.\"\nWhy bad: Uses \"should\" and \"look good\" -- no fresh test\u002Fbuild output, no architect verification.\n\u003C\u002FBad>\n\n\u003CBad>\nSequential execution of independent tasks:\n```\ndelegate(executor, LOW, \"Add type export\") → wait →\ndelegate(executor, STANDARD, \"Implement caching\") → wait →\ndelegate(executor, THOROUGH, \"Refactor auth\")\n```\nWhy bad: These are independent tasks that should run in parallel, not sequentially.\n\u003C\u002FBad>\n\u003C\u002FExamples>\n\n\u003CEscalation_And_Stop_Conditions>\n- Stop and report when a fundamental blocker requires user input (missing credentials, unclear requirements, external service down)\n- Stop when the user says \"stop\", \"cancel\", or \"abort\" -- run `\u002Fcancel`\n- Continue working when the hook system sends \"The boulder never stops\" -- this means the iteration continues\n- If architect rejects verification, fix the issues and re-verify (do not stop)\n- If the same issue recurs across 3+ iterations, report it as a potential fundamental problem\n\u003C\u002FEscalation_And_Stop_Conditions>\n\n\u003CFinal_Checklist>\n- [ ] All requirements from the original task are met (no scope reduction)\n- [ ] Zero pending or in_progress TODO items\n- [ ] Fresh test run output shows all tests pass\n- [ ] Fresh build output shows success\n- [ ] lsp_diagnostics shows 0 errors on affected files\n- [ ] Architect verification passed (STANDARD tier minimum)\n- [ ] ai-slop-cleaner pass completed on changed files (or --no-deslop specified)\n- [ ] Post-deslop regression tests pass\n- [ ] `\u002Fcancel` run for clean state cleanup\n\u003C\u002FFinal_Checklist>\n\n\u003CAdvanced>\n## PRD Mode (Optional)\n\nWhen the user provides the `--prd` flag, initialize a Product Requirements Document before starting the ralph loop.\n\n### Detecting PRD Mode\nCheck if `{{PROMPT}}` contains `--prd` or `--PRD`.\n\nPrompt-side `$ralph` workflow activation is lighter-weight than `omx ralph --prd ...`.\nIt seeds Ralph workflow state and guidance, but it does not implicitly launch the\nCLI entrypoint or apply the PRD startup gate. Treat `omx ralph --prd ...` as the\nexplicit PRD-gated path.\n\n### Detecting `--no-deslop`\nCheck if `{{PROMPT}}` contains `--no-deslop`.\nIf `--no-deslop` is present, skip the deslop pass entirely after Step 7 and continue using the latest successful pre-deslop verification evidence.\n\n### Visual Reference Flags (Optional)\nRalph execution supports visual reference flags for screenshot tasks:\n- Repeatable image inputs: `-i \u003Cimage-path>` (can be used multiple times)\n- Image directory input: `--images-dir \u003Cdirectory>`\n\nExample:\n`ralph -i refs\u002Fhn.png -i refs\u002Fhn-item.png --images-dir .\u002Fscreenshots \"match HackerNews layout\"`\n\n### PRD Workflow\n1. Run deep-interview in quick mode before creating PRD artifacts:\n   - Execute: `$deep-interview --quick \u003Ctask>`\n   - Complete a compact requirements pass (context, goals, scope, constraints, validation)\n   - Persist interview output to `.omx\u002Finterviews\u002F{slug}-{timestamp}.md`\n2. Create canonical PRD\u002Fprogress artifacts:\n   - PRD: `.omx\u002Fplans\u002Fprd-{slug}.md`\n   - Progress ledger: `.omx\u002Fstate\u002F{scope}\u002Fralph-progress.json` (session scope when available, else root scope)\n3. Parse the task (everything after `--prd` flag)\n4. Break down into user stories:\n\n```json\n{\n  \"project\": \"[Project Name]\",\n  \"branchName\": \"ralph\u002F[feature-name]\",\n  \"description\": \"[Feature description]\",\n  \"userStories\": [\n    {\n      \"id\": \"US-001\",\n      \"title\": \"[Short title]\",\n      \"description\": \"As a [user], I want to [action] so that [benefit].\",\n      \"acceptanceCriteria\": [\"Criterion 1\", \"Typecheck passes\"],\n      \"priority\": 1,\n      \"passes\": false\n    }\n  ]\n}\n```\n\n5. Initialize canonical progress ledger at `.omx\u002Fstate\u002F{scope}\u002Fralph-progress.json`\n6. Guidelines: right-sized stories (one session each), verifiable criteria, independent stories, priority order (foundational work first)\n7. Proceed to normal ralph loop using user stories as the task list\n\n### Example\nUser input: `--prd build a todo app with React and TypeScript`\nWorkflow: Detect flag, extract task, create `.omx\u002Fplans\u002Fprd-{slug}.md`, create `.omx\u002Fstate\u002F{scope}\u002Fralph-progress.json`, begin ralph loop.\n\n### Legacy compatibility\n- During the compatibility window, Ralph `--prd` startup still validates machine-readable story state from `.omx\u002Fprd.json`.\n- `.omx\u002Fplans\u002Fprd-{slug}.md` remains the canonical storage\u002Fdocumentation artifact, but it is not yet the startup validation source.\n- If `.omx\u002Fprd.json` exists and canonical PRD is absent, migrate one-way into `.omx\u002Fplans\u002Fprd-{slug}.md`.\n- If `.omx\u002Fprogress.txt` exists and canonical progress ledger is absent, import one-way into `.omx\u002Fstate\u002F{scope}\u002Fralph-progress.json`.\n- Keep legacy files unchanged for one release cycle.\n\n## Background Execution Rules\n\n**Run in background** (`run_in_background: true`):\n- Package installation (npm install, pip install, cargo build)\n- Build processes (make, project build commands)\n- Test suites\n- Docker operations (docker build, docker pull)\n\n**Run blocking** (foreground):\n- Quick status checks (git status, ls, pwd)\n- File reads and edits\n- Simple commands\n\u003C\u002FAdvanced>\n\nOriginal task:\n{{PROMPT}}\n","[RALPH + ULTRAWORK - ITERATION {{ITERATION}}\u002F{{MAX}}]\n\nYour previous attempt did not output the completion promise. Continue working on the task.\n\n\u003CPurpose>\nRalph 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.\n\u003C\u002FPurpose>\n\n\u003CUse_When>\n- Task requires guaranteed completion with verification (not just \"do your best\")\n- User says \"ralph\", \"don't stop\", \"must complete\", \"finish this\", or \"keep going until done\"\n- Work may span multiple iterations and needs persistence across retries\n- Task benefits from parallel execution with architect sign-off at the end\n\u003C\u002FUse_When>\n\n\u003CDo_Not_Use_When>\n- User wants a full autonomous pipeline from idea to code -- use `autopilot` instead\n- User wants to explore or plan before committing -- use `plan` skill instead\n- User wants a quick one-shot fix -- delegate directly to an executor agent\n- User wants manual control over completion -- use `ultrawork` directly\n\u003C\u002FDo_Not_Use_When>\n\n\u003CWhy_This_Exists>\nComplex 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.\n\u003C\u002FWhy_This_Exists>\n\n\u003CExecution_Policy>\n- Fire independent agent calls simultaneously -- never wait sequentially for independent work\n- Use `run_in_background: true` for long operations (installs, builds, test suites)\n- Always pass the `model` parameter explicitly when delegating to agents\n- Read `docs\u002Fshared\u002Fagent-tiers.md` before first delegation to select correct agent tiers\n- Deliver the full implementation: no scope reduction, no partial completion, no deleting tests to make them pass\n- Default to concise, evidence-dense progress and completion reporting unless the user or risk level requires more detail\n- Treat newer user task updates as local overrides for the active workflow branch while preserving earlier non-conflicting constraints\n- If correctness depends on additional inspection, retrieval, execution, or verification, keep using the relevant tools until the execution loop is grounded\n- Continue through clear, low-risk, reversible next steps automatically; ask only when the next step is materially branching, destructive, or preference-dependent\n\u003C\u002FExecution_Policy>\n\n\u003CSteps>\n0. **Pre-context intake (required before planning\u002Fexecution loop starts)**:\n   - Assemble or load a context snapshot at `.omx\u002Fcontext\u002F{task-slug}-{timestamp}.md` (UTC `YYYYMMDDTHHMMSSZ`).\n   - Minimum snapshot fields:\n     - task statement\n     - desired outcome\n     - known facts\u002Fevidence\n     - constraints\n     - unknowns\u002Fopen questions\n     - likely codebase touchpoints\n   - If an existing relevant snapshot is available, reuse it and record the path in Ralph state.\n   - If request ambiguity is high, gather brownfield facts first. When session guidance enables `USE_OMX_EXPLORE_CMD`, prefer `omx explore` for simple read-only repository lookups with narrow, concrete prompts; otherwise use the richer normal explore path. Then run `$deep-interview --quick \u003Ctask>` to close critical gaps.\n   - Do not begin Ralph execution work (delegation, implementation, or verification loops) until snapshot grounding exists. If forced to proceed quickly, note explicit risk tradeoffs.\n1. **Review progress**: Check TODO list and any prior iteration state\n2. **Continue from where you left off**: Pick up incomplete tasks\n3. **Delegate in parallel**: Route tasks to specialist agents at appropriate tiers\n   - Simple lookups: LOW tier -- \"What does this function return?\"\n   - Standard work: STANDARD tier -- \"Add error handling to this module\"\n   - Complex analysis: THOROUGH tier -- \"Debug this race condition\"\n   - When Ralph is entered as a ralplan follow-up, start from the approved **available-agent-types roster** and make the delegation plan explicit: implementation lane, evidence\u002Fregression lane, and final sign-off lane using only known agent types\n4. **Run long operations in background**: Builds, installs, test suites use `run_in_background: true`\n5. **Visual task gate (when screenshot\u002Freference images are present)**:\n   - Run `$visual-verdict` **before every next edit**.\n   - Require structured JSON output: `score`, `verdict`, `category_match`, `differences[]`, `suggestions[]`, `reasoning`.\n   - Persist verdict to `.omx\u002Fstate\u002F{scope}\u002Fralph-progress.json` including numeric + qualitative feedback.\n   - Default pass threshold: `score >= 90`.\n   - **URL-based cloning tasks**: When the task description contains a target URL (e.g., \"clone https:\u002F\u002Fexample.com\"), invoke `$web-clone` instead of `$visual-verdict`. The web-clone skill handles the full extraction → generation → verification pipeline and uses `$visual-verdict` internally for visual scoring.\n6. **Verify completion with fresh evidence**:\n   a. Identify what command proves the task is complete\n   b. Run verification (test, build, lint)\n   c. Read the output -- confirm it actually passed\n   d. Check: zero pending\u002Fin_progress TODO items\n7. **Architect verification** (tiered):\n   - \u003C5 files, \u003C100 lines with full tests: STANDARD tier minimum (architect role)\n   - Standard changes: STANDARD tier (architect role)\n   - >20 files or security\u002Farchitectural changes: THOROUGH tier (architect role)\n   - Ralph floor: always at least STANDARD, even for small changes\n7.5 **Mandatory Deslop Pass**:\n   - After Step 7 passes, run `oh-my-codex:ai-slop-cleaner` on **all files changed during the Ralph session**.\n   - Scope the cleaner to **changed files only**; do not widen the pass beyond Ralph-owned edits.\n   - Run the cleaner in **standard mode** (not `--review`).\n   - If the prompt contains `--no-deslop`, skip Step 7.5 entirely and proceed with the most recent successful verification evidence.\n7.6 **Regression Re-verification**:\n   - After the deslop pass, re-run all tests\u002Fbuild\u002Flint and read the output to confirm they still pass.\n   - If post-deslop regression fails, roll back cleaner changes or fix and retry. Then rerun Step 7.5 and Step 7.6 until the regression is green.\n   - Do not proceed to completion until post-deslop regression is green (unless `--no-deslop` explicitly skipped the deslop pass).\n8. **On approval**: Run `\u002Fcancel` to cleanly exit and clean up all state files\n9. **On rejection**: Fix the issues raised, then re-verify at the same tier\n\u003C\u002FSteps>\n\n\u003CTool_Usage>\n- Before first MCP tool use, call `ToolSearch(\"mcp\")` to discover deferred MCP tools\n- Use `ask_codex` with `agent_role: \"architect\"` for verification cross-checks when changes are security-sensitive, architectural, or involve complex multi-system integration\n- Skip Codex consultation for simple feature additions, well-tested changes, or time-critical verification\n- If ToolSearch finds no MCP tools or Codex is unavailable, proceed with architect agent verification alone -- never block on external tools\n- Use `state_write` \u002F `state_read` for ralph mode state persistence between iterations\n- Persist context snapshot path in Ralph mode state so later phases and agents share the same grounding context\n\u003C\u002FTool_Usage>\n\n## State Management\n\nUse the `omx_state` MCP server tools (`state_write`, `state_read`, `state_clear`) for Ralph lifecycle state.\n\n- **On start**:\n  `state_write({mode: \"ralph\", active: true, iteration: 1, max_iterations: 10, current_phase: \"executing\", started_at: \"\u003Cnow>\", state: {context_snapshot_path: \"\u003Csnapshot-path>\"}})`\n- **On each iteration**:\n  `state_write({mode: \"ralph\", iteration: \u003Ccurrent>, current_phase: \"executing\"})`\n- **On verification\u002Ffix transition**:\n  `state_write({mode: \"ralph\", current_phase: \"verifying\"})` or `state_write({mode: \"ralph\", current_phase: \"fixing\"})`\n- **On completion**:\n  `state_write({mode: \"ralph\", active: false, current_phase: \"complete\", completed_at: \"\u003Cnow>\"})`\n- **On cancellation\u002Fcleanup**:\n  run `$cancel` (which should call `state_clear(mode=\"ralph\")`)\n\n\n## Scenario Examples\n\n**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.\n\n**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.\n\n**Bad:** The user says `continue`, and the workflow restarts discovery or stops before the missing verification\u002Fevidence is gathered.\n\n\u003CExamples>\n\u003CGood>\nCorrect parallel delegation:\n```\ndelegate(role=\"executor\", tier=\"LOW\", task=\"Add type export for UserConfig\")\ndelegate(role=\"executor\", tier=\"STANDARD\", task=\"Implement the caching layer for API responses\")\ndelegate(role=\"executor\", tier=\"THOROUGH\", task=\"Refactor auth module to support OAuth2 flow\")\n```\nWhy good: Three independent tasks fired simultaneously at appropriate tiers.\n\u003C\u002FGood>\n\n\u003CGood>\nCorrect verification before completion:\n```\n1. Run: npm test           → Output: \"42 passed, 0 failed\"\n2. Run: npm run build      → Output: \"Build succeeded\"\n3. Run: lsp_diagnostics    → Output: 0 errors\n4. Delegate to architect at STANDARD tier  → Verdict: \"APPROVED\"\n5. Run \u002Fcancel\n```\nWhy good: Fresh evidence at each step, architect verification, then clean exit.\n\u003C\u002FGood>\n\n\u003CBad>\nClaiming completion without verification:\n\"All the changes look good, the implementation should work correctly. Task complete.\"\nWhy bad: Uses \"should\" and \"look good\" -- no fresh test\u002Fbuild output, no architect verification.\n\u003C\u002FBad>\n\n\u003CBad>\nSequential execution of independent tasks:\n```\ndelegate(executor, LOW, \"Add type export\") → wait →\ndelegate(executor, STANDARD, \"Implement caching\") → wait →\ndelegate(executor, THOROUGH, \"Refactor auth\")\n```\nWhy bad: These are independent tasks that should run in parallel, not sequentially.\n\u003C\u002FBad>\n\u003C\u002FExamples>\n\n\u003CEscalation_And_Stop_Conditions>\n- Stop and report when a fundamental blocker requires user input (missing credentials, unclear requirements, external service down)\n- Stop when the user says \"stop\", \"cancel\", or \"abort\" -- run `\u002Fcancel`\n- Continue working when the hook system sends \"The boulder never stops\" -- this means the iteration continues\n- If architect rejects verification, fix the issues and re-verify (do not stop)\n- If the same issue recurs across 3+ iterations, report it as a potential fundamental problem\n\u003C\u002FEscalation_And_Stop_Conditions>\n\n\u003CFinal_Checklist>\n- [ ] All requirements from the original task are met (no scope reduction)\n- [ ] Zero pending or in_progress TODO items\n- [ ] Fresh test run output shows all tests pass\n- [ ] Fresh build output shows success\n- [ ] lsp_diagnostics shows 0 errors on affected files\n- [ ] Architect verification passed (STANDARD tier minimum)\n- [ ] ai-slop-cleaner pass completed on changed files (or --no-deslop specified)\n- [ ] Post-deslop regression tests pass\n- [ ] `\u002Fcancel` run for clean state cleanup\n\u003C\u002FFinal_Checklist>\n\n\u003CAdvanced>\n## PRD Mode (Optional)\n\nWhen the user provides the `--prd` flag, initialize a Product Requirements Document before starting the ralph loop.\n\n### Detecting PRD Mode\nCheck if `{{PROMPT}}` contains `--prd` or `--PRD`.\n\nPrompt-side `$ralph` workflow activation is lighter-weight than `omx ralph --prd ...`.\nIt seeds Ralph workflow state and guidance, but it does not implicitly launch the\nCLI entrypoint or apply the PRD startup gate. Treat `omx ralph --prd ...` as the\nexplicit PRD-gated path.\n\n### Detecting `--no-deslop`\nCheck if `{{PROMPT}}` contains `--no-deslop`.\nIf `--no-deslop` is present, skip the deslop pass entirely after Step 7 and continue using the latest successful pre-deslop verification evidence.\n\n### Visual Reference Flags (Optional)\nRalph execution supports visual reference flags for screenshot tasks:\n- Repeatable image inputs: `-i \u003Cimage-path>` (can be used multiple times)\n- Image directory input: `--images-dir \u003Cdirectory>`\n\nExample:\n`ralph -i refs\u002Fhn.png -i refs\u002Fhn-item.png --images-dir .\u002Fscreenshots \"match HackerNews layout\"`\n\n### PRD Workflow\n1. Run deep-interview in quick mode before creating PRD artifacts:\n   - Execute: `$deep-interview --quick \u003Ctask>`\n   - Complete a compact requirements pass (context, goals, scope, constraints, validation)\n   - Persist interview output to `.omx\u002Finterviews\u002F{slug}-{timestamp}.md`\n2. Create canonical PRD\u002Fprogress artifacts:\n   - PRD: `.omx\u002Fplans\u002Fprd-{slug}.md`\n   - Progress ledger: `.omx\u002Fstate\u002F{scope}\u002Fralph-progress.json` (session scope when available, else root scope)\n3. Parse the task (everything after `--prd` flag)\n4. Break down into user stories:\n\n```json\n{\n  \"project\": \"[Project Name]\",\n  \"branchName\": \"ralph\u002F[feature-name]\",\n  \"description\": \"[Feature description]\",\n  \"userStories\": [\n    {\n      \"id\": \"US-001\",\n      \"title\": \"[Short title]\",\n      \"description\": \"As a [user], I want to [action] so that [benefit].\",\n      \"acceptanceCriteria\": [\"Criterion 1\", \"Typecheck passes\"],\n      \"priority\": 1,\n      \"passes\": false\n    }\n  ]\n}\n```\n\n5. Initialize canonical progress ledger at `.omx\u002Fstate\u002F{scope}\u002Fralph-progress.json`\n6. Guidelines: right-sized stories (one session each), verifiable criteria, independent stories, priority order (foundational work first)\n7. Proceed to normal ralph loop using user stories as the task list\n\n### Example\nUser input: `--prd build a todo app with React and TypeScript`\nWorkflow: Detect flag, extract task, create `.omx\u002Fplans\u002Fprd-{slug}.md`, create `.omx\u002Fstate\u002F{scope}\u002Fralph-progress.json`, begin ralph loop.\n\n### Legacy compatibility\n- During the compatibility window, Ralph `--prd` startup still validates machine-readable story state from `.omx\u002Fprd.json`.\n- `.omx\u002Fplans\u002Fprd-{slug}.md` remains the canonical storage\u002Fdocumentation artifact, but it is not yet the startup validation source.\n- If `.omx\u002Fprd.json` exists and canonical PRD is absent, migrate one-way into `.omx\u002Fplans\u002Fprd-{slug}.md`.\n- If `.omx\u002Fprogress.txt` exists and canonical progress ledger is absent, import one-way into `.omx\u002Fstate\u002F{scope}\u002Fralph-progress.json`.\n- Keep legacy files unchanged for one release cycle.\n\n## Background Execution Rules\n\n**Run in background** (`run_in_background: true`):\n- Package installation (npm install, pip install, cargo build)\n- Build processes (make, project build commands)\n- Test suites\n- Docker operations (docker build, docker pull)\n\n**Run blocking** (foreground):\n- Quick status checks (git status, ls, pwd)\n- File reads and edits\n- Simple commands\n\u003C\u002FAdvanced>\n\nOriginal task:\n{{PROMPT}}\n",{"name":5,"description":7},"main","f37de8f681f0c0ca0e0ebab6e5fddf764ca7553d","skills\u002Foh-my-codex\u002Fskills\u002Fralph",1,"https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one","https:\u002F\u002Fagisota.github.io\u002Fold-one\u002F","https:\u002F\u002Fgithub.com\u002Fagisota","pzd.world","2026-07-04 22:32:06",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add agisota\u002Fold-one --skill ralph",{"tool":38,"command":39},"bunx","bunx skills add agisota\u002Fold-one --skill ralph",{"tool":41,"command":42},"pnpm","pnpm dlx skills add agisota\u002Fold-one --skill ralph","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Foh-my-codex\u002Fskills\u002Fralph\u002FSKILL.md",true,[],[47,54,61,70,77,84],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":18},"01M75KRGZWQWE9JDBS6RX42NWV","zoom-out","Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fzoom-out\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M75KRCZHKE0ZYAQFFYHS0YNP","zeroize-audit","Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C\u002FC++\u002FRust code handling secrets, keys, passwords, or other sensitive data.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fzeroize-audit\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":65,"licenseFileUrl":66,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M75KR94KYQ30DTE1P9WNDAE0","yeet","Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":18},"01M75KR3H13YJ9QHMD49818FA1","yara-rule-authoring","Guides authoring of high-quality YARA-X detection rules for malware identification. Use when writing, reviewing, or optimizing YARA rules. Covers naming conventions, string selection, performance optimization, migration from legacy YARA, and false positive reduction. Triggers on: YARA, YARA-X, malware detection, threat hunting, IOC, signature, crx module, dex module.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fyara-rule-authoring\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":18},"01M75KQMPY8A4Y8XTDD2DT0M9T","x-twitter-growth","X\u002FTwitter growth engine for building audience, crafting viral content, and analyzing engagement. Use when the user wants to grow on X\u002FTwitter, write tweets or threads, analyze their X profile, research competitors on X, plan a posting strategy, or optimize engagement. Complements social-content (generic multi-platform) with X-specific depth: algorithm mechanics, thread engineering, reply strategy, profile optimization, and competitive intelligence via web search.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fx-twitter-growth\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M75KQHNZ0ANZNJGZY6M8MDAK","x-api","X\u002FTwitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fx-api\u002FSKILL.md",[],[]]