orchestrate-mode
Skill14 starsChanged 4 months agoApache-2.0View on GitHub
Activate orchestrator mode in the current session: the lead agent dispatches governed worker subagents and does not execute concrete work directly. Trigger on /orchestrate-mode, "become an orchestrator", "orchestrator mode", "delegate everything", or "do not execute". Use multi-agent-mode instead when the lead agent should still work directly while delegating helper slices.
In this repository70 other files it gives its agents.
- llms.txtllms.txt
- agent-mailboxSkill
- agent-outputSkill
- ask-gateSkill
- audit-coupled-constantSkill
- budget-checkSkill
- caller-optionsSkill
- cold-reviewSkill
- defuddleSkill
- design-an-interfaceSkill
- diff-recapSkill
- directives-auditSkill
- domain-checkSkill
- double-checkSkill
- extract-signalSkill
- freshness-contractSkill
- github-syncSkill
- handoff-executeSkill
- handoffSkill
- human-drawSkill
- human-mergeSkill
- human-outputSkill
- human-rewriteSkill
- improve-codebase-architectureSkill
- insight-adversarialSkill
- insight-anglesSkill
- insight-assessSkill
- insight-critiqueSkill
- insight-cross-examineSkill
- insight-exploreSkill
- insight-retroSkill
- insight-skill-gapSkill
- investigateSkill
- json-canvasSkill
- map-checkSkill
- map-initSkill
- map-maintainSkill
- map-rulesSkill
- map-thisSkill
- monorepo-depsSkill
- multi-agent-modeSkill
- new-skill-creatorSkill
- next-skillsSkill
- obsidian-basesSkill
- obsidian-cliSkill
- obsidian-markdownSkill
- orient-gapsSkill
- orient-mapSkill
- orient-roadmapSkill
- orient-statusSkill
- plan-cleanupSkill
- plan-createSkill
- plan-deep-diveSkill
- plan-evolveSkill
- plan-executeSkill
- plan-phasesSkill
- prime-expandSkill
- prime-fetchSkill
- prime-sweepSkill
- prose-auditSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
28 rules. About 0 are common, 23 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈23
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
- could be automatic: a setting could enforce it
- Distinctive: line 40
When invoked, immediately announce:
- Very specific: line 51
If the user invokes multi-agent-mode, announce the switch: the lead agent is now allowed to work directly and delegate helper slices.
- Distinctive: line 52
If the user exits orchestrator mode without choosing another mode, return to normal single-agent behavior.
- Distinctive: line 57
MUST spawn a worker under a proven safe workspace boundary for any concrete work action: file edits, code execution, multi-step …
- Distinctive: line 58
MUST provide each worker a self-contained brief: goal, scope, owned files or subsystem, explicit non-goals, acceptance criteria, …
- Distinctive: line 59
MUST state the worker workspace path and whether it is isolated or shared when spawning a worker.
- Distinctive: line 60
MUST inspect each worker's diff, changed paths, or concrete output before accepting the result.
- Distinctive: line 61
MUST independently recompute any verification figure before acting on it.
- Distinctive: line 62
MUST keep worker ownership disjoint.
- Distinctive: line 63
MUST serialize code-changing workers when a shared filesystem makes branch, staging, generated-output, or cleanup mutations unsafe to …
- Distinctive: line 64
MUST surface worker failures, uncertainty, or missing evidence to the user.
- Distinctive: line 65
MUST NOT edit files, run code, or commit directly while this mode is active.
- Distinctive: line 66
MUST NOT spawn more than 3 parallel workers without explicit user confirmation.
- Distinctive: line 67
MUST NOT recurse beyond depth 1.
- Distinctive: line 68
MUST NOT delegate ordinary factual questions.
- Distinctive: line 72
Every concrete worker brief should include:
- Distinctive: line 88
Verify the current branch and workspace before editing.
- Distinctive: line 89
Before the first write, confirm whether the assigned workspace is isolated or shared.
- Distinctive: line 90
Check for unexpected existing changes and report them before touching files.
- Distinctive: line 91
Commit or clearly preserve completed work according to the orchestrator's instructions.
- Distinctive: line 92
Before any cleanup, inspect for uncommitted changes and refuse destructive cleanup if work is present.
- Very specific: line 101
When workers run in proven isolated worktrees (isolation: "worktree" on Claude Code, or another runtime mechanism with equivalent …
- Very specific: line 120
Run codegen scripts on main when the next wave's edits depend on regenerated output from prior waves (e.g., npm run sync:domains after a …
- Distinctive: line 121
Leave changes staged but uncommitted unless the user has approved per-wave commits.
- Distinctive: line 132
Read-only and advisory — no edits.
- Distinctive: line 145
Use orchestrator mode when the session should preserve coordination context and avoid filling the lead agent's context with implementation …
- Very specific: line 147
Use multi-agent-mode instead when the lead agent should still execute some work directly while using helper agents opportunistically.
- Very specific: line 149
Use handoff instead when the goal is to transfer the whole task to a fresh session as an artifact rather than switch behavior in the …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.
Files
/orchestrate-mode
Switch the current session into pure orchestrator behavior. The lead agent coordinates, dispatches, reviews, and integrates. It does not edit files, run code, make commits, or perform concrete work directly while this mode is active.
Platform mapping
Resolve the workspace behavior the current runtime actually proves:
- Claude Code: use the
Agenttool withisolation: "worktree"for concrete worker tasks. - Codex and other runtimes: inspect the surfaced worker contract. Do not infer isolation from
spawn_agent, another API name, or vendor identity. - Proven isolated workspaces: parallel code-changing workers may use disjoint worktrees.
- Shared filesystem or working tree: read-only work may run concurrently. Code-changing workers require disjoint write scopes plus explicit coordination of branch selection, staging, commits, generated files, and cleanup; otherwise serialize them. If neither isolation nor a safe shared-workspace plan exists, stop and report that concrete work cannot be dispatched safely.
Activation announcement
When invoked, immediately announce:
Orchestrator mode active.
I will dispatch only, not execute. I will resolve whether this runtime isolates workers or shares their filesystem, assign safe worker boundaries accordingly, and inspect output before accepting it. Max 3 parallel workers without confirmation; depth limit 1. To exit, say "exit orchestrator mode" or switch to another mode.
Then ask for the work item if none was 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
multi-agent-mode, announce the switch: the lead agent is now allowed to work directly and delegate helper slices. - If the user exits orchestrator mode without choosing another mode, return to normal single-agent behavior.
- Latest explicit mode wins. Do not maintain a hidden mode stack.
Rules
- MUST spawn a worker under a proven safe workspace boundary for any concrete work action: file edits, code execution, multi-step implementation, migrations, commits, or test fixing.
- MUST provide each worker a self-contained brief: goal, scope, owned files or subsystem, explicit non-goals, acceptance criteria, verification command, and expected report.
- MUST state the worker workspace path and whether it is isolated or shared when spawning a worker.
- MUST inspect each worker's diff, changed paths, or concrete output before accepting the result.
- MUST independently recompute any verification figure before acting on it. Worker self-reports (word counts, row counts, sweep counts, arithmetic) and reviewer findings are both fallible. Recompute, do not relay.
- MUST keep worker ownership disjoint. Do not let two workers edit the same files or tightly coupled files in parallel.
- MUST serialize code-changing workers when a shared filesystem makes branch, staging, generated-output, or cleanup mutations unsafe to overlap.
- MUST surface worker failures, uncertainty, or missing evidence to the user.
- MUST NOT edit files, run code, or commit directly while this mode is active.
- MUST NOT spawn more than 3 parallel workers without explicit user confirmation.
- MUST NOT recurse beyond depth 1. Workers must not spawn their own workers.
- MUST NOT delegate ordinary factual questions. Answer factual or conversational questions directly.
Worker prompt baseline
Every concrete worker brief should include:
You are one worker in an orchestrated task. You are not alone in the codebase. Do not revert or overwrite changes from other workers. Stay within your assigned scope.
Goal:
Scope / owned files:
Do not touch:
Relevant context:
Acceptance criteria:
Verification to run:
Final report must include: changed paths, commands run, result, cross-scope references you chose to leave for the consolidation step, unresolved risks.For code-changing workers, add runtime-specific workspace checks:
- Verify the current branch and workspace before editing.
- Before the first write, confirm whether the assigned workspace is isolated or shared. In an isolated workspace, verify every written path resolves inside it. In a shared workspace, recheck branch and status before each mutation and stay inside the assigned disjoint pen.
- Check for unexpected existing changes and report them before touching files.
- Commit or clearly preserve completed work according to the orchestrator's instructions.
- Before any cleanup, inspect for uncommitted changes and refuse destructive cleanup if work is present.
For mass-refactor workers, add to the "Do not touch" list by default:
- Files matching
*.generated.*or any*-gen.*codegen output — the orchestrator regenerates these after consolidating source-of-truth changes. - Files outside your owned scope, even if they reference your scope. Report cross-scope coupling as a single line in your final report; the consolidation worker fixes those.
Wave consolidation
When workers run in proven isolated worktrees (isolation: "worktree" on Claude Code, or another runtime mechanism with equivalent evidence), each worktree is created from a commit. Uncommitted changes in another worktree are not visible to a freshly spawned worker.
This means: if Wave 2 depends on filesystem state Wave 1 produced (a directory rename, a regenerated file, an updated path constant), Wave 2 workers spawning from main's HEAD will not see those changes unless the orchestrator consolidates them first.
For isolated worktrees, the integration pattern between waves is to spawn a consolidation worker whose job is to:
- Generate a patch from each prior-wave worker's worktree:
cd <worktree-path> git add -A git diff --staged --binary > <tmp>/wN.patch git reset - Apply each patch to main without committing:
cd <main-repo> git apply --index --whitespace=fix <tmp>/wN.patch - Apply any cross-scope coupling fixes flagged by the wave's workers (e.g., a path constant in worker B that points into worker A's renamed directory).
- Run codegen scripts on main when the next wave's edits depend on regenerated output from prior waves (e.g.,
npm run sync:domainsafter a spec-directory rename). - Leave changes staged but uncommitted unless the user has approved per-wave commits.
The consolidation worker targets the integration worktree by necessity. Treat it as a distinct worker spawn, not as direct orchestrator action. In a runtime where all workers already share one worktree, do not run this patch-consolidation recipe; serialize shared Git mutations and integrate directly from the assigned pens.
Skip the consolidation step between waves only when wave scopes are fully disjoint AND no later wave depends on filesystem state any earlier wave produced.
Final cold-review gate
For orchestrated work with blast radius above roughly 50 files OR with ambiguous match patterns (where regex over-match is a real risk), spawn one final reviewer agent after all waves consolidate. Brief it as:
- A separate worker with NO planning context — pass it the diff and the goal description, not the plan or the worker reports.
- Read-only and advisory — no edits.
- Adversarial — find what looks wrong, half-done, inconsistent, or suspicious.
The orchestrator's own verification checks and the workers' verification checks tend to share patterns, and therefore share blind spots. A reviewer with fresh context breaks that symmetry and catches what the orchestrator rationalized as correct.
Inspect the cold reviewer's report carefully. Treat any "FIX-FIRST" or "BLOCK" verdict as a real gap, not a misunderstanding — dispatch a follow-up worker to close the gap before declaring done.
Spot-check the reviewer's findings, not only the work under review. A reviewer can miscount or misread. Confirm a flagged defect is real before dispatching a fix, and sample a clean verdict before trusting it. The orchestrator's own checks, the workers' checks, and the reviewer's checks are all fallible in different ways.
When a fix targets a value that appears in more than one place — a number repeated in a summary and a detail block, a name reused across files — the fix-worker brief must instruct enumerate-and-fix-all, not fix-one. An incomplete fix that corrects one occurrence and leaves a stale duplicate is a recurring failure mode. Brief the worker to find every occurrence of the old value and fix each one.
When to use
Use orchestrator mode when the session should preserve coordination context and avoid filling the lead agent's context with implementation details, especially for multi-step or parallelizable work.
Use multi-agent-mode instead when the lead agent should still execute some work directly while using helper agents opportunistically.
Use handoff instead when the goal is to transfer the whole task to a fresh session as an artifact rather than switch behavior in the current session.
Human output. This skill's handler-facing output obeys the human-output contract (
human-output/SKILL.md).
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
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.

