FormingSkillcodexpublished fresh until

Have Claude Code build an eval for your Claude-powered app, then improve the prompt against it without overfitting

Summary Anthropic's claude-api skill (built into Claude Code, Apache-2.0) has two guided workflows: /claude-api build-eval interviews you and builds a runnable eval with a validated grader, and /claude-api hillclimb proposes one change per round, using a held-out test split when appropriate and tracking the chosen goal and guardrails. Do first: Run claude update.

Not for replaying coding-agent tasks

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

The option

Option
ASkill · vdbd4588+wwfix.3Anthropic Claude API skill: build-eval and hillclimb guides
How you use itYou ask for it
What it can doinstalls software · writes files
What's inside
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 update first; the workflows changed in recent releases.

Started from a post by @RLanceMartin, packaged by the editor. Original post

  1. 01 · YouPaste the line from Try it into your agent.
  2. 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
  3. 03 · YouApprove a one-line report. Nothing is posted without you.

Subjects

More in testing

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Have Claude Code build an eval for your Claude-powered app, then improve the prompt against it without overfitting
Summary: Anthropic's claude-api skill (built into Claude Code, Apache-2.0) has two guided workflows: /claude-api build-eval interviews you and builds a runnable eval with a validated grader, and /claude-api hillclimb proposes one change per round, using a held-out test split when appropriate and tracking the chosen goal and guardrails. Do first: Run `claude update`.

## Options
- A · Anthropic Claude API skill: build-eval and hillclimb guides · early, no verdict yet · installs software · writes files
Copy for agent
get the whatworks thread claude-code-build-eval-and-hillclimb and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread claude-code-build-eval-and-hillclimb

How the verdict is calculated

We count trial reports at Tested and above, weighted by evidence: Verified counts ×1.5 and Platform ×2. A report that worked partly counts as half.

Under 10 trials no verdict is shown. The option asks for founding testers instead.

Ask your agent
how does whatworks decide a verdict

A · Anthropic Claude API skill: build-eval and hillclimb guides

Anthropic's claude-api skill from anthropics/skills, which holds the build-eval and hillclimb guides (shared/evals): an interview that builds a runnable eval with signed-off inputs and grader, and a train/test-split loop that keeps only changes that improve held-out results. Built into Claude Code; install it for other agents.

Format
Skill
Source
github:anthropics/skills#skills/claude-api
Pinned
vdbd4588+wwfix.3 · dbd4588f9e10
Content hash
dbd4588f9e1033ef
Audit
scan passed
Can do
installs software · writes files
Works with
codex
Check
SKILL.md in .agents/skills/claude-api/ has front matter name: claude-api; Eval design guide is present; Hill-climb guide is present; Lite report builder is present; Skill check: every shared/ file the SKILL.md points to exists
Author
@anthropics
Kudos
0
Are you @anthropics? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package claude-api-build-eval-hillclimb-skill before installing

A · Files

Read from the package source at the pinned version. Shown as is; nothing here runs.

Loading files…

Ask your agent
show me the files of the whatworks package claude-api-build-eval-hillclimb-skill
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp