Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

parallel-agents平行 Agent

Agent Skill

parallel-agents 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

196

周安装

8

GitHub Stars

1

下载量

63
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:parallel-agents(平行 Agent)
来源仓库:https://github.com/sipengxie2024/superpower-planning
仓库路径:skills/parallel-agents
安装命令:
npx skills add https://github.com/sipengxie2024/superpower-planning --skill parallel-agents
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/sipengxie2024/superpower-planning --skill parallel-agents

简介

用于查找、检索和筛选相关信息,支持多线索并行处理。

  • 适合根据关键词或任务场景快速定位候选结果。
  • 适用于 Codex、Claude、Cursor、Gemini CLI 等 AI 工具。
  • 安装命令:npx skills add https://github.com/sipengxie2024/superpower-planning --skill parallel-agents。
  • 建议结合原始文档核验用法,注意权限和操作限制。

SKILL.md

Dispatching Parallel Agents

Overview

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. Each agent gets its own planning directory for structured knowledge capture.

Core principle: Dispatch one agent per independent problem domain with its own planning dir. 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 Per-Agent Planning Directories

Before dispatching, create a planning dir for each agent:

mkdir -p .planning/agents/{role}-task-{N}/

Example for 3 parallel agents:

mkdir -p .planning/agents/fixer-abort-tests/
mkdir -p .planning/agents/fixer-batch-tests/
mkdir -p .planning/agents/fixer-approval-tests/

3. 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
  • Planning dir: Path to its .planning/agents/{role}/ directory
  • Planning rules: The 6 rules for structured knowledge capture
  • Expected output: Summary of what you found and fixed

4. Dispatch in Parallel

// In Claude Code / AI environment
// Each agent gets its planning dir in the prompt
Task("Fix agent-tool-abort.test.ts failures\n\nPlanning dir: .planning/agents/fixer-abort-tests/\n[planning rules]")
Task("Fix batch-completion-behavior.test.ts failures\n\nPlanning dir: .planning/agents/fixer-batch-tests/\n[planning rules]")
Task("Fix tool-approval-race-conditions.test.ts failures\n\nPlanning dir: .planning/agents/fixer-approval-tests/\n[planning rules]")
// All three run concurrently

5. Review, Aggregate, and Integrate

When all agents return:

Batch aggregation:

  1. Read each agent's .planning/agents/{role}/findings.md and progress.md
  2. Extract critical items, errors, and test results from each
  3. Append to top-level .planning/findings.md under agent/task headings
  4. Update top-level .planning/progress.md: update Task Status Dashboard table + append completion details

Integration:

  1. Read each agent's summary
  2. Verify fixes don't conflict
  3. Run full test suite
  4. Integrate all changes

Example aggregation:

<!-- Append to .planning/findings.md -->
## Parallel Fix Session: Test Failures

### Agent: fixer-abort-tests
- Root cause: race condition in abort handler timing
- Fix: replaced setTimeout with event-based waiting
- [From agent] > **Critical for Orchestrator:** abort handler needs upstream fix for edge case

### Agent: fixer-batch-tests
- Root cause: threadId in wrong position in event structure
- Fix: moved threadId to top-level event property

### Agent: fixer-approval-tests
- Root cause: async tool execution not awaited
- Fix: added proper await for tool completion

<!-- Append to .planning/progress.md -->
- [x] Parallel fix session: 3 agents dispatched
  - fixer-abort-tests: COMPLETED (3 tests fixed)
  - fixer-batch-tests: COMPLETED (2 tests fixed)
  - fixer-approval-tests: COMPLETED (1 test fixed)
  - Integration: All fixes independent, no conflicts

Agent Prompt Structure with Planning

Good agent prompts include planning dir injection:

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.

## Planning Directory

Your planning directory is: .planning/agents/fixer-abort-tests/

You MUST follow the 6 planning rules from planning-foundation/templates/agent-context.md

Mark critical items with: `> **Critical for Orchestrator:** [description]`

## 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"

No planning dir: Agent's findings get lost after it exits With planning dir: Knowledge persists for orchestrator aggregation

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

Setup:

mkdir -p .planning/agents/fixer-abort-tests/
mkdir -p .planning/agents/fixer-batch-tests/
mkdir -p .planning/agents/fixer-approval-tests/

Dispatch:

Agent 1 → Fix agent-tool-abort.test.ts (planning: .planning/agents/fixer-abort-tests/)
Agent 2 → Fix batch-completion-behavior.test.ts (planning: .planning/agents/fixer-batch-tests/)
Agent 3 → Fix tool-approval-race-conditions.test.ts (planning: .planning/agents/fixer-approval-tests/)

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

Aggregation: Read each agent's findings.md, compiled into.planning/findings.md

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

Time saved: 3 problems solved in parallel vs sequentially

Key Benefits

  1. Parallelization - Multiple investigations happen simultaneously
  2. Focus - Each agent has narrow scope, less context to track
  3. Independence - Agents don't interfere with each other
  4. Speed - 3 problems solved in time of 1
  5. Knowledge capture - Per-agent planning dirs preserve findings for orchestrator

Verification

After agents return:

  1. Aggregate findings - Read each agent's planning dir, compile into top-level.planning/
  2. Review each summary - Understand what changed
  3. Check for conflicts - Did agents edit same code?
  4. Run full suite - Verify all fixes work together
  5. Spot check - Agents can make systematic errors

Integration with Other Skills

Works well with:

  • superpower-planning:subagent-driven - For sequential task execution with reviews
  • superpower-planning:debugging - When parallel investigation is needed
  • superpower-planning:verification - Run after integrating all agent changes

Real-World Impact

From debugging session:

  • 6 failures across 3 files
  • 3 agents dispatched in parallel
  • All investigations completed concurrently
  • All fixes integrated successfully
  • Zero conflicts between agent changes
  • All findings preserved in.planning/ for future reference

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.55%
按下载量换算22

Claude

29.13%
按下载量换算18

Cursor

18.05%
按下载量换算11

Gemini CLI

9.18%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills