用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/fabioc-aloha/Alex_Plug_In --skill multi-agent-orchestration命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Create and maintain ASCII visual dashboards for project tracking with parallel lane progress bars
Store and manage voice samples for TTS cloning — portable, version-controlled audio references
Clear documentation through visual excellence
正在显示 SKILL.md
基于 SOC 职业分类
| name | multi-agent-orchestration |
| description | Coordinate multiple AI agents for complex tasks — decomposition, delegation, and synthesis |
| tier | standard |
| user-invokable | false |
| applyTo | **/*agent*,**/*orchestrat*,**/*multi*,**/*workflow*,**/*subagent* |
Decompose complex problems into agent-appropriate subtasks, delegate effectively, and synthesize results.
Multi-agent patterns are evolving rapidly. This skill captures stable patterns while acknowledging the field is in flux.
Refresh triggers:
Last validated: February 2026
| Scenario | Single Agent | Multi-Agent |
|---|---|---|
| Simple code edit | ✅ | ❌ Overkill |
| Multi-file refactor | ✅ (if capable model) | ⚠️ Consider |
| Research + implement | ⚠️ Long context | ✅ Decompose |
| Cross-domain task | ❌ Context overload | ✅ Specialists |
| Parallel independent work | ❌ Sequential | ✅ Parallel agents |
| Role | Responsibility | Example |
|---|---|---|
| Orchestrator | Decompose, delegate, synthesize | Main chat session |
| Specialist | Deep expertise in one domain | Security reviewer agent |
| Worker | Execute well-defined subtask | "Find all usages of X" |
| Critic | Validate, review, improve | Code review agent |
Split task into independent subtasks that can run simultaneously.
┌─────────────────┐
│ Orchestrator │
└───────┬─────────┘
│ decompose
┌────┴────┬────────┐
▼ ▼ ▼
┌─────┐ ┌─────┐ ┌─────┐
│ A1 │ │ A2 │ │ A3 │ (parallel)
└──┬──┘ └──┬──┘ └──┬──┘
└────────┼────────┘
▼
synthesize
When to use:
Example: "Search for security issues in auth, api, and database modules"
Chain agents where each builds on previous output.
┌─────────────────┐
│ Orchestrator │
└───────┬─────────┘
▼
┌───────┐
│ A1 │ → research
└───┬───┘
▼
┌───────┐
│ A2 │ → analyze
└───┬───┘
▼
┌───────┐
│ A3 │ → implement
└───────┘
When to use:
Example: "Research best practices → Design API → Implement → Review"
Orchestrator delegates to sub-orchestrators who manage workers.
┌─────────────────┐
│ Root Orch │
└───────┬─────────┘
┌────┴────┐
▼ ▼
┌─────┐ ┌─────┐
│SubO1│ │SubO2│ (sub-orchestrators)
└──┬──┘ └──┬──┘
┌─┴─┐ ┌──┴──┐
▼ ▼ ▼ ▼
┌─┐ ┌─┐ ┌─┐ ┌─┐
│W│ │W│ │W│ │W│ (workers)
└─┘ └─┘ └─┘ └─┘
When to use:
When delegating to a subagent, specify:
| Element | Purpose | Example |
|---|---|---|
| Context | What they need to know | "Working on Alex VS Code extension" |
| Scope | Clear boundaries | "Only look in /src/services" |
| Output | Expected format | "Return JSON with findings" |
| Constraints | What NOT to do | "Don't modify files, only report" |
**Task:** [One-sentence objective]
**Context:**
- Project: [name/type]
- Relevant files: [list]
- What's already done: [state]
**Scope:**
- DO: [specific actions]
- DON'T: [boundaries]
**Expected Output:**
[Format and content expectations]
**Success Criteria:**
[How you'll know it's done right]
| Pattern | When | How |
|---|---|---|
| Concatenate | Independent results | Simple append |
| Deduplicate | Overlapping searches | Hash/compare |
| Vote | Multiple opinions | Majority wins |
| Synthesize | Diverse perspectives | LLM summary |
| Validate | Critical decisions | Critic agent reviews |
When agents disagree:
Identify conflict type
Resolution strategies
runSubagent EffectivelyThe runSubagent tool enables orchestration within VS Code:
// Good: Clear task with expected output
await runSubagent({
prompt: `Search the codebase for all error handling patterns.
Return a JSON array of: {file, line, pattern, quality}`,
description: "Find error patterns"
user-invokable: false
});
// Bad: Vague delegation
await runSubagent({
prompt: "Look for problems in the code", // Too vague
description: "Find issues"
user-invokable: false
});
| Scenario | Approach |
|---|---|
| Simple search | Direct grep_search |
| Complex multi-step search | runSubagent |
| Single file edit | Direct replace_string_in_file |
| Multi-file coordinated change | Consider subagent for planning |
| Research + implementation | Subagent for research, direct for implementation |
Problem: Using multiple agents for simple tasks Symptom: Slower, more expensive, no quality gain Fix: Trust capable models for multi-step tasks up to complexity threshold
Problem: Agents lack needed information Symptom: Repeated clarification requests, wrong assumptions Fix: Front-load context in delegation prompt
Problem: Raw agent outputs dumped on user Symptom: User must manually integrate results Fix: Plan synthesis before decomposition
Problem: Agent A needs B's output, B needs A's output Symptom: Deadlock or infinite loops Fix: Identify and break cycles in task graph
| Framework | Strength | Use Case |
|---|---|---|
| LangGraph | State machines, cycles | Complex workflows |
| AutoGen | Conversation patterns | Research, debate |
| CrewAI | Role-based teams | Business processes |
| VS Code Agents | IDE integration | Code tasks |
| Semantic Kernel | .NET native | Enterprise C# |
Master Alex can coordinate heirs for cross-platform tasks:
Master Alex (orchestrator)
├── VS Code Heir → code analysis
├── M365 Heir → document synthesis
└── Global Knowledge → pattern matching
When Alex runs Skill Selection Optimization (SSO), it's a form of self-orchestration:
When designing multi-agent workflows:
Multi-agent orchestration is powerful but not always necessary. Start simple, add agents when complexity demands it.