No slash command · from workflow-orchestration-plugin
Runs a bake-off workflow with 2-5 independent attempts, lens judges, and a winner computed by Borda or metric rule, then refines. Use when comparing competing designs or running A/B arms.
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.
One Workflow template, compete-and-judge, for work where the right answer is
not known in advance: several independent attempts at the same target, judged
side by side, with the winner taken forward. A protocol for measured A/B
experiments follows in Measured arms; it is prose, not a
second template.
The template's one hard rule: the winner is computed in JavaScript from the
judges' rankings or measured numbers. No agent reads the verdicts and picks.
A model that picks from verdicts can only turn near-ties into a confident
answer: the coin-flip laundering that .claude/rules/workflow-vs-skill.md
§ The two shapes with no fit here warns about.
It was distilled from 4 ad-hoc tournament runs across 4 projects, judged on taste (a logo, game meshes, a UI design) or on a shared metric (a schematic layout). They used 7–10 agents and 1.2–2.9 M tokens each.
| Use this skill when… | Use instead… |
|---|---|
| 2–5 genuinely different approaches to one target, and judging needs the artefacts side by side | One approach: build it and review it (agent-patterns-plugin:adversarial-review) |
| The ranking is a judgement (taste, fitness) or a number a script measures | The ranking is already a deterministic score: sort it, no judges needed |
| Several units of known scope, each needing a fix and a check | workflow-implement-verify |
| Arms × seeds against a shared metric, with a human verdict at the end | Measured arms |
| Comparing skills or prompts in this repo | evaluate-plugin:evaluate-skill |
| Field | Meaning | Default |
|---|---|---|
context | the brief every entrant and judge sees, including hard requirements | — |
out | absolute output directory; entry k writes only ${out}/${k}, judge j keeps scratch in ${out}/_judges/${j}, the refine writes ${out}/final | — |
entries | 2–5 { key, angle }; order is the final tiebreak | — |
judges | 1–3 { key, lens } | — |
setup | 0–2 { key, brief } for what everyone must share (render harness, measurement script) | [] |
metric_defs, acceptance | shared definitions and acceptance bullets | — |
aggregation | borda or metric | borda |
metric | metric mode: { command, keys: [{ name, better: lower|higher }] } | — |
self_iterate | { min, max } rounds per entrant | { 2, 6 } |
finish | refine or none | refine |
skills, decisions | skills to name, user decisions to relay verbatim | — |
Keys must match [A-Za-z0-9][A-Za-z0-9_-]* (they become directory names, and
cannot start with _, so none can be _judges), be unique across setup,
entries and judges, and not be final.
| Mode | Order |
|---|---|
borda | Borda points (K−1−position over the K surviving entries, summed over judges), then mean score (one score per judge per entry), then caller order |
metric | meets acceptance per every measuring judge, then each metric.keys entry in turn (median across judges, one measurement row per judge per entry and one value per name in it, missing values last), then caller order |
judges has one row) only if
it returned something the aggregation can use: a ranking naming a surviving
entry, or in metric mode a measurement row with a finite value for a
metric.keys name. A row with no such value counts as unmeasured everywhere:
in the quorum, in acceptance, and in ranking_gaps. Short of quorum, the run
returns reason: no-quorum and runs no refine agent.tie: true with tied_with.
List an incumbent first if it should keep ties.The result carries winner, standings, ranking_gaps (the entries each judge
left unranked or unmeasured), every entry, every verdict a judge returned
(verdicts, including unusable ones, whose judges are listed in
excluded_judges), and refined. A no-quorum result carries verdicts and
excluded_judges too.
workflows/compete-and-judge.workflow.js ships beside this skill. It 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 entrant angles and judge lenses, MAX_ENTRIES,
MAX_JUDGES and QUORUM, the refine step (a decision document or a contract instead of a
polished artefact), and the setup briefs.
The design this template was cut from also has a baseline row (metric judges measure the unchanged starting point beside the entries) and a verify round after Refine (a verifier, one fix, one re-verify: up to 3 more agents). Neither is in the template; an adaptation that needs one adds it, with a scenario in the test.
Agent budget: 11 — at most 2 setup agents, 5 entrants, 3 judges and 1 refine agent. A run without setup, with 3 entries, 3 judges and a refine, spawns 7.
Preserve across any adaptation: (a) entries and judges come from the caller's args, cut
by .slice(0, N) literals in the fan-out after an explicit over-cap abort, never truncated
silently; (b) the winner is standings[0] of the JS aggregation, ties break on mean score and
then caller order, a tie is reported, and short of quorum there is no winner; no agent runs
between Judge and Refine; (c) metric mode ranks on judge-measured numbers only; (d) the two
barriers: setup completes before any entrant starts, because entries must be comparable, and
every judge sees every surviving entry, because a ranking needs all of them;
(e) scripts/tests/test-compete-and-judge.sh passes.
If an adaptation makes entrants commit (isolation: 'worktree', one branch per entry), two
clauses apply. 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; that stage also deletes the losing branches and worktrees by name.
Skip the harness when: there is one plausible approach, or one reviewer's opinion is the whole question. That is a linear pass, and the harness is pure overhead. Inputs and How the winner is computed remain the authoritative description of what each stage must produce; the harness only fixes how the work is split.
A/B experiments (arms × seeds, a shared metric, a human verdict) share a protocol but not a skeleton: 2 ad-hoc runs in 2 projects had different phase structures, too few to fix one. Write the run as its own script and keep these clauses:
With few arms and one cheap run each, compete-and-judge in metric mode can
carry the experiment: each arm is an entry and each judge runs the scorer.
.claude/rules/workflow-vs-skill.md — the three gating axes; § The two shapes with no fit here scopes where this template fits (Tournament)workflow-implement-verify — the sibling template for known units that each need a fix and a checkworkflow-scale-budget — sizing a run before it startsagent-patterns-plugin:adversarial-review — one reviewer per lens, when there is one artefact rather than severalagent-patterns-plugin:multi-model-delegation — the inverse of a judge: the disagreement is the outputWhat SKILL.md sets; muted values are Claude Code's defaults
opusThree short reads, in order
bake-off, a-b-testing, design-comparison, judging, experimentation
npx claudepluginhub laurigates/claude-plugins --plugin workflow-orchestration-plugin8 skills in this plugin
/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-implement-verifyWorkflow templates that implement 2–5 units in worktrees with a fresh verifier and one repair round, or close findings on existing branches. Use when fanning out implementers or repairs./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.Other plugins' skills for the same job