/core:subagent-patternsfrom core
Guides dispatching development work to subagents with decisions on model choice, job type, isolation reason, and wiring strategy. Use when orchestrating multi-agent workflows or seeking independent second opinions.
Ships in core. 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.
This skill helps you decide what to dispatch to a subagent and how. Each dispatch comes down to five choices: whether to dispatch at all, which model, what job the worker does, why to isolate it, and how to wire several together. Make those choices deliberately instead of reaching for a named pattern.
Resolve the five decisions in order, then apply the rules that hold for every dispatch.
Harness note: this skill says dispatch, worker, and the model on the dispatch for whatever your harness calls its subagent tool and per-call model parameter — substitute the equivalents.
sdd-apply run) with a coordinator that gates each task.sdd-apply that already prescribes delegation), do the work in your own context.
If you judge it would help, propose it and wait for a permission grant.code-review skill already owns that procedure (references/standard-review.md and references/deep-review.md); invoke it instead of rebuilding it here.llm, Pi, and the like).
A child harness's permission prompts can't surface back to the user, so its actions escape human oversight.
Keep every dispatch inside your own harness, where approvals still reach the person running it.subagent-patterns.
Skip the notice when the user asked for the skill by name or slash command; spelling and spacing need not match.
A phrase from this skill's own trigger list is not a name — naming the work is not naming the skill.| # | Decision | Default | Change it when | Sets |
|---|---|---|---|---|
| 0 | Dispatch at all? | No; do it inline | output is token-heavy, you need an independent view, or the work is genuinely parallel | whether a subagent exists |
| 1 | Model tier | peer | cheaper if the brief holds the code; stronger if the task exceeds your reach | the model on the dispatch |
| 2 | Role | implement | you need verify, explore, advise, or buffer | tool scope and return contract |
| 3 | Isolation | keep my context clean | you need unbiased judgment, or clean-room independence | what you withhold from the brief |
| 4 | Wiring | one | fan-out, pipeline, panel, or loop | dispatch cadence, and whether you synthesize the results yourself |
Two of these get rushed most often:
For model tier (decision 1), assign it after the steps are written. A task whose brief already contains the code to write is the cheap tier regardless of file count. But turn count beats token price: the cheapest models often take 2–3× the turns, so keep a mid tier as the floor for anything that needs prose reasoning.
The role fixes what the other decisions don't: the worker's tool scope, the shape of its report, and the rules it works under. Set all three in the brief when you dispatch.
| Role | Tool scope | Returns | Rules |
|---|---|---|---|
| implement | write | the change, its commits, a one-line broad-scope test result, and a report-file path | build only what the brief asks: no extra features, refactors, or scope; raise (BLOCKED) rather than guess past missing context or make an unrequested decision |
| verify | read-only | findings, each with a severity, a location, the problem, why it matters, and a suggested direction (not a fix) | treat the report as unverified; judge the delta, not the whole deliverable; never pre-judge ("don't flag X") |
| explore | read-only | the paths, line numbers, and a short map of what lives where | return locations, not walls of prose; change nothing |
| advise (oracle) | read-only | the decision, its rationale, the tradeoffs, and the risks | advise only, never edit; reason from the brief alone; surface the decision for the primary, don't make it |
| buffer | read-only | a digest: the signal (pass/fail, counts) and only the exceptions (failures, warnings) | absorb the raw output; run the broad scope; report pristine-or-not, never the full log |
Set only what the role and task need.
A one-line spec-complete task needs no essay on scope; a design-heavy one does.
Beyond the contract above, leave how the worker does the job to its judgment and to the skills that own that work (code-review for review lenses, tdd for the red-green loop).
An archetype is a preset: a fixed point in the space above. Given a name, read off its coordinates and dispatch from them instead of looking for a catalog entry.
| Archetype | Coordinates |
|---|---|
| implementer:verifier | pipeline[ implement·cheaper → verify·peer+·unbiased ] |
| oracle / consult (little:big) | advise · stronger · read-only · one |
| adversary / red-team | verify · peer+ · unbiased, briefed to refute, not review |
| explorer / scout | explore · peer · read-only · keep-context |
| test-runner / buffer | buffer · cheaper · read-only · keep-context |
| clean-room | implement-or-verify · peer+ · clean-room (withhold the original) |
| steelman | advise · peer+ · unbiased — argue for the set-aside option |
| referee / judge | verify as the last node of a panel; ranks and gives the deciding criterion |
Given a name that isn't listed, resolve it to the five decisions and dispatch from the coordinates. When a name could mean more than one thing ("cleanroom" as a context buffer, or as an independent rebuild), ask which is meant instead of guessing.
The two most common points, start to finish.
A capable coordinator owns the plan, the gates, the ledger, and the dialogue with the user; cheap implement workers do one task each; a stronger verify worker checks every task; you arbitrate.
Per unit of work: brief, dispatch one worker, capture the delta it produced, verify that delta against the source of truth, gate and fix, then log it.
Verify the whole deliverable once at the end.
The full loop, gating, and escalation live in references/review-loop.md.
Worked example: run sdd-apply as the coordinator, with cheap implement workers per task, a stronger verify worker checking each change through the code-review skill, and you as final arbiter.
A cheap primary does the bulk of the work in-context and stays there.
On a decision above its weight — a design fork, a subtle bug, a spec gap — it consults a frontier advise worker, then proceeds.
The oracle is read-only and advisory; the primary stays the actor and keeps ownership.
Brief the oracle with the question stated as a decision to make (not "look at my code"), the minimal code and constraints it needs (it can't see your session), and the options you've already weighed.
Require back the decision, its rationale, and the tradeoffs, never a patch.
Consult sparingly: an oracle on every step is just an expensive coordinator.
These hold whatever you dispatched.
<base>..<head>, review clean) to a file agents can write (not under .git/) and outside the tracked tree.
After compaction, trust the ledger and git log over recollection.code-review, sdd-verify) owns its model resolution, subagent caps, severity, and gating; a skill that forbids subagents (security-triage-finding) means no dispatch at all, even on request.
These defaults apply only when no such skill governs the work.Across every dispatch, you (the coordinator) are the last reviewer and the escalation point. A subagent can't reach the user, so it raises blocks and decisions to you; you decide what to carry up and what to resolve yourself.
references/review-loop.md).advise worker edit code, or briefing it with a question it can't answer from what you pasted.references/review-loop.md — the general verify/gate/fix loop for any deliverable: scoping the check to the delta against its source of truth, treating reports as unverified, no pre-judging, severity gating, the fix loop, and human arbitration (code review defers to code-review).code-review skill (references/standard-review.md, references/deep-review.md, references/review-dispatch.md, assets/prompt-*.md) — the parallel-review procedure, its prompt templates, and build_review_packet.py, reused by the big:little verify step.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3 skills in this plugin
/commit-messageUse whenever a Conventional Commit message is being drafted — whether the user asks ("write commit message", "draft commit from staged changes", "generate conventional commit", "split this into commits") or you are about to propose one proactively after finishing work (e.g. completing tasks, wrapping up a feature, or summarizing staged changes). Invoke before writing the message inline. Not for creating commits, amending history, or full code review./receiving-feedbackYou MUST use this when receiving feedback that evaluates a text-based work artifact you produced or are responsible for — code, specs, design docs, PRDs, proposals, plans, or prose — by asserting a defect, questioning a decision, supplying reasoning, or proposing a change for assessment. Also use when asked to implement external review comments that must first be assessed. Not for an unambiguous parameter choice, approval, confirmation, typo or formatting fix, or direct revision instruction that supplies no claim or rationale to evaluate.Other plugins' skills for the same job
npx claudepluginhub ahgraber/skills --plugin core