/active-skills:agent-eval-runfrom active-skills
Execute agent evals and act on the results on GCP — run adk eval or pytest eval suites, interpret per-case and aggregate scores, compare a candidate agent against a baseline with statistical quality gates, debug failed trajectories down to the first bad step, wire evals into CI/CD, and extend to production with online evals and observability. Use when the user wants to run or re-run agent evals, see why an agent eval failed, check whether an agent version regressed, add agent evals to a CI/CD or Cloud Build pipeline, gate a deployment on eval results, fix flaky or noisy eval gates, or monitor a deployed agent's quality. Covers the non-determinism discipline these runs need: one run proves nothing, and a score that moved needs a statistical test before it means anything. Not for choosing metrics (use agent-eval-design), authoring evalsets or eval code (use agent-eval-implement), or measuring Claude Code skills (use skill-creator-enhanced).
Ships in active-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.
Execute the eval assets built by agent-eval-implement, gate changes on the
results, and keep evaluating after deploy. The through-line is
non-determinism: an agent gives different answers on identical inputs, so a
single run proves nothing — every gating decision below is a statistical
decision over repeated runs.
adk eval <AGENT_MODULE_PATH> <EVAL_SET_FILE_PATH> \
[--config_file_path=test_config.json] [--print_detailed_results]
AGENT_MODULE_PATH is the directory whose __init__.py exposes an agent
module with a root_agent.orders.evalset.json:cancel_order,refund_flow.adk web → Eval tab → select cases → Run Evaluation
(thresholds set in the metric dialog; history records them per run).AgentEvaluator) run under pytest tests/integration/.EvalTask-based suites run as plain Python against the Gen AI evaluation
service.adk conformance replays recorded baselines to catch behavioral drift the
metric suite doesn't score.Run the suite (or at minimum its gating metrics) several times per agent
version — 3–5 runs is a practical floor. Then compare distributions, not
single numbers. Test selection, worked examples, and threshold guidance:
references/statistical-gates.md.
| Metric shape | Comparison test |
|---|---|
| Pass/fail per case, same cases both versions | McNemar (paired) |
| Continuous (latency, cost, similarity scores) | Paired t-test; Wilcoxon signed-rank if not normal |
| Ordinal rubric scores (1–5 judges) | Wilcoxon signed-rank |
| Complex ratios / small samples | Bootstrap confidence intervals |
A difference whose confidence interval contains zero is noise, whatever the means say. Gate on "statistically significant regression beyond threshold", never on "the number went down".
Full pipeline patterns: references/cicd-integration.md. The shape:
cloud-build-triggers skill
applies.--print_detailed_results; EvalTask instance rows carry
score/explanation per case.)adk web Trace tab gives per-invocation
event/request/response/graph views.agent-eval-implement's job; invoke it rather than
hand-editing dataset files, since a case added without its reference
trajectory silently weakens every trajectory metric.adk optimize iteratively refines the agent's root instructions against a
test suite — a mechanical first pass at instruction-level fixes.When the failures point at the measurement rather than the agent — a metric
that never discriminates, a threshold nothing can clear, a judge disagreeing
with human review — that is a design problem, not a run problem. Invoke
agent-eval-design to revisit metric choice and thresholds; changing them
here, mid-analysis, is how a gate quietly becomes whatever the agent already
scores.
Offline suites can't predict live-traffic behavior. Patterns for shadow-mode
deployment, asynchronous scoring of sampled sessions, dashboards, and anomaly
alerts: references/online-evals.md. Instrument deployed agents with Cloud
Observability (tracing, logging, metrics) from day one — online evals consume
those traces.
| Excuse | Reality |
|---|---|
| "The score dropped 3 points, the candidate is worse." | On one run, that's indistinguishable from noise. Repeated runs + a paired test, or no conclusion. |
| "The score improved, ship it." | Improvements need the same statistics as regressions — half of small "wins" vanish on rerun. |
| "CI reruns the eval until it passes." | Retry-until-green inverts the gate: it selects for lucky runs. Fix the flakiness (more runs, aggregate gating) instead. |
| "Aggregates are down, let me tweak the prompt and rerun." | Without instance-level analysis you're guessing. Find the failing cluster and its first bad step first. |
| "The eval failed but the dataset changed too — probably fine." | A result without a pinned dataset version is unattributable. Re-run candidate and baseline on the same version. |
| "Offline evals pass, so production is covered." | Curated datasets contain zero unknown unknowns. Shadow mode and online scoring exist for what the dataset didn't imagine. |
| "This is about running evals — same as skill benchmarks." | Claude Code skill measurement is skill-creator-enhanced. This skill runs evals for GCP AI agents. |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mlarkin00/plugins --plugin active-skills17 skills in this plugin
/agent-eval-designDesign an evaluation strategy for a GCP AI agent before writing any eval code — choose metrics across outcome, trajectory, operational, and safety dimensions; pick scorer types (code-based rules, LLM-as-judge, human review); and plan a golden dataset with adversarial coverage. Use when the user asks how to evaluate an ADK, Vertex AI, Agent Engine, or Gemini Enterprise agent, what metrics to use, how to build a golden or test dataset for an agent, or wants an eval plan or eval strategy for an AI agent. Not for evaluating Claude Code skills (use skill-creator-enhanced), writing agent eval code (use agent-eval-implement), or executing agent evals (use agent-eval-run)./agent-eval-implementBuild the runnable eval assets for an AI agent on GCP — ADK evalset files, pytest eval wiring, Gen AI evaluation service code for trajectory and final-response metrics, custom LLM-as-judge rubrics and scorers, and ground-truth eval datasets in Cloud Storage or BigQuery. Use when the user wants to write, build, create, or add agent evals, an evalset or eval test file, a custom judge or scorer for agent output, or an eval/ground-truth dataset — for an ADK, Vertex AI, Agent Engine, Gemini Enterprise, LangGraph, or LangChain agent. Works from an eval plan produced by agent-eval-design, or standalone when the user names just one asset. Not for choosing which metrics to measure (use agent-eval-design), executing eval runs or CI/CD gating (use agent-eval-run), or creating Claude Code skills (use skill-creator-enhanced).Other plugins' skills for the same job