/performance:goal [<target>]from performance
Defines a measurable performance goal with realistic and ideal targets plus a computed floor, surfacing unreachable targets before work begins. Human-gated, never unattended.
Ships in performance. 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. [<target>]. e.g. /performance:goal the destructive-guard PreToolUse hook
Answers "what would count as done, and is it reachable at all?"
Compute the floor before the goal is agreed: a goal of p50 <= 250 ms on a host that charges 0.3-2.8 s for one irreducible process spawn is unreachable by any code change, and the task becomes "remove the spawn or accept the floor", not "make it fast".
This phase requires the user, under any autonomy setting; /performance:snapshot and
/performance:verify may run unattended. Choosing between a reframed goal, a different target and
accepting the floor is a judgment about what the work is for, and an agent resolving it turns a
surfaced constraint back into a silent one. If the user is unavailable, stop and say what is
blocked; do not pick a target and proceed.
Read the ranking /performance:target produced and quote the chosen candidate's row verbatim
(rank, tier, what is known, the settling counter, the cheapest next instrument). That row is the
object this goal is about, and its tier is the one the Output's Target line carries.
/performance:target again./performance:target's tier table. Never
leave the tier blank or use the baseline's tier, which answers a different question.Not "latency". The literal command, its arguments, and the field of its output that is the number. A metric nobody can re-run is not a metric.
Name the drift-immune counter alongside it (spawns, syscalls, queries, allocations, round trips) and rank the counter above the duration. On a host that cannot support a wall-clock claim, the counter survives: a spawn census of 4 -> 1 still reproduces when the milliseconds behind it do not, because a verifier an hour later meets different load.
Correlation, required. Record the evidence that moving the counter moved the duration; a counter
that does not track the duration is a hill nobody should climb. unproven is a legal value and
travels to the verify report beside the headline counter. The two-rig recipe is in
/performance:snapshot; see prove the proxy.
Measurement boundary. Name the start event, the end event, and which side of any process or network split each falls on. Name the start state too (cold start, fresh load, warm path): each is a different measurement. End at the moment the user or caller can act, not when loading finishes. See goal and boundary.
Parallel units on one event. When units run in parallel behind one user-visible event, the user
waits for the slowest, not the sum. Record the event's wall-clock time (Event:) and the unit's
marginal cost over the next-slowest peer (Unit:); an event-level target sits beside the unit-level
ones, and summed CPU or syscall totals never replace it. Procedure and the hooks example:
parallel units.
Scaling arm when state grows with use. When the subject reads state that grows with real use
(transcripts, logs, queues, caches, databases), measure at two or more sizes spanning realistic use
and record each size and result (Scaling:). Done when states a bound on growth; when the human
has not stated one, the goal is not locked: stop and say what is blocked, and do not pick the bound.
/performance:verify fails a bound not demonstrated at every recorded size. Procedure:
scaling arm.
Code path under test, required. Name the code path(s) the metric exercises and the observable
that identifies each: a marker file, an exit code, the set of processes spawned. A goal that names no
path is not locked. A harness can sit on a rare branch without erroring: a stale bench.launched
marker once sent every Stop-hook sample down the rare Python path while the common skip path went
unmeasured. /performance:snapshot step 2b resets or records the path-selecting state before each
arm and reports which path ran.
The irreducible cost this target cannot go below whatever the code does. Compute it by measuring the cheapest possible version of the operation: the empty hook, the no-op spawn, the single round trip, the query returning one row.
lib/spawn_noise.py's spawn_probe() gives the process-spawn floor for this host. Pass its summary
to is_measurable(summary) and quote the returned reason verbatim before stating any wall-clock
floor. Contention is a two-part predicate: a spread at or above 3.0x across identical no-op spawns
AND a slow mode at or above 500 ms. A wide spread alone is a healthy cold-then-warm host, so never
assert "this host drifts with load" from spread_ratio alone. A False keeps the floor in counter
terms (spawns per operation), not milliseconds.
Then compare:
Record both: a single target collapses "did we succeed" and "how much is left" into one number.
The Realistic target may be an estimate: the candidate's measured cost minus the estimated gain of
the planned change, summed when several planned changes aim at this metric. Label it estimate
and show it at this phase's human gate, where the person accepts or replaces it. A candidate with
no measured cost gets no estimated target. See
estimates in the target unit. A project that
wants Realistic targets stated by hand says so in its own CLAUDE.md or AGENTS.md.
Including whether merge is in scope and whether a behavior change disqualifies the result. A correctness regression outranks any speedup and is reported separately from the performance claim.
A single planned edit leaves this out. Work that will run as /performance:climb's keep-or-revert
loop needs min_attempts, the count of logged attempts required before a met target may end the
loop. The person chooses it; never pick the number for them. Without it the first kept attempt can
end the run, and the report then presents what one change happened to achieve as the most the code
can reach.
Default: p50 and p95 over at least 20 samples, alongside the counter. The goal records its
percentile list; /performance:snapshot passes that list to ab.sh as --percentiles, and the
1/(1-p) floor below applies to every entry.
State plainly that this is a house convention, not field consensus:
p needs at least 1/(1-p) samples to be expressible (p95
needs 20, p99 needs 100). percentile_floor() in lib/spawn_noise.py computes it, and that floor
is enforced.If the user wants p99, say what it costs: 100 samples on a host where one spawn can take 2.8 s.
Write the goal into the topic's PLAN.md, and keep baselines in the memory tier
(.work/<topic-slug>/baselines/, machine-bound, never committed). That is /verification:measure's
layout, followed here whether or not the verification plugin is installed, so the two never keep
two different baseline stores.
Metric: <exact command> -> <field>
Counter: <drift-immune counter> [ranked above the duration]
Correlation: <evidence the counter moves the duration> | unproven [REQUIRED]
Path: <code path(s) under test> (observable: <marker | exit code | process set>) [REQUIRED]
Boundary: start <event> -> end <event>; <which side of the split each falls on>; <start state>
Event: <wall-clock metric when units run in parallel> | n/a
Unit: <unit under study + marginal over next-slowest peer> | n/a
Floor: <value> (measured by: <command>)
Realistic: <value> [estimate / stated] Ideal: <value> [event-level realistic/ideal when parallel]
Percentiles: <list, default p50, p95> over N>=20 [house convention; floor 1/(1-p) enforced]
Scaling: <growing input, sizes, per-arm results, bound> | n/a: subject reads no growing state
Done when: <criteria, including whether merge is in scope and any scaling bound on growing state>
Min attempts: <n, when a loop is planned> | n/a: no loop planned
Target (from /performance:target): <candidate> @ <E1..E4>
/performance:snapshot; this phase measures only the
floor, an input to the goal rather than a result of it./implementation:implement./verification:measure owns baseline capture and storage when the
verification plugin is installed; this plugin depends on it rather than reimplementing it./performance:snapshot baseline.
hook-failure-audit.sh Stop hook took 137 ms on a 50 KB transcript, 1,374 ms on 2 MB, and
6,977 ms on 10 MB, with a constant 3 processes per fire, so a spawn counter alone would have
passed it. A constant counter does not rule out size-proportional cost: measure the duration at
two sizes even when the counter is flat. Claim: those timings and the constant process count of
3. Basis: issue #4389 (22 runs per size). As-of: 2026-09-29. Recheck when #4389 is edited or the
hook is rewritten.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub melodic-software/claude-code-plugins --plugin performance7 skills in this plugin
/climbPurposeKeep-or-revert loop on a frozen harness: one hypothesis and one commit per attempt, both arms re-measured every time, kept by a rule written before the first attempt, logged outside the tree, in its own worktree and branch. Use when: 'keep trying changes until this counter drops', 'hill-climb this benchmark', 'iterate on this until the target is met', 'run an optimization loop'. After /performance:snapshot baseline, before /performance:verify. Skip when: the score comes from an eval set for an LLM app (`/claude-api hillclimb`); one before-and-after comparison (`/performance:snapshot`)./go-fasterPurposeBackground sweep of the whole AI-assisted development process (this session's work, git, hooks, the rest of the setup) for ways to go faster without losing accuracy, returning evidenced findings ranked by measured size and speedups to adopt now; edits no repository file or setting. Use when: 'go faster', 'how can we go faster', 'speed up this session', 'what is slowing us down', 'whole-process speed sweep'. Skip: ranking candidates already in hand is /performance:target.Other plugins' skills for the same job