agentleFS
mmNalakammNalaka/nm-skills/skills/multi-agent/SKILL.md

multi-agent

Skill1 starsChanged 6 months agoMITView on GitHub

Use when a task has independent parallel concerns — decomposes into subagents with a dispatch plan approved before execution.

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 14 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 14

    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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Use multi-agent dispatch when:

    line 16
  2. Distinctive:

    Do NOT dispatch agents when:

    line 21
  3. Distinctive:

    Before dispatching, list subtasks and verify independence:

    line 30
  4. Distinctive:

    No shared file writes

    line 31
  5. Distinctive:

    No data dependency between subtasks

    line 32
  6. Very specific:

    Wait for explicit y before dispatching.

    line 56
  7. Distinctive:

    Check for conflicting changes (same file edited by multiple agents)

    line 61
  8. Distinctive:

    Run integration verification: tests, type check, lint

    line 62
  9. Distinctive:

    If conflicts exist: resolve manually before declaring done

    line 63
  10. Distinctive:

    If two agents need to edit the same file, sequence them — don't parallelize.

    line 67
  11. Distinctive:

    When dispatching, give each agent:

    line 73
  12. Distinctive:

    Do not dispatch more than 5 agents in one batch

    line 83
  13. Distinctive:

    Do not dispatch without user approval

    line 84
  14. Distinctive:

    Do not assume subtasks are independent without checking for shared state

    line 85
  15. Distinctive:

    Do not merge agent outputs without verifying no conflicts

    line 86

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

Decompose complex tasks into parallel subagent work. Use when multiple independent concerns need to be addressed simultaneously.

Recommended model: Opus (orchestration reasoning)


When to Use

Use multi-agent dispatch when:

  • 3+ independent files or modules need changes with no shared state
  • Multiple concerns need investigation at the same time (security + performance + correctness)
  • A task has clear subtask boundaries that can be verified independently

Do NOT dispatch agents when:

  • Subtasks share files they will both write to (race condition on changes)
  • One subtask's output is required as input for another (sequence instead)
  • The task is simple enough for a single focused response

Rules

1. Identify independent subtasks

Before dispatching, list subtasks and verify independence:

  • No shared file writes
  • No data dependency between subtasks
  • Each subtask has a clear, verifiable output

2. Assign model per subtask

Task typeModel
Simple lookup, convention check, formattingHaiku
Feature implementation, refactoring, test writingSonnet
Architecture review, complex orchestration, security auditOpus

3. Present dispatch plan and wait for approval

Show the plan before dispatching:

Parallel dispatch plan:
  Agent 1 [Sonnet]: Implement user authentication middleware — output: auth.ts
  Agent 2 [Sonnet]: Write integration tests for /v1/users — output: users.test.ts
  Agent 3 [Haiku]:  Review API design conventions in routes/v1/ — output: findings list

Proceed? [y / n / modify]

Wait for explicit y before dispatching.

4. After agents complete

  • Show each agent's output summary
  • Check for conflicting changes (same file edited by multiple agents)
  • Run integration verification: tests, type check, lint
  • If conflicts exist: resolve manually before declaring done

5. Never dispatch subtasks with shared write targets

If two agents need to edit the same file, sequence them — don't parallelize.


Dispatch Format

When dispatching, give each agent:

  • Clear scope (which files, which concern)
  • Expected output format
  • Constraints (follow ts-api / go-api standards, no scope creep)
  • Model to use

What NOT to do

  • Do not dispatch more than 5 agents in one batch
  • Do not dispatch without user approval
  • Do not assume subtasks are independent without checking for shared state
  • Do not merge agent outputs without verifying no conflicts

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.