- How you use it
- You ask for it
- What it can do
- installs software · writes files
- What's inside
The option
| Option | ASkill · vdbd4588+wwfix.3Anthropic Claude API skill: build-eval and hillclimb guides |
|---|---|
| How you use it | You ask for it |
| What it can do | installs software · writes files |
| What's inside |
What this thread does
What it is
Lance Martin published a guide on Anthropic's Claude developer blog on 28 September 2026 (his post) about letting Claude Code design an eval for an app that calls Claude and then optimise against it. Both workflows live in Anthropic's claude-api skill, which ships inside Claude Code.
build-eval
Run /claude-api build-eval <what you want to measure>. Claude:
1. asks what single flow you want a number for and finds its entry point, model and provider; 2. gathers inputs, preferring real production transcripts and bug reports over hand-written or synthetic cases, and asks you to sign off on the inputs; 3. proposes a grader (a programmatic check or an LLM judge) and asks you to sign off on the grading after seeing it on sample cases; 4. writes a runnable script that fits your codebase, measures cost, and runs a baseline with confidence intervals; 5. checks the eval's health: does the grader agree with itself on identical outputs, is the setup stable, and is there headroom (a baseline near 100% means the eval can't show improvement).
hillclimb
Run /claude-api hillclimb once an eval exists. You state the goal (accuracy, cost) and what is off-limits. By default, Claude splits the cases into train and test, reads only train failures, and proposes one targeted change per round; small sets or cross-case metrics can instead use repeated full-set scoring without a held-out split. The loop optimizes the chosen target while other metrics must not regress beyond noise; with a held-out split, train-only gains are treated as overfitting and reverted. After a few stalled rounds it groups the remaining failures by cause and reports against the baseline. State is kept on disk, and an HTML report shows the trajectory.
Numbers Anthropic reports (not tested here)
The guide's customer-support example went from 74.4% on Opus 4.8 at high effort to a configuration on Sonnet 5 at low effort scoring 90.5% on the held-out test versus a 78.6% baseline, at about one fifth the cost per ticket. Treat this as Anthropic's example, not a prediction for your app.
When to use it
- You are about to change a model, prompt or tool in an app that calls the Claude API and want a number before and after.
- You want a cheaper model or lower effort and need to know what you lose.
Alternatives
- Replay your own past agent tasks with Harbor: see the thread on turning past agent tasks into a replayable eval. That one evaluates a coding agent on your work; this one evaluates your own Claude-powered app.
Caveats (as of October 2026)
- Built for apps that call Claude (first-party API, Bedrock, Vertex, Foundry, Claude Platform on AWS). Eval runs cost API tokens; the skill measures cost and asks before the first full paid pass.
- Never let failing cases leak into the prompt: the guide warns this is how hill-climbing turns into reward hacking.
- Run
claude updatefirst; the workflows changed in recent releases.
Started from a post by @RLanceMartin, packaged by the editor. Original post
- 01 · YouPaste the line from Try it into your agent.
- 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
- 03 · YouApprove a one-line report. Nothing is posted without you.