/assay:assay-initfrom assay
Set up assay rubrics for the current repository — discover what a term like "testable" means here, find cases whose answer is already known, calibrate the thresholds against them, and write .assay/. Use when the user wants to gate story refinement, agent-loop completion, or review findings on a measurement instead of a model's opinion.
Ships in assay. 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.
None: SKILL.md is the whole skill.
Write a calibrated .assay/ for this repository.
Resolve the CLI once, so this works whether assay is on PATH or only shipped with the plugin:
ASSAY="$(command -v assay || echo "node ${CLAUDE_PLUGIN_ROOT}/bin/assay.mjs")"
Every assay ... below means $ASSAY .... It needs OPENROUTER_API_KEY in
the environment (or AI_GATEWAY_API_KEY for rubrics that set
"provider": "jev-gateway"); if it is unset, say so and stop rather than
reporting a failure as a result.
The questions are nearly fixed and ship with the tool. Your job is the two things only someone reading this repository can do:
A rubric written without step 2 is a guess in JSON. Do not skip it, and do not write a threshold you did not measure.
Look for the vocabulary and the conventions before writing anything:
Write down the local meaning of each term the rubric leans on. "Testable" means something different in a repo with browser tests than in one with only unit tests, and the rubric must say which.
Run assay list to see what is installed. Start with one. Adding three
uncalibrated rubrics is worse than shipping one that works.
You need cases where you already know the right answer. Look for ground truth the repository has produced on its own:
Twenty rows with honest labels beat two hundred invented ones. If you cannot find at least a handful of each outcome, say so and stop. Report that the rubric cannot be calibrated here yet, and leave the thresholds unset.
Write the corpus as JSONL:
{"id":"...","label":true,"state":"..."}
{"id":"...","label":false,"state":"..."}
label is true when the case should pass.
assay calibrate <rubric> --corpus corpus.jsonl
Read the report with the user:
labels. Rewrite the question only if it still does not separate on labels
that measure what it asks.Look at the misses by hand. A false positive usually means the question is catching something legitimate, which is the same failure as a pattern that matches a normal case. That is information about the question, not noise.
assay calibrate <rubric> --corpus corpus.jsonl --write
This writes .assay/<rubric>.json with the measured thresholds and a
calibration block recording what it was measured against. Questions that did
not separate are left out on purpose.
Keep the corpus in the repository next to the rubric. A threshold without the cases that produced it cannot be audited or re-measured later.
It does not run the gate. Running belongs to the CLI and to whatever hook or pipeline calls it — a conversation can negotiate, and the point of the gate is that it cannot.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jholhewres/assay --plugin assay