/engineering-advanced-skills:agent-regression-evals [baseline.jsonl candidate.jsonl | results.jsonl | a question about agent evals]from engineering-advanced-skills
Runs repeated agent trials and gates candidate vs baseline changes with paired statistics (t-based CI, McNemar test). Detects flaky cases, grades tool-call trajectories, and blocks merges on significant pass-rate drops.
Ships in engineering-advanced-skills. 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.
Read when SKILL.md points to them; scripts run unread.
Portability: 3 stdlib scripts, no APIs, no LLM calls. You run the agent; these grade, count and gate.
"Pass rate went from 82% to 79%" is not a finding until you know whether three points is outside the noise. Agents are non-deterministic, so one trial per case cannot tell a regression from a coin flip, and a final answer can be right while the path to it called a tool it never should have.
# 0 - Run every case k times (k >= 3) on baseline and candidate, from a clean
# environment per trial. Write one JSONL row per trial:
# {"case_id": "refund-lookup", "trial": 1, "passed": true, "critical": true,
# "cost_usd": 0.012, "trajectory": [{"tool": "get_order", "args": {...}}]}
# 1 - Grade the path where the path matters (safety, required lookups).
python scripts/trajectory_checker.py --spec cases.json --results candidate.jsonl
# 2 - Separate flaky cases from stable ones before trusting any comparison.
python scripts/flake_detector.py --results candidate.jsonl --k 3 --quarantine-out q.json
# 3 - Gate: paired per-case comparison against baseline. Exit 4 blocks the merge.
python scripts/regression_gate.py --baseline baseline.jsonl --candidate candidate.jsonl --quarantine q.json
Step 1 uses match modes strict | unordered | subset | superset. Default to
superset (required steps present, harmless exploration allowed); grade the
outcome, not the path, unless order is the requirement. forbidden tools block
in every mode.
Step 2 reports pass@k (succeeds at least once in k) and pass^k (succeeds all k times). A user meets every trial, so pass^k is the reliability number. Cases marked critical are never quarantine candidates.
Step 3 averages trials within each case first (trials of one case are correlated), then tests paired per-case differences with a t-based 95% CI and a one-sided exact McNemar test. When the drop is real but the sample is too small to show it, the gate says how many cases it would take.
It warns, and a human decides, on an underpowered drop above --tolerance or a
cost rise above --max-cost-increase.
| Script | Role | Exit codes |
|---|---|---|
scripts/trajectory_checker.py | Grades tool-call paths: match modes, args modes, forbidden tools, call ceilings | 0 · 2 deviations · 3 bad input · 4 forbidden tool |
scripts/flake_detector.py | STABLE_PASS / STABLE_FAIL / FLAKY per case, Wilson CI, pass@k, pass^k, quarantine stubs | 0 · 2 flaky · 3 · 4 too few trials |
scripts/regression_gate.py | Paired CI, exact McNemar, critical cases, dropped cases, quarantine validity, cost | 0 PASS · 2 WARN · 3 · 4 BLOCK |
All support --sample and --output json.
references/eval_statistics.md — pass@k vs pass^k, per-case averaging, paired CI, McNemar, power (7 sources)references/trajectory_grading.md — outcome vs path, match modes, grader types (6 sources)references/flaky_cases_and_quarantine.md — flake causes, quarantine with expiry, clean trials (6 sources)assets/eval_case_spec.example.json — trajectory spec for step 1assets/sample_baseline.jsonl, assets/sample_candidate.jsonl — results formatassets/ci_eval_gate.example.yml — CI job that runs the gate and fails on exit 4assets/ci_eval_gate.example.yml (opens in a new tab)assets/eval_case_spec.example.json (opens in a new tab)assets/sample_baseline.jsonl (opens in a new tab)assets/sample_candidate.jsonl (opens in a new tab)references/eval_statistics.md (opens in a new tab)references/flaky_cases_and_quarantine.md (opens in a new tab)references/trajectory_grading.md (opens in a new tab)scripts/flake_detector.py (opens in a new tab)scripts/regression_gate.py (opens in a new tab)scripts/trajectory_checker.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alirezarezvani/claude-skills --plugin engineering-advanced-skills50 skills in this plugin
/agent-designerDesign multi-agent systems (supervisor, swarm, pipeline) and tool schemas; find bottlenecks in run logs. Use whenever agents split work or a run is slow or costly. Not for Claude Code workflow files (workflow-builder)./agent-run-forensicsUse when asked why an agent did something, what a past session or run changed, whether tests really passed, or to verify a session summary. Answers from the recorded transcript, not memory, with trace_finder.py, trace_timeline.py and claim_checker.py./agent-workflow-designerUse when architecting a multi-step LLM or agent pipeline, choosing single vs multi-agent, or fixing context bloat and broken handoffs. Scaffolds the pattern, handoff contracts and failure handling with workflow_scaffolder.py./api-design-reviewerUse for any PR or spec that adds or changes REST endpoints, before approving it. Lints conventions with api_linter.py, detects breaking changes with breaking_change_detector.py and scores the design with api_scorecard.py./api-test-suite-builderUse when asked to write API, integration or contract tests for REST endpoints. Builds the suite from the routes: happy paths, auth, validation errors and edge cases per endpoint./boost-asio-proUse for any C++ networking code with Boost.Asio or standalone Asio (TCP/UDP, SSL, timers, strands, io_context, co_spawn, awaitable, completion handlers), before writing or reviewing it. Applies lifetime, strand and cancellation rules that avoid the classic async bugs.2 plugins in one repository ship this exact skill · first indexed Oct 31, 2026
Other plugins' skills for the same job