/repertoire:agentic-coding-patternsfrom repertoire
Routes recurring failures with coding agents to one of fifteen patterns, checking reasons not to use each. Use when an agent claims done too early, a plan went wrong late, a session repeats a dead end, or unattended runs need safety.
Ships in repertoire. 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.
Match the failure you are hitting to one pattern, check the pattern's own reasons not to use it, and hand the work to the component that implements it. This skill decides; it does not execute. Every pattern is an idea, and whether it is enforced by prose, a hook, a permission rule, or CI is a separate choice made in step 5.
| Problem | You see | Patterns |
|---|---|---|
| Proving it works | A green check that lied; "done" with no command behind it; tests the agent wrote that assert nothing | Verification loop, test-driven agent loop, test ratchet, mutation gate, fresh-context reviewer |
| Deciding what to build | A large diff on the wrong approach; requirements that turned out to be guesses; a fix in the wrong file | Research, plan, implement; interview to spec; fault localization first |
| Keeping context useful | The agent runs the wrong build twice; a fresh session repeats a known dead end; the same correction every week | Instructions as a testing contract, progress file, compound engineering |
| Running unattended work | A loop that spun or spent without finishing; an approval you clicked without reading; parallel agents tangling edits | Ralph loop, circuit breaker, human-gated autonomy, parallel worktree swarm |
Skills are named bare, subagents as repertoire:<name>, workflows as /repertoire:<name>. The reference files carry the full list for each pattern; this column holds the entry point.
| Problem | Pattern | When not | Implemented by |
|---|---|---|---|
| Proving it works | Verification loop | No mechanical oracle, or the only gate is a weak agent-written suite; for a one-line change, run the one test | verification-gate in the main session; browser-check for UI; repertoire:referee when the finish takes judgment |
| Proving it works | Test-driven agent loop | Tests already exist and the job is to pass them; the spec is too vague to encode; the integration harness can't be stood up | test-first-loop in the main session (it delegates to repertoire:test-designer); repertoire:reenactor for a bug |
| Proving it works | Test ratchet | A test is genuinely wrong (fix it as a separate approved change); a measure with no direction, like test count; an instruction with no mechanism behind it | A hook or CI check against the base branch; repertoire:saboteur to find the holes first |
| Proving it works | Mutation gate | Whole-repository on every change; code with nothing to assert; chasing a score | The project's mutation tool, scoped to the diff, survivors reported (no repertoire component) |
| Proving it works | Fresh-context reviewer | As a replacement for executable checks; trivial changes; no round limit set | /repertoire:review-change; repertoire:antagonist, repertoire:stickler, repertoire:archaeologist |
| Deciding what to build | Research, plan, implement | Small changes in known code (plan mode is enough); a hard problem it can't make easier; unattended, where nobody reads the plan | plan-writer; then repertoire:line-cook or /repertoire:worktree-swarm |
| Deciding what to build | Interview to spec | Small clear tasks; requirements already written (hand over the document); the user can't answer the questions | interview-to-spec; ticket-dossier first; repertoire:junior-engineer after |
| Deciding what to build | Fault localization first | The issue names the file and line; the diff fits in one sentence; a small suite makes the coverage ranking meaningless; unbounded search | /repertoire:localize-fault; debugging-protocol in the main session |
| Keeping context useful | Instructions as a testing contract | Documenting the whole build system; a command you haven't verified; fast-changing details; commands that belong in a script | project-initializer |
| Keeping context useful | Progress file | A task that fits one session; in place of commits; mixed with the plan; never rotated | session-handoff; project-initializer creates it |
| Keeping context useful | Compound engineering | Throwaway projects; many-team codebases where lessons outgrow pruning (load on demand instead); lessons the agent writes without review | repertoire:self-improvement-junkie; skill-builder when the lesson is a method |
| Running unattended work | Ralph loop | No command can say it's done; judgment calls or production debugging; mature codebases full of unwritten conventions; anything irreversible | ralph-loop builds the runner, oracle, and limits (manual-only, so tell the user to invoke it by name); project-initializer first on a fresh repository; session-handoff per pass; sentinels for the stop marker; repertoire:referee when the stop takes judgment |
| Running unattended work | Circuit breaker | Leaving it out is not the risk, setting it wrong is: never raise a limit without knowing why the run hit it | ralph-loop sets count, spend, time, and stall limits in its governor (manual-only, invoke by name); for any other runner, the limits live in its flags (--max-budget-usd) outside the agent's control |
| Running unattended work | Human-gated autonomy | In place of a sandbox when production credentials are reachable; the plan gate on one-line changes; gates you approve without reading | Permission rules and the sandbox; repertoire:bookworm for untrusted input; repertoire:junior-engineer at the plan gate; commit-and-pr-author and integrator stop at the merge gate |
| Running unattended work | Parallel worktree swarm | Coupled work (do it in order); shared database, ports, and caches; more agents than you can review; subscription quota | /repertoire:worktree-swarm; repertoire:scrumlord to split; integrator to merge; repertoire:judge for best-of-N |
Read exactly one, chosen by the problem from step 1. Each gives every pattern in the group its what, how, when, when not, and the full set of repertoire components that carry it out.
Done is observable in the hand-off itself: one pattern named, one when-not clause checked in a sentence, one reference read, and one component invoked or one mechanism named with the rung that enforces it.
Report in four parts:
What SKILL.md sets; muted values are Claude Code's defaults
19 skills in this plugin
/browser-checkChecks the agent's own UI work in a real browser by starting the app locally, writing short Playwright scripts that look before they act, reading the console, and fixing what it finds in the same session. Use after changing anything a user sees in a web app, before calling the change done. Not for writing the permanent end-to-end suite, reviewing visual design, browsing external sites, or checking a deployed environment unless the user names one, or proving non-UI work before completion (repertoire:verification-gate)./commit-and-pr-authorTurns a session's changes into a reviewable history. Splits unrelated changes into separate commits, writes each message to the repository's commit convention (discovered first) with the why taken from the conversation, and fills a pull request description with the problem, approach, rejected alternatives, the verification commands actually run with their output, and where to review first. Use when work is ready to commit or a pull request needs writing. Never pushes or opens the pull request unless asked. Not for reviewing the change (/repertoire:review-change), not for fixing CI or review comments on an open pull request (pr-shepherd, taking-review-feedback), and not for merging./consult-codexGets a second opinion from OpenAI Codex by running one read-only, ephemeral `codex exec` and verifying its claims against the source before reporting them. Use when a question benefits from a model with different blind spots, such as risky logic before a merge, a same-model review that keeps approving, or the user asking what Codex thinks. Not for same-model review (/repertoire:review-change, repertoire:stickler), letting Codex edit anything, or calling Claude Code from Codex./debugging-protocolStops the agent from guessing at fixes. Before any fix for a bug, failing test, or unexpected behavior, it reproduces, compares with working code, tests one hypothesis at a time, then fixes from a failing test, asking repertoire:advisor after two failed fixes. Use the moment a fix is about to be proposed, even an obvious one. Not for building new behavior (test-first-loop), for proving finished work before calling it done (verification-gate), or for a bug in unfamiliar code with many suspects, which /repertoire:localize-fault investigates in parallel./delegation-briefMakes the main agent write a full brief before every Agent or Workflow call: the bounded assignment, inputs and revision, owned paths, allowed actions, what is withheld by role, the output shape with permission to return nothing, and the stopping condition; one brief per independent problem when fanning out. Use at the moment of delegation; preload it in repertoire:orchestrator. Not for changing a worker's definition (/repertoire:optimize-component), judging the result (repertoire:referee), or a task smaller than its brief./integratorMerges worker branches one at a time, in dependency order, onto an integration branch, running the full checks after each merge. Stops at the first conflict or failure and names the branch and the check; regenerates lockfiles once at the end; ends at a menu and never pushes or touches the base itself. Use after /repertoire:worktree-swarm or an orchestrator handoff. Not for resolving conflicts, fixing checks, or writing pull request descriptions.npx claudepluginhub stevekinney/repertoire --plugin repertoireOther plugins' skills for the same job