Climb
Keep-or-revert loop on a frozen baseline harness in a worktree: one change and commit at a time, re-measuring both arms by a pre-written rule logged outside…
от melodic-software★ 34 звезды на GitHub
Установить Climb в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Climb
Arguments. [<goal-slug>]. e.g. /performance:climb site-build-template-parses
Purpose
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.
Inputs, or stop
- A goal from
/performance:goalwith its floor, its Realistic target andmin_attempts. A goal withoutmin_attemptsgoes back to/performance:goal; never pick one here, since goal is human-gated. - A harness
/performance:snapshotfroze: the command, the commit it was frozen at, and its discrimination result. Send the run back to/performance:snapshot baselinewhen 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. - A clean checkout.
git status --porcelainin your checkout prints nothing. Refuse otherwise and name the files: the loop starts from a commit, and uncommitted work is not in it. - Optional: a holdout harness
/performance:snapshotfroze, a second command that prints the same three numbers on inputs the main harness does not use. It needs its ownFrozen:line in the baseline report withdiscriminate: exit 0, worded like item 2; send the run back to/performance:snapshot baselinewhen 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.
Set up, before the first attempt
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.jsonthere with exactly three keys:counter(the goal's counter, by name),direction(lowerorhigher) andgain_floor(the change in the counter that counts as a gain; the host's measured noise for a duration,0for 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, under the worktree root, never inside your checkout. The root is what
git -C <checkout> config --get-all --type=path worktreeroot.path | tail -n 1prints, never scoping the read without--includes(the source-control plugin'sworktree-root-convention.mdreference owns the key). Read it only aftergit -C <checkout> rev-parse --git-dirsucceeds; when that gate fails, stop and report it (dubious ownership needs asafe.directoryentry, or the checkout is not a repository). With the key unset, the root is the system temp directory. A value that is not an absolute path: stop and report it, since what it names depends on the directory it is read from.- Outside every repository. Probe
<root>, or its nearest existing ancestor when<root>does not exist yet, withGIT_DIRandGIT_WORK_TREEunset:git -C <probe> rev-parse --git-dir. When it succeeds, the root sits inside a repository, which the containment hook blocks: stop and report it. Probing a missing<root>itself would fail and pass every root. - No earlier run's branch. When
git -C <checkout> rev-parse --verify --quiet refs/heads/climb/<goal-slug>succeeds, stop and ask, since the branch may hold an earlier run. Check this before eitherworktree add, so a stop leaves nothing half made. - Fresh paths. Create
<root>withmkdir -pwhen missing, then make a directory no other run shares,mktemp -d <root>/<repo>-climb-<goal-slug>.XXXXXX,<repo>being your checkout's directory name, and take its real path withpwd -Pin it: git records real paths, and Finish'sworktree removefinds a deleted directory only by the exact recorded path.<climb-path>is<that directory>/climband<baseline-path>is<that directory>/baseline; neither exists yet. Write both paths inworktrees.txtin the slice, one per line: Finish removes these two and no other.
Start both at your checkout's
HEADsha,<start-sha>:- climb's own:
git -C <checkout> worktree add -b climb/<goal-slug> <climb-path> <start-sha>. - the baseline arm:
git -C <checkout> worktree add --detach <baseline-path> <start-sha>. It always sits at the last kept commit.
When the baseline add fails, first undo the clim
- Outside every repository. Probe
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- evals/evals.json
- scripts/climb_log.py
- scripts/test_climb_log.py
FAQ
Что делает скилл Climb?
Keep-or-revert loop on a frozen baseline harness in a worktree: one change and commit at a time, re-measuring both arms by a pre-written rule logged outside the tree. Use when: 'hill-climb this benchmark', 'run an optimization loop', 'keep trying changes until this counter drops'. Not for an LLM app's eval-set score: /claude-api hillclimb.
Как установить скилл Climb?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Climb запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…