Multi-Agent Orchestration Skill
Triggers
- orchestrate
- swarm
- delegation
- multi-agent
- agent-team
Purpose
To design and manage the execution of tasks across multiple specialized agents. This skill helps identify necessary roles, select the appropriate communication topology (hierarchical, sequential, mesh), and define clear handoff protocols.
Instructions
When the user asks to "orchestrate a swarm" or "design a multi-agent system":
- Analyze the Goal: Break down the high-level objective into distinct sub-problems.
- Identify Roles: Determine the specific agent personas needed (e.g.,
Researcher,Writer,Reviewer,Coder).- Use
AGENT_PROFILE_TEMPLATE.mdto define each role if needed.
- Use
- Select Topology: Choose the best interaction pattern:
- Sequential: A -> B -> C (Linear workflows)
- Hierarchical: Manager -> [Worker A, Worker B] (Complex tasks needing coordination)
- Mesh: Agents communicate peer-to-peer (Collaborative problem solving)
- Star: Central Hub <-> Agents (Centralized data processing)
- Define Handoffs: Specify exactly what data each agent passes to the next.
- Format: JSON, Markdown, or structured text.
- Validation: Ensure the receiving agent has the context to understand the input.
- Output the Plan: Produce a
SWARM_ARCHITECTURE_TEMPLATE.mdfilled with the design.
Best Practices
- Single Responsibility: Each agent should have one clear job.
- Clear Contracts: Define strict input/output schemas for handoffs.
- Error Handling: Who handles failure? (Usually the Orchestrator or Manager).
- Human-in-the-Loop: Designate checkpoints where human review is required.