Put scorecards of the same task side by side, with the cost and the minutes of each result, and say which result wins by the owner's rule (a tool may cost a little more only when its outcome is far better; with the same outcome it must be cheaper and faster). Use when the user says "code-judge compare", "compare these scorecards", or "which tool won".
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Compare?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/lukaskellerstein-compare)
---
name: compare
description: Put scorecards of the same task side by side, with the cost and the minutes of each result, and say which result wins by the owner's rule (a tool may cost a little more only when its outcome is far better; with the same outcome it must be cheaper and faster). Use when the user says "code-judge compare", "compare these scorecards", or "which tool won".
argument-hint: "<run folder or scorecard.json>... [--force] [--out <file>]"
disable-model-invocation: true
allowed-tools: Bash(${CLAUDE_PLUGIN_ROOT}/scripts/code-judge.mjs *), Bash(node ${CLAUDE_PLUGIN_ROOT}/scripts/code-judge.mjs *)
---
# code-judge compare
`CJ` = `${CLAUDE_PLUGIN_ROOT}/scripts/code-judge.mjs`. No agent runs. The script decides.
## Steps
1. `CJ compare <the scorecards as given> --out compare.md`. Each argument is a run folder
of `/code-judge:score`, or its `scorecard.json`.
2. The script refuses scorecards with another rubric version, another judging model,
another mode or another task, and a scorecard that is `INVALID`. Print its reason as it
is, and stop. Add `--force` only when the person asks for it.
## What the script does
- It applies the size cap of Simple, because only here the results are together: the code
lines of a result against the smallest result that passes Asked as well.
- It groups the results by their `tool` and takes the median of each tool.
- It gives a verdict for each pair of tools, with the three limits of `rubric.yaml`.
- With fewer than 3 runs of a tool it says so: the gap can be the noise of the tool.
## Reply
The table and the verdict as the script printed them, with no word changed. Then one line:
`Saved: compare.md`. Do not add a verdict of your own, and do not explain the scores.