No slash command · from workflow-orchestration-plugin
Workflow templates for implementing 2-5 units in parallel worktrees with independent verification and one repair round, or closing findings on existing branches.
Ships in workflow-orchestration-plugin. 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; scripts run unread.
Two Workflow templates for the most common multi-agent job: change code on
several branches at once, and do not trust any of it until an agent that did not
write it has checked it.
| Template | Input | Output |
|---|---|---|
implement-verify | units of work (issues, tasks, work packages) | verified branches, opened as PRs |
repair-round | existing branches plus the findings to close on each | verified repair commits, pushed to those branches |
Both share one Verify/Repair stage, byte-identical between the two files. A
FIX_NEEDED row from implement-verify is a valid repair-round unit
({ id, branch, findings: verdict.new_defects }), so a second round is a second
run, not a bigger loop.
They were distilled from 51 ad-hoc implement runs and 12 ad-hoc repair runs written on the fly across 14 projects. Measured from the run records:
git-plugin:git-issue
issue-group-wave template has neither..claude/rules/workflow-vs-skill.md.if (!v || v.approved). When the verifier died,
that check skipped the repair and reported the unit as approved. Here a null
verdict is UNVERIFIED and is never landed.units is the primary input.| Use this skill when… | Use instead… |
|---|---|
| 2–5 units with known scope, each needing an independent check | One unit: implement it and dispatch one verifier by hand |
| Branches already exist and a verifier or review listed what to fix | Nobody has looked for the defects yet: agent-patterns-plugin:adversarial-review |
| Issues that may overlap and need partitioning first | git-plugin:git-issue --parallel (issue-group-wave), then this template per group set |
| Several waves that depend on each other's merged results | workflow-wave-dispatch schedules the waves; run this template once per wave with base set |
| Merging the resulting PRs | git-plugin:git-merge-hazards — neither template merges |
Shared args (both templates):
| Field | Meaning | Default |
|---|---|---|
repo | owner/name | — |
root | absolute path of the main checkout; agents never edit it | — |
base | diff and branch base | origin/main |
gates | commands every unit must pass | [] |
setup | worktree bootstrap commands (bun install --frozen-lockfile, …) | [] |
skills, decisions, contract | skills to name, user decisions to relay verbatim, a binding design doc path | — |
trailer | lines every commit message must end with (session-specific, so the caller supplies it) | none |
issueRead | how implementers and verifiers read an issue and its comments | gh issue view <n> --comments |
repairRounds | 1 or 0. A second round is a separate repair-round run | 1 |
land | implement-verify: pr or local; repair-round: push or local | pr / push |
implement-verify units: { id, issues: [n], branch, brief, owns: [globs], gates, tier: opus|sonnet|haiku, labels, repo?, root?, base?, setup? },
or issues: [n, …] as shorthand for one unit per issue. pr: { assignee, labels, footer } sets PR metadata.
A sonnet or haiku implementer is acceptable only because an opus verifier follows it.
A unit may name its own repository with repo (owner/name) and root (absolute clone path),
both or neither, so one run can span several repositories. That unit's agents create their own
worktrees under <root>/.claude/worktrees/ (a harness worktree would be of the session's
repository); the repairer and re-verifier use <root>/.claude/worktrees/round2/, so they never
reuse a first-round agent's path. Its base and setup default to the run's, and the run-level gates and setup
apply only when repo equals the run's repo. Finalise pushes and opens each PR in its unit's
repository, and every row carries repo, root and base. repair-round has no per-unit
repository yet, so a cross-repository FIX_NEEDED row needs its own repair-round run with
that unit's repo and root as the run-level values.
repair-round units: { id, branch, base?, findings: [{ id?, severity, where?, text | problem, fix? }], brief?, gates? }.
Without the gh CLI (a cloud session), pass the GitHub MCP wording, such as
issueRead: 'mcp__github__issue_read, methods get and get_comments', and land: 'local'; the main
session then pushes and opens the PRs (references/landing.md).
| Status | Meaning | Landed |
|---|---|---|
PASS | verifier passed it first time | yes |
REPAIRED_PASS | one repair, then a fresh re-verify passed it | yes |
HELD_PR_BODY | implement-verify only: passed, but the clearing verdict lists a defect whose where names the PR body; fix the body, then land by hand | no |
FIX_NEEDED | still failing after the allowed rounds; feed it to repair-round | no |
REJECTED | verifier judged the approach wrong; a human decides | no |
UNVERIFIED | the verifier returned nothing | no |
NO_CHANGE | already correct at base, with evidence | no |
BLOCKED / FAILED | the author could not proceed (including a repairer that found the branch's PR already merged or closed), or returned nothing | no |
Every repair brief reads the branch's PR state first (gh pr list --head <branch> --state all).
In repair-round the branch already has a PR, which can merge while its verifier runs.
In implement-verify no PR exists before finalise, so the check fires only on a reused branch name.
The list matches by branch name, not commits, so it holds every PR ever opened from that name:
an OPEN entry wins, and a MERGED or CLOSED entry counts only when its headRefOid and the
branch tip lie on one line of history (git merge-base --is-ancestor, both directions, after
git fetch origin pull/<number>/head, since a head pushed from another clone may be missing here).
An entry whose head cannot be fetched counts. Only when no entry is OPEN
and a MERGED or CLOSED entry counts does the repairer commit
nothing and return blocked with the PR in blockers, and the template skips the re-verify.
Both finalise briefs apply the same rule against head_sha before pushing.
The template stops and reports rather than opening a follow-up PR: to carry the findings forward,
pass them to the next run as a new unit cut from base. Observed 2026-11-10: a repairer told to
continue on a branch whose PR had merged found the remote branch deleted and opened a second PR.
The repair brief passes in the author's pr_body, drafted before any verifier ran, and asks for it
rewritten for the repaired branch; the rewrite replaces it. A verifier reports a body claim the
branch contradicts with where: "pr_body", which holds the unit (HELD_PR_BODY). Observed
2026-11-11: two repaired units' bodies kept pre-repair test counts (#3650).
Each row carries the author's report (fix, including followups and
decisions_for_user) and every verdict, so a re-dispatch starts from the state
packet rather than from memory (.claude/rules/loop-integrity.md Pillar 2).
The implement brief keeps followups to defects worth an issue: one 7-unit run without that
line returned 52, mostly pre-existing lint notes and restatements of the brief, and the next
run with it returned about 12.
Read every verdict's defect list before integrating, including on a PASS. A
verifier can pass the code and still report a defect outside it, such as an open
PR elsewhere that already carries the same fix. A gate on the status or on a
defect count misses that. Observed 2026-11-04: a passing verdict named two
duplicate PRs, and the orchestrator found them only after a CI failure.
Neither template merges. Land from the main session per references/landing.md: trial-integrate the landable branches first, stack them if they conflict, then merge one PR at a time.
workflows/implement-verify.workflow.js and workflows/repair-round.workflow.js ship beside
this skill. Each is a TEMPLATE to adapt, not a script to run verbatim. Read it, then rewrite
it for the work in front of you.
Adapt freely: the agent prompts, the per-project gates and bootstrap, the implementer tier,
MAX_UNITS and FLOOR, the PR metadata, and which repositories the units target.
Agent budget: 1 + 4 x units — the finalise agent is counted; per unit, an author, a verifier, and on fix-needed a repairer and a re-verifier. At the cap of 5 units the worst case is 21.
Preserve across any adaptation: (a) the loop bound is the caller's units, cut by
UNITS.slice(0, 5) in the fan-out after an explicit over-cap abort, never a prose "for each" and
never a silent truncation; (b) the closed pass | fix-needed | reject verdict, with a null
verdict mapped to UNVERIFIED and never landed, and reject never auto-repaired; (c) the
verifier is a fresh agent working from refs, never the author; (d) the Verify/Repair region is
byte-identical in both files (scripts/tests/test-templates.sh); (e) Finalise is the only
barrier, because push order on one remote needs every unit's final verdict; (f) a unit in another
repository gets its prompts, worktrees and landing from its own repo and root, never the
run's (the two-repository scenario in scripts/tests/run-template.mjs).
Never Workflow({resumeFromRunId}) to retry a few failed worktree agents — a resume re-runs
agents that already succeeded and opens duplicate PRs (#1868). Re-dispatch the failed units fresh
and sequentially after checking gh pr list --head <branch> --state all --json number,state.
Push, PR creation, and GitHub mutations happen only in the single sequential finalise stage, never inside a fanned-out agent.
Skip the harness when: there is one unit, or the work is a docs-only edit with no gate to re-run. That is a linear pass, and the harness is pure overhead.
git-plugin:git-issue — issue-group-wave partitions overlapping issues before this runsworkflow-wave-dispatch — ordering several runs whose bases depend on earlier mergesagent-patterns-plugin:execution-grounded-review, agent-patterns-plugin:adversarial-review — what the verifier prompt asks foragent-patterns-plugin:parallel-agent-dispatch — worktree hazards and the resume ruleworkflow-scale-budget — sizing a run before it startsWhat SKILL.md sets; muted values are Claude Code's defaults
opusThree short reads, in order
workflow, parallel-implementation, verification, repair, multi-agent
8 skills in this plugin
/workflow-bake-offWorkflow template for a bake-off — 2–5 independent attempts, lens judges, a winner computed by Borda or a metric rule, then refine. Use when comparing competing designs or running A/B arms./workflow-checkpoint-refactorMulti-phase refactoring with checkpoint files that survive context limits. Use when refactoring spans 10+ files, needs phased rollout, or risks running out of context mid-session./workflow-interrupted-run-recoveryRecover a Workflow run killed mid-flight: salvage killed agents' worktrees, resume without duplicating PRs already opened. Use when a run reports agents_error after a session limit, kill, or crash./workflow-preflightPre-work validation before implementation. Use when starting an issue or fix, or before fanning out agents, to check remote state, existing PRs, branch conflicts, gh auth, and merge gates./workflow-scale-budgetSize a Workflow script's agent count before running it, or tally a finished run's agents and tokens. Use when authoring or proposing a Workflow fan-out, or asking what a run used./workflow-verify-before-filingVerify accumulated bug claims at upstream HEAD and dedup against trackers before filing issues. Use when filing upstream reports from backlogs, audit docs, or git-history findings.npx claudepluginhub laurigates/claude-plugins --plugin workflow-orchestration-pluginOther plugins' skills for the same job