/performance:target [<path|component|'session'|'telemetry'>]from performance
Ranks optimization targets by evidence quality (E1-E4 tiers) using session pain, named paths, or telemetry. Answers 'what should we optimize' with data-driven priority instead of guesswork.
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. [<path|component|'session'|'telemetry'>]. e.g. /performance:target plugins/disk-hygiene/hooks
Answers "what should we optimize, and how much do we actually know about it?"
Never pick a target because its mechanism sounds expensive. A diagnosis blaming WDAC code-integrity enforcement for slow process spawns is wrong when the data says otherwise, even with the policy enabled: a spread of min 180.5 ms / median 1107.7 ms / max 2841.3 ms across identical no-op spawns is a contention signature, because a fixed policy check cannot produce a 15x spread. The bimodality is the diagnosis; the plausible mechanism is a distraction.
Rank by evidence, and say so when there is none.
| Source | What to do |
|---|---|
| The current session's own pain | Name the operation that felt slow and what was observed. A screenshot or recording counts. Anecdote is a valid candidate source and an invalid ranking basis. |
| A named path or component | Enumerate the layers it spans before choosing one (see "Measure the layers first"). |
| A telemetry store | /harness-ops:observability for Claude Code's own; otherwise the project's. Prefer it over every other source, after checking its accuracy and coverage. |
| Open-ended "what is slow here" | The open-ended sweep belongs to /performance:go-faster; this skill ranks what that sweep, or the user, brings. With nothing brought, expect "instrument this first". |
Rank every candidate into exactly one. A lower tier never outranks a higher one, regardless of how compelling the mechanism sounds.
| Tier | Means | Example |
|---|---|---|
| E1, attributed measurement | A measurement that isolates this component's cost from its neighbors' | A spawn census showing this hook costs 4 of the 7 spawns per tool call |
| E2, aggregate measurement | A real measurement that includes this component but does not isolate it | "The whole pre-tool path takes 1.2 s" |
| E3, structural inference | No measurement; a documented cost model predicts expense | "This is a 125-line shell wrapper that runs per tool call" |
| E4, suspicion | A plausible mechanism and nothing else | "WDAC is probably slowing spawns" |
Nothing above E3 exists means the top recommendation is "instrument this first", naming the cheapest instrument that would reach E2. That IS the answer; do not substitute a ranked guess.
Cheap instruments: a census of what runs on the hot interaction, and events tagged with the region and phase the symptom hits.
When a candidate spans layers (a shell wrapper around a Python program; a route through an ORM through a driver), attribute cost across the layers before picking one to optimize.
Do not pick the largest layer by size: a 125-line shell wrapper can carry roughly 88% of the cost while the 1903-line Python guard body it execs is not the bottleneck. Layer attribution is cheap and reorders the candidate list.
Trace past the headline event too: work no metric covers (background reloads, idle-state work) still costs. For a field report with a recording, follow the diagnosis ladder before theorizing. See diagnose.
To name a candidate's mechanism, find the row of the profile-to-family table in optimization patterns that the evidence matches; a mechanism with no matching row is not named. A deletion candidate is the exception: it comes from reading the path's callers, so it ranks E3 until a measurement covers it.
For each ranked candidate, name the drift-immune counter that would settle it: process spawns, syscalls, queries, allocations, bytes, round trips. A counter is reproducible on a host whose wall clock is not.
The counter catalog lists
deterministic counters to try before timing. If no counter exists for a candidate, say so
explicitly: it changes what /performance:goal can promise.
Counts over wall clock is sourced only for instruction counts (Valgrind's Cachegrind manual; Iai); extending it to spawns, syscalls and queries is this plugin's own generalization, and Valgrind's manual also argues execution time "is a better metric than instruction counts because it's what users perceive". Present a counter as reproducible, never as more truthful.
A ranked table, highest evidence tier first:
| Rank | Candidate | Tier | What is known | Counter that would settle it | Cheapest next instrument |
|---|
Add a Growing state column when the candidate reads state whose size grows with use (transcripts,
logs, histories, accumulating caches): yes — /performance:goal will require scaling arms or no.
When yes, name what grows and the smallest realistic span of sizes to measure (not a single point).
Then one line naming the recommended target and the tier it rests on. If that tier is E3 or E4, the recommendation is to instrument, not to optimize.
On a re-scan after a MET result, look first for the next slow spot in the same journey or path.
/performance:goal, which is human-gated
because it needs the floor computed and the realistic/ideal split agreed./performance:snapshot captures./debugging:analyze-profile when the debugging plugin is enabled;
otherwise open it in the tool that recorded it. Either way, its finding enters this ranking as
E1 or E2 evidence./harness-ops:audit-performance, which this skill consumes as a telemetry source rather than
duplicating./performance:goal <chosen target>. Carry the evidence tier forward: goal stops
on an E3 or E4 candidate, or one this ranking says to instrument, until the named instrument has
run./performance:snapshot when a wall-clock claim gets refused./performance:goal does not settle on one transcript size while production grows without bound.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`)./goalPurposePerformance goal the data can settle: metric, command, realistic and ideal targets, and the floor computed before any work, surfacing 'your target is below the measured floor, no code change can reach it' up front. Human-gated, never unattended. Use when: 'set a performance target', 'is this target achievable', 'define done for this optimization', 'what is the floor here'. After /performance:target, before /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