/performance:hill-climb <target> [<notes file>]from performance
Iteratively optimizes a program for speed or size (runtime, memory, bundle) through measured changes. Use when asked to hill-climb or make software faster/leaner.
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.
Goal: a program that is measurably better on the metric the user cares about, where every accepted change carries evidence that it beat run-to-run noise, kept behavior identical, and holds on inputs the climb never tuned against. The user stays in the loop at fixed checkpoints and can reconstruct every decision from one notes file.
This skill is the workflow. Load performance:benchmark to build the harness and compare arms, and performance:profile to find where the time goes. A repo's own benchmark conventions take precedence over the defaults here.
<target>: the program or command to climb. Required.<notes file>: where the climb log lives. Default: CLIMB.md beside the benchmark harness, or tmp/climb.md when the repo has no harness directory. When it already exists, resume from it: skip the Frame items its Rules settle, and keep the line under its title that tells a later session to load this skill.Interview the user until each item below is settled and none rests on your assumption:
Ask in rounds with AskUserQuestion, one question per open decision.
Settle every item before building anything.
Write the answers into the notes file's Rules section (references/notes.md has the template), then confirm the section with the user.
A dispatching brief settles only the items it states. Ask the rest.
When the session is unattended (a dispatched brief, or the user said they are away), settle each open item yourself. Record it in Rules as assumed: <value>, and name every assumed item in the first decision report.
Metric. The number the user cares about, on an exact scenario: the command, its input state, and the machine state. "Wall time of a sync run by hand right after one upstream commit" is a metric. "Make it faster" is not.
compare.ts report --metric memory. Allocation volume can be a fast signal only after the baseline shows it tracks the peak.Ceiling. The value past which further gains stop mattering to the user. The climb stops there.
Fast signal. A cheaper or lower-noise number that moves with the metric: CPU time, instructions retired, work per tick, bytes. Accept on it only after the baseline shows it tracks the metric.
Guard. What must stay identical: output, final state, exit code. Name the check that proves it.
PATH, module or library search paths), the guard compares what each name resolves to.Side effects. Everything a run touches outside itself: network, remote state, installed files, caches. Decide per item whether to stub it, hold it fixed, or reset it before each run.
Scope. Which changes are allowed: code, config, dependencies, external tools, public API. Ask whether parallelism is in scope. When caching is in scope, ask where a cache may live and how it invalidates. Ask how much added code a gain must pay for.
Inputs. Which scenarios are dev (tuned against) and which are holdout (scored once at the end). Cover the workload's range of sizes and shapes. Prefer real inputs over synthetic ones for holdout, and look for larger real data when every dev input is small.
Budget. How long the climb may run and how the user wants progress between checkpoints.
HERDR_ENV=1, run the whole climb in one herdr workspace so the user can watch every run. On a cloud VM, create it on the VM's herdr machine and add --machine <label> to the same commands. Load herdr:herdr for them.performance:benchmark. Launch a run longer than a few minutes detached, in the herdr pane or under nohup, so a session reload leaves it running. Run timed commands in the herdr pane when there is one, since the sandbox breaks ptys and skews timing.tee every long run into a log beside the notes file. compare.ts run prints each round's per-arm medians. Report each decision with its numbers as it lands, and stay quiet between decisions unless an estimate slips.Build the benchmark per performance:benchmark, or adopt the project's own when it meets that skill's requirements. When the metric is a CI run, read references/ci.md. Then, before the baseline:
--setup: fixture builds, toolchain installs, downloads and inputs the metric does not cover.performance:profile and rank where the time goes.
Show the user the baseline table, the noise floor, the profile's top entries, a candidate list ranked by the share of the metric each one targets, and the Set Aside leads. When the user is present, wait for the review before the first candidate. When the session is unattended, write the checkpoint into the notes file and continue.
Make one change per candidate. Before measuring it, append to the notes file, so the decision cannot be fitted to whichever number happened to move:
Write the change for the workload, never for a dev input's specifics (its sizes, paths, or contents). A fast path keyed on the fixture passes dev and loses on holdout.
A candidate without a profile entry behind it ranks last, unless a measurement sizes the time it targets: the gap between wall and CPU time, or a cold run against the warm one profiled. Rank that candidate at its measured size.
Record every lead you do not climb in the notes file's Set Aside table with its reason. Drop a lead the user put in scope only after asking.
Run the guard check first. A candidate that changes behavior is rejected without timing.
Screen with the fast signal or a microbenchmark of the changed path. Confirm a candidate that passes the screen with the full metric, interleaved against the current accepted arm at the baseline's run count. Confirm on every dev scenario, including ones the change cannot reach on paper, since a shared lock, allocator, or cache carries a change into code it never touches.
compare.ts report flags for load, and decide on the re-run. An accept rests on them when the gain or its significance fails without those rounds.After each decision:
AskUserQuestion only to change the Scope, a Guard, or the Ceiling. Decide anything else, record it in the notes as assumed: <value>, and name it in the next report.Before stopping on anything but the ceiling or the budget, profile every Frame metric at head on the largest inputs, and rank what that profile shows. A climb that has accepted most of its candidates still has headroom.
Stop when any of these holds, and say which:
When an ETA was given, re-estimate it after each decision, counting the validation runs still ahead. Tell the user as soon as the estimate slips.
Then run holdout once on the original base and the final commit. The climb holds when no holdout case is significantly worse. Report every holdout case whose median rose, with its p, as a slip. A dev gain with a flat or falling holdout overfit the dev inputs.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub bendrucker/claude --plugin performance3 skills in this plugin
/benchmarkperformance:benchmarkUse when timing a program or command, asking whether a change or version made it faster, or building a benchmark harness. To hill-climb or repeatedly optimize toward a target, use performance:hill-climb./profileperformance:profileUse when asked why a program, script, or web page is slow or memory-heavy, or what dominates its runtime, before deciding what to change.Other plugins' skills for the same job