Sets up continuous regression evals to catch when model/prompt/tool changes break existing behavior. Covers gating thresholds, CI integration, statistical significance testing, and response to regressions.
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.
Every prompt change, model upgrade, or tool tweak is a potential regression. Regression evals catch breakage before users do — if you gate deploys on them.
1. Maintain a versioned eval dataset (see eval-dataset-design)
2. On every proposed change, run evals on baseline AND candidate
3. Compare per-stratum metrics with significance tests
4. Gate merge on: no stratum regresses beyond threshold
interface EvalCase { id: string; input: any; expected: any; stratum: string }
async function runEvals(model: string, prompt: string, cases: EvalCase[]) {
const results = [];
for (const c of cases) {
const output = await runModel(model, prompt, c.input);
const score = await scoreOutput(c.expected, output); // 0-1
results.push({ id: c.id, stratum: c.stratum, score });
}
return results;
}
const baseline = await runEvals(MODEL, oldPrompt, cases);
const candidate = await runEvals(MODEL, newPrompt, cases);
const regressed = compareByStratum(baseline, candidate, { alpha: 0.05 });
if (regressed.length) throw new Error(`Regressions in: ${regressed.join(", ")}`);
A 2% drop on 100 items is noise, not signal. Use bootstrap confidence intervals:
import numpy as np
def bootstrap_ci(scores, n=1000, alpha=0.05):
means = [np.mean(np.random.choice(scores, size=len(scores), replace=True)) for _ in range(n)]
return np.percentile(means, [100*alpha/2, 100*(1-alpha/2)])
baseline_ci = bootstrap_ci(baseline_scores)
candidate_ci = bootstrap_ci(candidate_scores)
# If CIs don't overlap AND candidate lower, it's a real regression.
For pass/fail metrics, use McNemar's test on the paired outcomes. For scalars, paired bootstrap.
Hard rules:
| Metric | Regression threshold | Action |
|---|---|---|
| Any stratum | ≥ 3% drop with p < 0.05 | Block merge |
| Aggregate | ≥ 5% drop with p < 0.05 | Block merge |
| Single catastrophic item | New case drops from pass→fail | Investigate, likely block |
| Variance | CI widens significantly | Investigate (noisier outputs) |
Soft rules:
# .github/workflows/eval.yml
name: regression-evals
on: pull_request
jobs:
eval:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm ci
- run: npm run evals:baseline # fetch cached baseline scores
- run: npm run evals:candidate
- run: npm run evals:compare
- uses: actions/upload-artifact@v4
with:
name: eval-report
path: eval-report.html
Publish the report as a PR comment. Reviewers should see which strata changed and by how much.
When Anthropic ships a new model, don't just swap in production. Gate:
Your "baseline" needs to be a real, stored artifact — not "whatever main is today".
Store baselines in an artifact store keyed on (prompt version, model, dataset version):
evals/baselines/
prompt-v42_<model-id>_dataset-v3.json
When you merge a change, UPDATE the baseline. New baseline is the reference for the next candidate.
Some items are nondeterministic even at temperature 0 (tools, time-dependent data). Options:
Don't let flakes erode your alert fidelity.
If every PR triggers an alert, reviewers stop reading. Tune:
Fewer, higher-quality alerts get acted on.
When CI blocks the PR:
Never:
What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/cost-quality-tradeoffMeasure and optimize the cost/quality curve — which model, prompt, and settings give the best quality per dollar. Covers Pareto analysis, break-even thresholds, and when to spend more vs less.
Use this skill when optimizing LLM spend, picking a default model for a feature, or deciding whether a premium model is worth it.
Activate when: cost vs quality, model selection, eval cost, Pareto frontier, cheaper model, premium model tradeoff.
/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.
Other plugins' skills for the same job
/evals:regression-evalsfrom evals
npx claudepluginhub latestaiagents/agent-skills --plugin evals2 plugins in one repository ship this exact skill · first indexed Nov 5, 2026