[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75FW602RK0HAV4H0VXP5KE1":3,"skill-same:01M75FW602RK0HAV4H0VXP5KE1":52},{"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":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":34,"ownerHtmlUrl":35,"ownerBlogUrl":36,"ownerDescription":6,"updatedAt":37,"install":38,"resources":51},"01M75FW602RK0HAV4H0VXP5KE1","omc-plan",null,"Strategic planning with optional interview workflow","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-claudecode\u002Fskills\u002Fplan\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: omc-plan\ndescription: Strategic planning with optional interview workflow\nargument-hint: \"[--direct|--consensus|--review] [--interactive] [--deliberate] \u003Ctask description>\"\npipeline: [deep-interview, omc-plan, autopilot]\nnext-skill: autopilot\nhandoff: .omc\u002Fplans\u002Fralplan-*.md\nlevel: 4\n---\n\n\u003CPurpose>\nPlan creates comprehensive, actionable work plans through intelligent interaction. It auto-detects whether to interview the user (broad requests) or plan directly (detailed requests), and supports consensus mode (iterative Planner\u002FArchitect\u002FCritic loop with RALPLAN-DR structured deliberation) and review mode (Critic evaluation of existing plans).\n\u003C\u002FPurpose>\n\n\u003CUse_When>\n- User wants to plan before implementing -- \"plan this\", \"plan the\", \"let's plan\"\n- User wants structured requirements gathering for a vague idea\n- User wants an existing plan reviewed -- \"review this plan\", `--review`\n- User wants multi-perspective consensus on a plan -- `--consensus`, \"ralplan\"\n- Task is broad or vague and needs scoping before any code is written\n\u003C\u002FUse_When>\n\n\u003CDo_Not_Use_When>\n- User wants autonomous end-to-end execution -- use `autopilot` instead\n- User wants to start coding immediately with a clear task -- use `ralph` or delegate to executor\n- User asks a simple question that can be answered directly -- just answer it\n- Task is a single focused fix with obvious scope -- skip planning, just do it\n\u003C\u002FDo_Not_Use_When>\n\n\u003CWhy_This_Exists>\nJumping into code without understanding requirements leads to rework, scope creep, and missed edge cases. Plan provides structured requirements gathering, expert analysis, and quality-gated plans so that execution starts from a solid foundation. The consensus mode adds multi-perspective validation for high-stakes projects.\n\u003C\u002FWhy_This_Exists>\n\n\u003CExecution_Policy>\n- Auto-detect interview vs direct mode based on request specificity\n- Ask one question at a time during interviews -- never batch multiple questions\n- Gather codebase facts via `explore` agent before asking the user about them\n- Plans must meet quality standards: 80%+ claims cite file\u002Fline, 90%+ criteria are testable\n- Consensus mode runs fully automated by default; add `--interactive` to enable user prompts at draft review and final approval steps\n- Consensus mode uses RALPLAN-DR short mode by default; switch to deliberate mode with `--deliberate` or when the request explicitly signals high risk (auth\u002Fsecurity, data migration, destructive\u002Firreversible changes, production incident, compliance\u002FPII, public API breakage)\n\u003C\u002FExecution_Policy>\n\n\u003CSteps>\n\n### Mode Selection\n\n| Mode | Trigger | Behavior |\n|------|---------|----------|\n| Interview | Default for broad requests | Interactive requirements gathering |\n| Direct | `--direct`, or detailed request | Skip interview, generate plan directly |\n| Consensus | `--consensus`, \"ralplan\" | Planner -> Architect -> Critic loop until agreement with RALPLAN-DR structured deliberation (short by default, `--deliberate` for high-risk); add `--interactive` for user prompts at draft and approval steps |\n| Review | `--review`, \"review this plan\" | Critic evaluation of existing plan |\n\n### Interview Mode (broad\u002Fvague requests)\n\n1. **Classify the request**: Broad (vague verbs, no specific files, touches 3+ areas) triggers interview mode\n2. **Ask one focused question** using `AskUserQuestion` for preferences, scope, and constraints\n3. **Gather codebase facts first**: Before asking \"what patterns does your code use?\", spawn an `explore` agent to find out, then ask informed follow-up questions\n4. **Build on answers**: Each question builds on the previous answer\n5. **Consult Analyst** (Opus) for hidden requirements, edge cases, and risks\n6. **Create plan** when the user signals readiness: \"create the plan\", \"I'm ready\", \"make it a work plan\"\n\n### Direct Mode (detailed requests)\n\n1. **Quick Analysis**: Optional brief Analyst consultation\n2. **Create plan**: Generate comprehensive work plan immediately\n3. **Review** (optional): Critic review if requested\n\n### Consensus Mode (`--consensus` \u002F \"ralplan\")\n\n**RALPLAN-DR modes**: **Short** (default, bounded structure) and **Deliberate** (for `--deliberate` or explicit high-risk requests). Both modes keep the same Planner -> Architect -> Critic sequence and the same `AskUserQuestion` gates.\n\n**Provider overrides (supported when the provider CLI is installed):**\n- `--architect codex` — replace the Claude Architect pass with `omc ask codex --agent-prompt architect \"...\"` for implementation-heavy architecture review\n- `--critic codex` — replace the Claude Critic pass with `omc ask codex --agent-prompt critic \"...\"` for an external review pass before execution\n- If the requested provider is unavailable, briefly note that and continue with the default Claude Architect\u002FCritic step for that stage\n\n**State lifecycle**: The persistent-mode stop hook uses `ralplan-state.json` to enforce continuation during the consensus loop. The skill **MUST** manage this state:\n- **On entry**: Call `state_write(mode=\"ralplan\", active=true, session_id=\u003Ccurrent_session_id>)` before step 1\n- **On handoff to execution** (approval → ralph\u002Fteam): Call `state_write(mode=\"ralplan\", active=false, session_id=\u003Ccurrent_session_id>)`. Do NOT use `state_clear` here — `state_clear` writes a 30-second cancel signal that disables stop-hook enforcement for ALL modes, leaving the newly launched execution mode unprotected.\n- **On true terminal exit** (rejection, non-interactive plan output, error\u002Fabort): Call `state_clear(mode=\"ralplan\", session_id=\u003Ccurrent_session_id>)` — no execution mode follows, so the cancel signal window is harmless.\n- Do NOT clear during intermediate steps like Critic approval or max-iteration presentation, as the user may still select \"Request changes\".\n\nWithout cleanup, the stop hook blocks all subsequent stops with `[RALPLAN - CONSENSUS PLANNING]` reinforcement messages even after the consensus workflow has finished. Always pass `session_id` to avoid clearing other concurrent sessions' state.\n\n1. **Planner** creates initial plan and a compact **RALPLAN-DR summary** before any Architect review. The summary **MUST** include:\n   - **Principles** (3-5)\n   - **Decision Drivers** (top 3)\n   - **Viable Options** (>=2) with bounded pros\u002Fcons for each option\n   - If only one viable option remains, an explicit **invalidation rationale** for the alternatives that were rejected\n   - In **deliberate mode**: a **pre-mortem** (3 failure scenarios) and an **expanded test plan** covering **unit \u002F integration \u002F e2e \u002F observability**\n2. **User feedback** *(--interactive only)*: If running with `--interactive`, **MUST** use `AskUserQuestion` to present the draft plan **plus the RALPLAN-DR Principles \u002F Decision Drivers \u002F Options summary for early direction alignment** with these options:\n   - **Proceed to review** — send to Architect and Critic for evaluation\n   - **Request changes** — return to step 1 with user feedback incorporated\n   - **Skip review** — go directly to final approval (step 7)\n   If NOT running with `--interactive`, automatically proceed to review (step 3).\n3. **Architect** reviews for architectural soundness using `Task(subagent_type=\"oh-my-claudecode:architect\", ...)`. Architect review **MUST** include: strongest steelman counterargument (antithesis) against the favored option, at least one meaningful tradeoff tension, and (when possible) a synthesis path. In deliberate mode, Architect should explicitly flag principle violations. **Wait for this step to complete before proceeding to step 4.** Do NOT run steps 3 and 4 in parallel.\n4. **Critic** evaluates against quality criteria using `Task(subagent_type=\"oh-my-claudecode:critic\", ...)`. Critic **MUST** verify principle-option consistency, fair alternative exploration, risk mitigation clarity, testable acceptance criteria, and concrete verification steps. Critic **MUST** explicitly reject shallow alternatives, driver contradictions, vague risks, or weak verification. In deliberate mode, Critic **MUST** reject missing\u002Fweak pre-mortem or missing\u002Fweak expanded test plan. Run only after step 3 is complete.\n5. **Re-review loop** (max 5 iterations): If Critic rejects, execute this closed loop:\n   a. Collect all rejection feedback from Architect + Critic\n   b. Pass feedback to Planner to produce a revised plan\n   c. **Return to Step 3** — Architect reviews the revised plan\n   d. **Return to Step 4** — Critic evaluates the revised plan\n   e. Repeat until Critic approves OR max 5 iterations reached\n   f. If max iterations reached without approval, present the best version to user via `AskUserQuestion` with note that expert consensus was not reached\n6. **Apply improvements**: When reviewers approve with improvement suggestions, merge all accepted improvements into the plan file before proceeding. Final consensus output **MUST** include an **ADR** section with: **Decision**, **Drivers**, **Alternatives considered**, **Why chosen**, **Consequences**, **Follow-ups**. Specifically:\n   a. Collect all improvement suggestions from Architect and Critic responses\n   b. Deduplicate and categorize the suggestions\n   c. Update the plan file in `.omc\u002Fplans\u002F` with the accepted improvements (add missing details, refine steps, strengthen acceptance criteria, ADR updates, etc.)\n   d. Note which improvements were applied in a brief changelog section at the end of the plan\n7. On Critic approval (with improvements applied): *(--interactive only)* If running with `--interactive`, use `AskUserQuestion` to present the plan with these options:\n   - **Approve and implement via team** (Recommended) — proceed to implementation via coordinated parallel team agents (`\u002Fteam`). Team is the canonical orchestration surface since v4.1.7.\n   - **Approve and execute via ralph** — proceed to implementation via ralph+ultrawork (sequential execution with verification)\n   - **Clear context and implement** — compact the context window first (recommended when context is large after planning), then start fresh implementation via ralph with the saved plan file\n   - **Request changes** — return to step 1 with user feedback\n   - **Reject** — discard the plan entirely\n   If NOT running with `--interactive`, output the final approved plan, call `state_clear(mode=\"ralplan\", session_id=\u003Ccurrent_session_id>)`, and stop. Do NOT auto-execute.\n8. *(--interactive only)* User chooses via the structured `AskUserQuestion` UI (never ask for approval in plain text). If user selects **Reject**, call `state_clear(mode=\"ralplan\", session_id=\u003Ccurrent_session_id>)` and stop.\n9. On user approval (--interactive only): Call `state_write(mode=\"ralplan\", active=false, session_id=\u003Ccurrent_session_id>)` **before** invoking the execution skill (ralph\u002Fteam), so the stop hook does not interfere with the execution mode's own enforcement. Do NOT use `state_clear` here — it writes a cancel signal that disables enforcement for the newly launched mode.\n   - **Approve and implement via team**: **MUST** invoke `Skill(\"oh-my-claudecode:team\")` with the approved plan path from `.omc\u002Fplans\u002F` as context. Do NOT implement directly. The team skill coordinates parallel agents across the staged pipeline for faster execution on large tasks. This is the recommended default execution path.\n   - **Approve and execute via ralph**: **MUST** invoke `Skill(\"oh-my-claudecode:ralph\")` with the approved plan path from `.omc\u002Fplans\u002F` as context. Do NOT implement directly. Do NOT edit source code files in the planning agent. The ralph skill handles execution via ultrawork parallel agents.\n   - **Clear context and implement**: First invoke `Skill(\"compact\")` to compress the context window (reduces token usage accumulated during planning), then invoke `Skill(\"oh-my-claudecode:ralph\")` with the approved plan path from `.omc\u002Fplans\u002F`. This path is recommended when the context window is 50%+ full after the planning session.\n\n### Review Mode (`--review`)\n\n1. Read plan file from `.omc\u002Fplans\u002F`\n2. Evaluate via Critic using `Task(subagent_type=\"oh-my-claudecode:critic\", ...)`\n3. Return verdict: APPROVED, REVISE (with specific feedback), or REJECT (replanning required)\n\n### Plan Output Format\n\nEvery plan includes:\n- Requirements Summary\n- Acceptance Criteria (testable)\n- Implementation Steps (with file references)\n- Risks and Mitigations\n- Verification Steps\n- For consensus\u002Fralplan: **RALPLAN-DR summary** (Principles, Decision Drivers, Options)\n- For consensus\u002Fralplan final output: **ADR** (Decision, Drivers, Alternatives considered, Why chosen, Consequences, Follow-ups)\n- For deliberate consensus mode: **Pre-mortem (3 scenarios)** and **Expanded Test Plan** (unit\u002Fintegration\u002Fe2e\u002Fobservability)\n\nPlans are saved to `.omc\u002Fplans\u002F`. Drafts go to `.omc\u002Fdrafts\u002F`.\n\u003C\u002FSteps>\n\n\u003CTool_Usage>\n- Use `AskUserQuestion` for preference questions (scope, priority, timeline, risk tolerance) -- provides clickable UI\n- Use plain text for questions needing specific values (port numbers, names, follow-up clarifications)\n- Use `explore` agent (Haiku, 30s timeout) to gather codebase facts before asking the user\n- Use `Task(subagent_type=\"oh-my-claudecode:planner\", ...)` for planning validation on large-scope plans\n- Use `Task(subagent_type=\"oh-my-claudecode:analyst\", ...)` for requirements analysis\n- Use `Task(subagent_type=\"oh-my-claudecode:critic\", ...)` for plan review in consensus and review modes\n- **CRITICAL — Consensus mode agent calls MUST be sequential, never parallel.** Always await the Architect Task result before issuing the Critic Task.\n- In consensus mode, default to RALPLAN-DR short mode; enable deliberate mode on `--deliberate` or explicit high-risk signals (auth\u002Fsecurity, migrations, destructive changes, production incidents, compliance\u002FPII, public API breakage)\n- In consensus mode with `--interactive`: use `AskUserQuestion` for the user feedback step (step 2) and the final approval step (step 7) -- never ask for approval in plain text. Without `--interactive`, skip both prompts and output the final plan.\n- In consensus mode with `--interactive`, on user approval **MUST** invoke `Skill(\"oh-my-claudecode:ralph\")` for execution (step 9) -- never implement directly in the planning agent\n- When user selects \"Clear context and implement\" in step 7 (--interactive only): call `state_write(mode=\"ralplan\", active=false, session_id=\u003Ccurrent_session_id>)` first, then invoke `Skill(\"compact\")` to compress the accumulated planning context, then immediately invoke `Skill(\"oh-my-claudecode:ralph\")` with the plan path -- the compact step is critical to free up context before the implementation loop begins\n- **CRITICAL — Consensus mode state lifecycle**: Always deactivate ralplan state before stopping or handing off to execution. Use `state_write(active=false)` for handoff paths (approval → ralph\u002Fteam) and `state_clear` for true terminal exits (rejection, error). Never use `state_clear` before launching an execution mode — its cancel signal disables stop-hook enforcement for 30 seconds.\n\u003C\u002FTool_Usage>\n\n\u003CExamples>\n\u003CGood>\nAdaptive interview (gathering facts before asking):\n```\nPlanner: [spawns explore agent: \"find authentication implementation\"]\nPlanner: [receives: \"Auth is in src\u002Fauth\u002F using JWT with passport.js\"]\nPlanner: \"I see you're using JWT authentication with passport.js in src\u002Fauth\u002F.\n         For this new feature, should we extend the existing auth or add a separate auth flow?\"\n```\nWhy good: Answers its own codebase question first, then asks an informed preference question.\n\u003C\u002FGood>\n\n\u003CGood>\nSingle question at a time:\n```\nQ1: \"What's the main goal?\"\nA1: \"Improve performance\"\nQ2: \"For performance, what matters more -- latency or throughput?\"\nA2: \"Latency\"\nQ3: \"For latency, are we optimizing for p50 or p99?\"\n```\nWhy good: Each question builds on the previous answer. Focused and progressive.\n\u003C\u002FGood>\n\n\u003CBad>\nAsking about things you could look up:\n```\nPlanner: \"Where is authentication implemented in your codebase?\"\nUser: \"Uh, somewhere in src\u002Fauth I think?\"\n```\nWhy bad: The planner should spawn an explore agent to find this, not ask the user.\n\u003C\u002FBad>\n\n\u003CBad>\nBatching multiple questions:\n```\n\"What's the scope? And the timeline? And who's the audience?\"\n```\nWhy bad: Three questions at once causes shallow answers. Ask one at a time.\n\u003C\u002FBad>\n\n\u003CBad>\nPresenting all design options at once:\n```\n\"Here are 4 approaches: Option A... Option B... Option C... Option D... Which do you prefer?\"\n```\nWhy bad: Decision fatigue. Present one option with trade-offs, get reaction, then present the next.\n\u003C\u002FBad>\n\u003C\u002FExamples>\n\n\u003CEscalation_And_Stop_Conditions>\n- Stop interviewing when requirements are clear enough to plan -- do not over-interview\n- In consensus mode, stop after 5 Planner\u002FArchitect\u002FCritic iterations and present the best version. Do NOT clear ralplan state here — the user may still select \"Request changes\" in the subsequent step. State is cleared only on the user's final choice (approval\u002Frejection) or when outputting the plan in non-interactive mode.\n- Consensus mode without `--interactive` outputs the final plan and stops; with `--interactive`, requires explicit user approval before any implementation begins. **Always** call `state_clear(mode=\"ralplan\", session_id=\u003Ccurrent_session_id>)` before stopping.\n- If the user says \"just do it\" or \"skip planning\", call `state_write(mode=\"ralplan\", active=false, session_id=\u003Ccurrent_session_id>)` then **MUST** invoke `Skill(\"oh-my-claudecode:ralph\")` to transition to execution mode. Do NOT implement directly in the planning agent.\n- Escalate to the user when there are irreconcilable trade-offs that require a business decision\n\u003C\u002FEscalation_And_Stop_Conditions>\n\n\u003CFinal_Checklist>\n- [ ] Plan has testable acceptance criteria (90%+ concrete)\n- [ ] Plan references specific files\u002Flines where applicable (80%+ claims)\n- [ ] All risks have mitigations identified\n- [ ] No vague terms without metrics (\"fast\" -> \"p99 \u003C 200ms\")\n- [ ] Plan saved to `.omc\u002Fplans\u002F`\n- [ ] In consensus mode: RALPLAN-DR summary includes 3-5 principles, top 3 drivers, and >=2 viable options (or explicit invalidation rationale)\n- [ ] In consensus mode final output: ADR section included (Decision \u002F Drivers \u002F Alternatives considered \u002F Why chosen \u002F Consequences \u002F Follow-ups)\n- [ ] In deliberate consensus mode: pre-mortem (3 scenarios) + expanded test plan (unit\u002Fintegration\u002Fe2e\u002Fobservability) included\n- [ ] In consensus mode with `--interactive`: user explicitly approved before any execution; without `--interactive`: plan output only, no auto-execution\n- [ ] In consensus mode: ralplan state deactivated on every exit path — `state_write(active=false)` for handoff to execution, `state_clear` for terminal exits (rejection, error, non-interactive stop)\n\u003C\u002FFinal_Checklist>\n\n\u003CAdvanced>\n## Design Option Presentation\n\nWhen presenting design choices during interviews, chunk them:\n\n1. **Overview** (2-3 sentences)\n2. **Option A** with trade-offs\n3. [Wait for user reaction]\n4. **Option B** with trade-offs\n5. [Wait for user reaction]\n6. **Recommendation** (only after options discussed)\n\nFormat for each option:\n```\n### Option A: [Name]\n**Approach:** [1 sentence]\n**Pros:** [bullets]\n**Cons:** [bullets]\n\nWhat's your reaction to this approach?\n```\n\n## Question Classification\n\nBefore asking any interview question, classify it:\n\n| Type | Examples | Action |\n|------|----------|--------|\n| Codebase Fact | \"What patterns exist?\", \"Where is X?\" | Explore first, do not ask user |\n| User Preference | \"Priority?\", \"Timeline?\" | Ask user via AskUserQuestion |\n| Scope Decision | \"Include feature Y?\" | Ask user |\n| Requirement | \"Performance constraints?\" | Ask user |\n\n## Review Quality Criteria\n\n| Criterion | Standard |\n|-----------|----------|\n| Clarity | 80%+ claims cite file\u002Fline |\n| Testability | 90%+ criteria are concrete |\n| Verification | All file refs exist |\n| Specificity | No vague terms |\n\n## Deprecation Notice\n\nThe separate `\u002Fplanner`, `\u002Fralplan`, and `\u002Freview` skills have been merged into `\u002Fplan`. All workflows (interview, direct, consensus, review) are available through `\u002Fplan`.\n\u003C\u002FAdvanced>\n","\u003CPurpose>\nPlan creates comprehensive, actionable work plans through intelligent interaction. It auto-detects whether to interview the user (broad requests) or plan directly (detailed requests), and supports consensus mode (iterative Planner\u002FArchitect\u002FCritic loop with RALPLAN-DR structured deliberation) and review mode (Critic evaluation of existing plans).\n\u003C\u002FPurpose>\n\n\u003CUse_When>\n- User wants to plan before implementing -- \"plan this\", \"plan the\", \"let's plan\"\n- User wants structured requirements gathering for a vague idea\n- User wants an existing plan reviewed -- \"review this plan\", `--review`\n- User wants multi-perspective consensus on a plan -- `--consensus`, \"ralplan\"\n- Task is broad or vague and needs scoping before any code is written\n\u003C\u002FUse_When>\n\n\u003CDo_Not_Use_When>\n- User wants autonomous end-to-end execution -- use `autopilot` instead\n- User wants to start coding immediately with a clear task -- use `ralph` or delegate to executor\n- User asks a simple question that can be answered directly -- just answer it\n- Task is a single focused fix with obvious scope -- skip planning, just do it\n\u003C\u002FDo_Not_Use_When>\n\n\u003CWhy_This_Exists>\nJumping into code without understanding requirements leads to rework, scope creep, and missed edge cases. Plan provides structured requirements gathering, expert analysis, and quality-gated plans so that execution starts from a solid foundation. The consensus mode adds multi-perspective validation for high-stakes projects.\n\u003C\u002FWhy_This_Exists>\n\n\u003CExecution_Policy>\n- Auto-detect interview vs direct mode based on request specificity\n- Ask one question at a time during interviews -- never batch multiple questions\n- Gather codebase facts via `explore` agent before asking the user about them\n- Plans must meet quality standards: 80%+ claims cite file\u002Fline, 90%+ criteria are testable\n- Consensus mode runs fully automated by default; add `--interactive` to enable user prompts at draft review and final approval steps\n- Consensus mode uses RALPLAN-DR short mode by default; switch to deliberate mode with `--deliberate` or when the request explicitly signals high risk (auth\u002Fsecurity, data migration, destructive\u002Firreversible changes, production incident, compliance\u002FPII, public API breakage)\n\u003C\u002FExecution_Policy>\n\n\u003CSteps>\n\n### Mode Selection\n\n| Mode | Trigger | Behavior |\n|------|---------|----------|\n| Interview | Default for broad requests | Interactive requirements gathering |\n| Direct | `--direct`, or detailed request | Skip interview, generate plan directly |\n| Consensus | `--consensus`, \"ralplan\" | Planner -> Architect -> Critic loop until agreement with RALPLAN-DR structured deliberation (short by default, `--deliberate` for high-risk); add `--interactive` for user prompts at draft and approval steps |\n| Review | `--review`, \"review this plan\" | Critic evaluation of existing plan |\n\n### Interview Mode (broad\u002Fvague requests)\n\n1. **Classify the request**: Broad (vague verbs, no specific files, touches 3+ areas) triggers interview mode\n2. **Ask one focused question** using `AskUserQuestion` for preferences, scope, and constraints\n3. **Gather codebase facts first**: Before asking \"what patterns does your code use?\", spawn an `explore` agent to find out, then ask informed follow-up questions\n4. **Build on answers**: Each question builds on the previous answer\n5. **Consult Analyst** (Opus) for hidden requirements, edge cases, and risks\n6. **Create plan** when the user signals readiness: \"create the plan\", \"I'm ready\", \"make it a work plan\"\n\n### Direct Mode (detailed requests)\n\n1. **Quick Analysis**: Optional brief Analyst consultation\n2. **Create plan**: Generate comprehensive work plan immediately\n3. **Review** (optional): Critic review if requested\n\n### Consensus Mode (`--consensus` \u002F \"ralplan\")\n\n**RALPLAN-DR modes**: **Short** (default, bounded structure) and **Deliberate** (for `--deliberate` or explicit high-risk requests). Both modes keep the same Planner -> Architect -> Critic sequence and the same `AskUserQuestion` gates.\n\n**Provider overrides (supported when the provider CLI is installed):**\n- `--architect codex` — replace the Claude Architect pass with `omc ask codex --agent-prompt architect \"...\"` for implementation-heavy architecture review\n- `--critic codex` — replace the Claude Critic pass with `omc ask codex --agent-prompt critic \"...\"` for an external review pass before execution\n- If the requested provider is unavailable, briefly note that and continue with the default Claude Architect\u002FCritic step for that stage\n\n**State lifecycle**: The persistent-mode stop hook uses `ralplan-state.json` to enforce continuation during the consensus loop. The skill **MUST** manage this state:\n- **On entry**: Call `state_write(mode=\"ralplan\", active=true, session_id=\u003Ccurrent_session_id>)` before step 1\n- **On handoff to execution** (approval → ralph\u002Fteam): Call `state_write(mode=\"ralplan\", active=false, session_id=\u003Ccurrent_session_id>)`. Do NOT use `state_clear` here — `state_clear` writes a 30-second cancel signal that disables stop-hook enforcement for ALL modes, leaving the newly launched execution mode unprotected.\n- **On true terminal exit** (rejection, non-interactive plan output, error\u002Fabort): Call `state_clear(mode=\"ralplan\", session_id=\u003Ccurrent_session_id>)` — no execution mode follows, so the cancel signal window is harmless.\n- Do NOT clear during intermediate steps like Critic approval or max-iteration presentation, as the user may still select \"Request changes\".\n\nWithout cleanup, the stop hook blocks all subsequent stops with `[RALPLAN - CONSENSUS PLANNING]` reinforcement messages even after the consensus workflow has finished. Always pass `session_id` to avoid clearing other concurrent sessions' state.\n\n1. **Planner** creates initial plan and a compact **RALPLAN-DR summary** before any Architect review. The summary **MUST** include:\n   - **Principles** (3-5)\n   - **Decision Drivers** (top 3)\n   - **Viable Options** (>=2) with bounded pros\u002Fcons for each option\n   - If only one viable option remains, an explicit **invalidation rationale** for the alternatives that were rejected\n   - In **deliberate mode**: a **pre-mortem** (3 failure scenarios) and an **expanded test plan** covering **unit \u002F integration \u002F e2e \u002F observability**\n2. **User feedback** *(--interactive only)*: If running with `--interactive`, **MUST** use `AskUserQuestion` to present the draft plan **plus the RALPLAN-DR Principles \u002F Decision Drivers \u002F Options summary for early direction alignment** with these options:\n   - **Proceed to review** — send to Architect and Critic for evaluation\n   - **Request changes** — return to step 1 with user feedback incorporated\n   - **Skip review** — go directly to final approval (step 7)\n   If NOT running with `--interactive`, automatically proceed to review (step 3).\n3. **Architect** reviews for architectural soundness using `Task(subagent_type=\"oh-my-claudecode:architect\", ...)`. Architect review **MUST** include: strongest steelman counterargument (antithesis) against the favored option, at least one meaningful tradeoff tension, and (when possible) a synthesis path. In deliberate mode, Architect should explicitly flag principle violations. **Wait for this step to complete before proceeding to step 4.** Do NOT run steps 3 and 4 in parallel.\n4. **Critic** evaluates against quality criteria using `Task(subagent_type=\"oh-my-claudecode:critic\", ...)`. Critic **MUST** verify principle-option consistency, fair alternative exploration, risk mitigation clarity, testable acceptance criteria, and concrete verification steps. Critic **MUST** explicitly reject shallow alternatives, driver contradictions, vague risks, or weak verification. In deliberate mode, Critic **MUST** reject missing\u002Fweak pre-mortem or missing\u002Fweak expanded test plan. Run only after step 3 is complete.\n5. **Re-review loop** (max 5 iterations): If Critic rejects, execute this closed loop:\n   a. Collect all rejection feedback from Architect + Critic\n   b. Pass feedback to Planner to produce a revised plan\n   c. **Return to Step 3** — Architect reviews the revised plan\n   d. **Return to Step 4** — Critic evaluates the revised plan\n   e. Repeat until Critic approves OR max 5 iterations reached\n   f. If max iterations reached without approval, present the best version to user via `AskUserQuestion` with note that expert consensus was not reached\n6. **Apply improvements**: When reviewers approve with improvement suggestions, merge all accepted improvements into the plan file before proceeding. Final consensus output **MUST** include an **ADR** section with: **Decision**, **Drivers**, **Alternatives considered**, **Why chosen**, **Consequences**, **Follow-ups**. Specifically:\n   a. Collect all improvement suggestions from Architect and Critic responses\n   b. Deduplicate and categorize the suggestions\n   c. Update the plan file in `.omc\u002Fplans\u002F` with the accepted improvements (add missing details, refine steps, strengthen acceptance criteria, ADR updates, etc.)\n   d. Note which improvements were applied in a brief changelog section at the end of the plan\n7. On Critic approval (with improvements applied): *(--interactive only)* If running with `--interactive`, use `AskUserQuestion` to present the plan with these options:\n   - **Approve and implement via team** (Recommended) — proceed to implementation via coordinated parallel team agents (`\u002Fteam`). Team is the canonical orchestration surface since v4.1.7.\n   - **Approve and execute via ralph** — proceed to implementation via ralph+ultrawork (sequential execution with verification)\n   - **Clear context and implement** — compact the context window first (recommended when context is large after planning), then start fresh implementation via ralph with the saved plan file\n   - **Request changes** — return to step 1 with user feedback\n   - **Reject** — discard the plan entirely\n   If NOT running with `--interactive`, output the final approved plan, call `state_clear(mode=\"ralplan\", session_id=\u003Ccurrent_session_id>)`, and stop. Do NOT auto-execute.\n8. *(--interactive only)* User chooses via the structured `AskUserQuestion` UI (never ask for approval in plain text). If user selects **Reject**, call `state_clear(mode=\"ralplan\", session_id=\u003Ccurrent_session_id>)` and stop.\n9. On user approval (--interactive only): Call `state_write(mode=\"ralplan\", active=false, session_id=\u003Ccurrent_session_id>)` **before** invoking the execution skill (ralph\u002Fteam), so the stop hook does not interfere with the execution mode's own enforcement. Do NOT use `state_clear` here — it writes a cancel signal that disables enforcement for the newly launched mode.\n   - **Approve and implement via team**: **MUST** invoke `Skill(\"oh-my-claudecode:team\")` with the approved plan path from `.omc\u002Fplans\u002F` as context. Do NOT implement directly. The team skill coordinates parallel agents across the staged pipeline for faster execution on large tasks. This is the recommended default execution path.\n   - **Approve and execute via ralph**: **MUST** invoke `Skill(\"oh-my-claudecode:ralph\")` with the approved plan path from `.omc\u002Fplans\u002F` as context. Do NOT implement directly. Do NOT edit source code files in the planning agent. The ralph skill handles execution via ultrawork parallel agents.\n   - **Clear context and implement**: First invoke `Skill(\"compact\")` to compress the context window (reduces token usage accumulated during planning), then invoke `Skill(\"oh-my-claudecode:ralph\")` with the approved plan path from `.omc\u002Fplans\u002F`. This path is recommended when the context window is 50%+ full after the planning session.\n\n### Review Mode (`--review`)\n\n1. Read plan file from `.omc\u002Fplans\u002F`\n2. Evaluate via Critic using `Task(subagent_type=\"oh-my-claudecode:critic\", ...)`\n3. Return verdict: APPROVED, REVISE (with specific feedback), or REJECT (replanning required)\n\n### Plan Output Format\n\nEvery plan includes:\n- Requirements Summary\n- Acceptance Criteria (testable)\n- Implementation Steps (with file references)\n- Risks and Mitigations\n- Verification Steps\n- For consensus\u002Fralplan: **RALPLAN-DR summary** (Principles, Decision Drivers, Options)\n- For consensus\u002Fralplan final output: **ADR** (Decision, Drivers, Alternatives considered, Why chosen, Consequences, Follow-ups)\n- For deliberate consensus mode: **Pre-mortem (3 scenarios)** and **Expanded Test Plan** (unit\u002Fintegration\u002Fe2e\u002Fobservability)\n\nPlans are saved to `.omc\u002Fplans\u002F`. Drafts go to `.omc\u002Fdrafts\u002F`.\n\u003C\u002FSteps>\n\n\u003CTool_Usage>\n- Use `AskUserQuestion` for preference questions (scope, priority, timeline, risk tolerance) -- provides clickable UI\n- Use plain text for questions needing specific values (port numbers, names, follow-up clarifications)\n- Use `explore` agent (Haiku, 30s timeout) to gather codebase facts before asking the user\n- Use `Task(subagent_type=\"oh-my-claudecode:planner\", ...)` for planning validation on large-scope plans\n- Use `Task(subagent_type=\"oh-my-claudecode:analyst\", ...)` for requirements analysis\n- Use `Task(subagent_type=\"oh-my-claudecode:critic\", ...)` for plan review in consensus and review modes\n- **CRITICAL — Consensus mode agent calls MUST be sequential, never parallel.** Always await the Architect Task result before issuing the Critic Task.\n- In consensus mode, default to RALPLAN-DR short mode; enable deliberate mode on `--deliberate` or explicit high-risk signals (auth\u002Fsecurity, migrations, destructive changes, production incidents, compliance\u002FPII, public API breakage)\n- In consensus mode with `--interactive`: use `AskUserQuestion` for the user feedback step (step 2) and the final approval step (step 7) -- never ask for approval in plain text. Without `--interactive`, skip both prompts and output the final plan.\n- In consensus mode with `--interactive`, on user approval **MUST** invoke `Skill(\"oh-my-claudecode:ralph\")` for execution (step 9) -- never implement directly in the planning agent\n- When user selects \"Clear context and implement\" in step 7 (--interactive only): call `state_write(mode=\"ralplan\", active=false, session_id=\u003Ccurrent_session_id>)` first, then invoke `Skill(\"compact\")` to compress the accumulated planning context, then immediately invoke `Skill(\"oh-my-claudecode:ralph\")` with the plan path -- the compact step is critical to free up context before the implementation loop begins\n- **CRITICAL — Consensus mode state lifecycle**: Always deactivate ralplan state before stopping or handing off to execution. Use `state_write(active=false)` for handoff paths (approval → ralph\u002Fteam) and `state_clear` for true terminal exits (rejection, error). Never use `state_clear` before launching an execution mode — its cancel signal disables stop-hook enforcement for 30 seconds.\n\u003C\u002FTool_Usage>\n\n\u003CExamples>\n\u003CGood>\nAdaptive interview (gathering facts before asking):\n```\nPlanner: [spawns explore agent: \"find authentication implementation\"]\nPlanner: [receives: \"Auth is in src\u002Fauth\u002F using JWT with passport.js\"]\nPlanner: \"I see you're using JWT authentication with passport.js in src\u002Fauth\u002F.\n         For this new feature, should we extend the existing auth or add a separate auth flow?\"\n```\nWhy good: Answers its own codebase question first, then asks an informed preference question.\n\u003C\u002FGood>\n\n\u003CGood>\nSingle question at a time:\n```\nQ1: \"What's the main goal?\"\nA1: \"Improve performance\"\nQ2: \"For performance, what matters more -- latency or throughput?\"\nA2: \"Latency\"\nQ3: \"For latency, are we optimizing for p50 or p99?\"\n```\nWhy good: Each question builds on the previous answer. Focused and progressive.\n\u003C\u002FGood>\n\n\u003CBad>\nAsking about things you could look up:\n```\nPlanner: \"Where is authentication implemented in your codebase?\"\nUser: \"Uh, somewhere in src\u002Fauth I think?\"\n```\nWhy bad: The planner should spawn an explore agent to find this, not ask the user.\n\u003C\u002FBad>\n\n\u003CBad>\nBatching multiple questions:\n```\n\"What's the scope? And the timeline? And who's the audience?\"\n```\nWhy bad: Three questions at once causes shallow answers. Ask one at a time.\n\u003C\u002FBad>\n\n\u003CBad>\nPresenting all design options at once:\n```\n\"Here are 4 approaches: Option A... Option B... Option C... Option D... Which do you prefer?\"\n```\nWhy bad: Decision fatigue. Present one option with trade-offs, get reaction, then present the next.\n\u003C\u002FBad>\n\u003C\u002FExamples>\n\n\u003CEscalation_And_Stop_Conditions>\n- Stop interviewing when requirements are clear enough to plan -- do not over-interview\n- In consensus mode, stop after 5 Planner\u002FArchitect\u002FCritic iterations and present the best version. Do NOT clear ralplan state here — the user may still select \"Request changes\" in the subsequent step. State is cleared only on the user's final choice (approval\u002Frejection) or when outputting the plan in non-interactive mode.\n- Consensus mode without `--interactive` outputs the final plan and stops; with `--interactive`, requires explicit user approval before any implementation begins. **Always** call `state_clear(mode=\"ralplan\", session_id=\u003Ccurrent_session_id>)` before stopping.\n- If the user says \"just do it\" or \"skip planning\", call `state_write(mode=\"ralplan\", active=false, session_id=\u003Ccurrent_session_id>)` then **MUST** invoke `Skill(\"oh-my-claudecode:ralph\")` to transition to execution mode. Do NOT implement directly in the planning agent.\n- Escalate to the user when there are irreconcilable trade-offs that require a business decision\n\u003C\u002FEscalation_And_Stop_Conditions>\n\n\u003CFinal_Checklist>\n- [ ] Plan has testable acceptance criteria (90%+ concrete)\n- [ ] Plan references specific files\u002Flines where applicable (80%+ claims)\n- [ ] All risks have mitigations identified\n- [ ] No vague terms without metrics (\"fast\" -> \"p99 \u003C 200ms\")\n- [ ] Plan saved to `.omc\u002Fplans\u002F`\n- [ ] In consensus mode: RALPLAN-DR summary includes 3-5 principles, top 3 drivers, and >=2 viable options (or explicit invalidation rationale)\n- [ ] In consensus mode final output: ADR section included (Decision \u002F Drivers \u002F Alternatives considered \u002F Why chosen \u002F Consequences \u002F Follow-ups)\n- [ ] In deliberate consensus mode: pre-mortem (3 scenarios) + expanded test plan (unit\u002Fintegration\u002Fe2e\u002Fobservability) included\n- [ ] In consensus mode with `--interactive`: user explicitly approved before any execution; without `--interactive`: plan output only, no auto-execution\n- [ ] In consensus mode: ralplan state deactivated on every exit path — `state_write(active=false)` for handoff to execution, `state_clear` for terminal exits (rejection, error, non-interactive stop)\n\u003C\u002FFinal_Checklist>\n\n\u003CAdvanced>\n## Design Option Presentation\n\nWhen presenting design choices during interviews, chunk them:\n\n1. **Overview** (2-3 sentences)\n2. **Option A** with trade-offs\n3. [Wait for user reaction]\n4. **Option B** with trade-offs\n5. [Wait for user reaction]\n6. **Recommendation** (only after options discussed)\n\nFormat for each option:\n```\n### Option A: [Name]\n**Approach:** [1 sentence]\n**Pros:** [bullets]\n**Cons:** [bullets]\n\nWhat's your reaction to this approach?\n```\n\n## Question Classification\n\nBefore asking any interview question, classify it:\n\n| Type | Examples | Action |\n|------|----------|--------|\n| Codebase Fact | \"What patterns exist?\", \"Where is X?\" | Explore first, do not ask user |\n| User Preference | \"Priority?\", \"Timeline?\" | Ask user via AskUserQuestion |\n| Scope Decision | \"Include feature Y?\" | Ask user |\n| Requirement | \"Performance constraints?\" | Ask user |\n\n## Review Quality Criteria\n\n| Criterion | Standard |\n|-----------|----------|\n| Clarity | 80%+ claims cite file\u002Fline |\n| Testability | 90%+ criteria are concrete |\n| Verification | All file refs exist |\n| Specificity | No vague terms |\n\n## Deprecation Notice\n\nThe separate `\u002Fplanner`, `\u002Fralplan`, and `\u002Freview` skills have been merged into `\u002Fplan`. All workflows (interview, direct, consensus, review) are available through `\u002Fplan`.\n\u003C\u002FAdvanced>\n",{"name":5,"level":23,"handoff":24,"pipeline":25,"next-skill":27,"description":7,"argument-hint":28},4,".omc\u002Fplans\u002Fralplan-*.md",[26,5,27],"deep-interview","autopilot","[--direct|--consensus|--review] [--interactive] [--deliberate] \u003Ctask description>","main","f37de8f681f0c0ca0e0ebab6e5fddf764ca7553d","skills\u002Foh-my-claudecode\u002Fskills\u002Fplan",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":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add agisota\u002Fold-one --skill omc-plan",{"tool":44,"command":45},"bunx","bunx skills add agisota\u002Fold-one --skill omc-plan",{"tool":47,"command":48},"pnpm","pnpm dlx skills add agisota\u002Fold-one --skill omc-plan","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Foh-my-claudecode\u002Fskills\u002Fplan\u002FSKILL.md",true,[],[53,60,67,76,83,90],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"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":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"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":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":71,"licenseFileUrl":72,"sourceHtmlUrl":73,"categories":74,"keywords":75,"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":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"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":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"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":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"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",[],[]]