[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F2C8WM4E8VTXFRJH4CWAH8":3,"skill-same:01M7F2C8WM4E8VTXFRJH4CWAH8":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":38,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":6,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M7F2C8WM4E8VTXFRJH4CWAH8","omh-ralplan",null,"Planner+Architect+Critic→consensus impl plan (≤3 rounds)","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fomh-ralplan\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: omh-ralplan\ndescription: \"Planner+Architect+Critic→consensus impl plan (≤3 rounds)\"\nversion: 2.0.0\nmetadata:\n  hermes:\n    tags: [planning, multi-agent, consensus, architecture]\n    category: omh\n    requires_toolsets: [terminal, omh]\n---\n\n# OMH Ralplan — Consensus Planning\n\n## When to Use\n\n- Before implementing any feature that touches multiple files or components\n- When architectural decisions need validation from multiple perspectives\n- When you need a plan that's been stress-tested against adversarial critique\n- When the user says: \"plan this\", \"consensus plan\", \"ralplan\", \"let's think this through\"\n\n## When NOT to Use\n\n- Trivial single-file changes (just do them)\n- Tasks where the approach is obvious and low-risk\n- When the user explicitly wants to skip planning\n\n## Prerequisites\n\n- A clear goal or specification (if ambiguous, use `omh-deep-interview` first)\n- The `delegate_task` tool must be available\n\n## Procedure\n\n### Phase 0: Context Gathering\n\nBefore planning, gather project context:\n1. Read relevant files to understand the codebase structure\n2. Identify existing patterns, conventions, and constraints\n3. Summarize context into a brief (~500 words) that all agents will receive\n\n### Phase 1: Planning Loop (max 3 rounds)\n\n**Round 1 — All Sequential** (Planner → Architect → Critic):\n\n**Step 1 — Planner** (single delegate_task)\n```\ndelegate_task(\n    goal=\"[omh-role:planner] Create an implementation plan for: {goal}\\n\\n{detailed_requirements}\",\n    context=\"# Project Context\\n\\n{project_context}\"\n)\n```\nThe goal should include the full specification — don't assume the subagent knows anything.\n\n**Step 2 — Architect Review** (single delegate_task)\n```\ndelegate_task(\n    goal=\"[omh-role:architect] Review this implementation plan for architectural soundness:\\n\\nPLAN:\\n{planner_output}\",\n    context=\"# Project Context\\n\\n{project_context}\"\n)\n```\n\n**Step 3 — Critic Challenge** (single delegate_task)\n```\ndelegate_task(\n    goal=\"[omh-role:critic] Critically challenge this plan and architect review:\\n\\nPLAN SUMMARY:\\n{plan_summary}\\n\\nARCHITECT REVIEW:\\n{architect_verdict_and_concerns}\",\n    context=\"# Project Context\\n\\n{project_context}\"\n)\n```\n\n**Step 4 — Consensus Check**\nCheck all three verdicts:\n- If ALL three are APPROVE → consensus reached, proceed to output\n- If any is REQUEST_CHANGES → collect all feedback, proceed to Round 2\n- If any is REJECT → output concerns and ask user whether to continue\n\n**Round 2+ — Planner Revises, Architect + Critic Re-review in Parallel**:\n\nWhen looping, the Planner must receive ALL feedback (Architect concerns + Critic critical issues + warnings). Be explicit about what needs to change — include the specific concern IDs (A1, C1, W1, etc.).\n\nFor Round 2 re-reviews, Architect and Critic are independent — run them in parallel via batch delegate_task:\n```\ndelegate_task(tasks=[\n    {goal: \"[omh-role:architect] Re-review revised plan:\\n{revised_plan}\\n\\nPrior concerns: {architect_concerns}\", context: \"{project_context}\"},\n    {goal: \"[omh-role:critic] Re-review revised plan:\\n{revised_plan}\\n\\nPrior concerns: {critic_concerns}\", context: \"{project_context}\"}\n])\n```\nThis saves significant time (Round 2 re-reviews ran 14 seconds parallel vs ~120 seconds sequential).\n\n### Phase 2: Output\n\nWrite the consensus plan to `.omh\u002Fplans\u002Fralplan-{slug}.md` containing:\n1. Consensus status (rounds, verdicts per round)\n2. Revision summary (what changed from feedback)\n3. The final plan (tasks with dependencies, complexity, acceptance criteria)\n4. Risks and open questions\n5. Round count and consensus status\n\nUse a descriptive slug, not a timestamp: `ralplan-deep-interview-consensus.md` not `ralplan-20260407.md`.\n\nAlso write a summary to the user with the key design decisions that emerged from the debate.\n\n## State Management\n\nState is per-instance, keyed on the plan slug (`instance_id=\"{slug}\"`).\nMultiple ralplan sessions on different goals can run concurrently.\n\nIf the `omh` plugin is available, use it for state:\n```\nomh_state(action=\"write\", mode=\"ralplan\", instance_id=\"{slug}\", data={\n    \"goal\": \"...\", \"round\": 1,\n    \"phase\": \"planner|architect|critic|complete\",\n    \"consensus\": false, \"plan_file\": \".omh\u002Fplans\u002Fralplan-{slug}.md\"\n})\n```\n\nIf the plugin is not available, write `.omh\u002Fstate\u002Fralplan--{slug}.json` manually.\n\nIf a ralplan session is interrupted, list active instances and resume from the\nlast completed phase:\n```\nlisted = omh_state(action=\"list_instances\", mode=\"ralplan\")\nstate  = omh_state(action=\"read\", mode=\"ralplan\", instance_id=\"{slug}\")\n```\n\n> **Singleton fallback (legacy).** Omitting `instance_id` writes\n> `.omh\u002Fstate\u002Fralplan-state.json`. Acceptable only when running one\n> ralplan at a time.\n\n## Deliberate Mode (--deliberate)\n\nWhen the user requests deliberate mode or uses \"deliberate\", \"ADR\", or \"decision record\", the Architect's output should follow Architecture Decision Record (ADR) format. Load `references\u002Fadr-template.md` for the template.\n\n## Pitfalls\n\n- **Use `[omh-role:NAME]` markers in the goal field** — the OMH plugin automatically injects the role prompt into the subagent's system prompt. Never inline role prompt text manually. Available roles: planner, architect, critic, executor, verifier, analyst, security-reviewer, code-reviewer, test-engineer, debugger. Fallback without plugin: `omh_state(action=\"load_role\", role=\"NAME\")` and pass returned prompt in context.\n- **Include full specifications in the goal** — subagents start with zero context. The goal + context must be self-contained.\n- **Run Round 2+ reviews in parallel** — Architect and Critic are independent in re-review rounds. Use batch delegate_task to save time.\n- **Summarize feedback with IDs for the Planner** — when looping, label feedback as A1\u002FA2\u002FC1\u002FC2\u002FW1 etc. so the Planner can address each point explicitly and the reviewers can check each one off.\n- Don't let the loop run more than 3 rounds — if no consensus by round 3, output with caveats\n- Each subagent must receive the project context, not just the plan — they need to evaluate against reality\n- The Critic should challenge, not block — if issues are minor, APPROVE with reservations\n- If the goal is ambiguous, stop and suggest `omh-deep-interview` instead of planning with unclear requirements\n- **Use todo tracking** — update a todo list with round\u002Fphase status so the user sees progress during what can be a 5-10 minute process\n- **When porting\u002Fadapting from a reference system, feed actual source to subagents** — if designing a skill inspired by another system (e.g., OMC → Hermes), the Planner, Architect, and Critic must read the actual source implementation, not just briefs or summaries. Extract reference docs from the source repo first, pass file paths in the delegate_task goal so subagents read them. Summaries lose critical field names, state schemas, edge cases, and design patterns.\n- **The Critic's simplicity test can change architecture** — don't dismiss it. In the ralph consensus, the Critic proposed one-task-per-invocation (instead of an in-session loop) which both reviewers then approved as fundamentally better. The consensus process finds the right architecture, not just validates the proposed one.\n","# OMH Ralplan — Consensus Planning\n\n## When to Use\n\n- Before implementing any feature that touches multiple files or components\n- When architectural decisions need validation from multiple perspectives\n- When you need a plan that's been stress-tested against adversarial critique\n- When the user says: \"plan this\", \"consensus plan\", \"ralplan\", \"let's think this through\"\n\n## When NOT to Use\n\n- Trivial single-file changes (just do them)\n- Tasks where the approach is obvious and low-risk\n- When the user explicitly wants to skip planning\n\n## Prerequisites\n\n- A clear goal or specification (if ambiguous, use `omh-deep-interview` first)\n- The `delegate_task` tool must be available\n\n## Procedure\n\n### Phase 0: Context Gathering\n\nBefore planning, gather project context:\n1. Read relevant files to understand the codebase structure\n2. Identify existing patterns, conventions, and constraints\n3. Summarize context into a brief (~500 words) that all agents will receive\n\n### Phase 1: Planning Loop (max 3 rounds)\n\n**Round 1 — All Sequential** (Planner → Architect → Critic):\n\n**Step 1 — Planner** (single delegate_task)\n```\ndelegate_task(\n    goal=\"[omh-role:planner] Create an implementation plan for: {goal}\\n\\n{detailed_requirements}\",\n    context=\"# Project Context\\n\\n{project_context}\"\n)\n```\nThe goal should include the full specification — don't assume the subagent knows anything.\n\n**Step 2 — Architect Review** (single delegate_task)\n```\ndelegate_task(\n    goal=\"[omh-role:architect] Review this implementation plan for architectural soundness:\\n\\nPLAN:\\n{planner_output}\",\n    context=\"# Project Context\\n\\n{project_context}\"\n)\n```\n\n**Step 3 — Critic Challenge** (single delegate_task)\n```\ndelegate_task(\n    goal=\"[omh-role:critic] Critically challenge this plan and architect review:\\n\\nPLAN SUMMARY:\\n{plan_summary}\\n\\nARCHITECT REVIEW:\\n{architect_verdict_and_concerns}\",\n    context=\"# Project Context\\n\\n{project_context}\"\n)\n```\n\n**Step 4 — Consensus Check**\nCheck all three verdicts:\n- If ALL three are APPROVE → consensus reached, proceed to output\n- If any is REQUEST_CHANGES → collect all feedback, proceed to Round 2\n- If any is REJECT → output concerns and ask user whether to continue\n\n**Round 2+ — Planner Revises, Architect + Critic Re-review in Parallel**:\n\nWhen looping, the Planner must receive ALL feedback (Architect concerns + Critic critical issues + warnings). Be explicit about what needs to change — include the specific concern IDs (A1, C1, W1, etc.).\n\nFor Round 2 re-reviews, Architect and Critic are independent — run them in parallel via batch delegate_task:\n```\ndelegate_task(tasks=[\n    {goal: \"[omh-role:architect] Re-review revised plan:\\n{revised_plan}\\n\\nPrior concerns: {architect_concerns}\", context: \"{project_context}\"},\n    {goal: \"[omh-role:critic] Re-review revised plan:\\n{revised_plan}\\n\\nPrior concerns: {critic_concerns}\", context: \"{project_context}\"}\n])\n```\nThis saves significant time (Round 2 re-reviews ran 14 seconds parallel vs ~120 seconds sequential).\n\n### Phase 2: Output\n\nWrite the consensus plan to `.omh\u002Fplans\u002Fralplan-{slug}.md` containing:\n1. Consensus status (rounds, verdicts per round)\n2. Revision summary (what changed from feedback)\n3. The final plan (tasks with dependencies, complexity, acceptance criteria)\n4. Risks and open questions\n5. Round count and consensus status\n\nUse a descriptive slug, not a timestamp: `ralplan-deep-interview-consensus.md` not `ralplan-20260407.md`.\n\nAlso write a summary to the user with the key design decisions that emerged from the debate.\n\n## State Management\n\nState is per-instance, keyed on the plan slug (`instance_id=\"{slug}\"`).\nMultiple ralplan sessions on different goals can run concurrently.\n\nIf the `omh` plugin is available, use it for state:\n```\nomh_state(action=\"write\", mode=\"ralplan\", instance_id=\"{slug}\", data={\n    \"goal\": \"...\", \"round\": 1,\n    \"phase\": \"planner|architect|critic|complete\",\n    \"consensus\": false, \"plan_file\": \".omh\u002Fplans\u002Fralplan-{slug}.md\"\n})\n```\n\nIf the plugin is not available, write `.omh\u002Fstate\u002Fralplan--{slug}.json` manually.\n\nIf a ralplan session is interrupted, list active instances and resume from the\nlast completed phase:\n```\nlisted = omh_state(action=\"list_instances\", mode=\"ralplan\")\nstate  = omh_state(action=\"read\", mode=\"ralplan\", instance_id=\"{slug}\")\n```\n\n> **Singleton fallback (legacy).** Omitting `instance_id` writes\n> `.omh\u002Fstate\u002Fralplan-state.json`. Acceptable only when running one\n> ralplan at a time.\n\n## Deliberate Mode (--deliberate)\n\nWhen the user requests deliberate mode or uses \"deliberate\", \"ADR\", or \"decision record\", the Architect's output should follow Architecture Decision Record (ADR) format. Load `references\u002Fadr-template.md` for the template.\n\n## Pitfalls\n\n- **Use `[omh-role:NAME]` markers in the goal field** — the OMH plugin automatically injects the role prompt into the subagent's system prompt. Never inline role prompt text manually. Available roles: planner, architect, critic, executor, verifier, analyst, security-reviewer, code-reviewer, test-engineer, debugger. Fallback without plugin: `omh_state(action=\"load_role\", role=\"NAME\")` and pass returned prompt in context.\n- **Include full specifications in the goal** — subagents start with zero context. The goal + context must be self-contained.\n- **Run Round 2+ reviews in parallel** — Architect and Critic are independent in re-review rounds. Use batch delegate_task to save time.\n- **Summarize feedback with IDs for the Planner** — when looping, label feedback as A1\u002FA2\u002FC1\u002FC2\u002FW1 etc. so the Planner can address each point explicitly and the reviewers can check each one off.\n- Don't let the loop run more than 3 rounds — if no consensus by round 3, output with caveats\n- Each subagent must receive the project context, not just the plan — they need to evaluate against reality\n- The Critic should challenge, not block — if issues are minor, APPROVE with reservations\n- If the goal is ambiguous, stop and suggest `omh-deep-interview` instead of planning with unclear requirements\n- **Use todo tracking** — update a todo list with round\u002Fphase status so the user sees progress during what can be a 5-10 minute process\n- **When porting\u002Fadapting from a reference system, feed actual source to subagents** — if designing a skill inspired by another system (e.g., OMC → Hermes), the Planner, Architect, and Critic must read the actual source implementation, not just briefs or summaries. Extract reference docs from the source repo first, pass file paths in the delegate_task goal so subagents read them. Summaries lose critical field names, state schemas, edge cases, and design patterns.\n- **The Critic's simplicity test can change architecture** — don't dismiss it. In the ralph consensus, the Critic proposed one-task-per-invocation (instead of an in-session loop) which both reviewers then approved as fundamentally better. The consensus process finds the right architecture, not just validates the proposed one.\n",{"name":5,"version":24,"metadata":25,"description":7},"2.0.0",{"hermes":26},{"tags":27,"category":32,"requires_toolsets":33},[28,29,30,31],"planning","multi-agent","consensus","architecture","omh",[34,32],"terminal","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","05-技能与代理开发\u002Fomh-ralplan",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill omh-ralplan",{"tool":49,"command":50},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill omh-ralplan",{"tool":52,"command":53},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill omh-ralplan","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fomh-ralplan\u002FSKILL.md",true,[57,63],{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Fadr-template.md","REFERENCE","参考文档",798,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fomh-ralplan\u002Freferences\u002Fadr-template.md",{"path":64,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Fstate-schema.md",2048,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fomh-ralplan\u002Freferences\u002Fstate-schema.md",[68,75,80,87,94,101],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":76,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]