/workbench:ship-openspec-changefrom workbench
Autonomously drive one or more existing OpenSpec changes from proposal to done — fast-forward the remaining artifacts (Opus), implement with a Sonnet high-effort subagent, triage the diff (S/M/L) to size the review, verify (Opus) + multi-agent code review (Opus) + a high-level senior adviser review (Fable) in parallel, apply fixes with a cold Opus high-effort subagent and have Fable re-check them, then summarize. Runs multiple changes sequentially. Use when the user names one or more existing OpenSpec changes and wants them implemented / shipped end-to-end.
Ships in workbench. 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.
None: SKILL.md is the whole skill.
You are the orchestrator for an autonomous implementation loop over one or more already-existing OpenSpec changes. A proposal (at minimum) already exists for each — this skill does not create changes from scratch.
Run the whole pipeline autonomously. Do not pause for confirmation between phases. Only stop and ask the user if something is genuinely blocked (missing change, tool unavailable, ambiguous change name with multiple candidates, or a phase fails in a way you cannot resolve).
One or more change names (kebab-case), passed as arguments, e.g.
ship-openspec-change add-user-avatars migrate-settings-to-v2.
openspec list --json; if exactly one change is in progress, use it; otherwise use AskUserQuestion to let the user pick (allow selecting several). Do not guess.--tier S|M|L → overrides the Phase 3 triage for every change in this run. Announce the forced tier in the summary and carry on; do not ask.For each change you process, set CHANGE=<name> and run Phases 1–5 for it before moving to the next.
When given a list CHANGES = [c1, c2, …]:
openspec list --json (or openspec status --change <c> --json per item) and confirm every named change exists. Report any unknown names and drop them before starting; if none remain, stop.CHANGE, run Phases 1–5. Emit the Phase 5 per-change summary before starting the next one, so progress is visible incrementally.Everything below describes the pipeline for a single CHANGE.
model (or use an agent type that pins it) on every Agent call so nothing inherits Fable by accident.Agent with subagent_type: "sonnet-high" (pins model: sonnet, effort: high). If that agent type is not available, use subagent_type: "general-purpose" with model: "sonnet" and effort: "high".Agent with model: "opus", subagent_type: "general-purpose") do the spec fast-forward and the verify pass. Tell each one, in its prompt, to invoke the relevant skill via the Skill tool and to return a structured result.pr-review-toolkit agents (Phase 3b), launched by YOU in parallel, every one of them pinned to model: "opus". Pass each reviewer the diff scope explicitly and require structured findings back. Do not wrap them in another subagent, and do not use an external review service.Agent with subagent_type: "opus-high" (or general-purpose with model: "opus", effort: "high" if that type is unavailable). "Cold" means no inherited conversation context: it gets only the change name, repo paths, and the consolidated findings list.Read status:
openspec status --change "$CHANGE" --json
If the command errors (change not found), stop and tell the user.
Decide if it's apply-ready:
isComplete is true, i.e. every artifact listed in applyRequires has status: "done" in artifacts.If not apply-ready, spawn an Opus subagent to fast-forward the remaining artifacts:
Agent with model: "opus", subagent_type: "general-purpose".Skill(opsx:ff) with args "$CHANGE" (equivalently the openspec-ff-change skill) — generating all artifacts needed for implementation (proposal → design → specs → tasks as required by applyRequires). It must NOT start implementation. Ask it to return: the list of artifacts it created/completed and any assumptions or open questions.Re-run openspec status --change "$CHANGE" --json and confirm isComplete: true. If still incomplete after one fast-forward pass, surface the blocking artifact(s) to the user and stop.
Nothing is committed during a run, so earlier changes in the same run and any work that was already uncommitted share the working tree with this change. Before spawning the implementer, snapshot the baseline so this change's own files can be told apart later:
git rev-parse HEAD # BASE
git status --porcelain # BASELINE_DIRTY — files already modified or untracked
Spawn a fresh implementation subagent (you, the orchestrator):
Agent with subagent_type: "sonnet-high" (fallback: general-purpose + model: "sonnet" + effort: "high").$CHANGE in the repo at <repo root> — invoke Skill(opsx:apply) with args "$CHANGE" (equivalently openspec-apply-change) and complete every task in openspec/changes/$CHANGE/tasks.md, following its proposal.md, design.md, and delta specs under specs/. Read the project's AGENTS.md / CLAUDE.md first and follow its conventions. Check off tasks as they are completed. Run the relevant type-check / tests / lint before reporting. Do not commit.If the subagent reports it is blocked (e.g. a task needs a decision only the user can make), stop and surface it.
3.0 Scope — fix the file list this change owns. Every later step (triage, 3a–3c, the fixer, the re-check, the summary) works on this one list, called SCOPE, never on "everything since HEAD".
git status --porcelain and git log --name-only BASE..HEAD: add any file that is modified, untracked or committed now but was not in BASELINE_DIRTY, which the implementer forgot to list. Ignore files that were dirty at baseline and not touched by the implementer.SCOPE file was already dirty at baseline, its diff mixes earlier work with this change — note that for the reviewers and the summary.git log grepped for the change name or its ticket key, or the branch's commits since its merge-base with the default branch. If found, review that range: SCOPE = the files it touches, and reviewers diff that range instead of the working tree. If nothing is found, run 3a only and report "nothing to review" in the summary.3.1 Triage — size the review to the change. Do this yourself (no subagent), on SCOPE only:
git diff --numstat HEAD -- <SCOPE tracked files>
wc -l <SCOPE untracked files> # new files do not show up in git diff
Measure:
SCOPE touches.Pick the tier:
| Tier | When | Runs | Skipped |
|---|---|---|---|
| S — trivial | Only labels, translations, copy, constants or config; ≤ ~30 code lines and ≤ ~3 code files; no risk flag | 3a verify + code-reviewer | conditional 3b reviewers, 3c adviser |
| M — standard | Neither S nor L | 3a + code-reviewer + conditional 3b reviewers by the table below + 3c adviser | conditional 3b reviewers whose trigger does not apply |
| L — large or risky | > ~300 code lines, or several apps / packages / libs, or ≥ 2 risk flags | everything; when unsure whether a conditional reviewer applies, run it | nothing |
The Phase 4 re-check is decided by what gets fixed, not only by tier — see Phase 4 step 4.
Rules:
--tier from the input overrides this decision.Then kick off 3a and every reviewer the tier selects (3b, 3c) in a single message (multiple Agent calls) so they all run concurrently.
3a. Verify (Opus subagent)
Agent with model: "opus", subagent_type: "general-purpose".Skill(opsx:verify) with args "$CHANGE" (equivalently openspec-verify-change) to check the implementation against the change artifacts (specs, tasks, design). Pass it the SCOPE file list so it does not attribute other uncommitted work to this change.3b. Code review fan-out (pr-review-toolkit agents)
code-reviewer always runs. The rest are conditional on what the diff touches — and only on tier M and L (tier S runs code-reviewer alone):
Agent (subagent_type) | Run when |
|---|---|
pr-review-toolkit:code-reviewer | Always — bugs, project-guideline / CLAUDE.md compliance, general quality |
pr-review-toolkit:silent-failure-hunter | Diff adds/changes error handling, try/catch, fallbacks, or swallowed rejections |
pr-review-toolkit:type-design-analyzer | Diff introduces or reshapes types, interfaces, schemas, or public API shapes |
pr-review-toolkit:pr-test-analyzer | Diff touches test files, or adds logic that ought to have tests |
pr-review-toolkit:comment-analyzer | Diff adds or edits comments, docstrings, or docs |
For each selected agent:
Agent with that subagent_type and model: "opus". Pass model: "opus" on every reviewer call, without exception — see the note below on why this is not optional.$CHANGE, the repo root, the SCOPE file list as the only files to review (with how to diff them — working tree vs HEAD, or the commit range from 3.0 step 4 — and which of them mix in earlier uncommitted work), and the path to openspec/changes/$CHANGE/ for intent.severity (critical / important / suggestion), a one-line description, and file:line. Empty list if clean. Tell it to return findings only, not a narrative report, and not to edit any files.Notes:
code-reviewer pins model: opus in its own definition; silent-failure-hunter, type-design-analyzer, pr-test-analyzer and comment-analyzer all declare model: inherit. If this skill is being driven from a Fable context, those four would silently review on Fable. Review quality is the one thing this pipeline cannot afford to downgrade — it is the only gate between the implementer's output and the fix pass. The explicit model: "opus" on the Agent call takes precedence over the agent's own frontmatter, so set it every time, on all of them (harmless for code-reviewer, load-bearing for the other four).pr-review-toolkit:code-simplifier here — it modifies code, which would collide with the Phase 4 fix pass. Simplification is out of scope for this pipeline.3c. Senior adviser review (cold Fable subagent)
Runs on tier M and L; skipped on tier S. 3a checks the change against its checklist and 3b checks the code line by line; 3c is the senior engineer who steps back and asks whether this is the right change, done in the right place, with nothing broken around it. It does not do standard code review — no style, naming, local bugs or per-line nits; those belong to 3b.
Agent with model: "fable", subagent_type: "general-purpose". Fresh, not a fork: it gets only what you put in the prompt. Record its agent ID — Phase 4 step 4 continues it.openspec/changes/$CHANGE/, any source the proposal cites (ticket export, customer documents), the SCOPE file list (and how to diff it), and the implementer's Phase 2 report (including its assumptions). Do not pass your own opinion of the change.ready / ready-with-notes / not-ready), findings — each with severity (critical / important / suggestion), the category above, a one-line description, why it matters, and file:line or area — and a separate list of questions for the user (things only a human can decide). No narrative report.Wait for 3a and every launched reviewer to complete.
Merge the verify gaps, all 3b finding lists, and the 3c adviser findings (when 3c ran) into one set. Questions for the user from 3c are not fixes — carry them straight to the summary. De-duplicate aggressively — several reviewers legitimately flag the same line from different angles; keep the clearest phrasing and note which reviewers agreed (agreement is a signal the finding is real). Decide what must be fixed — anything that is a correctness bug, an unmet spec requirement, an incomplete required task, or a review finding at a severity that warrants action. Drop pure nits/opinions unless trivial; note anything you deliberately defer.
If the must-fix list is empty, skip to Phase 5.
Otherwise hand the consolidated list to a fresh Opus subagent at high effort (cold — no conversation context):
Agent with subagent_type: "opus-high" (fallback: general-purpose + model: "opus" + effort: "high").openspec/changes/$CHANGE/…), and the numbered must-fix list with file:line for each.SCOPE.Fable re-check of the fixes — only when step 3 ran, then: on tier L always; on any tier when a critical or important item was fixed; otherwise skip. Nothing else looks at the fix pass, so Fable takes one short look:
SendMessage (load it via ToolSearch if deferred) so it keeps its understanding of the change. If 3c did not run, or it can no longer be reached, spawn a fresh Agent with model: "fable", subagent_type: "general-purpose" and give it the 3c brief plus what follows.resolved / not-resolved / regressed, plus any new issue the fixes introduced, same severity scale. Keep it to the fixes — not a second full review.This is a single fix pass — do not loop back to Phase 3, and do not run another fix pass on the re-check's result. not-resolved, regressed and new issues go into the summary for the user to decide, along with residual/deferred items.
You (the orchestrator) review the whole pipeline and write a concise, user-facing summary. Include:
SCOPE list (noting any that also carry earlier uncommitted work), so the user can commit each change on its own.--tier"), and each reviewer skipped by triage.opsx:verify (or "clean")./opsx:archive $CHANGE if satisfied.Keep it scannable (short sections / bullets). Do not archive the change automatically — leave that decision to the user.
null (skipped or died), note it and either retry once or surface it — do not silently proceed as if the phase succeeded.code-reviewer itself dies, retry it once; if it dies again, treat Phase 3b as failed.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jankc/jank-plugins --plugin workbench2 skills in this plugin