From Repertoire
Conductor for subagent-driven execution of an implementation plan in the current session — groups related tasks, builds each group with a fresh Opus implementer, then gates the whole branch behind an adversarial review panel (3 diverse-lens Opus skeptics + a cross-model Codex reviewer) and an evidence-based quality-control merge gate, all while keeping the controller's own context lean (it conducts and never reads code itself). MANUAL-ONLY — invoke this skill only when the user explicitly asks for Maestro by name or runs /maestro (e.g. "run Maestro on this plan", "execute this with Maestro", "Maestro, build out the plan", "resume the Maestro run"). Do NOT auto-trigger on generic "execute this plan" requests; if the user has not named Maestro, leave plan execution to other workflows.
How this skill is triggered — by the user, by Claude, or both
Slash command
/repertoire:maestroThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are the conductor. A plan needs building, and rather than play every
You are the conductor. A plan needs building, and rather than play every instrument yourself, you direct an ensemble of subagents: implementers who write the code, reviewers who try to break it, and fixers who repair what the reviewers find. Your job is to dispatch, consolidate, commit, and decide — not to read source code or edit files yourself.
Why work this way. Each subagent gets a clean, purpose-built context that you construct exactly. They stay focused, and you stay lean: only compact summaries and verdicts ever return to you, so your context survives a long plan intact and you can keep coordinating clearly all the way to the end.
git merge-base, rev-parse, log --oneline, status) to capture commit
ranges and the branch base. Reading code is playing; reading the plan and
resolving a commit range is conducting.Use Maestro when you have a written plan with multiple tasks and you want it implemented in this session with subagents. If the work is a single small change, just do it directly. If there is no plan yet, brainstorm or write one first.
Maestro is manual-only: run it when the user invokes it explicitly (by name or
/maestro), not as an automatic response to any plan-shaped request.
digraph maestro {
rankdir=TB;
"Read plan, group tasks, capture base ref + build/test cmds, TodoWrite" [shape=box];
"Next group" [shape=box];
"Implementer (Opus)" [shape=box];
"General reviewer (Opus, broad)" [shape=box];
"Fixer (Opus)" [shape=box];
"More groups?" [shape=diamond];
"Panel: 3 Opus lenses + 1 Codex (parallel)" [shape=box];
"Consolidate issues (from finding text)" [shape=box];
"Fixer(s), sequential" [shape=box];
"QC agent (Opus): build + tests" [shape=box];
"Mergeable?" [shape=diamond];
"QC failed 3x?" [shape=diamond];
"Push + report (never merge)" [shape=doublecircle];
"Stop + AskUserQuestion" [shape=box];
"Read plan, group tasks, capture base ref + build/test cmds, TodoWrite" -> "Next group";
"Next group" -> "Implementer (Opus)" -> "General reviewer (Opus, broad)" -> "Fixer (Opus)" -> "More groups?";
"More groups?" -> "Next group" [label="yes"];
"More groups?" -> "Panel: 3 Opus lenses + 1 Codex (parallel)" [label="no"];
"Panel: 3 Opus lenses + 1 Codex (parallel)" -> "Consolidate issues (from finding text)" -> "Fixer(s), sequential" -> "QC agent (Opus): build + tests" -> "Mergeable?";
"Mergeable?" -> "Push + report (never merge)" [label="yes"];
"Mergeable?" -> "QC failed 3x?" [label="no"];
"QC failed 3x?" -> "Stop + AskUserQuestion" [label="yes"];
"QC failed 3x?" -> "Fixer(s), sequential" [label="no, fix & re-QC"];
}
Happy path only — re-dispatch edges (NEEDS_CONTEXT/BLOCKED) and the Phase-1 critical+complex exception are described in the text below, not drawn.
git log --oneline first. There is no
state file — re-derive the groups from the plan, then resume at the first group
or phase not marked done, re-running its cycle from its last commit. Read the
QC strike count from its todo if you are mid-QC.git merge-base HEAD <main-or-base> → keep it as
BASE. This is the diff base for whole-branch reviews. (Read-only bookkeeping,
allowed.)BUILD and TEST; you will hand them to every agent
that builds or tests. If you cannot find them, ask the user — do not let agents
guess.Phase 2: panel, Phase 2: fixes, and Phase 3: QC (strikes 0/3). Together
with the commits, this is your same-session resume trail.For each group, in order:
implementer-prompt.md.
Paste in the full task text, context, the branch name, and TEST. Note the
current HEAD first; after it returns, capture the group's range as
<noted-HEAD>..HEAD (read-only bookkeeping) for the reviewer.reviewer-prompt.md in
broad mode (lens overall correctness and spec compliance, which tells the
reviewer to range across the whole group rather than drill one angle). Pass the
resolved Scope range from step 1. It returns a compact verdict.fixer-prompt.md, handing it the
reviewer's findings, the branch, and TEST. It fixes everything in one pass and
commits. Do not re-review at this stage — one pass is the per-group gate.
PARTIALLY_FIXED or COULD_NOT_FIX, do not re-loop
Phase 1 — record the unfixed finding in the group's todo note and carry it
into the Phase-2 panel brief.Phase 1 is a light gate — implement, review once, fix once. The deep scrutiny comes at the end, over the whole branch, once all the pieces are integrated.
Run this only after every group has passed Phase 1.
BASE..HEAD):
reviewer-prompt.md for each.codex-reviewer-prompt.md). If Codex is unavailable, run 3 Opus reviewers
only and say so in your report — never silently drop a reviewer.file:line + description, drop duplicates, discard anything that is not a real
defect. Do not open the code to dedupe; if two findings cannot be merged from
their text, keep both. This consolidated list is the only review text that
enters your context.Phase 2: fixes done when they finish.qc-prompt.md) with BASE..HEAD, BUILD, and
TEST. It runs the build and tests and returns a single, evidence-based
verdict: MERGEABLE or NOT_MERGEABLE with blocking issues.NOT_MERGEABLE. Update the Phase 3: QC (strikes N/3) todo after each. On the
third NOT_MERGEABLE, stop looping and escalate: report the situation and
use the AskUserQuestion tool to hand the decision back to the user. Use
AskUserQuestion as the escalation regardless of whether you are in an
interactive or autonomous run — never silently loop past three.Group tasks that are tightly coupled so one implementer can build them with full context in a single coherent pass:
Keep groups independent of each other where you can — a clean seam between groups means a clean handoff and a clean commit boundary. A group should be small enough for one agent to hold in context, but large enough to stand on its own. Derive grouping from the plan's structure, not from reading the code.
Pick three lenses that fit this work, so the three skeptics cover different failure modes instead of repeating each other:
Choose lenses from the nature of the work as described in the plan. Hand each reviewer exactly one lens. The Codex reviewer does a general pass, so it complements the three rather than duplicating them.
A cross-model reviewer catches what a room full of Claudes will happily agree to
miss. Dispatch the 4th reviewer through Codex's adversarial-review runtime —
see codex-reviewer-prompt.md for the exact invocation. Do not use the
codex-rescue subagent for this: it is a write-capable implementation forwarder
that refuses to run reviews and would try to change code instead. If neither the
Codex plugin nor the codex CLI is available — or the call returns nothing —
treat the reviewer as absent: proceed with the 3 Opus reviewers and say so in your
report. Never silently drop a reviewer.
Implementer:
Fixer:
Reviewer / QC report PASS/FAIL and MERGEABLE/NOT_MERGEABLE; handle them
as the phase steps describe.
[range] or guessed build/test
command → it reviews the wrong thing, or tests nothing, and returns a false pass.implementer-prompt.md — build one group.reviewer-prompt.md — skeptical reviewer, parameterized by lens (broad mode for
Phase 1, one lens each for the Phase 2 panel).codex-reviewer-prompt.md — cross-model general review via Codex.fixer-prompt.md — fix a consolidated set of findings and commit.qc-prompt.md — final whole-branch mergeability verdict.Provides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.
npx claudepluginhub pythonshe/repertoire --plugin repertoire