/toycrane-skills:audit-evalsfrom toycrane-skills
Audits an LLM eval regression suite by analyzing committed cell history to identify always-passing, identical, flipping, and always-failing cells, then proposes demoting recently always-passing cells to a lower tier with user approval.
Ships in toycrane-skills. 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.
Find the cells of a regression suite that no longer earn their run, from the cell history alone, and move to the lower tier only the ones the user approves. A cell is one case judged by one check. The upper tier runs whenever the suite runs; the lower tier runs only when the model the product or skill runs on changes, and a lower-tier cell that fails there goes back up as a regression. Demotion keeps every cell: nothing here deletes a case or a check.
This skill requires llm-evals, which runs the paid verification described
below. Before doing any work, confirm it is installed. When it is missing, stop
and report it with its install command,
npx skills@latest add toy-crane/skills --skill llm-evals, using the project's
package manager runner where it pins one.
The cell history is regression/cell-history.json under the project's eval
root. The eval root is the one the project's agent instructions name, else the
folder its existing evals sit in. A project with several eval roots, such as
one per skill, is audited per root the user names, or every root that holds a
regression/ folder.
When a root has no cell history, report that its cells cannot be judged until regression runs have recorded one, and stop for that root. Old results folders and logs mix prompt variants and grader changes, so they never stand in for the history.
Every list and number in the report comes from the bundled counting script, so the same history always gives the same report. Take its absolute path from this skill's base directory and run it on the history file:
python3 -I <this skill's base directory>/scripts/audit_evals.py report <eval root>/regression/cell-history.json
It writes the full report to audit-report.md at the eval root, outside
regression/, and prints a summary: the count of every list, the combined
saving of all proposals, and the largest proposals. The report file is the
audit's output, not part of the suite, so it stays uncommitted and the next
audit replaces it. Every list reads each cell's most recent 10 trials, which
the history keeps beside its cumulative counts. Exit code 3 means there is no
history at that path, and exit code 2 names what in the file is malformed;
report either as it is.
Give the user the printed summary with its numbers unchanged, the path of the
full report, and the lists from the report that bear on what they asked. Use
the script's notation: suite/case/check is one cell, suite/*/check every
cell of a check, suite/case/* every cell of a case, and suite/~/check the
candidate cells of a check. Then say what each section asks of the user:
Flipping and always-failing cells stay as they are; the report is their only outcome here.
A cell that keeps passing is either robust behavior or a grader too lax to
catch a break, and the history cannot tell them apart. For each check under
"Judged checks that never failed in their whole history", you may propose a
verification: run the suite's
cases for that check on a variant with the instruction the check guards
removed, and see whether the check then fails. It calls a model, so it is
proposed with its purpose only. When the user wants it, hand llm-evals the
check, the variant, and the cases; it asks for the cost approval and runs the
verification only after it, and hands back whether the check failed on the
variant.
Wait for the user to name the proposals they approve.
Apply exactly the approved units, all in one call:
python3 -I <this skill's base directory>/scripts/audit_evals.py apply <eval root>/regression/cell-history.json <unit> [<unit> ...]
The script moves only upper-tier cells whose most recent 10 trials all passed,
and refuses the whole call when a unit holds any other cell. Report the cells it
moved and the units left as they were. The cell history is committed with the
rest of regression/.
The audit is done when every requested root has either a report or a stated reason it cannot be judged, and every approved unit is applied or reported as refused.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub toy-crane/skills --plugin toycrane-skills28 skills in this plugin
/add-env-keyGet a key the user must issue or supply, such as an API key, token, or password, into the project's .env file without the value passing through chat or the model's context. Opens the vendor's issuance page, collects the value through the secret-env mod's input pane when the session has it, and otherwise opens the file in the user's editor with the key line ready. Use when work needs such a key that the project does not have yet, or when the user asks to add, set, or put an API key or token into .env./add-stack-contextAudit and establish current agent context for the technologies that define a project's stack. Use when setting up a project for agent work, after selecting or adding a framework, library, developer tool, or hosted service, or when entering an existing project whose agent context has not been audited./babysit-prWatch one open GitHub pull request through CI and review bots until it is ready to merge or needs a person, fixing confirmed findings and failing checks, answering and resolving review threads, and rerunning infrastructure flakes. Use when a pull request has just been opened or updated and its checks, bot review comments, or merge conflicts need answering, or when asked to babysit, watch, shepherd, or get a PR green or ready. Does not merge; `merge` and `implement` invoke it before merging or handing off./babysit-specsRevise active `docs/specs/SLUG/` specs so they match what has shipped since they were written. Use when earlier work has landed and queued specs may now rest on stale assumptions, acceptance criteria, constraints, terms, or prototypes, or when implementation reports a spec as stale before changing source. Takes one or more spec folders, or every folder under `docs/specs/` when none is named. Do not use to shape a new spec from a problem and direction, which belongs to `shape-idea`, or to reconcile durable project context and retire shipped folders, which belongs to `maintain-project-context`./build-prototypeBuild a complete dummy-data HTML prototype or a temporary comparison of up to three alternatives for a specific user situation. Use to settle a screen-based product before implementation or resolve a visual or interaction decision during shaping or prototype review. Do not use for production implementation or CLI, terminal, or voice interfaces./clean-branchesClean up the local leftovers of finished work in one pass, removing worktrees and local branches whose pull request merged or closed, detached worktrees already contained in the base, and left-over worktree folders that lost their Git registration, while leaving open, uncommitted, session-attached, and Codex-managed work in place. Use when the user asks to clean up, prune, or tidy stale or piled-up branches or worktrees across a repository. merge hands this skill the one branch it just merged. Remote branches are never deleted.