agentleFS
brilliantroughbrilliantrough/agent-skills/skills/base/multi-agent/SKILL.md

multi-agent

Skill13 starsChanged 30 days agoMITView on GitHub

Coordinate optional native subagents for independent investigation or implementation, with clear write ownership and primary-session integration. Use for multi-agent, Swarm, 多 Agent, 联合开发, 并行开发, or when independent branches each change the deliverable. Ordinary development uses steady-do; project pstack adoption uses trust-pyramid.

10 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

9 rules. 0 are common, 8 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 8

    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:

    Use the host's native subagents to deliver independent branches, not to simulate activity or promise a speedup.

    line 8
  2. Distinctive:

    Read the complete task decomposition and optional worktree guide before launching workers.

    line 10
  3. Distinctive:

    When asked to execute a Plan Brief, start from its dependencies, candidate slices and acceptance checks.

    line 12
  4. Distinctive:

    Start only branches that satisfy the guide's independence and useful-reduction tests.

    line 17
  5. Distinctive:

    Read-only divergent exploration across distinct information axes: launch 3-5 workers in parallel (never pad with redundant lookups).

    line 23
  6. Distinctive:

    No nested delegation except the explicit T3 handoff.

    line 25
  7. Very specific:

    Run the project's relevant checks on the integrated result.

    line 39
  8. Distinctive:

    Run the agreed audit and delivery steps through the authorized endpoint.

    line 40
  9. Distinctive:

    Stop fan-out when branches no longer change the result, coordination exceeds serial work, or the budget is exhausted.

    line 41

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

Use the host's native subagents to deliver independent branches, not to simulate activity or promise a speedup. The primary Agent owns the goal, critical path, integration, and final verification. An explicit request activates this skill, not a quota of workers.

Read the complete task decomposition and optional worktree guide before launching workers. It is the single rule source for branch eligibility, write ownership, isolation, briefs, failure handling, integration, and cleanup.

When asked to execute a Plan Brief, start from its dependencies, candidate slices and acceptance checks. Recheck what has changed and keep the serial path where delegation adds no value. A planning-only request does not start execution workers.

Enter and reduce

  1. State the shared outcome, the primary-session critical path, each proposed branch, and the decision or artifact each branch will change. Include the budget and stopping condition in the existing session todo.
  2. Start only branches that satisfy the guide's independence and useful-reduction tests. Two substantial independent branches are a reason to use this skill, as are 3-5 distinct read-only axes in divergent exploration; a few lookups, coupled edits, sequential dependencies, or an unclear acceptance path are not.
  3. Default to one Agent when no branch qualifies. quick-do keeps implementation in one session; its default standard-quality verification-reviewer is independent review, not an implementation worker. Resolve an explicit multi-agent implementation request as a workflow conflict before launching workers. Other workflows keep their own scope and verification rules.

Launch with explicit ownership

  1. Choose divergent exploration, sectioning, a candidate race, or only the independent stages of a pipeline.
    • Read-only divergent exploration across distinct information axes: launch 3-5 workers in parallel (never pad with redundant lookups).
    • Writable branches: start with at most two workers; scale to 3-5 only under an explicit high-budget workflow (such as goal-run) or user-authorized budget once shared contracts and write isolation are locked.
    • No nested delegation except the explicit T3 handoff.
  2. Choose isolation separately from delegation. Read-only branches share the checkout. Writable branches need declared file ownership; use worktrees only when the guide's overlap, baseline, race, duration, or clean-diff conditions hold. Creating a worktree or copying uncommitted changes requires current user authorization.
    • Isolate ports, devices, dependencies, databases, and other shared runtime state separately.
  3. Give every worker a self-contained brief: exact goal and slice, relevant paths and baseline, allowed write set and resources, forbidden actions, acceptance result or command, budget, stopping condition, and evidence to return. Do not dump the parent conversation or expand permissions.
    • For local source questions, put the route in the brief: glob for paths (find on Pi), grep for content, read for known files. Send independent searches in the same turn; once paths are known, send independent reads together as separate native calls when supported. Read short files whole and long files by complete relevant blocks (offset/limit).
    • Don't wrap those native calls in execute/Code Mode or use shell scripts to find and slice source. Keep shell for execution or a read-only fallback if a native tool is missing or fails; never bypass access denials. Use context correction only if an irrelevant result would get in the way of further work. Once the evidence answers the question, reply without a cleanup turn.
  4. Launch independent workers together through the host's native subagent or documented background mechanism. Continue the primary critical path. Do not create a scheduler, mailbox, DAG runtime, task registry, or second memory system.

Swarm selects a parallel pattern here: collect evidence from every required slice, or agree how to choose a winner before racing candidates. Use the project's adapted pstack Swarm when available; otherwise use native workers. Delegation does not require installing pstack.

Integrate and finish

  1. Consume completion notifications without polling. Do not repeat delegated work; spot-check decisive or conflicting findings. If contracts, ownership, resources, or the baseline break, stop the affected branches and re-plan before any retry.
  2. Inspect each actual diff and evidence, then integrate serially through the project's normal file or Git path. Worker completion and local PASS are branch evidence, not final acceptance. Git mutations and external actions require their own current authorization.
  3. Run the project's relevant checks on the integrated result. Apply verification when its normal triggers apply; do not add a second Reviewer merely because several workers ran.
    • Run the agreed audit and delivery steps through the authorized endpoint. For “到 PR”, open and follow up on the task PR, leaving it unmerged; for “到合并”, check the current head, required approvals and final merged state. Neither Swarm nor plan approval grants those permissions by itself.
  4. Stop fan-out when branches no longer change the result, coordination exceeds serial work, or the budget is exhausted. Preserve and report unfinished work, active sessions, uncommitted changes, and unmerged commits; never discard them during cleanup.
  5. Deliver the integrated outcome, not a bundle of worker summaries. Report the branch mode, isolation used, checks actually run, unresolved gaps, and any worktrees or background work left active.

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.