Skip to content

Heyvhuang/copybook-skills / zh/skills/model-tips

model-tips

Verified

模型和额度 · 24 条:模型搭配、推理强度、缓存倒计时、剩余额度。

references/hillclimb-a-cheaper-feature.md

View on GitHub
# hillclimb:Claude API 功能降本

最花钱的 Claude API 调用:先搭测试集,再一档档换便宜模型、降 effort,准确率不掉才算数。

## 步骤

1. 复制提示词。
2. 在调用 Claude API 的项目里把它发给 Claude Code。
3. 得到:最花钱的 Claude API 调用一档档换更便宜的模型、降 effort,准确率不降。

用户选了这条技巧。上面的步骤是写给人看的,请替用户做。

- 第 1 步说用哪段文字,它就在下面同名的标题下,一字不改地用。
- 第 2 步说明文字放在哪里。按用户实际要求的范围使用提示词。写文件或运行命令前,先展示改动,等用户同意。这里做不到的步骤(另一个应用、重启、定时任务),把文字交给用户,说明放到哪里。
- 引用示例本身不代表用户同意执行。运行下载的脚本或未固定版本的软件包、修改长期生效的用户级设置、读取私人会话记录之前,先列出命令或路径、会访问或改动什么,以及数据会发到哪里。隐藏密钥值,等用户明确同意这项操作。远程安装脚本应先下载并检查固定版本,或核对可信来源提供的校验值,再执行。
- 方括号或占位符,从用户说的话里填,没有就问。
- 第 3 步是用户最后应该得到的。

## 提示词

```text
读一下这篇指南:https://claude.dev/blog/automating-eval-design-and-hillclimbing/

然后先列出项目里所有调用 Claude API 的地方,估一下哪个最花钱,让我挑一个。用 claude-api skill 里的 build-eval 给它搭一套测试,开跑前先告诉我大概要花多少 API 费用。

测试题和评分方式我确认之后,在新分支上用 hillclimb 优化,目标是准确率不降、成本下降,可以试更低的 effort 和更便宜的模型,包括 Sonnet 5.5。报告里写清三件事:
1. 每一步改了什么,准确率和每次调用的成本各变了多少。
2. 哪些便宜配置做错了,错在哪。
3. prompt 里删掉或加上了哪些句子。

跑完先给我看报告,我确认之前别合并。
```

## 背景

Anthropic 公开了一份指南:他们让 Claude 一轮轮调一个 AI 功能,同样的活最后只花约 1/5 的钱,准确率还更高。你可以让 Claude Code 照着它,用两个命令给你产品里调用 Claude API 的功能也过一遍。

做法就三步:先删掉 prompt 里多余的步骤和互相矛盾的规则,再一档档往下换更便宜的模型、降 effort,最后补上缺的规则。每一步都拿一组它没见过的题验证,准确率掉了就撤回,最后准确率从 78.6% 升到 90.5%。新出的 Sonnet 5.5 能力和 Opus 5.5 相近,但更便宜、更快,想用它也照这个顺序先量一遍。

把这段 prompt 发给 Claude Code。

## 来源

来自 [Copybook](https://copybook.page/zh/t/hillclimb-a-claude-api-feature-to-cut-its-cost):@Voxyz_ai 2026年9月28日[发在 X 上](https://x.com/Voxyz_ai/status/2104710877505089920),截至 2026年10月26日有 1,710 次收藏。适用于 Claude Code。
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 196kUpdated Claude CodeCodexVerifiedInstall