/model-router:plan-execution [task description] [--providers=anthropic,openai]from Model Router
Decompose a task that is too large or heterogeneous to route as one unit, then route each part with the shared rubric — producing an execution plan with parts, dependencies, a model and effort per part, an assembly shape, and fan-out caps, across the providers the project accepts. Companion to choose-model, which routes atomic tasks and hands off here when it detects a multi-model shape.
Ships in Model Router. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Plan how to run the task in $ARGUMENTS as more than one routed piece of
work. If $ARGUMENTS is empty, evaluate the most recent task the user
described — including a task choose-model just handed off.
You are not doing the task. Do not implement, edit, or execute any part of it, and do not run the commands you end up suggesting. Inspect the repository only to find real part boundaries (project layout, test topology, ownership seams), with the read-only tools above.
The premise is an inversion of the single-task router: decompose first,
route after. choose-model answers "which model for this task" and cannot
answer when the honest answer is plural; this skill cuts the task into atomic
parts and applies the same shared rubric once per part. Nothing here re-defines
scoring — the rubric, tiers, tie-break, and effort rule come from
${CLAUDE_PLUGIN_ROOT}/reference/routing-core.md, and everything
model-specific from the provider policies. This file owns only the
decomposition rules, the assembly shapes, and the plan output.
Accepted providers come from, in order of precedence:
--providers= in $ARGUMENTS — comma-separated; claude is an alias for
anthropic.providers array in ${CLAUDE_PROJECT_DIR}/.claude/model-router.json.anthropic alone.Then read:
${CLAUDE_PLUGIN_ROOT}/reference/routing-core.md — always.${CLAUDE_PLUGIN_ROOT}/reference/review-escalation.md — always; it decides
whether verification remains self-contained or becomes a separate review part.${CLAUDE_PLUGIN_ROOT}/reference/policies/<provider>.md for each
accepted provider, including its Execution-shape notes — they decide
which assembly shapes are even available in that provider's harness and what
they cost.${CLAUDE_PROJECT_DIR}/.claude/model-calibration.jsonl if it exists,
interpreted per the routing core's thresholds — matched per part, by each
part's category slug.First route the task as a unit with the routing core (a quick pass — no output yet). Decompose only when at least one of these holds:
choose-model already
handed off here.Evaluate review-escalation.md after the unit score. Derive its
hypothesis dependence signal from the task description/evidence, not from a
blanket assumption that difficult work is hypothesis-dependent.
If none holds and review stays R0, the task is atomic: output one line —
Atomic task — run /model-router:choose-model instead. — optionally followed
by the unit route you already computed, and stop. A plan for an atomic task is
pure coordination overhead.
Cut the task into parts, each of which must be:
Make dependencies explicit — which parts wait on which, and what each hand-off consists of. Prefer cut lines that fall on real seams:
review-escalation.md resolves to R1–R4,
keep the primary artifact-producing part separate from its reviewer(s).
Reviewers get the review policy's fresh-context input contract, not the
author's reasoning transcript.Keep it to 2–7 parts. More than that means the task should be staged: decompose the first stage fully, list the later stages as one line each, and say that they get their own plan when reached. Do not cut below the coordination overhead — a part whose execution is cheaper than describing its interface should be merged into its neighbor.
Apply routing-core.md once per part, exactly as choose-model would for
a whole task:
repo-scan and
whose schema part logs under schema-migration builds evidence for both
categories at once.Two sanity checks on the finished routing:
Pick the shape that matches the dependency structure — this is where the
multi-model shapes that choose-model only detects get actually planned:
| Shape | Structure it fits |
|---|---|
| Parallel scouts | Independent read-only parts (searches, inventories, analyses) on a mechanical- or workhorse-tier model, fanned out, results joined by the caller |
| Advisor plus implementer | A frontier part produces the plan/spec/review; workhorse parts implement against it. The documented pattern on both providers — see each policy's Execution-shape notes |
| Fresh-context review | R1: primary part followed by a fresh invocation of the same model; buys de-anchoring without model/provider diversity |
| Independent peer review | R2/R3: primary part followed by a fresh-context reviewer on a different model; R3 additionally requires a different accepted provider |
| Review panel | R4: primary part, at most two independent reviewers, then one adjudication step |
| Agent team | Independent workstreams with real deliverables each, under active coordination — a lead, a shared task list, native peer messaging where the harness provides them (see the policies' Execution-shape notes for mechanism, opt-in, and per-teammate model/effort constraints) |
| Orchestrated workflow | Exhaustiveness or adversarial verification structured as fan-out: diverse finder lenses, independent verification of findings, judge panels. Buys coverage and confidence, not intelligence — it never substitutes for the review ladder's capability floor |
| Staged pipeline | Sequential parts too large or too far apart in tier to share a session — each stage a fresh session or subagent, hand-offs written down |
Constraints:
Return exactly this structure and nothing else.
Task: <one line>
Assembly shape: <shape> — <named caps, e.g. "2 reviewers max + 1 adjudicator">
Review level: <R0 | R1 | R2 | R3 | R4> — <why this is the cheapest review level that clears the bar>
Providers: <accepted list>
Confidence: <low | medium | high>
Plan:
| # | Part | Depends on | Provider | Model | Effort | Tier | Oracle |
| - | ---- | ---------- | -------- | ----- | ------ | ---- | ------ |
<one row per part; "-" for no dependency>
Sequencing:
- <what runs in parallel, what waits on what, where the stages break>
Per-part reasons:
- Part <n> (<name>): <highest dimension or override> — why not one tier
cheaper: <the named failure>
Interfaces:
- <part> → <part>: <what is handed over, in what form>
- For review parts: <requirements + constraints + artifact + evidence; explicitly exclude author reasoning on first pass>
Suggested execution:
- <concrete first move per the policies' execution notes: the subagent
prompts to write, the command per stage, the ultracode keyword when the
shape requires it>
Prompt adaptation:
- Before executing each part, run /model-router:prepare-prompt with that part's
provider, model, effort, harness, and executable task prompt. Adapt each part
independently; do not combine different targets into one optimized prompt.
Escalate if:
- <observable per-part or plan-level signal that would justify moving a part up>
Calibration (one command per part, run as each part finishes — or invoke
/log-calibration at each part's end):
python3 "${CLAUDE_PLUGIN_ROOT}/skills/log-calibration/log-calibration.py" \
--provider <provider> --category "<part slug>" --model <alias> \
--effort <level, omit when n/a> --note "plan-execution part <n>/<total>" \
--escalated <?> --corrections <?> --minutes <?> --tests <?> --rework <?>
-review when possible so their
calibration does not get mixed with authoring outcomes.low whenever part boundaries were assumed rather than read
from the repository or the task description.prepare-prompt, do not run the suggested commands, and do not write
anything — Write is disallowed here by design.What SKILL.md sets; muted values are Claude Code's defaults
Use when choose-model's output names a multi-model execution shape (parallel scouts, advisor plus implementer, agent team, orchestrated workflow), or when a task visibly spans parts of different difficulty — a mechanical sweep feeding a judgment call, independent workstreams, work larger than one context window. Never execute the plan.
opushighOther plugins' skills for the same job
npx claudepluginhub jr-jesse123/claude-tookit --plugin model-router4 skills in this plugin
/choose-modelRecommend the cheapest model, effort level, and execution shape likely to complete a proposed task reliably, across the providers the project accepts (currently Anthropic and OpenAI). Routes one atomic task; when the shape turns out to be multi-model, it hands off to plan-execution instead of guessing. Use before coding, debugging, architecture, research, migrations, or long agentic work when the model choice is uncertain./log-calibrationAppend an honest entry to the project's model-calibration log after a task finishes, filling the outcome fields from what actually happened in the session. Companion to the choose-model and plan-execution advisors, which advise before the task and never write./