Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

performance:hill-climb

БесплатноБез исполняемых скриптовНе проверен

Use when asked to hill-climb a program, or to make software faster or leaner (runtime, startup, throughput, memory, bundle size) through repeated measured…

bendruckerот bendrucker★ 18 звёзд на GitHub

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

Hill Climb

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.

Arguments

  • <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.

Frame

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.

    • Start from who waits on the result and when: a person after a change, a CI job, a scheduled run. Measure the run the user waits through, even when the code handles another run more often.
    • A scheduled run nobody waits on can take on work that speeds the waited-on one.
    • Ask where the real workload spends its time. A benchmark input can skip the phase users wait through.
    • A memory metric is peak RSS of the scenario, compared with 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.

    • When a candidate can change lookup order (PATH, module or library search paths), the guard compares what each name resolves to.
    • Only the user relaxes a guard.
  • 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.

Workspace

  • herdr. Under 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.
  • Runs. Build arms per 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.
  • Progress. 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.

Harness

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:

  • Audit. Check the harness against the Frame's scenario:
    • It runs to the end point the user waits for. A shell benchmark that exits before the first prompt skips everything deferred to it.
Полный SKILL.md на GitHub

Установить performance:hill-climb в Claude Code и Claude Desktop

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

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

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

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

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

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

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

references/ci.mdreferences/notes.md

FAQ

Что делает скилл performance:hill-climb?

Use when asked to hill-climb a program, or to make software faster or leaner (runtime, startup, throughput, memory, bundle size) through repeated measured changes, including resuming a climb from its notes file. For prompts or skills scored by an eval suite, use evals:hill-climb.

Как установить скилл performance:hill-climb?

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

Скилл performance:hill-climb запускает скрипты?

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

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

Сравнить performance:hill-climb с