agentleFS
VoDaiLoczVoDaiLocz/kilo-kit-mcp/skills/agent-frameworks/multi-agent-orchestration/SKILL.md

multi-agent-orchestration

Skill27 starsChanged 3 months agoApache-2.0View on GitHub

Use when coordinating multiple specialized agents for complex distributed tasks. Keywords: multi-agent, orchestrator, subagent, handoff, swarm, supervisor, agent topology, coordination.

15 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use api-design.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    api-design

    Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 11 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When tasks are too large or diverse for a single agent (scope creep).

    line 13
  2. Distinctive:

    When specific domain expertise (e.g., database design, UI/UX, security) is required in separate, modular contexts.

    line 14
  3. Distinctive:

    When you need to delegate parallelizable work to maximize throughput.

    line 16
  4. Distinctive:

    Agent-to-Agent (A2A): Always use structured message framing.

    line 26
  5. Very specific:

    Return Summaries: Every subagent MUST return a concise summary of work done, resources created, and final status (SUCCESS/FAIL/BLOCKED) …

    line 28
  6. Distinctive:

    Avoid Token Bloat: Do not pass the entire parent conversation history unless strictly necessary.

    line 32
  7. Distinctive:

    Parallel Execution: Use when tasks are independent (e.g., unit tests for different modules, gathering info from multiple docs).

    line 41
  8. Distinctive:

    Sequential Execution: Use when tasks have strict causal dependencies (e.g., design -> implement -> review -> deploy).

    line 42
  9. Distinctive:

    Shared Artifacts: Write common results to files in the shared artifacts/ directory.

    line 46
  10. Distinctive:

    Blackboard Memory: Use shared databases or documented state files for common configurations or global project context.

    line 47
  11. Distinctive:

    Message Bus: Use the parent agent as the hub for all inter-agent messages.

    line 48
  12. Distinctive:

    Final Integration: Verify the combined results of all subagents against original user acceptance criteria.

    line 59

“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Multi-Agent Orchestration

Overview

This skill provides a framework for designing and managing multi-agent systems where specialized agents collaborate on complex, multi-stage workflows. It emphasizes clear agent boundaries, structured communication, and robust error isolation.

When To Use

  • When tasks are too large or diverse for a single agent (scope creep).
  • When specific domain expertise (e.g., database design, UI/UX, security) is required in separate, modular contexts.
  • To maintain clean separation of concerns and reduce context window degradation.
  • When you need to delegate parallelizable work to maximize throughput.

Topology Patterns

  • Hierarchical Supervisor: A central supervisor agent delegates sub-tasks to specialized workers, aggregates their results, and provides final synthesis.
  • Swarm Handoffs: Agents pass tasks directly to the next appropriate agent based on completion criteria, forming a chain or graph of expertise.
  • Router-Worker: A router analyzes incoming requests and dispatches them to a specific pool of workers based on classification.
  • Blackboard: Multiple agents read from and write to a shared persistent state (the "blackboard") until a task objective is satisfied.
  • Round-Robin Debate: Agents with opposing viewpoints propose solutions, iterate, and refine based on peer criticism to improve quality.

Communication Protocols

  • Agent-to-Agent (A2A): Always use structured message framing.
  • Structured Payloads: Encapsulate tasks, constraints, and dependencies in a common JSON format or structured Markdown.
  • Return Summaries: Every subagent MUST return a concise summary of work done, resources created, and final status (SUCCESS/FAIL/BLOCKED) before closing the conversation.

Context Isolation & Boundary Hand-offs

  • Ephemeral Context: Spawn subagents with only the minimal, high-signal information needed for their specific task.
  • Avoid Token Bloat: Do not pass the entire parent conversation history unless strictly necessary. Pass pointers to file locations or artifact links instead.
  • Clean State: Each subagent should operate within its own branched workspace to prevent side effects on the parent or other subagents.

Failure Isolation

  • Localized Faults: Subagent crashes must be caught by the parent via message timeout or error reporting mechanisms.
  • Graceful Retries: Implement retry logic for discrete sub-tasks. If a worker fails, the supervisor should attempt to diagnose the root cause (using Root Cause Tracing) before retrying or pivoting strategy.
  • Never Crash Parent: A subagent failure should trigger an alert in the parent agent, not an unhandled exception that propagates to the user.

Task Decomposition Strategies

  • Parallel Execution: Use when tasks are independent (e.g., unit tests for different modules, gathering info from multiple docs).
  • Sequential Execution: Use when tasks have strict causal dependencies (e.g., design -> implement -> review -> deploy).
  • Merge Points: Define clear synchronization points where context from different agents is consolidated, validated, and refined by the supervisor.

State Sharing Patterns

  • Shared Artifacts: Write common results to files in the shared artifacts/ directory.
  • Blackboard Memory: Use shared databases or documented state files for common configurations or global project context.
  • Message Bus: Use the parent agent as the hub for all inter-agent messages.

Anti-patterns

  • God Orchestrator: A single agent attempting to do everything; leads to poor specialization and context degradation.
  • Circular Dependencies: Agents waiting on each other indefinitely; always define a clear directed acyclic graph (DAG) of task flow.
  • Context Explosion: Passing the entire project state to every subagent; use selective scoping instead.
  • Silent Failures: Subagents finishing without reporting status; every interaction must have an explicit "done" or "blocked" signal.

Quality Gates

  • Pre-Handoff Check: Does the subagent have everything it needs? (Requirements, constraints, deadline).
  • Post-Handoff Review: Does the output meet the original task intent? Does it need further refinement before the next step?
  • Final Integration: Verify the combined results of all subagents against original user acceptance criteria.

References

  • KILO-KIT Core Principles (skills/kilo-kit/SKILL.md)
  • Systematic Debugging (skills/systematic-debugging/SKILL.md)
  • Architecture Decision Making (skills/architecture/SKILL.md)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.