[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KKH30XCMKPK0G8TF2HTN31":3,"skill-same:01M6KKH30XCMKPK0G8TF2HTN31":57},{"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":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":43,"install":44,"resources":56},"01M6KKH30XCMKPK0G8TF2HTN31","dispatching-parallel-agents-codex",null,"Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies","mzored\u002Fsuperpowers-cc-to-codex","mzored","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F29492942?v=4","01M6KKGRNSJKPE3WQD8AH2DCA0","Миша","01M6KKGRSPMYR9YEA4Q04ZA8YC",7,"MIT","https:\u002F\u002Fgithub.com\u002Fmzored\u002Fsuperpowers-cc-to-codex\u002Fblob\u002Fmain\u002Fskills\u002Fdispatching-parallel-agents-codex\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30],"codex","dispatching parallel agents","parallel agents","parallel","dispatching parallel agents codex","tasks","state","use","dependencies","shared","true","can","2026-11-10 10:12:30",false,"---\nname: dispatching-parallel-agents-codex\ndescription: Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies\ndisable-model-invocation: true\n---\n\u003C!--\nUpstream source: obra\u002Fsuperpowers skills\u002Fdispatching-parallel-agents\u002FSKILL.md\nLast synced: 2026-04-05\nDivergence: Codex-backed dispatch — parallel `codex_implement` MCP calls replace upstream `Task()` tool calls; review still done by Claude after all threads return\n-->\n\n# Dispatching Parallel Agents\n\n## Overview\n\nWhen you have multiple unrelated tasks (different subsystems, different bugs), working them sequentially wastes time. Each thread is independent and can happen in parallel.\n\n**Core principle:** Dispatch one `codex_implement` per independent problem domain. Let them work concurrently.\n\n\u003CHARD-GATE>\nParallel execution MUST use codex_implement calls. You cannot implement tasks yourself.\nThis skill dispatches Codex workers — Claude orchestrates, Codex executes.\n\u003C\u002FHARD-GATE>\n\n## When to Use\n\n```dot\ndigraph when_to_use {\n    \"Multiple independent tasks?\" [shape=diamond];\n    \"Are they independent?\" [shape=diamond];\n    \"Single codex_implement handles all\" [shape=box];\n    \"One codex_implement per domain\" [shape=box];\n    \"Can they run without shared state?\" [shape=diamond];\n    \"Sequential codex_implement\" [shape=box];\n    \"Parallel dispatch\" [shape=box];\n\n    \"Multiple independent tasks?\" -> \"Are they independent?\" [label=\"yes\"];\n    \"Are they independent?\" -> \"Single codex_implement handles all\" [label=\"no - related\"];\n    \"Are they independent?\" -> \"Can they run without shared state?\" [label=\"yes\"];\n    \"Can they run without shared state?\" -> \"Parallel dispatch\" [label=\"yes\"];\n    \"Can they run without shared state?\" -> \"Sequential codex_implement\" [label=\"no - shared state\"];\n}\n```\n\n**Use when:**\n- 3+ failing test files with different root causes\n- Multiple subsystems broken independently\n- Each problem can be understood without context from others\n- No shared state between threads (no same-file edits)\n\n**Don't use when:**\n- Failures are related (fix one might fix others)\n- Need to understand full system state first\n- Threads would edit the same files\n\n## The Pattern\n\n### 1. Identify Independent Domains\n\nGroup tasks by what's being changed:\n- Thread A: Agent forwarding contract in `scripts\u002F`\n- Thread B: Test fixture updates in `tests\u002Ffixtures\u002F`\n- Thread C: Schema validation in `schemas\u002F`\n\nEach domain is independent — Thread A doesn't touch Thread B's files.\n\n### 2. Create Focused Task Prompts\n\nEach `codex_implement` call gets:\n- **Specific scope:** One file or subsystem\n- **Clear goal:** What done looks like\n- **Constraints:** Don't change other code\n- **Expected output:** Summary of what was found and fixed\n\n### 3. Dispatch in Parallel\n\nCall multiple `codex_implement` tools in a single message so they run concurrently:\n\n```json\n{\n  \"tool\": \"codex_implement\",\n  \"arguments\": {\n    \"taskId\": \"parallel-A\",\n    \"prompt\": \"Fix the 3 failing tests in tests\u002Fadapter\u002Fcodex-run.test.mjs. These are timeout-related. Root cause and fix only — do not touch other test files.\",\n    \"workspaceRoot\": \"\u002Fabsolute\u002Fpath\u002Fto\u002Fyour\u002Frepo\"\n  }\n}\n```\n\n```json\n{\n  \"tool\": \"codex_implement\",\n  \"arguments\": {\n    \"taskId\": \"parallel-B\",\n    \"prompt\": \"Fix the schema mismatch in schemas\u002Fimplementer-result.schema.json. The 'tests' field is missing from the required array. Do not touch other schemas.\",\n    \"workspaceRoot\": \"\u002Fabsolute\u002Fpath\u002Fto\u002Fyour\u002Frepo\"\n  }\n}\n```\n\n```json\n{\n  \"tool\": \"codex_implement\",\n  \"arguments\": {\n    \"taskId\": \"parallel-C\",\n    \"prompt\": \"Update the fixture in tests\u002Ffixtures\u002Fsample-result.jsonl to match the new implementer-result schema. Only touch that fixture file.\",\n    \"workspaceRoot\": \"\u002Fabsolute\u002Fpath\u002Fto\u002Fyour\u002Frepo\"\n  }\n}\n```\n\n### 4. Review and Integrate\n\nWhen all threads return, each response includes a `sessionId` — capture it for follow-up:\n- Read each summary\n- Verify fixes don't conflict (check for same-file edits)\n- Run full test suite\n- Use `codex_resume` with the returned `taskId` and `sessionId` if any thread needs follow-up\n\n## Writing Good Prompts\n\nGood prompts are:\n1. **Focused** - One clear problem domain\n2. **Self-contained** - All context needed to understand the problem\n3. **Specific about constraints** - Name files they must NOT touch\n4. **Clear about output** - Summary of root cause and changes made\n\n**Bad:**\n```\n\"Fix all the tests\"  ← agent gets lost\n\"Fix the race condition\"  ← agent doesn't know where\n```\n\n**Good:**\n```\n\"Fix the 3 failing tests in tests\u002Fadapter\u002Fcodex-run.test.mjs.\nTests: [list test names + error messages].\nRoot cause is likely X. Fix by Y.\nDo NOT change production code.\nReturn: root cause found and what you changed.\"\n```\n\n## Common Mistakes\n\n**Too broad:** Agent gets lost in unrelated code.\n**No constraints:** Agent refactors everything.\n**Vague output:** You don't know what changed.\n**Overlapping scope:** Threads edit same files, creating conflicts.\n\n## When NOT to Use\n\n**Related failures:** Investigate together, fixing one might fix others.\n**Need full context:** Understanding requires seeing the whole system.\n**Exploratory debugging:** You don't know what's broken yet — use `codex_debug` first.\n**Shared state:** Threads would interfere (editing same files).\n\n## After All Threads Return\n\n1. **Review each summary** — understand what changed\n2. **Check for conflicts** — did any threads edit the same file?\n3. **Run full suite** — `npm test`\n4. **Resume if needed** — use `codex_resume` with the appropriate `taskId` and `sessionId`\n5. **Spot check** — Codex can make systematic errors; read the diff\n\n## Key Benefits\n\n1. **Parallelization** — multiple threads work simultaneously\n2. **Focus** — each thread has narrow scope\n3. **Independence** — threads don't interfere\n4. **Speed** — N problems solved in time of 1\n","\u003C!--\nUpstream source: obra\u002Fsuperpowers skills\u002Fdispatching-parallel-agents\u002FSKILL.md\nLast synced: 2026-04-05\nDivergence: Codex-backed dispatch — parallel `codex_implement` MCP calls replace upstream `Task()` tool calls; review still done by Claude after all threads return\n-->\n\n# Dispatching Parallel Agents\n\n## Overview\n\nWhen you have multiple unrelated tasks (different subsystems, different bugs), working them sequentially wastes time. Each thread is independent and can happen in parallel.\n\n**Core principle:** Dispatch one `codex_implement` per independent problem domain. Let them work concurrently.\n\n\u003CHARD-GATE>\nParallel execution MUST use codex_implement calls. You cannot implement tasks yourself.\nThis skill dispatches Codex workers — Claude orchestrates, Codex executes.\n\u003C\u002FHARD-GATE>\n\n## When to Use\n\n```dot\ndigraph when_to_use {\n    \"Multiple independent tasks?\" [shape=diamond];\n    \"Are they independent?\" [shape=diamond];\n    \"Single codex_implement handles all\" [shape=box];\n    \"One codex_implement per domain\" [shape=box];\n    \"Can they run without shared state?\" [shape=diamond];\n    \"Sequential codex_implement\" [shape=box];\n    \"Parallel dispatch\" [shape=box];\n\n    \"Multiple independent tasks?\" -> \"Are they independent?\" [label=\"yes\"];\n    \"Are they independent?\" -> \"Single codex_implement handles all\" [label=\"no - related\"];\n    \"Are they independent?\" -> \"Can they run without shared state?\" [label=\"yes\"];\n    \"Can they run without shared state?\" -> \"Parallel dispatch\" [label=\"yes\"];\n    \"Can they run without shared state?\" -> \"Sequential codex_implement\" [label=\"no - shared state\"];\n}\n```\n\n**Use when:**\n- 3+ failing test files with different root causes\n- Multiple subsystems broken independently\n- Each problem can be understood without context from others\n- No shared state between threads (no same-file edits)\n\n**Don't use when:**\n- Failures are related (fix one might fix others)\n- Need to understand full system state first\n- Threads would edit the same files\n\n## The Pattern\n\n### 1. Identify Independent Domains\n\nGroup tasks by what's being changed:\n- Thread A: Agent forwarding contract in `scripts\u002F`\n- Thread B: Test fixture updates in `tests\u002Ffixtures\u002F`\n- Thread C: Schema validation in `schemas\u002F`\n\nEach domain is independent — Thread A doesn't touch Thread B's files.\n\n### 2. Create Focused Task Prompts\n\nEach `codex_implement` call gets:\n- **Specific scope:** One file or subsystem\n- **Clear goal:** What done looks like\n- **Constraints:** Don't change other code\n- **Expected output:** Summary of what was found and fixed\n\n### 3. Dispatch in Parallel\n\nCall multiple `codex_implement` tools in a single message so they run concurrently:\n\n```json\n{\n  \"tool\": \"codex_implement\",\n  \"arguments\": {\n    \"taskId\": \"parallel-A\",\n    \"prompt\": \"Fix the 3 failing tests in tests\u002Fadapter\u002Fcodex-run.test.mjs. These are timeout-related. Root cause and fix only — do not touch other test files.\",\n    \"workspaceRoot\": \"\u002Fabsolute\u002Fpath\u002Fto\u002Fyour\u002Frepo\"\n  }\n}\n```\n\n```json\n{\n  \"tool\": \"codex_implement\",\n  \"arguments\": {\n    \"taskId\": \"parallel-B\",\n    \"prompt\": \"Fix the schema mismatch in schemas\u002Fimplementer-result.schema.json. The 'tests' field is missing from the required array. Do not touch other schemas.\",\n    \"workspaceRoot\": \"\u002Fabsolute\u002Fpath\u002Fto\u002Fyour\u002Frepo\"\n  }\n}\n```\n\n```json\n{\n  \"tool\": \"codex_implement\",\n  \"arguments\": {\n    \"taskId\": \"parallel-C\",\n    \"prompt\": \"Update the fixture in tests\u002Ffixtures\u002Fsample-result.jsonl to match the new implementer-result schema. Only touch that fixture file.\",\n    \"workspaceRoot\": \"\u002Fabsolute\u002Fpath\u002Fto\u002Fyour\u002Frepo\"\n  }\n}\n```\n\n### 4. Review and Integrate\n\nWhen all threads return, each response includes a `sessionId` — capture it for follow-up:\n- Read each summary\n- Verify fixes don't conflict (check for same-file edits)\n- Run full test suite\n- Use `codex_resume` with the returned `taskId` and `sessionId` if any thread needs follow-up\n\n## Writing Good Prompts\n\nGood prompts are:\n1. **Focused** - One clear problem domain\n2. **Self-contained** - All context needed to understand the problem\n3. **Specific about constraints** - Name files they must NOT touch\n4. **Clear about output** - Summary of root cause and changes made\n\n**Bad:**\n```\n\"Fix all the tests\"  ← agent gets lost\n\"Fix the race condition\"  ← agent doesn't know where\n```\n\n**Good:**\n```\n\"Fix the 3 failing tests in tests\u002Fadapter\u002Fcodex-run.test.mjs.\nTests: [list test names + error messages].\nRoot cause is likely X. Fix by Y.\nDo NOT change production code.\nReturn: root cause found and what you changed.\"\n```\n\n## Common Mistakes\n\n**Too broad:** Agent gets lost in unrelated code.\n**No constraints:** Agent refactors everything.\n**Vague output:** You don't know what changed.\n**Overlapping scope:** Threads edit same files, creating conflicts.\n\n## When NOT to Use\n\n**Related failures:** Investigate together, fixing one might fix others.\n**Need full context:** Understanding requires seeing the whole system.\n**Exploratory debugging:** You don't know what's broken yet — use `codex_debug` first.\n**Shared state:** Threads would interfere (editing same files).\n\n## After All Threads Return\n\n1. **Review each summary** — understand what changed\n2. **Check for conflicts** — did any threads edit the same file?\n3. **Run full suite** — `npm test`\n4. **Resume if needed** — use `codex_resume` with the appropriate `taskId` and `sessionId`\n5. **Spot check** — Codex can make systematic errors; read the diff\n\n## Key Benefits\n\n1. **Parallelization** — multiple threads work simultaneously\n2. **Focus** — each thread has narrow scope\n3. **Independence** — threads don't interfere\n4. **Speed** — N problems solved in time of 1\n",{"name":5,"description":7,"disable-model-invocation":36},true,"main","687848074913d23ee93673a275fcf3e2715c6d57","skills\u002Fdispatching-parallel-agents-codex",2,"https:\u002F\u002Fgithub.com\u002Fmzored\u002Fsuperpowers-cc-to-codex","https:\u002F\u002Fgithub.com\u002Fmzored","2026-05-01 10:50:51",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":36},[46,49,52],{"tool":47,"command":48},"npx","npx skills add mzored\u002Fsuperpowers-cc-to-codex --skill dispatching-parallel-agents-codex",{"tool":50,"command":51},"bunx","bunx skills add mzored\u002Fsuperpowers-cc-to-codex --skill dispatching-parallel-agents-codex",{"tool":53,"command":54},"pnpm","pnpm dlx skills add mzored\u002Fsuperpowers-cc-to-codex --skill dispatching-parallel-agents-codex","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmzored\u002Fsuperpowers-cc-to-codex\u002Fblob\u002Fmain\u002Fskills\u002Fdispatching-parallel-agents-codex\u002FSKILL.md",[],[58,70,80,90,96,112],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":31},"01M6KKKN4DG8CRDF02C85KQQZW","writing-plans","Upstream fixture","https:\u002F\u002Fgithub.com\u002Fmzored\u002Fsuperpowers-cc-to-codex\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fupstream-superpowers\u002Fskills\u002Fwriting-plans\u002FSKILL.md",[],[65,66,67,68,69],"plans","writing plans","writing","upstream","fixture",{"skillNo":71,"name":72,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":31},"01M6KKKHN2H20G5B7GG39JPKNS","subagent-driven-development","https:\u002F\u002Fgithub.com\u002Fmzored\u002Fsuperpowers-cc-to-codex\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fupstream-superpowers\u002Fskills\u002Fsubagent-driven-development\u002FSKILL.md",[],[76,77,78,79,68,69],"driven","subagent","subagent driven development","development",{"skillNo":81,"name":82,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":31},"01M6KKKDQJ9SEXY9KQ5CKESHJ2","requesting-code-review","https:\u002F\u002Fgithub.com\u002Fmzored\u002Fsuperpowers-cc-to-codex\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fupstream-superpowers\u002Fskills\u002Frequesting-code-review\u002FSKILL.md",[],[86,87,88,89,68,69],"requesting code review","code","review","code review",{"skillNo":91,"name":92,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":31},"01M6KKK9G8DB9QVWP07F1NK5QA","brainstorming","https:\u002F\u002Fgithub.com\u002Fmzored\u002Fsuperpowers-cc-to-codex\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fupstream-superpowers\u002Fskills\u002Fbrainstorming\u002FSKILL.md",[],[92,69,68],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":31},"01M6KKK40C8NTEV2QT1RX1WWG6","writing-plans-codex","Use when you have a spec or requirements for a multi-step task, before touching code. Codex-backed variant.","https:\u002F\u002Fgithub.com\u002Fmzored\u002Fsuperpowers-cc-to-codex\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-plans-codex\u002FSKILL.md",[],[103,65,66,19,67,104,105,29,106,107,108,109,110,26,87,111],"writing plans codex","variant","for","you","multi-step task","multi","requirements","task","spec",{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":31},"01M6KKJYHHPRGMBZ6WZ23WZXYR","verification-before-completion-codex","Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always","https:\u002F\u002Fgithub.com\u002Fmzored\u002Fsuperpowers-cc-to-codex\u002Fblob\u002Fmain\u002Fskills\u002Fverification-before-completion-codex\u002FSKILL.md",[],[119,19,120,121,122,123,124,125,126,127,26,128,129,130],"verification","verification before completion","verification before completion codex","output","claims","complete","commands","claim","evidence","work","about","assertions"]