/builder-ai:model-benchmarkingfrom builder-ai
Use when selecting a model for any production feature, or evaluating whether to switch models. Requires task-specific benchmarking — not leaderboard lookup. Blocks "GPT-4 is the best model" decisions.
Ships in builder-ai. 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.
A MODEL IS NOT CHOSEN UNTIL IT HAS BEEN TESTED ON YOUR TASK DATA.
Leaderboard scores are averaged over tasks you're not building.
"It's the best model" is a claim about benchmarks someone else ran.
Task data + defined metric + three tested tiers IS a model selection.
Trigger when:
Four stages. Do not collapse them.
Before running any model, write down:
| Decision | What to Define |
|---|---|
| Task | Exact input format, exact output format, edge cases |
| Metric | Accuracy, faithfulness score, extraction F1, LLM-as-judge, task pass rate |
| Pass threshold | The minimum score to go to production (e.g., ≥ 88%) |
| Budget constraint | Max cost per 1k calls, max monthly spend |
| Latency constraint | Max acceptable p95 (e.g., ≤ 2.0s) |
If you cannot define the metric and threshold first, the selection criteria are not clear enough to proceed.
easy / medium / hardbenchmarks/<feature>/test-set.jsonlAlways test at least one tier below your expected choice:
| Tier | Example Models | When It Wins |
|---|---|---|
| Frontier | Claude Opus, GPT-4o, Gemini 1.5 Pro | Complex reasoning, nuanced generation |
| Mid | Claude Sonnet, GPT-4o-mini, Gemini Flash | Most production tasks |
| Efficient | Claude Haiku, Mistral Small, Llama 3.1 8B | Classification, extraction, structured output |
For each model:
Build this table:
| Model | Accuracy | p95 Latency | Cost/1k | Notes |
|---|---|---|---|---|
| Claude Opus | 95% | 4.1s | $30.00 | Best quality |
| Claude Sonnet | 91% | 1.9s | $9.00 | Recommended |
| Claude Haiku | 84% | 0.7s | $1.50 | Below 88% threshold |
Decision rule: if a cheaper model is within 5% of frontier on your metric AND within the latency constraint → use the cheaper model. The quality difference at 100k calls/month is worth the cost differential analysis.
Document decision in benchmarks/<feature>/<date>.md.
These thoughts mean a model was chosen without benchmarking — stop:
When model-benchmarking is satisfied, state it like this:
Model selected: <model-id>
Task: <one-line description>
Metric: <metric name>, threshold: ≥ X%
Test set: benchmarks/<feature>/test-set.jsonl — N examples
Results:
<Frontier model>: A%, p95=Xs, $Y/1k
<Mid model>: B%, p95=Xs, $Y/1k ← selected
<Efficient model>: C%, p95=Xs, $Y/1k (below threshold)
Decision: <mid model> meets threshold (B% ≥ X%) at Z× lower cost than frontier
Stored: benchmarks/<feature>/<date>.md ✓
BLOCK: This statement cannot be completed if fewer than 3 tiers were tested. State which tiers are missing and why — do not produce a recommendation.
A model that underperforms on your task produces silent quality degradation at scale. A model that over-performs costs more than necessary. The benchmark is how you know which you have before 100k calls tell you.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
builder-ai@rbraga01 is listed by rbraga01/a-team — review the source before installing
npx claudepluginhub rbraga01/a-team --plugin builder-ai8 skills in this plugin
/ai-cost-auditUse before launching any LLM feature or when monthly API costs are growing unexpectedly. Requires token count measurement, call volume analysis, and cost projection at 10× scale. Blocks "it's cheap enough now" completions./ai-safety-reviewUse before shipping any LLM feature that touches users. Reviews prompt injection, hallucination risk, output misuse, agentic scope, and abuse vectors. Blocks "nobody will try that" completions./context-optimizationUse when prompt cost is too high, latency is above threshold, or context window limits are being approached. Requires measurement before and after each reduction. Blocks "I shortened the prompt so it should be cheaper" completions./eval-before-shipUse before merging, deploying, or demo'ing any LLM feature. Requires documented eval results — pass rate, failure analysis, baseline comparison. Blocks "it looked good when I tested it" completions./fallback-requiredUse before merging any PR that adds an LLM API call. Every call must handle timeout, malformed output, low confidence, and refusal — with a defined, user-safe fallback for each. Blocks "add error handling later" completions./prompt-versioningUse whenever writing or modifying a prompt that will run in production. Enforces version-controlled prompts in prompts/<feature>/v<x.y.z>.md. Blocks "the prompt is in the code somewhere" completions.