/mattpocock-skills:orchestratefrom mattpocock-skills
Manages a hand-relayed loop between a coding-agent session and non-agentic specialist models in separate chats. You write briefs, the user carries them out, and replies return as captured text or files.
Ships in mattpocock-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The user relays briefs by hand: you write a brief for a separate specialist chat and acquire its reply from captured message text or a saved file, with chat transcription a degraded last resort. The specialist has no tools, no repository and no knowledge of this session — what is not in the brief does not exist for it. You own every read, write, decision and integration. Give the specialist judgment where the task leaves room, or a fixed execution contract where the transformation is settled; acceptance stays with you.
Before any work, read the user's standing declarations file, ~/.config/orchestrate/declarations.md, user-owned and outside this repo. If missing, create it with blank creative:, iterative:, briefs:, rounds:, integration:, bytecheck:, byte-check: and cleanup-after-yourself: lines. Read existing prose and keys without migrating the file; it may settle specialists and their opener lines, brief and round folders, who applies changes, the tool path, byte-check defaults and cleanup. A references: line may name read-only trees that are not the repository (name → path: a vendor or kernel copy, a sibling checkout); route questions about them through a sub-agent, cite what it finds as reference facts under the tree's name — never as repository facts — and write nothing there.
Role labels are free text, not a two-name whitelist. Keep creative: and iterative: as valid shorthand; accept role: <label>; specialist: <name>; mode: <brief mode> with optional memory and budget overrides. One specialist may fill several roles. Current instructions override standing defaults and round-close defaults, including consultation limits; a session-only choice is not a new standing default. Write back only defaults the user explicitly adopts, preserving unrelated declarations. Recommend cleanup-after-yourself: yes rather than adopting it; its evidence-retention boundary is in bytecheck.md.
If the session opens from a hand-off document, or the user asks to pick up earlier work, read handoff.md before restating the task: what the document carries is restated for correction, not asked again.
Restate the task and ask at most one round of questions, covering only what neither the user nor the file settles and what has no reasonable default:
rounds: says otherwise);bytecheck.md now;Say roughly how long each foreseeable gate will keep the user waiting, or that you cannot tell yet.
If the task turns on a choice of architecture, pattern, data model or concept that neither the repository nor the user has settled, and that would be costly to take back, read decision.md before the first implementing brief — and again whenever such a choice surfaces later; a clear task skips it.
If the task is to stop something that keeps going wrong in the repository, or to make it easier for agents to work in, read correction.md before the first brief: it acts only on friction that has already recurred, and passes any choice still open to decision.md.
Your session degrades as it reads: context fills, reasoning goes stale. Use sub-agents freely — to investigate (code, a reply's claims, gate timings) and to implement (apply integrated changes, run gates). Give them paths, not pasted content, and ask for findings with paths and line ranges, marked observed or inferred — no file dumps. A sub-agent's finding is a claim like a specialist's: confirm against disk what you act on. Decisions, the wording of briefs and the verdict on each reply stay with you. Code enters a brief by copy from disk, by command or sub-agent; re-typing from memory paraphrases.
When you integrate, set the commit boundary before delegating: by default a sub-agent stops after each verified batch so the user can make its commit; a run spanning several batches needs an agreed policy in its brief naming the permitted batches, and the eventual commit enumerates those actually integrated. Do not promise per-batch commits while unpaused writes accumulate. Commit authority is the user's; preserve unrelated working-tree changes.
All of this slows the degrading; none of it stops it. When the context was compacted or is nearly full, the user repeats a correction, or you re-read what you have read — and when a round closes with new work to follow, or the user asks to hand off — read handoff.md: the work passes to a fresh session.
The user declares who plays each; use those names afterwards. The numbers are observed defaults that a declaration overrides.
executor.md before its first brief. This is an execution mode, not a third memory profile; keep the declared specialist's actual limits. Decision and review briefs still ask for judgment, not mechanical compliance.Place another specialist by the same properties: memory, input budget, output cap, timeouts, temperament. A free-text role names its job; the brief mode names its contract. Neither overrides the model's actual limits.
Short where it speaks, thorough where it quotes.
executor.md, with no implied freedom to redesign them.Open every brief with this, plus any line the user declared for that specialist:
Answer as a chat model — no agentic operations. Do not run tools, commands or tests, and do not change any of your settings; an agentic session does all of that.
Close with an output contract — what to return, in what order; a size cap inside the capacity's output budget, and the time limit where one applies; what to trim first (commentary before artifacts); and the reply's shape, which is what makes harvest mechanical: first line reply <n>-<slug> (the phrase acquisition searches for); every artifact to be placed bounded by two unique marker lines the brief dictates — plain text on their own lines, blank-separated, such as === begin <name> === and === end <name> === — because a rendered copy keeps such lines and eats fences: fence the artifact inside them, never make the fence the boundary; where the transport eats line breaks, each artifact may be carried as one physical line between its marker lines, every break replaced by a literal marker the brief dictates, absent from the artifact (U+23CE, ⏎, has served) — decode it mechanically after the cut; an end sentinel that exposes a cut-off reply (COMPLETE unless the brief says otherwise). Then this line:
Before answering, challenge key assumptions, consider a credible alternative, and check likely failure cases; give the requested output with concise rationale and any material uncertainties.
Staging. When one Creative reply cannot hold the result, split the work by deliverable, tell each brief which stage of how many it is and what the others cover, and write only the next brief; later ones are composed from the repository as it stands after integration.
One brief at a time. Save it as <n>-<slug>.md in the session's brief folder — one brief per file and nothing else in it, so the user copies the file whole; round folders and other session files may live beside the briefs. The user chooses the folder; if none is named, create a new empty one outside any tree a gate, a byte-check or a sync client covers, say where it is, and use only it. If the folder already holds numbered briefs — from any project — continue at the next number; in a fresh folder, start at 1. Then tell the user, without echoing the brief into chat: path and size; the capacity it targets and why, in one line; whether it opens a new chat or continues an earlier brief's thread. Note the hand-over time: acquisition scopes its search by it. Wait for the reply or its file path.
Acquire the reply once, by the ladder in bytecheck.md's Harvest — it applies with byte-checking on or off — and work from its file: pass paths to sub-agents, cut and place accepted artifacts by command, never re-type a harvest. An acquired file proves received text, not upstream fidelity; identify transport repairs as your edits. Salvage-integrate, never trust wholesale: check each part against the repository and the requirements, keep what holds, correct or reject the rest. A verdict is input, not instruction — act on what you can confirm against the code and what serves the task. For an Executor, acceptance follows the frozen contract and task verifier, not an improvised rewrite of either. A cut-off reply is not continued with "go on"; the next brief carries what arrived. Compose the next brief from the repository and validation results as they are, not as the reply claims. A reply that brings a costly-to-undo structure nobody chose — a new layer, dependency or pattern — is not integrated on its own say-so: that part waits on decision.md.
review.md): a bug-finding brief over what the round produced, before any gate. By default one pass to the Iterative capacity; the user may name other reviewers or ask for several in turn. It looks for what would break, not for polish.bytecheck.md) after the last edit, where the user asked for it. Under hand integration it proves the tree untouched and renders the deliverable's diff book.correction.md, named, not acted on.decision.md, correction.md, review.md, bytecheck.md, executor.md and handoff.md sit beside this file; read each when its moment comes, not at the start. Asked for only one of them, run it alone under the rules above.
agents/openai.yaml (opens in a new tab)bytecheck.cmd (opens in a new tab)bytecheck.md (opens in a new tab)bytecheck.py (opens in a new tab)correction.md (opens in a new tab)decision.md (opens in a new tab)declarations.master.md (opens in a new tab)executor.md (opens in a new tab)extract-reply.md (opens in a new tab)extract-reply.py (opens in a new tab)handoff.md (opens in a new tab)opencode-capture.ts (opens in a new tab)review.md (opens in a new tab)tests/test_extract_reply.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
orchestration, handoff, multi-agent, briefing, session-management
Generated from the plugin's indexed repository (vasyapym/vasyapym.github.io) — no native marketplace selected
npx claudepluginhub p/vasyapym-mattpocock-skills50 skills in this plugin
/ask-mattAsk which skill or flow fits your situation. A router over the skills in this repo./brainstormInspect the full diff and surrounding architecture, then propose high-leverage improvements without editing files./bug-iterationFix a reported bug — especially one that has returned after a previous fix — by reproducing it, diagnosing the root cause rather than the symptom, gating every change behind a regression test, stating exactly what was and wasn't verified, and closing with a compact pass report./claude-handoffHand the current conversation off to a fresh background agent that picks up the work immediately./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary./code-iterationImplement and refine code through small, evidence-backed verification passes.Other plugins' skills for the same job