agentleFS
allemaarallemaar/open-skills/skills/multi-agent-mode/SKILL.md

multi-agent-mode

Skill15 starsChanged 14 days agoApache-2.0View on GitHub

Activate multi-agent mode: the lead agent still works directly but delegates independent helper slices when useful. Trigger on /multi-agent-mode, "multi-agent mode", "use helper agents", "work with subagents", or "parallelize if useful". Use orchestrate-mode instead when the lead agent must dispatch only and not execute.

The file

Show its rules and text

We split this skill into the rules it gives an agent

19 rules. About 0 are common, 14 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈14

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When invoked, immediately announce:

    line 30
  2. Very specific:

    If the user invokes orchestrate-mode, announce the switch: the lead agent is now dispatch-only and must not execute concrete work directly.

    line 41
  3. Distinctive:

    If the user exits multi-agent mode without choosing another mode, return to the session's default delegation behavior.

    line 42
  4. Distinctive:

    Run or request final verification for the integrated result.

    line 54
  5. Distinctive:

    Do not delegate when:

    line 68
  6. Distinctive:

    MUST keep the lead agent responsible for final outcome, integration, and verification.

    line 78
  7. Distinctive:

    MUST give each helper a self-contained brief: goal, scope, owned files, non-goals, context, acceptance criteria, verification, and expected …

    line 79
  8. Distinctive:

    MUST tell helpers they are not alone in the codebase and must not revert or overwrite others' changes.

    line 80
  9. Distinctive:

    MUST keep helper ownership disjoint.

    line 81
  10. Distinctive:

    MUST resolve and state the runtime's actual workspace boundary before code-changing delegation.

    line 82
  11. Distinctive:

    MUST, when helpers share a filesystem or working tree, restrict parallel code changes to disjoint paths with explicit shared-state …

    line 83
  12. Distinctive:

    MUST inspect helper output, diffs, or changed paths before accepting.

    line 84
  13. Distinctive:

    MUST NOT spawn more than 3 helpers without explicit user confirmation.

    line 85
  14. Distinctive:

    MUST NOT recurse beyond depth 1.

    line 86
  15. Distinctive:

    MUST NOT delegate urgent blocking work when the lead's next action depends on the answer.

    line 87
  16. Very specific:

    Use orchestrate-mode when the lead agent should stop executing and only coordinate.

    line 108
  17. Very specific:

    Use cold-review when the goal is independent outside review of work artifacts.

    line 109
  18. Very specific:

    Use verify for a formal self-gate against intent, plan, and execution artifacts.

    line 110
  19. Very specific:

    Use double-check for same-agent adversarial re-reading of a specific target.

    line 111

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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-mode

Switch the current session into assisted multi-agent behavior. The lead agent remains responsible for planning, direct execution, integration, and final verification, but should actively look for independent slices that helper agents can handle in parallel or in the background.

Activation announcement

When invoked, immediately announce:

Multi-agent mode active.

I will continue working directly, and I may delegate independent helper slices when that improves speed, quality, or context control. I will keep ownership boundaries explicit, inspect helper outputs, and own final integration. Max 3 helpers without confirmation; no recursive subagents.

Then continue with the user's work item if provided.

Mode switching

  • This is a persistent session mode until the user exits it, restarts the session, or explicitly switches to another mode.
  • If the user invokes orchestrate-mode, announce the switch: the lead agent is now dispatch-only and must not execute concrete work directly.
  • If the user exits multi-agent mode without choosing another mode, return to the session's default delegation behavior.
  • Latest explicit mode wins. Do not maintain a hidden mode stack.

Core behavior

The lead agent should do the first decomposition pass locally:

  1. Identify the immediate critical-path work the lead should do directly.
  2. Identify independent helper slices that do not block the next lead action.
  3. Delegate only slices with clear ownership and acceptance criteria.
  4. Resolve whether helpers have isolated workspaces or share the lead's filesystem. Keep working locally only on work that cannot collide with their reads, writes, branch selection, staging, or cleanup.
  5. Inspect helper outputs before integrating or relying on them.
  6. Run or request final verification for the integrated result.

Before dispatch, bind the worker and total invocation to finite deadlines and resource limits, with a named monitoring owner, observable progress, a cancellation handle and terminal success/failure/timeout outcomes. Use native controls; include read-only scope and no-child instructions in research briefs. On failure or timeout, cancel owned work and report retained partial results and unchecked coverage. If these controls are unavailable, do not dispatch. When safe delegation is unavailable, the lead may continue the bounded task inline under this mode.

When to delegate

Delegate when a slice is independent and materially useful, such as:

  • Separate failing test files or unrelated failures.
  • Independent subsystem investigations.
  • Bounded implementation work in disjoint files.
  • A focused review or research question that can run while the lead continues.
  • UI, backend, docs, or migration slices with clear non-overlapping ownership.

Do not delegate when:

  • The task is small enough that delegation overhead exceeds benefit.
  • The root cause is likely shared across all failures.
  • The work needs one coherent global design decision first.
  • Helpers would edit the same files or tightly coupled files.
  • The helper brief would be longer or harder than the task.

Guardrails

  • MUST keep the lead agent responsible for final outcome, integration, and verification.
  • MUST give each helper a self-contained brief: goal, scope, owned files, non-goals, context, acceptance criteria, verification, and expected report.
  • MUST tell helpers they are not alone in the codebase and must not revert or overwrite others' changes.
  • MUST keep helper ownership disjoint.
  • MUST resolve and state the runtime's actual workspace boundary before code-changing delegation. A worker tool or vendor name is not proof of isolation.
  • MUST, when helpers share a filesystem or working tree, restrict parallel code changes to disjoint paths with explicit shared-state coordination; otherwise serialize them. Branch switches, staging, commits, generated files, and cleanup are shared mutations even when source-file pens differ.
  • MUST inspect helper output, diffs, or changed paths before accepting.
  • MUST NOT spawn more than 3 helpers without explicit user confirmation.
  • MUST NOT recurse beyond depth 1. Helpers must not spawn their own helpers.
  • MUST NOT delegate urgent blocking work when the lead's next action depends on the answer.

Helper prompt baseline

You are a helper agent in multi-agent mode. The lead agent is also working. Stay within your assigned scope and do not revert or overwrite changes from others.

Goal:
Scope / owned files:
Do not touch:
Relevant context:
Acceptance criteria:
Verification to run:
Finite worker / invocation limits, monitoring owner, progress and cancel handle:
Terminal / partial-result contract:
Leaf constraint: do not spawn helpers.
Final report must include: changed paths, commands run, result, unresolved risks.

Relationship to other skills

  • Use orchestrate-mode when the lead agent should stop executing and only coordinate.
  • Use cold-review when the goal is independent outside review of work artifacts.
  • Use verify for a formal self-gate against intent, plan, and execution artifacts.
  • Use double-check for same-agent adversarial re-reading of a specific target.

Human output. This skill's handler-facing output obeys the human-output contract (human-output/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.