跳到正文
cccskills
免费在 GitHub 公开中文介绍

dispatching-parallel-agents

将相互独立的缺陷或测试失败分配给不同代理,并行调查和修复。明确各自范围与报告要求,再检查修改冲突、运行完整测试并整合结果。

原文查看原文说明

Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies

AI 评分90分/ 100查看安装方法

适用场景

  • 调查原因互不相关的测试失败
  • 修复不同功能中的独立缺陷
  • 明确多个代理的工作范围
  • 检查并整合并行产生的修复

中文介绍

功能

dispatching-parallel-agents将相互独立的缺陷或测试失败按问题领域拆分,交给不同代理并行调查和修复。每个代理只接收任务所需信息,并明确负责的测试或功能、目标、修改范围和报告内容。任务完成后,会引导审阅各自的原因与修复,检查修改冲突,运行完整测试,再整合结果。

适用场景

适合多个测试文件因不同原因失败,或不同功能分别出现独立缺陷的情况。理解每个问题都不应依赖其他调查的结果,各代理也不能修改相同的文件或占用相同资源。

使用示例

  • “请整理原因互不相关的测试失败,分配给不同代理并行调查。”
  • “请确定各代理的修改范围和需要报告的内容。”
  • “请检查返回的修复是否冲突,运行完整测试并整合结果。”

注意事项

需要支持多个代理并行运行的环境。不适用于相互关联的失败、需要掌握系统整体状态的问题,或使用相同文件及资源的任务。尚不清楚问题所在的探索性调查也不在适用范围内。

本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。

客观评估

AI 仅根据 SKILL.md 的内容,从 4 个方面进行了评估。星标数和热度不计入评估。

指令清晰度能否看出何时使用、做什么
A良好明确用于无依赖、无共享状态的独立任务,并列出不适用条件。
步骤具体性步骤、输入输出和示例是否具体
A良好提供问题分类、代理指令示例、报告要求、冲突检查及完整测试步骤。
安全性发送数据、删除文件、执行命令等是否有说明
A良好限定修改范围,排除共享文件或资源的任务,并要求整合前检查冲突和测试。
安装难易度所需工具和 API 密钥是否少且有说明
B部分不足以多个子代理并行运行为前提,但未指定支持环境或配置方法。

总分按每项 A=25 分、B=15 分、C=5 分相加。 由 AI(OpenAI Codex)于 2026年10月19日 评估。仅供参考,安装前请同时查看原文。

如果您认为评估有误,请申请复核

请写明哪一项有误以及原因。无需登录。我们会对照 SKILL.md 重新评估,并在此处更新结果。

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

包含的文件(1)

  • SKILL.md5.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Dispatching Parallel Agents

Overview

You delegate tasks to specialized agents with isolated context. By precisely crafting their instructions and context, you ensure they stay focused and succeed at their task. They should never inherit your session's context or history — you construct exactly what they need. This also preserves your own context for coordination work.

When you have multiple unrelated failures (different test files, different subsystems, different bugs), investigating them sequentially wastes time. Each investigation is independent and can happen in parallel.

Core principle: Dispatch one agent per independent problem domain. Let them work concurrently.

When to Use

digraph when_to_use {
    "Multiple failures?" [shape=diamond];
    "Are they independent?" [shape=diamond];
    "Single agent investigates all" [shape=box];
    "One agent per problem domain" [shape=box];
    "Can they work in parallel?" [shape=diamond];
    "Sequential agents" [shape=box];
    "Parallel dispatch" [shape=box];

    "Multiple failures?" -> "Are they independent?" [label="yes"];
    "Are they independent?" -> "Single agent investigates all" [label="no - related"];
    "Are they independent?" -> "Can they work in parallel?" [label="yes"];
    "Can they work in parallel?" -> "Parallel dispatch" [label="yes"];
    "Can they work in parallel?" -> "Sequential agents" [label="no - shared state"];
}

Use when:

  • 3+ test files failing with different root causes
  • Multiple subsystems broken independently
  • Each problem can be understood without context from others
  • No shared state between investigations

Don't use when:

  • Failures are related (fix one might fix others)
  • Need to understand full system state
  • Agents would interfere with each other

The Pattern

1. Identify Independent Domains

Group failures by what's broken:

  • File A tests: Tool approval flow
  • File B tests: Batch completion behavior
  • File C tests: Abort functionality

Each domain is independent - fixing tool approval doesn't affect abort tests.

2. Create Focused Agent Tasks

Each agent gets:

  • Specific scope: One test file or subsystem
  • Clear goal: Make these tests pass
  • Constraints: Don't change other code
  • Expected output: Summary of what you found and fixed

3. Dispatch in Parallel

Issue all three subagent dispatches in the same response — they run in parallel:

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"
# All three run concurrently.

Multiple dispatch calls in one response = parallel execution. One per response = sequential.

4. Review and Integrate

When agents return:

  • Read each summary
  • Verify fixes don't conflict
  • Run full test suite
  • Integrate all changes

Agent Prompt Structure

Good agent prompts are:

  1. Focused - One clear problem domain
  2. Self-contained - All context needed to understand the problem
  3. Specific about output - What should the agent return?
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.

Common Mistakes

❌ Too broad: "Fix all the tests" - agent gets lost ✅ Specific: "Fix agent-tool-abort.test.ts" - focused scope

❌ No context: "Fix the race condition" - agent doesn't know where ✅ Context: Paste the error messages and test names

❌ No constraints: Agent might refactor everything ✅ Constraints: "Do NOT change production code" or "Fix tests only"

❌ Vague output: "Fix it" - you don't know what changed ✅ Specific: "Return summary of root cause and changes"

When NOT to Use

Related failures: Fixing one might fix others - investigate together first Need full context: Understanding requires seeing entire system Exploratory debugging: You don't know what's broken yet Shared state: Agents would interfere (editing same files, using same resources)

Real Example from Session

Scenario: 6 test failures across 3 files after major refactoring

Failures:

  • agent-tool-abort.test.ts: 3 failures (timing issues)
  • batch-completion-behavior.test.ts: 2 failures (tools not executing)
  • tool-approval-race-conditions.test.ts: 1 failure (execution count = 0)

Decision: Independent domains - abort logic separate from batch completion separate from race conditions

Dispatch:

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

Results:

  • Agent 1: Replaced timeouts with event-based waiting
  • Agent 2: Fixed event structure bug (threadId in wrong place)
  • Agent 3: Added wait for async tool execution to complete

Integration: All fixes independent, no conflicts, full suite green

Verification

After agents return:

  1. Review each summary - Understand what changed
  2. Check for conflicts - Did agents edit same code?
  3. Run full suite - Verify all fixes work together
  4. Spot check - Agents can make systematic errors

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

brainstorming

免费有简介AI 评分 90分

在开始新功能或项目之前,通过对话明确目的、偏好和限制。根据需要用图示或原型核对理解,并按工作规模整理说明或设计文档。

  • 明确新功能的目的
  • 整理演讲或商业构想
  • 比较界面或房间布局
obra/superpowers30.2万2026年10月10日 更新

diagnosing-superpowers

免费有简介AI 评分 90分

读取 superpowers 会话记录,调查重复工作、偏离计划、耗时及令牌消耗。以文件路径和行号为依据整理经过,生成有证据支持的报告。

  • 调查重复工作或偏离计划的情况
  • 查看会话耗时和令牌消耗
  • 确认技能是否被使用
obra/superpowers30.2万2026年10月10日 更新

executing-plans

免费有简介AI 评分 90分

在同一会话中逐项执行已有的实施计划,确认测试先失败后通过,记录进度与判断,并在全部任务结束后审查整个分支的更改。

  • 执行已有的开发计划
  • 不另派实施代理完成工作
  • 根据进度记录恢复任务
obra/superpowers30.2万2026年10月10日 更新

finishing-a-development-branch

免费有简介AI 评分 90分

在实现完成后检查全部测试,让用户选择本地合并、创建拉取请求或保留现状,并执行所选操作,再根据选择和工作环境整理分支与工作区。

  • 在本地合并已完成的功能
  • 推送分支并创建拉取请求
  • 保留已完成的修改以便日后整合
obra/superpowers30.2万2026年10月10日 更新

receiving-code-review

免费有简介AI 评分 80分

将代码审查意见与实际代码、支持的运行环境及现有行为进行核对,确认建议是否合理,梳理疑问并依据技术证据回复,再逐项修改和测试。

  • 梳理含糊的代码审查意见
  • 核实建议修改的兼容性
  • 检查拟扩展的功能是否实际使用
obra/superpowers30.2万2026年10月10日 更新

requesting-code-review

免费有简介AI 评分 90分

在功能实现后或合并前,请另一个智能体审查代码。整理修改内容、需求和目标提交范围,再根据审查意见的严重程度推进修复。

  • 大型功能实现后的代码审查
  • 合并前检查修改
  • 为复杂问题修复寻求独立审查
obra/superpowers30.2万2026年10月10日 更新

查看 obra 的全部技能

报告此技能的问题