/performance:climb [<goal-slug>]from performance
Runs a keep-or-revert optimization loop: one hypothesis per commit, both arms measured, kept by a pre-written rule. Use for hill-climbing benchmarks or iterating until a target is met.
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; scripts run unread.
Arguments. [<goal-slug>]. e.g. /performance:climb site-build-template-parses
Answers "which of these changes actually moved the number, and how far can it go?"
Measure one change at a time: hypothesis, change, commit, measure both arms, apply the rule, keep or revert, log, until the goal is met. Keep every judgment out of reach of the attempt being judged: the rule is written first, the harness is frozen, and the baseline is re-measured beside each attempt.
Read ${CLAUDE_PLUGIN_ROOT}/reference/harness-integrity.md
before the first attempt.
/performance:goal with its floor, its Realistic target and min_attempts. A
goal without min_attempts goes back to /performance:goal; never pick one here, since goal is
human-gated./performance:snapshot froze: the command, the commit it was frozen at, and its
discrimination result. Send the run back to /performance:snapshot baseline when no harness is
frozen, or when its output carries neither tally. Each harness run must print three numbers: the
goal's counter, a tally of failures and a tally of finished work units.git status --porcelain in your checkout prints nothing. Refuse
otherwise and name the files: the loop starts from a commit, and uncommitted work is not in it./performance:snapshot froze, a second command that prints the
same three numbers on inputs the main harness does not use. It needs its own Frozen: line in
the baseline report with discriminate: exit 0, worded like item 2; send the run back to
/performance:snapshot baseline when the line is missing. Absent means off: the run behaves
exactly as it does without this item, and nothing below that mentions the holdout applies.Memory slice. Use <memory_dir>/<topic-slug>/climb/<goal-slug>/ in your checkout (default
<memory_dir> is .work/), by absolute path: the loop runs in another worktree, and the log
must outlive it. Done when the directory exists.
Keep rule. Write keep-rule.json there with exactly three keys: counter (the goal's
counter, by name), direction (lower or higher) and gain_floor (the change in the counter
that counts as a gain; the host's measured noise for a duration, 0 for a deterministic count).
Show it to the person when one is present. Never edit it during the run: once an attempt
has a number, any change to the file would tailor the rule to that number.
Two worktrees, outside your checkout or in a directory its .gitignore ignores. Start both
at your checkout's HEAD:
git worktree add -b climb/<goal-slug> <climb-path> <start-sha>. A branch with
that name already exists: stop and ask, since it may hold an earlier run.git worktree add --detach <baseline-path> <start-sha>. It always sits at
the last kept commit.Every attempt happens in <climb-path>. Nothing in this skill edits, commits in or resets your
checkout.
Starting measurement. Run the harness once in each worktree. The counters agree, the error counts are zero and the work counts match, or the harness is not stable enough to climb on: stop and say which number differed.
Holdout, only when item 4 is given. Write holdout.json in the slice, holding the
holdout's Frozen: command and sha; like keep-rule.json it is never edited during the run.
It is not a key of keep-rule.json, which decide accepts only with its three keys. Then run
the holdout once in each worktree, by absolute path, as step 4 does: the counters agree, the error counts are zero
and the work counts match, or stop and say which number differed. This is a stability check
only; its number is never compared at the end. Run the holdout nowhere else until the run ends.
python3 "${CLAUDE_PLUGIN_ROOT}/skills/climb/scripts/climb_log.py" show --log <slice>/log.tsv.
Do not retry a mechanism already reverted unless the new attempt says what differs.<climb-path> that tests that hypothesis and nothing else. Never edit
the harness files, the holdout harness included. Never read holdout output while forming a
hypothesis; holdout numbers never go into log.tsv, so show carries none.climb/<goal-slug>, staging the changed files by name.<climb-path>. Record pass or fail.ab.sh with --a running the
harness in <baseline-path> and --b running it in <climb-path>, at the goal's iterations and
percentiles. ab.sh discards each arm's output, so also run the harness once in each worktree
and read its counter, error count and work count. Never compare against a number stored from an
earlier attempt; the baseline arm is re-measured every time. Never run the holdout harness here.python3 "${CLAUDE_PLUGIN_ROOT}/skills/climb/scripts/climb_log.py" decide --rule <slice>/keep-rule.json --before <baseline counter> --after <attempt counter>.
Settle the verdict in this order, stopping at the first line that applies:
reverted, whatever decide prints. Finishing fewer work units is not a speedup.decide prints kept: kept.decide prints reverted, the counter is no worse than the baseline's, and
git diff --numstat <last kept sha> <attempt-sha> shows lines removed and none added:
kept, noted simplification. Deleting code without losing ground on the counter is a
result in its own right.reverted.git -C <baseline-path> checkout --detach <attempt-sha>.<climb-path>, git reset --keep <last kept sha>, which moves only climb's own
branch. If it refuses, stop and report the files; never use another reset form to force it.python3 "${CLAUDE_PLUGIN_ROOT}/skills/climb/scripts/climb_log.py" append --log <slice>/log.tsv.
Every row passes all nine flags. The outcome goes in --verdict (kept or reverted) and
--tests (pass or fail); the measured numbers in --before, --after and --delta; the
text in --id, --hypothesis, --change and --note. When the verdict is reverted, put the
dropped SHA in --note; git show on that SHA still displays the attempt.--keep refuses and what it moves, see
git-reset --keep.| Logged attempts | Last kept value | Budget | Untried mechanism | Action |
|---|---|---|---|---|
| any | any | spent | any | finish; report the target as not met when it is short |
at or above min_attempts | meets the Realistic target | left or not set | any | finish |
| any | short of the target, or min_attempts not reached | left or not set | at least one | next attempt |
| any | short of the target, or min_attempts not reached | left or not set | none | finish; report Next idea: none left and which condition was not reached |
A budget is optional. Without one, the last row is what ends a run that never reaches its target.
min_attempts is a floor on evidence: the attempts after the first kept one show whether the
counter has more room. The goal, the keep rule and the budget stay as written until the run ends.
Smaller first. Between two hypotheses expected to move the counter by about the same amount, attempt the one with the smaller change first; the number never justifies extra code on its own.
From the log. Group the logged rows by the mechanism each one named. Prefer a mechanism no row has tried yet over a variant of a reverted one.
After three reverts in a row, run /performance:target against <climb-path> when it is
among the available skills, and take the next hypothesis from its ranking; without it, profile
the harness run once and pick the largest cost no row has touched.
Report what each gain cost. Each kept line in the report carries its git diff --stat
totals, so the reviewer can weigh a small gain against a large change.
The skill starts no /goal and sets no loop. For a run nobody watches, draft its stop condition
first with /planning:draft-goal-condition when that skill is among the available skills,
naming the goal's target, min_attempts and the budget; without it, write the condition from
those same three items. The person starts the run with that condition.
Holdout: not run (nothing kept). Otherwise
run git -C <baseline-path> checkout --detach <start-sha>, then run the holdout once in each
worktree, by absolute path, and read its counter, error count and work count; no ab.sh run
is needed. Call decide --rule <slice>/keep-rule.json --before <holdout counter on the start sha> --after <holdout counter on the last kept sha>: kept reports held, reverted reports
did not hold. As in step 7.1, a rose error count or a differing work count reports
did not hold whatever decide prints. A run whose kept attempts are all simplifications
(step 7.3) reports whatever decide prints; a did not hold there says only that the holdout
showed no gain. The holdout informs and never reverts: a gain that did not hold is still the
climb's result. Do this before step 1 removes the worktrees.git worktree remove <path>. The branch climb/<goal-slug> stays
and holds the kept commits in commit order. When git worktree remove refuses, leave that
worktree in place, name its path and the files git status --porcelain lists in the report, and
let the person clean it. Never pass --force.Branch: climb/<goal-slug>
Log: <absolute path to log.tsv>
Counter: <counter>, <direction>; Realistic target <Realistic target>
Moved: <start value> -> <last kept value> (<percent change>)
Evidence: min_attempts <n>; logged <n>: kept <k>, reverted <r>
Holdout: <held|did not hold>; <holdout counter on start sha> -> <holdout counter on last kept sha>, or "not run (nothing kept)" (only when a holdout was given; with errors or work counts that differ, name them)
Next idea: <the untried hypothesis most likely to move the counter, or "none left">
Changes, oldest first, one line each:
<sha> <change> (<files> files, +<added> -<removed>)
remove accepts, see
git-worktree remove.
Ignored-only output was also checked by hand: removal succeeds.Does not set the goal or the rule's counter. /performance:goal does, with a person.
Does not freeze the harness. /performance:snapshot does.
Does not decide the result is real. /performance:verify re-derives it in a fresh context.
Does not climb an eval score. For an LLM app scored against an eval set, the person types
/claude-api hillclimb; this skill never starts it.
Pointer: for the /claude-api subcommands, see
https://code.claude.com/docs/en/skills#work-on-claude-api-projects. As of: 2026-10-04.
Recheck trigger: that section drops or renames hillclimb.
/performance:verify on the branch climb/<goal-slug>, with the log path.
decide says reverted, the
attempt is reverted unless it is a pure deletion (step 7, line 3). Change the goal through
/performance:goal before the next run, never during this one.climb/<goal-slug>.What SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/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./protectPurposeChecked-in CI ceiling on the counter of a performance win /performance:verify reported MET: a regression fails the build and a lower count proposes a lower ceiling by PR. Proposes files; a human approves and merges. Use when: 'protect this win', 'ratchet this counter', 'stop this regressing', 'add a performance guardrail to CI'. Not for a duration-only or NOT MET result.npx claudepluginhub melodic-software/claude-code-plugins --plugin performanceOther plugins' skills for the same job