Prove the judge before anyone trusts a score. Scores one good result three times (repeat), scores copies of it that each hold one planted flaw (the right part must drop), scores copies with more of something that adds no value (no part may rise), and prepares three blind folders for the owner to rank. Use when the user says "code-judge selftest", "prove the judge", or "test the judge".
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 Selftest?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/lukaskellerstein-selftest)
---
name: selftest
description: Prove the judge before anyone trusts a score. Scores one good result three times (repeat), scores copies of it that each hold one planted flaw (the right part must drop), scores copies with more of something that adds no value (no part may rise), and prepares three blind folders for the owner to rank. Use when the user says "code-judge selftest", "prove the judge", or "test the judge".
argument-hint: "[<selftest.yaml>] [--runs <folder>] [--only <names>]"
disable-model-invocation: true
allowed-tools: Bash(${CLAUDE_PLUGIN_ROOT}/scripts/code-judge.mjs *), Bash(node ${CLAUDE_PLUGIN_ROOT}/scripts/code-judge.mjs *), Read(${CLAUDE_PLUGIN_ROOT}/skills/score/SKILL.md), Agent
---
# code-judge selftest
`CJ` = `${CLAUDE_PLUGIN_ROOT}/scripts/code-judge.mjs`. `FILE` is the selftest file (default
`docs/code-judge/selftest/selftest.yaml`). `RUNS` is the folder for the scores (default
`.code-judge/selftest`). A judge that passes no test is an opinion.
## Steps
1. `CJ selftest list --file FILE`. It prints every score that the proof needs: a name, a
mode, and what the copy must show. It also prints the task file and the result file.
2. **Money first.** One score starts about 10 agents. Say how many scores are missing in
`RUNS` (a name with a `scorecard.json` is done), and wait for a yes. With `--only`, score
only those names.
3. Read `${CLAUDE_PLUGIN_ROOT}/skills/score/SKILL.md` one time. For each missing name, in
the order of the list, do its steps 1 to 9:
- the tree: `CJ selftest make <name> --file FILE --to RUNS/trees` (`base` for the names
`base-task-1`, `base-task-2`, `base-task-3` and `base-project`);
- task mode: `CJ prepare RUNS/trees/<name> --task <task file> --result <result file>
--out RUNS/<name> --model <your model id>`;
- project mode: the same, with no `--task`.
One score at a time: two products cannot share a port.
4. `CJ selftest check --file FILE --runs RUNS`. It prints each check with pass, FAIL or
`not scored yet`, and writes `RUNS/selftest-report.md`.
5. Check 3 is the owner's: `CJ selftest owner --file FILE --to RUNS/owner`. Tell the
person where `form.md` is, and stop. After they wrote `owner.yaml`, step 4 again.
## Rules
- A check fails: report it. Never change a check, a patch or an expected value to make it
pass. The rubric, a prompt or a script changes, and then every check runs again.
- Stop and ask when the scores of this session pass 60 USD.
## Reply
The table of step 4 as the script printed it. Then: how many scores ran, and what is still
`not scored yet`.