agentleFS
mmccallammccalla/coding-agent-skill-library/skills/multi-agent-collaboration/SKILL.md

multi-agent-collaboration

Skill4 starsChanged 5 months agoApache-2.0View on GitHub

Use when designing or implementing systems with multiple specialised agents, including supervisor-worker, sequential hand-off, parallel specialists, debate/review, or agents-as-tools patterns.

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill only when a single agent becomes a bottleneck because the task needs distinct expertise, tools, permissions, workstreams or …

    line 10
  2. Distinctive:

    Use deterministic validators between agents.

    line 29
  3. Distinctive:

    Add observability: trace ID, agent name, input, output, tool calls and errors.

    line 30
  4. Distinctive:

    Test each agent independently and the orchestration end-to-end.

    line 31
  5. Distinctive:

    Avoid peer-to-peer free-for-all communication unless there is a clear need.

    line 35
  6. Distinctive:

    Do not let worker agents change shared state without a coordinator or transaction boundary.

    line 36
  7. Distinctive:

    Keep privileges minimal by role.

    line 37

“Common” is measured: kept by at least 6 in 10 of the 4 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 Collaboration

When to use

Use this skill only when a single agent becomes a bottleneck because the task needs distinct expertise, tools, permissions, workstreams or review roles. Prefer a single agent plus tools for simple workflows.

Objective

Coordinate specialised agents with explicit roles, schemas, orchestration, and traceability.

Collaboration patterns

  • Sequential hand-off: one specialist produces an output for the next.
  • Parallel specialists: independent branches work concurrently and merge results.
  • Supervisor-worker: a coordinator assigns tasks and synthesises outputs.
  • Debate/review: agents critique alternatives before a decision.
  • Agent as tool: a specialist agent is exposed behind a narrow callable interface.

Procedure

  1. Define each agent's role, goal, allowed tools and boundaries.
  2. Define message schemas and hand-off contracts.
  3. Define the orchestration pattern and stopping conditions.
  4. Use deterministic validators between agents.
  5. Add observability: trace ID, agent name, input, output, tool calls and errors.
  6. Test each agent independently and the orchestration end-to-end.

Guardrails

  • Avoid peer-to-peer free-for-all communication unless there is a clear need.
  • Do not let worker agents change shared state without a coordinator or transaction boundary.
  • Keep privileges minimal by role.
  • Make final synthesis grounded only in supplied agent outputs unless external retrieval is explicitly part of the workflow.

References

Verification

  • Roles and responsibilities are non-overlapping.
  • Communication schema is explicit.
  • Orchestration pattern is documented.
  • Failure and retry behaviour is defined.
  • End-to-end traceability exists.

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.