subagent-orchestration
Decompose work across parallel subagents properly — task slicing that avoids collisions, briefs that stand alone, and result integration that catche…
它会碰到什么
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
Subagent Orchestration Skill
Parallel agents multiply speed exactly when the decomposition is right — and multiply mess when it isn't: two agents editing one file, three agents making inconsistent assumptions, results that can't be merged. Orchestration is a design discipline: slice for independence, brief for standalone execution, integrate with suspicion.
What This Skill Produces
- A decomposition decision: what runs parallel, what stays sequential, what isn't worth delegating at all
- Per-agent briefs that survive without shared context
- An integration protocol: merge order, conflict checks, and the verification of the combined result
Orchestration Method
- Decide IF before HOW. Delegation costs: brief-writing, context loss, integration, and review of work you didn't watch. Worth it when subtasks are genuinely independent AND individually substantial. A task you could finish in the time it takes to write two good briefs is yours to do.
- Slice by ownership boundary, not by topic. The test per pair of subtasks: do they write to the same artifact, or does one's output change the other's input? Yes → sequential or merged into one task. The safe cuts: different files/directories · different data sources to research · different independent deliverables. The classic collision: "agent A refactors, agent B adds tests" on the same module — topically distinct, physically overlapping.
- Write briefs that stand alone. A subagent doesn't share your conversation. Each brief carries: the goal as an outcome test · the context it can't infer (constraints, conventions, decisions already made — stated, not referenced) · what it must NOT touch (the other agents' territory, named) · the exact deliverable shape (so integration is mechanical) · when to stop and return rather than improvise.
- Pin the shared assumptions. If any decision affects multiple agents (naming, interface shapes, the version of truth), make it BEFORE dispatch and put it in every brief. Two agents each "reasonably deciding" an interface produces two interfaces.
- Integrate with suspicion. On return: check each result against its brief (subagents drift too) · diff for cross-agent contradictions (terminology, duplicate implementations, conflicting claims — the research fan-out that returns three different revenue numbers is a finding, not an averaging opportunity) · then run whole-result verification, because parts that pass individually can fail composed.
- Sequence the merge. Integrate in dependency order, verifying at each join, not all-at-once at the end. A bad result caught at merge #1 costs one redo; at merge #4 it costs archaeology.
Output Format
Orchestration plan: [task]
Do-it-yourself instead? [no, because … / partially — these bits stay with me: …]
| Lane | Subtask (outcome test) | Territory (writes to) | Must not touch | Deliverable shape |
|---|---|---|---|---|
| parallel-1 | | | | |
| sequential-after-1&2 | | | | |
Pinned shared assumptions (in every brief): …
Integration protocol: [merge order · contradiction checks · the composed-result verification]
Quality Checks
- [ ] The delegate-vs-do decision was made explicitly, with the brief-writing cost counted
- [ ] No two parallel lanes write to the same artifact
- [ ] Every brief contains its territory, its must-not-touch, and a stop condition
- [ ] Shared assumptions were pinned before dispatch, not discovered at merge
- [ ] Integration verifies the composed whole, not just each part
Anti-Patterns
- [ ] Do not parallelise for the feeling of speed — two colliding agents are slower than one sequential pass
- [ ] Do not write briefs that reference your context ("as discussed", "the usual way") — subagents weren't in the room
- [ ] Do not average contradictory results — a contradiction is a defect to resolve, with a cause
- [ ] Do not merge everything then verify once — verify at each join while causes are still traceable
- [ ] Do not delegate the judgment-bearing core (the decision, the synthesis, the taste) — delegate the legwork around it
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。
同名技能的其他版本
有 3 个不同仓库或目录里都有叫 subagent-orchestration 的技能。它们内容并不相同,别混用:
- mohitagw15856/pm-claude-skills — Decompose work across parallel subagents properly — task slicing that avoids collisions, b
- mohitagw15856/pm-claude-skills — Decompose work across parallel subagents properly — task slicing that avoids collisions, b