返回 Skill 列表
extension
分类: 开发与工程无需 API Key

complex-orchestrator

通过委托给并行子代理来协调多文件任务。当任务跨越多个文件或组件,并且可以通过并行执行来节省上下文和时间时使用。

person作者: jakexiaohubgithub

Parallel Task Orchestrator

Distribute multi-file work across parallel sub-agents to save context and time.

When to Use

Task spans multiple files?
    │
    ├─ Independent? ──────► Full Parallel
    ├─ Some dependencies? ─► Staged Parallel (waves)
    └─ Tightly coupled? ──► Sequential or single agent

4-Step Workflow

1. Decompose

Break into file-scoped units. Identify dependencies.

2. Choose Strategy

  • Full Parallel: All units independent
  • Staged Parallel: Wave 1 (dependencies) → Wave 2 (consumers)
  • Fan-out/Fan-in: Setup → parallel work → integration

3. Delegate in Parallel

Launch multiple Tasks in single message:

Task({ subagent_type: "general-purpose", description: "Edit file A", prompt: "..." })
Task({ subagent_type: "general-purpose", description: "Edit file B", prompt: "..." })

4. Integrate

  • Verify each succeeded
  • Check for conflicts
  • Run integration tests

Sub-agent Prompt Structure

## Scope
File: [path] | Task: [what to do in THIS file only]

## Context
Pattern: [consistent approach across all units]

## Constraints
- Only modify [path]
- Follow existing style

Agent Selection

| Sub-task | Agent | |----------|-------| | Simple edit | general-purpose | | Exploration needed | Exploregeneral-purpose | | Complex logic | advanced-general-purpose |


For detailed examples and troubleshooting, see examples.md