Measuring a skill you are writing: the whole path¶
One sitting, one artifact, one model. Each step says what it costs and what it refuses to claim. skill-novelty.md is the reference for why each number means what it means; this is the order to run them in.
The two free steps come first on purpose. They can tell you not to spend anything at all; the following triage step makes paid model calls.
| step | what it answers | cost |
|---|---|---|
| 1. routing | will it ever be picked? | free |
| 2. estimate | what will measuring cost? | free |
| 3. triage | is there anything here? | ~100 calls |
| 4. extract once | the answer key, reusable | ~1 call/atom (125 at the 120 cap) |
| 5. probe per model | what does this model lack? | ~4 calls/probe |
| 6. read the view | which sentence to edit | free |
| 7. shorten | what can go | 0–1 call per atom per candidate |
| 8. re-measure | did the edit keep the knowledge? | step 5 again |
1. Can it be selected at all? (free)¶
If the artifact is never picked, content work is unrecoverable spend. Write 5–10 requests in the words a user would use, in a file, without looking at the skill's own headings:
python cli.py skill routing skill:skills/my-skill \
--against skills/ \
--queries queries.json
The competitors are the skills a harness lists next to this one: --against <dir> takes
every other skill the catalog lists (a template/ copy and vendored or VCS directories
such as .git are left out, and a byte-identical copy under another path counts once), and
--competitors adds or names them one by one. With no real siblings at hand, skip this step and say so; a field of
competitors made up for the run measures nothing.
Read recall@1 against the competitors, not alone. Sibling skills built from one template
have identical heading queries, so heading-query recall@1 across such a family measures the
template, not the descriptions. Measured on the study corpus, linux-perf scored 0.0 recall@1 on
five independently written requests — losing three of them to an xpu-* skill phrased the
way a user phrases the problem. If that is your result, fix the description before anything
else; skill novelty analyze holds the frontmatter fixed and will not see this.
Add --model <id> for the model arm. Treat it as an upper bound: a harness whose own skill
listing truncates descriptions selects on less text than the command shows.
2. What will the measurement cost? (free)¶
python cli.py skill novelty analyze --artifact skill:skills/my-skill --tier study --dry-run \
--include-resources
Pass the same --include-resources (and --tier) you will run with: the bill covers only
the files the flags select, and a thin SKILL.md over references/ is priced many times
lower without it. It prints the projected model-call bill and exits before building a client. The
bill is probes × arms × (answer + grade) plus the retention oracle, which escalates only its
ambiguous band. The output carries expected_calls, the point figure, with by_role splitting
it into extractor, answerer and judge calls; total_calls and
total_calls_if_every_pair_escalates are the two ends. expected_usd prices by_role at list
prices, and is null when a model has no price; usd_by_role gives each role's share of it and
least_sure_role names the role the figure is least sure of. The probe term was validated to within 1–3% of
counted calls at nine (skill, tier) points, on content that did not escalate.
expected_usd is a projection, not a ceiling (held-out runs ran up to 14% low): a call's price
follows the artifact's length and the models. Pass --max-usd <n> to every step that calls a
model: the run stops once its calls across all roles have cost that much (calls already in
flight can overshoot it), and a call with no known price stops it too,
since the cap cannot see that spend. A step that stops at the cap writes nothing, except
atoms, probe, analyze, skill routing --model and catalog routing --model, which save the calls they made as a partial result (see
the list below and skill-novelty.md). One measured pair, a 19k-token skill: triage 103 calls,
about $1.80; study 1,901 calls, about $14.50.
What a stopped run leaves behind depends on the step:
atomskeeps the spans it read. It writes<stem>.partial.jsonbeside the file it would have written, and marks the spans it did not reach as unread. If the cap stops the faithfulness check, every atom is kept in the same partial file; the atoms checked before the stop keep their verdict, and the rest are unchecked.probekeeps the answers it got when the cap stops the measurement. It writes<stem>.partial.jsonbeside its output (forprobes.json, that isprobes.partial.json). The file holds only the answers received; itspartialfield givescalls_doneandcalls_planned, and the difference counts the probe jobs not run. An answer whose judge call the cap refused before it was sent is kept with verdicterror: it was paid for but never graded, so equal counts do not show that every answer was graded. A judge reply the cap refused after it came back keeps the verdict it names; one that names none is kept aserrortoo. If the cap stops it while the paraphrase or reversal wordings are built, nothing is written.- Each exits 3 (1 when a permanent provider error stopped it) with a message that names the partial file. A partial file is never read as a
finished one: the atom readers and
novelty itemsrefuse it. A later stopped run replaces an earlier partial file, but never a finished one: if<stem>.partial.jsonholds anything other than a partial result, the new one goes to<stem>.partial2.json(and so on). analyzekeeps nothing as a finished result when the measurement is cut short: it stops before its classify and attribution stages and writesnovelty.partial.json(statuspartial,partial.stagemeasurement) with the atoms and the probe answers received, and reports how many probe answers were not run. Raise--max-usd, or measure less (a cheaper--tieror a lower--max-atoms). If the cap stops it while the paraphrase or reversal wordings are built, the partial file holds no answers.shortenwrites no candidate table and no--outfile. Its retention verdicts are stored in--cache-diras each is adjudicated, and the exit message says how many: rerun with a higher--max-usd(with no--max-usdwhen the stop is a model with no known price) and the same--cache-dirto replay them at $0. Without--cache-dirthey are lost, unlessDOKIMI_RESPONSE_CACHEis set to a writable directory: then the message says the paid calls are in the response cache and a rerun replays them at $0.
3. Triage: is there anything in here? (~100 calls)¶
python cli.py skill novelty analyze --artifact skill:skills/my-skill \
--tier triage --model <model under measurement> --judge-model <a different model>
Read in this order: harmful_conflicting (the only category that can make an artifact
worse than nothing — unmeasured at triage, so a clean triage result does not clear it),
then added, then the span view. The tier's forfeits are printed before the run and
written into the artifact; a triage added is a sign, not a figure, and is not
comparable with another artifact's.
If the skill is a thin SKILL.md over a references/ tree, add --include-resources.
Without it the run measures the entry point and prints the share it is skipping — in the
study corpus that share was 0.72 of all words. At triage the 25-atom cap strides over the
concatenated atom list of the selected files, in file order, so a file with few atoms may get no
probe. A higher tier spreads more probes without promising each file one; --all-atoms probes
every extracted atom.
4–5. Extract once, probe per model¶
Atoms are model-independent, so the expensive extraction amortizes:
python cli.py skill novelty atoms --artifact skill:skills/my-skill \
--extract-model <not the model under measurement> --include-resources --out atoms.json
python cli.py skill novelty probe --artifact skill:skills/my-skill --atoms atoms.json \
--model model-a --judge-model <different> --out model-a.json
python cli.py skill novelty probe --artifact skill:skills/my-skill --atoms atoms.json \
--model model-b --judge-model <different> --out model-b.json
The extractor must not be the model under measurement, or the model writes its own answer
key — probe warns when it detects that. Without --extract-model/--model, atoms (and
the shorten adjudicator) use the default judge, anthropic/claude-sonnet-5-5, the same
model analyze extracts with; an extractor from another provider needs --provider. probe
and analyze measure openai/gpt-6.1-sol unless given --model. On atoms and shorten, --model
is the extractor or the adjudicator, not the answerer; see Choosing the extractor and the judge.
atoms.json records which
files it came from and probe rebuilds exactly that set, refusing if the artifact's files changed since.
With three or more models, check which probes measured anything:
python cli.py skill novelty items --probes model-a.json model-b.json model-c.json
An atom every model knows separates nothing (true, but not worth probe budget); a negative discrimination is the defect to look at.
6. Read the view, not the number¶
analyze writes annotated.html: the artifact's own text, coloured per span — green
carries added, red carries harmful or degraded, hatched was never read by extraction (not
dead weight), amber is protected (negation, version gate, ordering, threshold), dim carries
no atom at all, grey carries redundant knowledge or atoms judged inert, blue carries
knowledge the model got wrong with and without the artifact (still_missing), and plain
carries atoms with nothing measured or judged against them (unscored). The full rules are
in skill-novelty.md ("Span attribution"). Two derived
lists are where edits start: dead weight (dim spans by token cost) and sole carriers
(spans that are the only source of something). annotated.html does not list them: read
views.sole_carriers and views.dead_weight in novelty.json; novelty.md gives their counts.
With --include-resources, bundle.by_source says which file carried the knowledge. A
reference whose atoms are all redundant is a file the model already knows; one full of
added may belong where the agent will actually read it; one marked not read was lost to
extraction, not empty.
7. Shorten, with the protection axis pinned¶
python cli.py skill shorten --artifact skill:skills/my-skill --atoms atoms.json \
--token-budgets 0.75 0.5 --lexical-only --out short/SKILL.md
--lexical-only runs the retention oracle without an LLM adjudicator: cheap, reproducible,
and blind to contradictions, so knowledge is a floor. Drop it (and pass --model) when
you want the adjudicated figure, and expect up to one call per atom per candidate.
Its ambiguous-band atoms are placeholders, not verdicts: they are not cached, so an
adjudicated run after it asks them again.
A candidate that drops a protected span is reported but never offered: it is not smaller, it is different. Shortening rewrites one file, so with a bundle-derived atom set it scores the entry point only and says so.
8. Re-measure the edit¶
Re-run step 5 against the shortened artifact with the same atoms.json — same answer
key, so the two runs are comparable — and compare added between the two probe outputs.
One run per side is not enough to read that difference. Paraphrase and reversal wordings
are generated afresh on every probe run (probe takes no --cache-dir; analyze caches only
its retention adjudication), so two identical runs differ too: on one skill, with the same atoms and the
same models, added came out 0.9333 in one run and 0.8667 in the other, and the fidelity
check dropped 3 of 15 reversals in one and 14 of 15 in the other. That spread was the same
size as the change the shortening edit produced on the same skill. Run each side at least
twice, and read the edit as real only when the gap between the sides is larger than the
spread within each side. --no-paraphrase --no-reversal removes the wording redraw as a
source of spread (answers still vary), at the cost of the surface-wording and inversion
controls.
The protected-span count is not in probe output: it lives in shorten's table and in
analyze's span block, so re-run analyze if you want to compare that too.
If the atoms came from a bundle, put the shortened SKILL.md into a copy of the skill
directory rather than probing short/ on its own: probe refuses a file set that differs
from the one recorded in atoms.json.
A probe file carries no run_config: two probe files compare as the same cell only when you
ran them with the same atoms file, models, probe flags and --seed. The run_config block (the
tier, the probe kinds, include_resources and the prompt digest) is in analyze's novelty.json,
and two analyze cells compare only when those blocks match.
What this path does not tell you¶
- Whether the agent loads the bundled file it would need: that is the agentic track
(
skill-agent:,tasks run), not this one. - Whether the artifact helps on real work.
addedis knowledge delivery; ranking 13 artifacts inside one model against the measured task delta gave −0.446, with per-model correlations disagreeing in sign. Use evaluating-treatments.md for the outcome question. - Anything comparable across artifacts. Every number here is a property of one
(artifact, model)pair at one probe budget.