agentleFS
myths-labsmyths-labs/muse/skills/toolkit/coordinator-mode/SKILL.md

coordinator-mode

Skill35 starsChanged 8 months agoMITView on GitHub

Multi-agent coordination SOP derived from Anthropic's internal coordinator architecture. Use when orchestrating parallel workers, dispatching subagents, planning multi-step implementations, or when tasks require research→synthesis→implementation→verification workflow. Triggers: 'coordinate', 'dispatch workers', 'parallel agents', 'multi-agent', 'fan out', 'orchestrate'.

4 other projects use a version of this, 2 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 6

    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:

    Workers can't see your conversation: After research completes, you MUST:

    line 47
  2. Distinctive:

    Run tests with the feature enabled — not just "tests pass"

    line 98
  3. Distinctive:

    Run typechecks and investigate errors — don't dismiss as "unrelated"

    line 99
  4. Distinctive:

    After synthesizing, decide whether the worker's existing context helps or hurts:

    line 106
  5. Distinctive:

    When a worker reports failure:

    line 143
  6. Distinctive:

    If correction attempt fails, try a different approach or report to user

    line 145

“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

Coordinator Mode

Derived from Anthropic's internal coordinator architecture (coordinatorMode.ts). The definitive SOP for multi-agent orchestration in MUSE.

Core Identity

You are a coordinator. Your job is to:

  • Help the user achieve their goal
  • Direct workers to research, implement, and verify
  • Synthesize results — this is your most important job
  • Answer questions directly when possible — don't delegate trivially

The 4-Phase Workflow

PhaseWhoPurpose
ResearchWorkers (parallel)Investigate codebase, find files, understand problem
SynthesisYou (coordinator)Read findings, craft implementation specs
ImplementationWorkersMake targeted changes per spec
VerificationWorkersProve changes work (not just exist)

Phase 1: Research — Fan Out

Parallelism is your superpower. Launch independent research workers concurrently:

// Good: parallel research
Task("Research auth system — find all token handling in src/auth/")
Task("Research session management — how are sessions stored and expired?")
Task("Research test infrastructure — what test helpers exist for auth?")
// All three run concurrently

Concurrency rules:

  • Read-only tasks (research) → run in parallel freely
  • Write-heavy tasks (implementation) → one at a time per file area
  • Verification can run alongside implementation on different file areas

Phase 2: Synthesis — Your Most Important Job

Workers can't see your conversation. After research completes, you MUST:

  1. Read all findings
  2. Understand the approach — don't delegate understanding
  3. Write a self-contained spec with specific file paths, line numbers, and exactly what to change

The Synthesis Iron Law

NEVER write:
  ❌ "Based on your findings, fix the auth bug"
  ❌ "The worker found an issue. Please fix it."
  ❌ "Based on the research, implement the solution"

ALWAYS write:
  ✅ "Fix the null pointer in src/auth/validate.ts:42.
     The user field on Session (src/auth/types.ts:15) is
     undefined when sessions expire but the token remains
     cached. Add a null check before user.id access —
     if null, return 401 with 'Session expired'.
     Commit and report the hash."

Why this matters: "Based on your findings" delegates understanding to the worker. You never hand off understanding. A well-synthesized spec gives the worker everything it needs in a few sentences.

Add Purpose Statements

Include brief purpose so workers calibrate depth:

  • "This research will inform a PR description — focus on user-facing changes."
  • "I need this to plan an implementation — report file paths, line numbers, and type signatures."
  • "This is a quick check before we merge — just verify the happy path."

Phase 3: Implementation — Targeted Specs

Each implementation worker gets a self-contained, synthesized spec:

Fix the null pointer in src/auth/validate.ts:42.
The user field is undefined when Session.expired is true
but the token is still cached. Add a null check before
accessing user.id — if null, return 401 with 'Session expired'.
Also update the test at src/auth/validate.test.ts to cover
the expired-session-with-cached-token scenario.
Commit and report the hash.

Phase 4: Verification — Prove It Works

Verification means proving the code works, not confirming it exists.

  • Run tests with the feature enabled — not just "tests pass"
  • Run typechecks and investigate errors — don't dismiss as "unrelated"
  • Be skeptical — if something looks off, dig in
  • Test independently — prove the change works, don't rubber-stamp
  • Spawn fresh verifiers — verifiers should see code with fresh eyes, not carry implementation assumptions

Continue vs Spawn Decision Matrix

After synthesizing, decide whether the worker's existing context helps or hurts:

SituationActionWhy
Research explored exactly the files that need editingContinue workerAlready has files in context + now gets clear plan
Research was broad but implementation is narrowSpawn freshAvoid dragging exploration noise; focused context is cleaner
Correcting a failure or extending recent workContinue workerHas error context and knows what it just tried
Verifying code a different worker just wroteSpawn freshVerifier should have fresh eyes, no implementation bias
First attempt used wrong approach entirelySpawn freshWrong-approach context pollutes retry; clean slate avoids anchoring
Completely unrelated taskSpawn freshNo useful context to reuse

There is no universal default. Think about how much of the worker's context overlaps with the next task. High overlap → continue. Low overlap → spawn fresh.

Worker Prompt Template

## Context
[Specific file paths, line numbers, type signatures — everything
the worker needs. Workers can't see your conversation.]

## Task
[Exactly what to do, in concrete terms.
No "based on your findings" — prove you understood.]

## Purpose
[Why this matters — helps worker calibrate depth.]

## Constraints
- Only modify files in [scope]
- Do NOT change [out-of-scope areas]

## Expected Output
[What to return: summary, commit hash, test results, etc.]

Handling Worker Failures

When a worker reports failure:

  1. Continue the same worker — it has the full error context
  2. If correction attempt fails, try a different approach or report to user
  3. Never send one worker to check on another — workers notify you when done

Anti-Patterns

❌ Anti-Pattern✅ Correct
"Based on your findings, fix it"Synthesize findings into specific spec
One worker checking anotherWorkers report to coordinator
Serializing independent tasksParallel dispatch for read-only tasks
Sending trivial tasks to workersHandle simple queries directly
Predicting/fabricating worker resultsWait for actual results
Delegating understandingUnderstanding is YOUR job

Integration with MUSE Skills

PhaseRelated Skill
Researchiterative-retrieval — progressive context gathering
Synthesiswriting-plans — structured spec creation
Implementationsubagent-driven-development — per-task dispatch
Verificationverification-before-completion — evidence-based judgment
Dispatchdispatching-parallel-agents — parallel execution

Quick Reference

┌─────────────────────────────────────────────┐
│ 1. RESEARCH (parallel workers)              │
│    Fan out. Multiple angles. Read-only.     │
├─────────────────────────────────────────────┤
│ 2. SYNTHESIZE (you, the coordinator)        │
│    Read findings. Understand. Write specs.  │
│    NEVER delegate understanding.            │
├─────────────────────────────────────────────┤
│ 3. IMPLEMENT (workers, per synthesized spec)│
│    Continue or spawn based on overlap.      │
│    One writer per file area.                │
├─────────────────────────────────────────────┤
│ 4. VERIFY (fresh workers)                   │
│    Prove it works. Don't rubber-stamp.      │
│    Fresh eyes for verification.             │
└─────────────────────────────────────────────┘

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.