orchestrate-mode
Skill15 starsChanged 33 days 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 "delegate execution while I coordinate". Use multi-agent-mode instead when the lead agent should still work directly while delegating helper slices.
In this repository95 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- agent-mailboxSkill
- agent-outputSkill
- ask-gateSkill
- ask-meSkill
- audit-coupled-constantSkill
- budget-checkSkill
- build-prototypeSkill
- caller-optionsSkill
- cold-reviewSkill
- debug-taskSkill
- define-termsSkill
- defuddleSkill
- design-an-interfaceSkill
- diff-recapSkill
- directives-auditSkill
- domain-checkSkill
- double-checkSkill
- extract-signalSkill
- freshness-contractSkill
- github-syncSkill
- handoff-executeSkill
- handoffSkill
- headless-claudeSkill
- headless-codexSkill
- headless-geminiSkill
- headless-grokSkill
- headless-modelsSkill
- headless-update-modelsSkill
- headless-usageSkill
- human-drawSkill
- human-mergeSkill
- human-outputSkill
- human-rewriteSkill
- implement-taskSkill
- improve-codebase-architectureSkill
- insight-adversarialSkill
- insight-anglesSkill
- insight-assessSkill
- insight-critiqueSkill
- insight-cross-examineSkill
- insight-exploreSkill
- insight-premortemSkill
- insight-reference-classSkill
- insight-retroSkill
- insight-root-causeSkill
- insight-skill-gapSkill
- insight-test-assumptionSkill
- insight-value-of-informationSkill
- investigateSkill
- json-canvasSkill
- map-checkSkill
- map-initSkill
- map-maintainSkill
- map-rulesSkill
- map-thisSkill
- monorepo-depsSkill
- multi-agent-modeSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
25 rules. About 0 are common, 21 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈21
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 41
When invoked, immediately announce:
- Very specific: line 52
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 53
If the user exits orchestrator mode without choosing another mode, return to the session's default delegation behavior.
- Distinctive: line 60
MUST spawn a worker under a proven safe workspace boundary for any concrete work action: file edits, code execution, multi-step …
- Distinctive: line 61
MUST provide each worker a self-contained brief: goal, scope, owned files or subsystem, explicit non-goals, acceptance criteria, …
- Distinctive: line 62
MUST state the worker workspace path and whether it is isolated or shared when spawning a worker.
- Distinctive: line 63
MUST inspect each worker's diff, changed paths, or concrete output before accepting the result.
- Distinctive: line 64
MUST independently recompute any verification figure before acting on it.
- Distinctive: line 65
MUST keep worker ownership disjoint.
- Distinctive: line 66
MUST serialize code-changing workers when a shared filesystem makes branch, staging, generated-output, or cleanup mutations unsafe to …
- Distinctive: line 67
MUST surface worker failures, uncertainty, or missing evidence to the user.
- Distinctive: line 68
MUST NOT edit files, run code, or commit directly while this mode is active.
- Distinctive: line 69
MUST NOT spawn more than 3 parallel workers without explicit user confirmation.
- Distinctive: line 70
MUST NOT recurse beyond depth 1.
- Distinctive: line 71
MUST NOT delegate ordinary factual questions.
- Distinctive: line 75
Every concrete worker brief should include:
- Distinctive: line 94
Verify the current branch and workspace before editing.
- Distinctive: line 95
Before the first write, confirm whether the assigned workspace is isolated or shared.
- Distinctive: line 96
Check for unexpected existing changes and report them before touching files.
- Distinctive: line 98
Before any cleanup, inspect for uncommitted changes and refuse destructive cleanup if work is present.
- Very specific: line 107
When workers run in proven isolated worktrees (isolation: "worktree" on Claude Code, or another runtime mechanism with equivalent …
- Distinctive: line 124
Read-only and advisory — no edits.
- Distinctive: line 137
Use orchestrator mode when the session should preserve coordination context and avoid filling the lead agent's context with implementation …
- Very specific: line 139
Use multi-agent-mode instead when the lead agent should still execute some work directly while using helper agents opportunistically.
- Very specific: line 141
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 408,460 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.
A bare request to plan or not execute does not select this mode; explicit orchestrator or delegated-execution intent is required.
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 the session's default delegation behavior.
- Latest explicit mode wins. Do not maintain a hidden mode stack.
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. Keep the lead dispatch-only: missing lifecycle capability stops dependent execution; serialize bounded workers when that resolves the capability limit.
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:
Finite worker / invocation limits, monitoring owner, progress and cancel handle:
Terminal / partial-result contract:
Leaf constraint: do not spawn workers.
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.
- In an isolated workspace, record the starting base before work. Identify the accepted changes against that base, including committed and uncommitted changes, while leaving unrelated state outside the accepted set. 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, spawn a consolidation worker to inspect each prior worker's accepted output against its recorded starting base and transfer the complete accepted delta into the integration worktree. Include accepted committed and uncommitted changes, untracked and binary files, and deletions where applicable. Exclude and preserve unrelated state; do not stage or reset unrelated work. Inspect the integration result and prove it contains the complete accepted delta. Apply cross-scope fixes and regenerate output when the next wave depends on them. Leave changes uncommitted unless the user has approved per-wave commits.
Before a dependent isolated worker reads or changes dependent inputs, prove its actual receiving workspace contains the full prior accepted integration state, including accepted uncommitted work. A worker may initialize, transfer and prove that state as a bounded first step when dispatch creates the receiver; a receiver prepared and proved earlier also satisfies the barrier. Keep concrete initialization and transfer in workers. If permitted transfer or proof is unavailable, stop the dependent work and report the gap. Do not assume a new worktree from HEAD contains uncommitted integration state.
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 use isolated-worktree transfer; 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 enumerate all semantically coupled accepted occurrences within the owned scope and fix that set. Equal literals with different purposes must stay unchanged; report unrelated or out-of-scope matches for consolidation.
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.

