Measures and optimizes the cost/quality curve for LLM usage. Covers Pareto analysis, break-even thresholds, and when to spend more vs less. Useful for model selection and reducing LLM spend.
Ships in evals. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Quality without cost context is half a decision. You need the Pareto frontier — for each quality bar, what's the cheapest config that hits it?
Plot each candidate config (model × prompt × settings) on quality (y-axis) vs cost per request (x-axis). The frontier is the set of configs where no other config is both cheaper AND better.
Any config NOT on the frontier is dominated — always strictly worse than another option. Drop it.
quality
↑
1 | *A (opus + thinking)
| *B (opus)
|*G *D (sonnet + few-shot)
|*F *C (sonnet)
0 |*E (haiku)
+---------------→ cost
Pareto: A, B, D, C, E. Dominated: F (worse than E at same cost), G (worse than D at same cost).
For each candidate, measure:
| Metric | Example |
|---|---|
| Input tokens / request | 2,500 |
| Output tokens / request | 400 |
| $ / request | $0.012 |
| Quality score | 0.87 |
| p95 latency | 1.8s |
const costPerRequest = (usage.input_tokens / 1e6) * inputRate +
(usage.output_tokens / 1e6) * outputRate +
(usage.cache_creation_input_tokens / 1e6) * cacheWriteRate +
(usage.cache_read_input_tokens / 1e6) * cacheReadRate;
Always include cache costs — they dominate on cached workloads.
For any feature, try at least:
One of these usually sits on the frontier for your workload. Don't assume — measure.
Before jumping to a bigger model, try prompt levers:
A better prompt on a smaller model can beat a mediocre prompt on a larger one, at a lower per-token price. Check this on your own eval set.
When considering an upgrade, compute when it pays off:
Cost increase per request: Δcost = new - old
Quality increase: Δquality = new - old
Value per quality point: V (estimated from business metrics)
Worth it if: Δquality × V > Δcost
Example (hypothetical numbers for illustration): if every 1% quality gain increases user retention revenue by $0.003/request, and upgrading Haiku→Sonnet costs +$0.002/request for +5% quality:
You don't have to pick one. Route by difficulty:
// Model IDs come from config; pick current IDs from your provider's models page.
const { SMALL_MODEL, MID_MODEL, LARGE_MODEL } = config.models;
const difficulty = await classifyDifficulty(query);
const model = difficulty === "simple" ? SMALL_MODEL
: difficulty === "medium" ? MID_MODEL
: LARGE_MODEL;
Classification is a call to your smallest model. Most queries are simple; you save money. Hard queries get the premium treatment.
Measure: does tiered routing actually improve your cost/quality position? Sometimes classification errors wipe out the gains.
Cost-quality isn't enough; latency matters too. Examples where it dominates:
Report 3-tuples: (quality, cost, p95 latency). The frontier in 3D is smaller; choose by which axis has a constraint.
If you can cache 90% of your input:
Decisions made without caching factored in are usually wrong. Re-measure with cache.
Don't eval each config on 10,000 items. Start small:
Saves 10-100× on eval cost.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
5 skills in this plugin
/eval-dataset-designDesign eval datasets that actually measure model quality — coverage, difficulty distribution, labeling consistency, and avoiding contamination. Covers sourcing, stratification, label quality, and when to generate vs curate.
Use this skill when building a new eval set, realizing your current evals don't catch regressions, or labeling is inconsistent.
Activate when: eval dataset, benchmark, test set, eval coverage, label quality, synthetic eval, dataset design.
/golden-set-maintenanceCurate and maintain "golden set" eval items — the small, high-signal cases that must never regress. Covers selection criteria, review cadence, retiring stale items, and keeping the set sharp.
Use this skill when building a sanity-check eval that runs on every PR, defending against silent quality drops, or your full eval takes too long to run in CI.
Activate when: golden set, smoke test eval, canary eval, must-not-regress, eval sentinels, core eval.
/llm-as-judgeUse an LLM as an evaluator for open-ended outputs — rubrics, pairwise comparison, calibration with human labels, bias mitigation. Covers when LLM-judge works, when it fails, and how to trust its scores.
Use this skill when evaluating generative outputs at scale, building eval pipelines, or replacing expensive human review for non-critical judgments.
Activate when: LLM as judge, LLM evaluator, automated evaluation, pairwise comparison, rubric evaluation, eval model.
/regression-evalsSet up continuous regression evals so model/prompt/tool changes don't silently break existing behavior. Covers gating thresholds, CI integration, statistical significance, and response to regressions.
Use this skill when deploying prompts to production, gating model upgrades, or noticing "it worked yesterday" in AI features.
Activate when: regression eval, eval CI, prompt regression, model upgrade gate, eval threshold, eval alert.
/evals:cost-quality-tradeofffrom evals
npx claudepluginhub latestaiagents/agent-skills --plugin evals2 plugins in one repository ship this exact skill · first indexed Nov 5, 2026