/verification:measure [performance|metrics] [baseline|compare]from verification
Captures performance or metrics baselines before changes and compares deltas after changes to verify improvement claims. Use when you need to quantify 'is it faster' or 'did complexity go down'.
Ships in verification. 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.
Arguments. [performance|metrics] [baseline|compare]. e.g., /verification:measure performance, /verification:measure metrics baseline
/verification:measure answers "did the claimed improvement actually happen, by how much?". It measures a delta (before → after) against a baseline captured before the change. It is the measurable-delta twin of /verification:confirm (which confirms intent/outcome) and is distinct from a review gate (which reviews design quality for ship-readiness on an absolute axis).
Core rule: never claim improvement without a baseline captured before the change. If no baseline exists, report honestly, "Baseline not captured. Current measurement: X. Cannot quantify improvement.", and never fabricate a delta.
The measurement mechanism is SSOT here; the planning stage routes to it when a plan states a measurable goal, /verification:confirm redirects improvement claims to it.
| Phase | Stage | Who invokes | What it does |
|---|---|---|---|
baseline | planning time (plan states a measurable goal) | /verification:measure <family> baseline | Capture pre-change measurements → store under the topic's memory-tier baselines/ + record baseline + target in the plan |
compare | after the change (default phase) | /verification:measure <family> | Re-measure under the same conditions → compare to the stored baseline → verify the claim |
Baseline storage: the topic's memory tier. <memory_dir>/<slug>/baselines/ (default .work/), placed per the lifecycle artifact protocol (${CLAUDE_PLUGIN_ROOT}/reference/artifact-protocol.md). Baselines are machine-bound measurements and are never committed, and the plan never cites their path. The plan (<memory_dir>/<slug>/PLAN.md) records the baseline values + target; the comparison summary surfaces in the plan and the PR body.
Behavior baselines. Recorded outputs captured before a rewrite, the old-implementation side of /verification:confirm refactor's differential evidence for a Replace, are not a third family: they use this same baselines/ storage and the same rule, captured before the change and never after the fact. Outputs recorded from the new implementation compare it with itself and are not a baseline. Such a baseline proves sameness with the old behavior, not correctness.
Measurement tooling: use whatever harness the consuming project wires; when none exists, run both phases manually per the context-file discipline. Do not add a harness speculatively.
Parse $ARGUMENTS for a metric family first, then a phase (baseline / compare; default compare).
| Signal | Family | Read |
|---|---|---|
performance, "is it faster", "before/after" runtime numbers, memory / allocations / throughput / latency | performance | context/performance.md |
metrics, "is it simpler/cleaner", complexity / coverage / CRAP / coupling / duplication | metrics | context/metrics.md |
No family argument → infer from the claim: runtime-resource claims → performance; code-shape claims → metrics. If the claim is ambiguous ("more efficient"), ask which resource before measuring.
Each context file owns its family's full discipline: claim-to-metric mapping, measurement methodology, report template, verdict vocabulary, and pitfalls.
Measuring broken code is meaningless, and a baseline captured on a broken tree poisons every later comparison. Before either phase, baseline capture or compare, confirm the mechanical pass is green: reuse a /toolchain:check (if enabled) or /verification:confirm Stage-1 result from this conversation if nothing changed since; otherwise invoke /toolchain:check (if enabled) via the Skill tool, or run the project's own build/test command when it is absent. Do not reimplement build/test/lint here.
| Condition | Action |
|---|---|
| An approved plan states a measurable goal | Run the baseline phase before implementation |
Improvement claimed without data (in /verification:confirm, review, or conversation) | Redirect here. performance or metrics per the claim |
| Verdict is DEGRADED or NOT CONFIRMED | Surface immediately; the claim does not hold. Fix or withdraw it |
| Measurement complete | Feed the comparison table into the /verification:confirm outcome report; surface the summary in the plan artifact / PR body |
Once a compare verdict is final, store it for the commit it judged, so the pull request ready
report can name it:
bash "${CLAUDE_PLUGIN_ROOT}/scripts/confirm-verdict.sh" record --of measure --head <sha> --verdict '<verdict>' --claim '<claim>'
<sha> is the full git rev-parse HEAD, run as its own call.<verdict> is CANNOT QUANTIFY whenever no baseline was captured before the change, in place of
the NOT CONFIRMED or INCONCLUSIVE the family file gives that case; otherwise the family's
verdict word.<claim> is the improvement claim judged, on one line.The record is advisory. It never gates the ready flip, and a commit after it leaves the new head
with no verdict. A baseline phase records nothing.
/verification:confirm (outcome / fix / refactor criteria)./toolchain:check (if enabled) owns build+test+lint; this skill only requires its result to be green./performance:snapshot (if enabled): it qualifies the host before measuring, interleaves the arms within one run, ranks a drift-immune counter above any duration, and refuses a wall-clock claim this skill would still report with a warning. This skill remains SSOT for baseline capture, storage, and the compare mechanics that plugin builds on.What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/confirmRun build, test, and lint checks (stopping if broken), then confirm a feature, fix, or refactor matches its plan/intent and delivers the intended outcome. Use when 'verify changes', 'prove this works', 'is this done'. Not for mechanical-only checks: /toolchain:check; or measurable-improvement claims: /verification:measure./setupCheck or configure docs/conventions/verification.yaml (proof_level, live_workers, native_suggestions) and report where verification artifacts land.npx claudepluginhub melodic-software/claude-code-plugins --plugin verificationOther plugins' skills for the same job