/spec-arena:spec-arenafrom spec-arena
Runs a controlled A/B test comparing specs, architectures, agent briefs, or models using identical units, fresh-context workers, measured gates, and blind two-lab review. Helps settle expensive, disputed choices.
Ships in spec-arena. 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.
Settle an argument about a spec, an architecture or a model by running both options on the same small pieces of real work and comparing what comes back. Reading a spec tells you what it says; only a run from an empty machine tells you what a worker does with it.
Run an arena when the choice is expensive to reverse and people disagree, or when a new model arrives and you need to know whether last quarter's instructions still pay for themselves. Typical pairs:
Skip it when one cheap run answers the question, or when the options differ in something a lint rule or a test could decide by itself.
Change one thing per arena. If you vary the spec and the model together, cross them (every spec with every model, on the same units) so each effect can be read separately. If the budget leaves a cell empty, say so and compare only like with like.
Take these for every run, and rerun the gates yourself instead of trusting the worker's account:
| Measure | How |
|---|---|
| Lead onboarding cost | Files and tokens the lead read before it could write the first brief |
| Guesses and contradictions | Count and read the worker's lists |
| Gates | Typecheck, lint and tests, rerun by you |
| Drift a gate missed | Search for the banned patterns; switch a rule off and confirm its test fails; read one return end to end |
| Code size | Hand-written lines, excluding generated and vendored files, split into source and test |
| Cost and time | Priced tokens and wall time per run |
Run every gate from a clean install. Record the revision each worker started from, apply the worker's whole return to a fresh checkout of that revision exactly as delivered, lockfile included, then do a clean dependency install on a machine the worker never touched and that holds no credentials, with install scripts off where the stack allows (for example npm ci --ignore-scripts). A return's install scripts run with whatever access that machine has. A gate that passes only on the worker's own machine has not passed.
A gate that never fired proves nothing about review. Say so when it happens.
Numbers miss architecture, so have the returns judged blind.
Apply one rule to every element of the spec: it earns its place only as a failing check or as a line the worker's brief names. Workers read what the brief points at and little else, so prose that nothing enforces and no brief names is cost without effect.
For each element, place it in one bucket:
Cutting removes prose, never a check. Where a check already enforces a rule, the line that repeats it can go and the check stays. The unit that builds the checks is the exception: its brief still has to name every rule, because there the line is the check.
For a model choice, prefer the model whose returns needed the fewest corrections at the size the unit needed, then weigh cost.
Open with the answer in one sentence, then what blocks or qualifies it. Follow with the comparison table, the two or three most telling examples side by side, and the keep, check, cut and fix list. End with confidence and limits, stated plainly: how many runs per cell, how long the units took against real work, what was missing from the environment, any reviewer that shares a lab with a builder, and anything that contaminated an arm. One run per cell supports "no difference large enough to see" far better than it supports "A is better".
Save the briefs, the key and the raw scores beside the report so the arena can be rerun when the next model ships.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub rayfernando1337/rayfernando-skills --plugin spec-arenaOther plugins' skills for the same job