Command Palette

Search for a command to run...

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

Snapshot

Capture a baseline or post-change snapshot after a goal with a floor, qualifying the host first: refuses wall-clock claims on bimodal-contention hosts (naming…

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

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

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

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

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

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

Snapshot

Arguments. [baseline|post] [<target>]. e.g. /performance:snapshot baseline, /performance:snapshot post

Purpose

Answers "what does this cost, and is this machine even able to tell me?"

Read ${CLAUDE_PLUGIN_ROOT}/reference/harness-integrity.md before writing any harness here, including a check written to avoid being fooled: a harness that returns a confident wrong answer looks exactly like one that works.

Phase order, and why it is this order

1. Qualify the host, before measuring anything

The lib is plugin-bundled, not installed: put its directory on sys.path before the import, or a bare from spawn_noise import ... raises ModuleNotFoundError. Anchor to the plugin root this body names (substituted with the installed version's directory at load), never to the working directory, a __file__ level count, or a hardcoded cache path:

import sys

sys.path.insert(0, r"${CLAUDE_PLUGIN_ROOT}/lib")

from spawn_noise import spawn_probe, is_measurable  # noqa: E402

summary = spawn_probe()
measurable, why = is_measurable(summary)

is_measurable() returns a verdict and its basis. A False is a hard refusal to report a wall-clock number, subject only to the recorded override below.

The refusal names what it can still report, since an unexplained refusal gets overridden reflexively: on a host that fails is_measurable(), the durable result is a deterministic spawn count of 4 -> 1, not a duration.

Say plainly that this refusal is a house rule, not consensus, so nobody takes it for common benchmarking practice: this plugin chose to refuse, and no benchmarking tool is the source of that choice.

1b. Measuring-tool integrity (before timing)

Before any timed arm runs, record the measuring tool's identity for every executable the goal's metric command names (harness scripts, summarizers, census wrappers): resolved path, git rev-parse HEAD or content hash when the tree is a checkout, and --version output when the tool provides it. Check that every flag the goal's metric command uses appears in that copy's --help (or is exercised in a dry run). Check whether the checkout is behind its upstream, when determinable from local refs (git rev-list --count HEAD..@{u}, never a fetch); with no upstream ref, report not determinable. Check that the output column or field the goal's metric names is produced (a dry run or sample output contains it). A stale checkout, wrong plugin root, missing flag support, a copy behind its upstream, or a missing output column stops the run, names both fixes (update the tool, point at the installed plugin copy, or change the goal's metric command), and reports no partial numbers. Carry the record in the report:

Tool: <path> @ <rev|hash> (<version>) flags-ok: <yes|no — list missing> behind-upstream: <n|not determinable> column-ok: <yes|no — name missing>

2. Capture the drift-immune counter first

Spawns, syscalls, queries, allocations, round trips. The counter is the headline; the duration is context. A counter also catches harness bugs immediately, because a counter that does not move when it should is an unambiguous signal, while a duration that does not move is ambiguous. Re-measure it after every change.

For a process-spawn count, run the bundled census rather than writing one: bash "${CLAUDE_PLUGIN_ROOT}/scripts/run-spawn-census.sh" --shim-dir <stable-dir> --before <cmd> --after <cmd>. It takes the rule 1 two-run proof itself and refuses a temporary shim directory. spawn-census.sh beside it counts one arm. Report the census as spawns= (PATH-shim accounting) in the snapshot; when the goal instead tracks a Windows Job Object or other host counter, state that label explicitly and cite the MSYS +2-per-external-command rule from harness-integrity.md so a +2 delta is not chased as a mystery third process.

A deterministic counter needs one run and no statistics; sample counts apply to durations. Under fixed-tick stepping, the number of units that miss the budget is a counter too, and it beats an average. See lab rigs.

2b. Code path under test (before each arm)

The goal names which code path(s) the metric is meant to exercise, and the observable that identifies each (for example skip with no interpreter versus interpreter run path, cold cache versus warm). A goal with no Path: line goes back to

Полный SKILL.md на GitHub

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

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

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

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

  • evals/evals.json

FAQ

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

Capture a baseline or post-change snapshot after a goal with a floor, qualifying the host first: refuses wall-clock claims on bimodal-contention hosts (naming the drift-immune counter) and interleaves before/after arms in one run. Use when: 'capture a baseline', 'take a post snapshot', 'run the A/B'. Not for code shape: /verification:measure.

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

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

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

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

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

Сравнить Snapshot с