Command Palette

Search for a command to run...

Назад к скиллам
скилл № 70105

Measure

Capture a prior baseline or compare an improvement delta ('cannot quantify' without one) for performance (time, memory, allocations, throughput, latency) or…

БесплатноБез исполняемых скриптов
melodic-softwareот melodic-software★ 34 звезды на GitHub

Установить Measure в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Measure

Arguments. [performance|metrics] [baseline|compare]. e.g., /verification:measure performance, /verification:measure metrics baseline

Purpose

/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.

Two-phase model

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.

Mode dispatch

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.

Prerequisite. Green mechanical state (both phases)

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.

Integration

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

Record the verdict for the head it judged

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.
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • context/metrics.md
  • context/performance.md

FAQ

Что делает скилл Measure?

Capture a prior baseline or compare an improvement delta ('cannot quantify' without one) for performance (time, memory, allocations, throughput, latency) or metrics (complexity, coverage, coupling). Use when 'is it faster', 'before/after', 'did complexity go down'. Not for intent: /verification:confirm; or noisy-host timing: /performance:snapshot.

Как установить скилл Measure?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Measure запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Measure с