Eval run
Skill kenziecreative/kenzie-creative/.claude/skills/eval-run
This skill should be used when the user asks to run a plugin evaluation or check a marketplace plugin for output regressions (e.g. "run the eval", "run the strategist golden set", "eval strategist", "check strategist for regressions", "run the adversarial scenarios"). Drives each scenario through a blind eval-runner, computes deterministic gates, scores each capture with the eval-judge against the target's rubric, and writes an iteration scorecard under the target pack's _eval/.From its SKILL.md
npx -y skills add kenziecreative/kenzie-creative --skill eval-runAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
15.7 KB, as published. Nobody here has run it
/eval-run — Run A Plugin's Output Evaluation
The runtime-QA regression command. For one in-repo plugin (the target), drive each
scenario through a blind eval-runner, compute the deterministic gates with
eval/lib/run-gates.mjs, score each capture with the eval-judge against the target's
rubric, and write an iteration scorecard. Run it after any change to the target's
skills. This is the runtime half of QA; the authoring half is the release loop in the root
AGENTS.md (check-version-prefix + claude plugin validate + plugin-dev reviewers).
Subagents: spawn
eval-runnertheneval-judgewith the Task tool (in Cowork, the Agent tool) — they live in.claude/agents/. One runner → gates → one judge per run. Independent scenarios may run in parallel; keep each run's working dir distinct.If the
eval-runner/eval-judgeagent types aren't available (they were just added and the session hasn't reloaded its agent registry — symptom: "Agent type not found"), either reload the session, or fall back to ageneral-purposeagent and pass the contents of.claude/agents/eval-runner.md(oreval-judge.md) as the brief. Keep the runner's discipline intact: blind to the rubric, faithful to the skills as written, isolated, and it writesgate-inputs.json.
Targets are in-repo
There is no install/config step. A target pack lives at eval/targets/<name>/ and the
plugin under test is the repo-root directory <name>/. Resolve both as absolute paths from
the repo root and use them explicitly (the shell cwd can reset between tool calls).
Arguments
--target <name>— which plugin to eval. Default:strategist(the only pack today).--scope <golden | all | representative | adversarial>— defaultgolden.--id <scenario-id[,id...]>— run specific scenarios (error on an unknown id; surface it and stop).
NL mapping: "run the eval" / "the full set" → golden. "adversarial only" → --scope adversarial. "everything including candidates" → --scope all. "just <id>" → --id <id>.
Preconditions (fail fast)
eval/targets/<target>/exists withadapter.md,principles.md,rubric.md,scenarios.jsonl,gates.json. If not, stop and name what's missing.- The plugin dir
<target>/exists and contains the skill files the adapter names.
Procedure
Step 0 — resolve the run and the iteration
RUN_STAMP=date +%Y%m%d-%H%M%S.PACK=eval/targets/<target>.PLUGIN_ROOT= absolute<repo>/<target>.- Iteration number: look in
PACK/_eval/for existingiteration-*dirs;N= highest + 1 (or 1 if none). Every run is a fresh iteration — never reuse or grade a prior iteration's captures (model output is non-deterministic, so an unchanged target does not license stale transcripts; seeeval/reference/iteration-discipline.md). - Build the provenance stamp now:
target+ its content hash (git -C <repo> rev-parse --short HEADplus, if the tree is dirty, note it),pack+ rubric version,model_under_test(the runner's model — it executes the skills),judge_model,scope,RUN_STAMP, and a one-line "changed since iteration N-1" if known.
Step 1 — load the pack and resolve the scenario + sample set
- Read
adapter.md,principles.md,rubric.md,scenarios.jsonl,gates.json. - Filter scenarios by
--scope/--id(golden=golden:true;representative/adversarial= bykind;all= every scenario). - Multi-sampling: read the rubric's
noisy_dimensions. A scenario whosecritical_dimensionsintersectnoisy_dimensionsis noisy → run it 3× (run-1/,run-2/,run-3/); all others run once. (Judge-graded posture/critic dimensions are noisy; one roll is not a reading — see iteration-discipline.)
Step 2 — run each (scenario × sample) through the blind runner
For each run, spawn an eval-runner. Pass it — in the dispatch message, as text — the adapter, the scenario's entry/setup/user_messages only (never the rubric or expected_behavior — the runner is blind), PLUGIN_ROOT, and the working dir:
PACK/_eval/iteration-N/<scenario-id>/ (single-sample) or …/<scenario-id>/run-k/ (noisy).
The runner writes transcript.md, capture.md, spoken.md, and gate-inputs.json.
Check the four files exist before moving on, and re-ask once for any that don't. Same
lesson as the judge scorecards in Step 4: a deliverable whose only enforcement is an
instruction in an agent file is a deliverable that quietly stops arriving. Across researcher
iterations 1–23, every one of 40 captures was missing spoken.md — mandated in the
runner spec since it was written, never produced, never noticed, so the register and no-tics
lints it exists to feed had nothing to read for twenty-three iterations. If a file is still
missing after one re-ask, record the run as partially captured in scores.md and name
which checks that blinds.
Staging rule — the runner's working dir contains only the slice it is allowed to see. Never write the full scenario object (expectations included) into the runner's working dir, under any filename. A runner reads the files around it; a
scenario-full.jsonsitting in its cwd is not blind, whatever the dispatch message said. This is not hypothetical — goal-setting iteration-1 staged exactly that file and a runner read it and self-reported, costing a run. If the full scenario needs to live on disk for the judge, stage it outside the runner's dir — e.g.PACK/_eval/iteration-N/_scenarios/<scenario-id>.json(the_scenarios/dir is judge-only; no runner is ever pointed at it).
Step 3 — compute deterministic gates (script, not judgment)
For each completed run, first write the scenario's gate context — the facts the gates need
that are declared by the scenario, not observed by the runner. Write
<working-dir>/gate-context.json yourself (Write tool) with the scenario's expected_no_advance
(default false) and every key of its gate_context block, if it has one:
{ "expected_no_advance": true, "closeout_expected": true }
This is the orchestrator's job precisely because the runner is blind: a scenario-declared fact must not depend on a blind runner noticing it (iteration-1 false-failed six runs when it did). Writing it after the run keeps it out of the runner's way.
"After the run" is load-bearing, and it has been violated by someone who had just read this line. Researcher iteration 57 staged
gate-context.jsonduring setup alongsideblind-scenario.json. 14 of 23 runners opened it and disclosed doing so, and every one of those runs had to be thrown away and re-run. Two of them had read a scenario-specific key —write_free_runandledger_frozen— each of which states its scenario's entire invariant and is exactly what that scenario's critical dimension measures; a green from either would have meant nothing. Generate this file immediately beforerun-gates.mjs, per run, and stage nothing into a runner's working dir butblind-scenario.json. The staging rule in Step 2 and this one are the same rule; both exist because the cheap ordering feels harmless right up until it costs an entire iteration.
Then stage the seed baselines for any file_unchanged gate. Read the pack's gates.json
for gates of type file_unchanged whose applies_when key this scenario declares. For each,
write the file's seeded content — straight from the scenario's setup block, or copied
from fixtures/<name>/ for a setup.fixture scenario — to <working-dir>/_seed/<file>
(e.g. _seed/research/STATE.md). Stage it after the run, never before: the runner must
not learn that a file is being watched, or "don't touch this" becomes an instruction it can
follow instead of a property of its behavior. A gate whose baseline is missing fails loudly
rather than skipping, so a forgotten stage shows up as a red row, not a silent hole.
Then:
node eval/lib/run-gates.mjs --working-dir <working-dir> --gates PACK/gates.json --plugin-root PLUGIN_ROOT
Capture its JSON array ({gate, feeds, status, evidence}). These verdicts are inherited as-is; the judge never recomputes them. gate-context.json overlays gate-inputs.json, so the expected_no_advance inversion and every applies_when gate resolve automatically.
Rows with kind: "integrity" are about the capture, not the plugin. They ask whether the
run was recorded faithfully — is the transcript there, do the artifacts the runner declared
actually exist, is spoken.md verbatim. A red one invalidates the capture: re-run that
scenario and grade the new one; do not send the capture to a judge and do not count the run.
Never report an integrity failure as a target finding — the plugin didn't do it, the harness
did. (Researcher iterations 21–23: a capture that attributed to the assistant file paths its
own transcript did not contain, scored as-is, and nothing anywhere went red.)
Step 4 — score each run through the judge
Spawn an eval-judge per run. Pass it: rubric.md + principles.md, the full scenario (now including expected_behavior + critical_dimensions), the path to capture.md + artifacts, the gate-results JSON from Step 3, and eval/reference/grade-procedure.md. It returns a per-run scorecard, inheriting gates and judging the rest.
Judge persistence (the judge writes its own card; the orchestrator verifies). As of the strategist iteration-1 run, eval-judge has a Write tool scoped to its working dir and writes <working-dir>/scorecard.md itself before returning. So:
- Tell every judge: write the scorecard to
<working-dir>/scorecard.md, then return it as your final message too. The file is the deliverable; the message is the convenience copy. - After each judge completes, check the file exists rather than trusting the message. If the file is missing but the message carried the card, write it yourself. If both are missing, re-ask once.
- If it still produces nothing, record the run as ungraded in
scores.mdwith the reason — never infer a score from sibling samples, and never quietly drop it from the denominator.
Why this changed: in strategist iteration 1, 25 of 25 judges returned nothing on first completion. Every scorecard survived only because the orchestrator noticed an empty idle notification and re-asked — 25 times. A mitigation that fires 100% of the time is not a mitigation, and an unattended run (cron, CI) would have produced an iteration with zero scores and no error. Two earlier iterations lost cards the same way. The failure was structural: the deliverable's only channel was a message the harness did not reliably deliver.
Step 5 — surface raw captures to the human FIRST
Before printing any verdict, give the user the paths to this iteration's raw transcript.md/artifacts and a one-line "read these first." The score is a lens on the output, not a substitute for it.
Step 6 — write the iteration scorecard
Write PACK/_eval/iteration-N/scores.md:
- The provenance stamp (Step 0).
- Each per-scenario scorecard (verbatim from the judge). For noisy scenarios, report the spread across the 3 samples per dimension (min–max), not a single number — a wide spread is itself the finding.
- The aggregate (per
grade-procedure.md): scenarios graded, pass/fail, mean by dimension, pass-rate by kind, failing scenarios → top issue, the ranked next-3-to-fix. - The filing split: file-eligible (deterministic-gate) failures separate from surface-for-decision (judgment) misses. Auto-file nothing.
Step 7 — readout
Write the readout in the language of the plugin's behavior, not the harness's machinery.
scores.md is the technical record and keeps every id, dimension, and score. The readout is
for a person deciding what to do next, and it is the only part they are guaranteed to read.
Lead with what the plugin can and cannot do, one behavior per line, in plain words:
Won't close a project whose own success criteria aren't met. Someone said "close it out"; it checked the three criteria the project set for itself, found one unmet, said what would close it, and stopped.
Not:
adv-criteria-preflight— Completion Integrity 3, PASS. Gates 6 pass / 5 n/a.
Rules for the readout:
- Translate every scenario id into the behavior it tests. An id is a filename, not a
finding. The reader should never have to decode
adv-saturation-stale-record. - A score is meaningless without its consequence. "Stop Decision 0" tells the reader nothing. "It doesn't admit when its own data is out of date" tells them everything. If a number appears, the sentence next to it must say what it means for shipping.
- Separate the three kinds of red, and say which is which — a reader who cannot tell
them apart will fix the wrong thing, or weaken a gate that is working:
- a regression — this used to work,
- a newly-caught pre-existing defect — a new check found something old,
- a harness fault — the capture or a gate is wrong, and the plugin is fine.
- Own authoring errors plainly. If a red traces to instruction wording you wrote, say so in that sentence. Burying it in a dimension score is how the same wording ships twice.
- Name what was NOT tested. Runs skipped, scenarios unsampled, a partial iteration — state the count and what it blinds. Silence reads as coverage.
- End with the decisions, separated from the work. What you will do next needs no permission. What genuinely needs the human — a scenario-vs-plugin calibration call, a tag decision — goes in its own short list, with your recommendation and the reason. Never propose weakening a scenario to make a build pass without flagging it as exactly that.
Keep internal vocabulary out unless it is load-bearing, and define it inline the once if it is. Words that need translating or dropping: golden, gate, dimension, critical dimension, multi-sampled, n/a, entry, capture, noisy, anchor, iteration.
Point at the raw transcript.md paths (Step 5) and the scores.md path for anyone who wants
the machinery. Flag any golden failure prominently — a red golden is a ship-blocker.
Guardrails
- The runner is blind — never pass it the rubric or
expected_behavior, and never leave them in its working dir (Step 2's staging rule). Blindness is a property of the filesystem the runner sees, not just of the dispatch message. - Gates are script-computed; the judge inherits them and scores the capture only — it never re-runs the plugin.
- Faithful execution: the runner follows the target's skills as written; a missing instruction shows up as a regression signal, not a bug to patch mid-run.
- Isolation + fresh transcripts: every run writes under
PACK/_eval/iteration-N/; never touch a real project or the target's own files, and never grade a prior iteration's captures. - Report honestly: a smooth run that skipped the load-bearing behavior is a fail; say so.
What this skill does not do
- File issues (the scorecard lists candidates; filing is a separate human step).
- Modify scenarios or the target. Scenarios live in the pack; add them with
eval/reference/generate-scenarios.md.