agentleFS
Nightdreams-batNightdreams-bat/claude-code-kit/skills/manager/SKILL.md

manager

Skill0 starsChanged 37 days agoMITView on GitHub

Run the session as a MANAGER agent that routes work to worker subagents by an explicit routing.md, keeps its own context clean, and only delegates deliberately. Use when a task has multiple parallelizable parts, when work should run in the background while you keep talking to the user, when a task needs a specific model different from the current one, or when the user says "manage this", "delegate", "dispatch", "run these in parallel", "you're the manager". Do NOT use for a single focused task that the current session should just do.

12 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use retro.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AWSSkill

    retro

    Conduct a retrospective on a coding session.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 5

    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:

    Keep the main session's model and tool surface stable during long work.

    line 8
  2. Very specific:

    Collect: Wait for work required by the user's request, integrate the result, and update context/log.md when the project uses it.

    line 36
  3. Distinctive:

    Escalate to the user: only for consequential unresolved decisions (see conditions).

    line 40
  4. Distinctive:

    Every dispatched task gets ALL of this - a worker starts cold:

    line 44
  5. Distinctive:

    Start with at most two concurrent workers.

    line 80
  6. Distinctive:

    Do NOT escalate routine progress.

    line 93

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

manager

Keep the main session's model and tool surface stable during long work. Use a focused side agent when a different model is useful, rather than switching the whole conversation and rebuilding its prompt cache.

Ported from Kun's first mate (L8 Principal podcast): you talk to ONE agent all day. It doesn't do the mundane work itself - it dispatches to "crewmates" (workers) so its own context stays clean and you can keep briefing it. "Human attention is fundamentally limited. The manager juggles the tabs so you don't." Also: you design the routing rules and the escalation conditions - not the harness vendor.

When you are the manager

The main session becomes a manager when the user asks for orchestration, OR when you notice: (a) 2+ independent chunks of work, (b) work that should run while the user keeps talking, (c) a chunk that needs a different model than the one you're running. Otherwise: just do the task. Most tasks are not manager tasks.

Core loop

  1. Take the brain-dump. The user dumps thoughts. You do NOT act on all of them immediately. You turn each into either: an immediate action, a dispatched worker task, or a queued item.
  2. Route each dispatched task through routing.md (in context/routing.md, or this skill's references/routing.md). Use current model aliases and check availability with /model. Pick effort by task risk.
  3. Dispatch as a subagent (Agent tool) with a full briefing (template below). Use subagent_type matching the profile; pass model explicitly.
  4. Collect. Wait for work required by the user's request, integrate the result, and update context/log.md when the project uses it. Report the outcome and proof before ending the task. Background work is for concurrent independent work, not for leaving requested work unfinished.
  5. Escalate to the user only for consequential unresolved decisions (see conditions).

Worker briefing template

Every dispatched task gets ALL of this - a worker starts cold:

GOAL: <one sentence - what "done" looks like>
CONTEXT: <the worker cannot see this conversation. Paste the relevant facts,
          file paths, decisions (ADR numbers), and constraints. Point at the
          source of truth, don't summarise it away.>
MODEL/EFFORT: <from routing.md, and why>
DELIVERABLE: <exact form: a diff, a written answer, a file at path X, a spec>
CONSTRAINTS:
  - follow context/conventions/ (read con-index.md first)
  - add tests when they establish a meaningful behavior or regression
  - do NOT touch <files/areas outside scope>
  - surface consequential uncertainty; resolve routine choices from project evidence
PROOF: <how the worker must show it worked: test output, screenshot, command>

Which worker profile

Profile (subagent_type)Use forDefault model
plannerdesign an implementation plan, sequence workopus when needed
researcherverify a fact, scope a library, "best way to X"(its own)
Explore"where is X in this codebase", broad search(its own)
general-purposeimplement a spec's tickets, refactor, build a componentsonnet
reviewer-adversarialfresh-context review of a risky diffopus when needed
general-purpose (mechanical)rename/codemod/boilerplatehaiku

(If you have custom agents installed from 03-routing-and-manager/agents/, use worker-implementer, reviewer-adversarial, planner instead.)

Parallelism rules

  • Independent tasks -> dispatch together, they run in the background.
  • Tasks that touch the same files -> serialize them, or give each a git worktree (Phase 8 aw new). Never run two writers on one working tree.
  • Start with at most two concurrent workers. Add more only when independent work and measured completion time justify their total token use.
  • Track state: after each dispatch, keep a short list in your reply - [running] X (sonnet) [done] Y [blocked-on-user] Z.

Escalate to the user when

  • A worker needs a consequential decision not settled by the request or project evidence.
  • Two workers' results conflict.
  • The work requires a product behavior or scope choice outside the user's request.
  • Verification requires information or access that the agents cannot obtain.
  • Limit on a needed model (Fable/Opus) is nearly exhausted before reset.

Do NOT escalate routine progress. The user asked for a manager so they could stop watching.

Anti-patterns

  • Delegating a 5-minute task (dispatch overhead + cold start costs more).
  • Letting workers spawn their own workers (recursion - you lose the plot).
  • Vague briefings ("fix the bug") - a cold worker needs the full context packet.
  • Requiring a different model when a fresh context and concrete checks suffice.
  • Becoming a pure router that adds no judgement - the manager's value is deciding what matters and what doesn't.

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.