agentsclimarketplace

Dispatching parallel agents

Skill yinqd3/workbuddy-skills/superpowers/dispatching-parallel-agents

A curated collection of WorkBuddy agent skills — academic pipeline, frontend slides, PPTX generator, tool-call repair, and more.

Install
npx -y skills add yinqd3/workbuddy-skills --skill dispatching-parallel-agents

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

需要并行执行多个独立任务时使用。将独立任务拆分为多个子代理同时执行,汇总结果。触发词:并行、同时做、parallel、concurrent、一边一边。

SKILL.md

2.1 KB, as published. Nobody here has run it

派发并行子代理

概述

当多个任务相互独立(不共享状态、不依赖对方结果)时,用并行子代理加速执行。

开始前确认: 这些任务真的独立吗?如果任务 B 依赖任务 A 的输出,不能并行。

WorkBuddy 并行调度

使用 Agent 工具的 run_in_background 参数派发多个子代理并行运行。

使用场景

适合并行:

  • 多个独立的代码审查
  • 同时重构多个不相关的模块
  • 并行数据获取/处理
  • 同时运行不同类型的测试

不适合并行:

  • 任务有顺序依赖
  • 任务共享状态/文件
  • 需要实时协调

调度模式

模式 1:扇出-汇总

派发 N 个子代理 → 等待全部完成 → 汇总结果
# 示例:并行代码审查

GOAL: 审查三个独立模块的代码质量
派发 3 个子代理:
  - 子代理 A: 审查 src/auth/
  - 子代理 B: 审查 src/api/
  - 子代理 C: 审查 src/models/
等待全部完成 → 汇总审查报告

模式 2:扇出-优先

派发 N 个子代理 → 取最快的结果 → 取消其余

用于探索性任务,只需要一个可行方案。

调度协议

每个子代理的提示模板:

GOAL: [一句话 —— 这个子代理要完成什么]
CONTEXT: [为什么需要这个、相关背景]
FILES: [只涉及的文件路径]
CONSTRAINTS: [限制条件 —— TDD、不扩范围、不碰其他文件]
VERIFY: [如何确认成功]
REPORT: [需要的输出格式]

汇总

所有子代理完成后:

  1. 检查每个子代理的输出
  2. 对比一致性
  3. 发现冲突时标记并请求用户决策
  4. 汇总为统一报告

注意事项

  • 并行子代理不共享内存,不要依赖对方的中间状态
  • 避免并行修改同一个文件(会导致冲突)
  • 设置合理的最大并行数(建议 3-5 个)
  • 确保每个子代理有明确的成败标准

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.