dispatching-parallel-agents
Skill19 starsChanged 2 months agoMITView on GitHub
Superpower Skill:面向 2 个以上无共享状态、无前后依赖的独立任务,并行委派多个 subagent 协同处理的高效分发模式。
136 other projects use a version of this, 107 of them edited.
Adopted by
Most recently taken up by
- invergent-ai/surogatestheir own version, first seen Oct 5, 2026
- blas1n/claude-skillsedited, first seen Oct 4, 2026
- LayneChai/superpowers-dshedited, first seen Oct 3, 2026
- HanksChen0110/skillsedited, first seen Oct 3, 2026
- lsy041015/orchestratheir own version, first seen Oct 2, 2026
- SoftMissT/tudo-sobre-vibe-codingedited, first seen Oct 1, 2026
Used with
Projects with it also use workflow-runner, chinese-git-workflow and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MorningStar0709Skillworkflow-runner
Run an agency-orchestrator style YAML workflow inside the current Trae conversation by simulating or coordinating multiple roles. Use when the user provides a `.yaml` or `.yml` workflow, asks for multi-role collaboration, says things like “用多个角色一起评审这个 PRD”“多角色协作”“先生成工作流再执行”“让产品经理、架构师、QA 一起看一下”, or wants roles such as product manager, architect, reviewer, or QA to work together. Supports layered execution, role prompting, variable interpolation, document-backed inputs, and parallel steps only when the current environment has a clear subagent mapping. Do not use for ordinary implementation plans, simple code changes, or tasks already covered by `writing-plans`, `executing-plans`, `subagent-driven-development`, or single-purpose review/debug skills.
Also in 5 projects that use this
MorningStar0709Skillchinese-git-workflow
Configure Git for domestic platforms and manage branching strategies suitable for Chinese teams. Use when the user asks to configure remotes, set up SSH, or manage Git workflows for Gitee, Coding, Jihu GitLab, or CNB, including requests like "配置国内 Git", "设置 Gitee 远程仓库", "推荐适合小团队的 Git 流程".
Also in 4 projects that use this
shibit-netSkillchinese-code-review
中文 review 沟通参考——话术模板、分级标注(必须修复/建议修改/仅供参考)、国内团队常见反模式应对。仅在用户显式 /chinese-code-review 时调用,不要根据上下文自动触发。
Also in 3 projects that use this
shibit-netSkillchinese-commit-conventions
中文 commit 与 changelog 配置参考——Conventional Commits 中文适配、commitlint/husky/commitizen 中文模板、conventional-changelog 中文配置。仅在用户显式 /chinese-commit-conventions 时调用,不要根据上下文自动触发。
Also in 3 projects that use this
MicrosoftSkilltesting-anti-patterns
Use when writing or changing tests, adding mocks, or tempted to add test-only methods to production code - prevents testing mock behavior, production pollution with test-only methods, and mocking without understanding dependencies
Also in 4 projects that use this
kntismSkilldefense-in-depth
Use when invalid data causes failures deep in execution, requiring validation at multiple system layers - validates at every layer data passes through to make bugs structurally impossible
Also in 3 projects that use this
- +1 more from shibit-net
Other versions136 projects use a version of this.
Word for word · 0
None found.
Edited · 107
- obra/superpowers★ 314k20% same
- jnMetaCode/superpowers-zh★ 8.3k14% same
- openai/plugins★ 7.3k20% same
- coco-research/coco★ 43717% same
- Ibrahim-3d/orchestrator-supaconductor★ 38017% same
- totvs/engpro-advpl-tlpp-skills★ 13818% same
- aaddrick/claude-pipeline★ 12918% same
- Houseofmvps/ultraship★ 12311% same
- LayneChai/superpowers-dsh★ 10220% same
- shibit-net/xuanji-community★ 9313% same
97 more not listed
Wrote their own version · 29
- GanyuanRan/Aegis★ 1.3ksame name
- KbWen/agentic-os★ 206same name
- thiientv/godmode★ 96same name
- withzombies/hyperpowers★ 80same name
- andreaswasita/copilot-agents-dojo★ 54same name
- KbWen/agent-virtual-office★ 35same name
- invergent-ai/surogates★ 27same name
- krzysztofsurdy/code-virtuoso★ 22same name
- MorningStar0709/trae-agent-enhancements★ 18same name
- woxiangyangzhimao/skills★ 14same name
19 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- brainstormingSkill
- diagnosing-superpowersSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- using-git-worktreesSkill
- using-superpowersSkill
- verification-before-completionSkill
- writing-plansSkill
- writing-skillsSkill
The file
Files
并行分发 agent
概述
你将任务委派给拥有隔离上下文的专用 agent。通过精确构造指令与上下文,确保它们保持专注并成功完成任务。它们不应继承你当前会话的上下文或历史——你需要按需精确构造所需信息。这也能保留你自身的上下文,用于统筹协调工作。
当存在多个互不相关的失败时(不同的测试文件、不同的子系统、不同的缺陷),串行排查会浪费大量时间。每一项排查都是独立的,可以并行进行。
核心原则: 每个独立的问题域分派一个 agent,让它们并发执行。
何时使用
digraph when_to_use {
"存在多个失败?" [shape=diamond];
"是否相互独立?" [shape=diamond];
"由单个 agent 统一排查" [shape=box];
"每个问题域分配一个 agent" [shape=box];
"能否并行执行?" [shape=diamond];
"串行分发 agent" [shape=box];
"并行分发" [shape=box];
"存在多个失败?" -> "是否相互独立?" [label="是"];
"是否相互独立?" -> "由单个 agent 统一排查" [label="否 - 存在关联"];
"是否相互独立?" -> "能否并行执行?" [label="是"];
"能否并行执行?" -> "并行分发" [label="是"];
"能否并行执行?" -> "串行分发 agent" [label="否 - 存在共享状态"];
}适用场景:
- 3 个以上测试文件失败,且根因各不相同
- 多个子系统各自独立出现故障
- 每个问题无需依赖其他问题的上下文即可理解
- 各排查过程之间不存在共享状态
不适用场景:
- 失败之间存在关联(修复一个可能顺带修复其他)
- 需要理解完整的系统状态
- agent 之间会相互干扰
使用模式
1. 识别独立的问题域
按故障点对失败进行分组:
- 文件 A 测试:工具审批流程
- 文件 B 测试:批量完成行为
- 文件 C 测试:中止功能
每个领域都是独立的——修复工具审批不会影响中止相关的测试。
2. 创建聚焦的 agent 任务
每个 agent 应获得:
- 明确范围: 单个测试文件或子系统
- 清晰目标: 让这些测试通过
- 约束条件: 不得改动其他代码
- 预期输出: 发现了什么、修复了什么的总结
3. 并行分发
在同一条回复中一次性发起全部三个 subagent 分发——它们将并行运行:
Subagent (general-purpose): "Fix agent-tool-abort.test.ts failures"
Subagent (general-purpose): "Fix batch-completion-behavior.test.ts failures"
Subagent (general-purpose): "Fix tool-approval-race-conditions.test.ts failures"
# 全部三个并发执行。在同一条回复中发起多次分发调用 = 并行执行。每条回复只发一次 = 串行执行。
4. 复核与集成
当 agent 返回后:
- 阅读每一份总结
- 验证各修复之间是否存在冲突
- 运行完整测试套件
- 整合所有变更
agent prompt 结构
优秀的 agent prompt应具备:
- 聚焦 - 一个清晰的问题域
- 自包含 - 包含理解问题所需的全部上下文
- 输出明确 - agent 应该返回什么?
Fix the 3 failing tests in src/agents/agent-tool-abort.test.ts:
1. "should abort tool with partial output capture" - expects 'interrupted at' in message
2. "should handle mixed completed and aborted tools" - fast tool aborted instead of completed
3. "should properly track pendingToolCount" - expects 3 results but gets 0
These are timing/race condition issues. Your task:
1. Read the test file and understand what each test verifies
2. Identify root cause - timing issues or actual bugs?
3. Fix by:
- Replacing arbitrary timeouts with event-based waiting
- Fixing bugs in abort implementation if found
- Adjusting test expectations if testing changed behavior
Do NOT just increase timeouts - find the real issue.
Return: Summary of what you found and what you fixed.常见错误
[FAIL] 范围过大: "修复所有测试" - agent 容易迷失方向 [OK] 具体明确: "修复 agent-tool-abort.test.ts" - 范围聚焦
[FAIL] 缺乏上下文: "修复竞态条件" - agent 不知道位置 [OK] 提供上下文: 粘贴错误信息和测试名称
[FAIL] 缺少约束: agent 可能会重构所有内容 [OK] 明确约束: "不要改动生产代码" 或 "仅修复测试"
[FAIL] 输出模糊: "修好它" - 你无法知道改了什么 [OK] 输出具体: "返回根因与变更总结"
何时不应使用
存在关联的失败: 修复一个可能顺带修复其他——应先一起排查 需要完整上下文: 理解问题需要看到整个系统 探索式调试: 尚不清楚哪里出了问题 存在共享状态: agent 会相互干扰(编辑同一文件、占用同一资源)
来自真实会话的示例
场景: 大规模重构后,3 个文件共出现 6 个测试失败
失败情况:
- agent-tool-abort.test.ts:3 个失败(时序问题)
- batch-completion-behavior.test.ts:2 个失败(工具未执行)
- tool-approval-race-conditions.test.ts:1 个失败(执行次数为 0)
决策: 属于独立领域——中止逻辑、批量完成、竞态条件三者相互分离
分发:
Agent 1 → Fix agent-tool-abort.test.ts
Agent 2 → Fix batch-completion-behavior.test.ts
Agent 3 → Fix tool-approval-race-conditions.test.ts结果:
- Agent 1:用基于事件的等待替代了固定超时
- Agent 2:修复了事件结构缺陷(threadId 位置错误)
- Agent 3:增加了对异步工具执行完成的等待
集成: 所有修复相互独立,无冲突,全量测试通过
验证
agent 返回后:
- 复核每份总结 - 理解变更内容
- 检查是否存在冲突 - agent 是否编辑了同一段代码?
- 运行全量测试 - 验证所有修复协同工作正常
- 抽样检查 - agent 可能存在系统性错误
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

