hillclimb
Skill73 starsChanged 9 days agoMITView on GitHub
Use when the user wants sustained, multi-round iterative optimization of a measurable metric (latency, throughput, memory, bundle size, accuracy, or score on a fixed test set) toward a target threshold — triggers include "/hillclimb", "用爬山法優化", "持續迭代壓低延遲", "跑多輪實驗調優這個指標", "對著測試集一路優化到目標分數". Do not use for one-off bug fixes or single-pass root-cause diagnosis (use debugging), building features from a spec (use implement), or running a single parallel N-candidate bakeoff without iterative refinement (use best-of-n-implement).
20 other projects use a version of this.
Adopted by
Most recently taken up by
- seankoji-com/.agentstheir own version, first seen Nov 29, 2026
- syanga/astacktheir own version, first seen Nov 24, 2026
- kadeski/skillstheir own version, first seen Nov 22, 2026
- SleepyStew/mstacktheir own version, first seen Nov 22, 2026
- Majkey25/MStack-Publictheir own version, first seen Nov 22, 2026
- s66lem/stooltheir own version, first seen Nov 22, 2026
Used with
Projects with it also use full-send, review-loop and 8 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
tekumaraSkillfull-send
Trigger this if the user says 'full send' or 'send it' or 'sendit'.
Also in 3 projects that use this
MicrosoftSkillreview-loop
Iterative review loop using any lens agent against any target (plan, code, design). Use when you want to run a focused review cycle: spawn a fresh reviewer subagent with a specific lens, present findings and remediation to the user, apply fixes with user guidance, and repeat until clean.
Also in 4 projects that use this
jaydubya818Skillwhy
Use when design rationale must be recovered from source history and available records.
Also in 5 projects that use this
tekumaraSkillbabysit-pr
Monitor a pull request through review and CI, enabling GitHub auto-merge by default. Use when the user asks to monitor, watch, or babysit a PR.
Also in 3 projects that use this
jaydubya818Skillarena
Use when an important artifact needs independent solutions compared and synthesized.
Also in 3 projects that use this
MicrosoftSkillwriting-for-agents
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
Also in 5 projects that use this
- +1 more from jaydubya818
Other versions20 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 20
- Yeachan-Heo/oh-my-claude-sisyphus★ 41ksame name
- Yeachan-Heo/oh-my-claudecode★ 41ksame name
- rebase-energy/hillclimb★ 37same name
- Suge8/friedbun★ 13same name
- michielvandermeer/skills★ 9same name
- jonmumm/skills★ 3same name
- zombico/mojulo★ 3same name
- paureis/pau-skills★ 2same name
- seankoji-com/.agents★ 2same name
- adelrodriguez/skills★ 1same name
10 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository44 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- folder-level/CLAUDE.mdCLAUDE.md
- absorb-packSkill
- agent-authoringSkill
- agent-dispatchSkill
- align-intentSkill
- auto-choiceSkill
- brainstormSkill
- cavemanSkill
- check-my-stackSkill
- debuggingSkill
- deep-checkSkill
- domain-modelingSkill
- e2e-contractSkill
- e2e-explore-then-batchSkill
- e2e-routeSkill
- figma-context-budgetSkill
- find-skillsSkill
- gate-authoringSkill
- github-repo-researchSkill
- grill-meSkill
- handoff-implSkill
- implementSkill
- model-onboardSkill
- mutation-testingSkill
- prototypeSkill
- receiving-code-reviewSkill
- research-before-answerSkill
- resolving-merge-conflictsSkill
- review-implementSkill
- review-methodSkill
- review-zhSkill
- skill-creatorSkill
- software-factorySkill
- strategic-compactSkill
- tddSkill
- to-questionnaireSkill
- to-specSkill
- to-ticketsSkill
- wayfinderSkill
- wizardSkill
- workflow-hardeningSkill
- write-pr-descriptionSkill
- zoom-outSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.
0
Common
Most of the 19 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 40
Create <scratchpad>/decision.tsv (or a gitignored path outside the target repo's tracked tree) with this exact 8-column header and row 0:
- Very specific: line 55
Read
decision.tsvin full first: Check every prior keep and revert row before choosing the next hypothesis so context compaction never … - Very specific: line 58
If correctness tests fail, output diverges, or the metric does not beat before by more than the noise band → verdict = revert.
- Very specific: line 59
If correctness tests pass AND the metric beats before beyond the noise band → verdict = keep.
- Distinctive: line 64
Check stopping criteria: Stop when (a) the target threshold is achieved, (b) the iteration budget is reached, or (c) 3 consecutive …
“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- 本檔在契約測試底下:bash ~/.claude/skills/hillclimb/scripts/tests/hillclimb-contract.test.sh -->Hillclimb
Sustained, scientific single-variable optimization against a frozen measurement harness.
Why this structure works: Unstructured "find problems and optimize" loops fail in four predictable ways: the agent edits the benchmark to flatter its code, stacks new changes on top of a regression, mistakes run-to-run noise for a win, or forgets failed attempts after context compaction and tries them again. Freezing a sensitivity-proven harness first, reverting every non-winning round to the last winning commit, and logging both kept and reverted rounds in decision.tsv closes all four failure modes.
Invocation and Trigger
- Invocation capability: Model-callable via
Skill(hillclimb)and user-invocable via/hillclimb. Inbound pointers fromdebuggingandimplementroute here when a one-off performance task turns into multi-round metric climbing. - Trigger condition: Authoring guidance — choose this skill when there is a quantifiable metric, a repeatable test corpus or workload, and the goal requires trying multiple sequential hypotheses to improve the number.
Process
1. Pin the metric, corpus, and isolated worktree baseline
- Identify the single scalar metric, its winning direction (lower-is-better or higher-is-better), the target threshold (or maximum round budget), and the fixed input corpus or test suite that guards correctness.
- Prepare a clean, isolated git worktree (or verify
git status --porcelainis empty on a dedicated branch) and recordcurrent_best_sha=$(git rev-parse HEAD). Never run a hillclimb loop inside a dirty shared worktree containing another session's uncommitted changes, because reverting a failed round would destroy unrelated work.
Done when: metric, direction, target/budget, correctness test command, isolated worktree path, and current_best_sha are explicitly recorded.
2. Build, prove sensitivity, and freeze the measurement harness
- 如果本次指標涉及延遲、吞吐量、CPU/記憶體或速度宣稱,就在執行基準量測前讀
~/.claude/references/verification-recipes-and-probes.md的「效能宣稱核驗」,確保計時區間內工作真發生且 0 報錯、正式環境入口與參數對齊,並測量基準中位數與雜訊區間(noise band)。 - 如果本次目標是要大幅重寫「純計算、確定性、無外部 I/O 依賴」的核心或解析器,且既有測試對語意邊界覆蓋薄弱,就在凍結量測尺前讀
~/.claude/references/verification-recipes-and-probes.md的「純計算/解析器爬山前導配方」(外層熱點鎖定、原函式當標準答案機與衍生邊界網)。 - Prove harness sensitivity before trusting it: 如果本次新建或修改了量測腳本或自訂評分比較器,就在凍結量測尺前讀
~/.claude/references/verification-recipes-and-probes.md的「驗證配方維護」第 3 點,在隔離副本中故意引入一個已知退步或錯誤輸出,確認量測尺能抓出退步且正確性檢查會報紅燈,測試後立即還原。 - One-time human checkpoint to freeze the ruler: Present the baseline metric, noise band, exact harness command, correctness command, and sensitivity proof to the user once (
「量測尺與基準已驗證(基準 <X>、雜訊 ±<Y>),確認鎖定這支量測尺後我就連續跑爬山迴圈,可以嗎?」). Wait for approval before starting Step 4 (unless the user already approved the exact harness command in the opening prompt). - Once approved, the measurement harness, input corpus, and correctness assertions are frozen (read-only) for the rest of the run. Never modify the ruler, loosen an assertion, or filter out slow cases mid-climb.
Done when: baseline median and noise band are measured, sensitivity proof passed on an isolated copy and was restored, human approval to freeze the harness is obtained, and the harness files are locked read-only.
3. Initialize decision.tsv outside git tracking
Create <scratchpad>/decision.tsv (or a gitignored path outside the target repo's tracked tree) with this exact 8-column header and row 0:
iter hypothesis change before after delta tests verdict
0 baseline initial state at <current_best_sha> <baseline> <baseline> 0 pass baselineWhy outside git: reverting a losing round in the target worktree must not erase the record of why that round failed.
Done when: decision.tsv exists outside git tracking with the 8-column header and row 0 recorded.
4. Run the single-variable keep / revert loop
Main session stays lean as supervisor: dispatch a routed-impl subagent for multi-file edits or heavy profiling so raw traces do not flood main context. On each iteration i = 1..N:
- Read
decision.tsvin full first: Check every priorkeepandrevertrow before choosing the next hypothesis so context compaction never causes you to retry a dead end. - Form one falsifiable hypothesis and change one variable: State what bottlenecks the metric and why this single change should move it by more than the noise band. Apply only that single change on top of
current_best_sha. - Run correctness tests, then the frozen harness:
- If correctness tests fail, output diverges, or the metric does not beat
beforeby more than the noise band →verdict = revert. - If correctness tests pass AND the metric beats
beforebeyond the noise band →verdict = keep.
- If correctness tests fail, output diverges, or the metric does not beat
- Act on the verdict immediately:
- On
keep: Commit the change (git commit -m "perf(<scope>): <change> (<before> -> <after>)"), updatecurrent_best_sha=$(git rev-parse HEAD), and setbefore = afterfor the next round. - On
revert: Reset the isolated worktree back tocurrent_best_sha(reverting tracked diffs againstcurrent_best_shaand removing any new untracked files created in roundi), then verifygit status --porcelainis empty andHEAD == current_best_sha. Never stack roundi+1on top of a reverted round.
- On
- Append one row to
decision.tsvrecordingiter,hypothesis,change,before,after,delta,tests(pass/fail), andverdict(keep/revert). - Check stopping criteria: Stop when (a) the target threshold is achieved, (b) the iteration budget is reached, or (c) 3 consecutive iterations across distinct mechanisms fail to beat the baseline.
Done when: a stopping criterion is met, the isolated worktree is clean at the latest current_best_sha, and every executed round (both keep and revert) has a corresponding row in decision.tsv.
5. Hand back the verified trajectory
Report in the final message:
- Metric summary: metric name, target, baseline → final (
deltaand%improvement), noise band, and total iterations (keptvsreverted). - Accepted wins: each
keepcommit SHA with its one-line change and measured delta. - Full experiment ledger: inline or link the complete
decision.tsv(including allrevertrows and why they failed) so the user sees what was ruled out. - Next hypothesis: the highest-leverage idea left on the table if further climbing is needed.
Done when: all four items are present in the final chat message and git rev-parse HEAD matches the last keep row (or initial baseline if 0 wins).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

