/active-skills:agent-eval-implementfrom active-skills
Build 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).
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.
Turn a written eval plan into runnable eval assets. If no plan exists — no chosen
metrics, no dataset strategy, no thresholds — invoke agent-eval-design first;
implementing without a plan produces evals that measure whatever was easiest to
code.
API names below were verified 2026-08-06. Before writing code against them, confirm exact signatures with a live doc lookup (google-developer-knowledge MCP first, context7 second) — this surface is evolving quickly.
| Situation | Path |
|---|---|
| Agent built with ADK, evals run against the local agent module | ADK evalsets — fastest loop, no extra infra (Step 2) |
| Agent deployed on Agent Engine, built with another framework (LangChain, LangGraph, CrewAI), or metrics beyond ADK's criteria needed | Gen AI evaluation service via the Vertex AI SDK (Step 3) |
| Both apply | Both compose: ADK evalsets for the fast inner loop, the evaluation service for richer programmatic runs |
Full schema, criteria catalog, and pytest wiring: references/adk-evalsets.md.
adk web <agents_folder>, interact with the agent to produce a good session, then in
the Eval tab: create/select an eval set → Add current session. Edit
the saved case (pencil icon) to trim it to the intended behavior — captured
sessions record what the agent did, which is not yet ground truth.<name>.evalset.json file: each eval case is a conversation
of invocations with user_content, expected final_response, and
intermediate_data.tool_uses (the golden trajectory).test_config.json next to the evalset — start from the
plan's thresholds, e.g. {"criteria": {"tool_trajectory_avg_score": 1.0, "response_match_score": 0.8}}. LLM-based criteria (semantic match, rubrics,
safety) need GCP credentials — see the reference.AgentEvaluator.evaluate(agent_module=..., eval_dataset_file_path_or_dir=...) so agent evals run wherever unit tests
run.Full dataset schema, metric list, and code patterns:
references/vertex-eval-service.md.
pip install google-cloud-aiplatform[adk,evaluation].reference_trajectory (list of {"tool_name", "tool_input"}); import from
JSONL/CSV in Cloud Storage, a BigQuery table, or a pandas DataFrame. The same
Cloud Storage/BigQuery dataset feeds console-driven evaluations on the Agent
Platform, so one dataset serves both SDK and UI runs.predicted_trajectory
and responses are produced during the run.EvalTask mixing metric kinds: computation-based trajectory
metrics (trajectory_exact_match, trajectory_precision, …), response
metrics, custom computation metrics, and model-based pointwise metrics.When the plan calls for qualities no built-in metric captures — rubric design
rules, a trajectory-judge template, and the calibration procedure:
references/custom-judges.md. The non-negotiables: anchored score levels, one
quality per rubric, a judge from a different model family than the agent, and
calibration against a human-labeled sample before the judge gates anything.
adversarial-testing.md) so per-class safe-refusal rates stay reportable.gs://cloud-ai-demo-datasets/agent-eval-datasets/ show the expected shape.Before authoring the full suite, run a single case through the chosen path and confirm: the agent is invoked, the metric produces a score, and the score lands where results are read. Every dataset-format and auth problem surfaces on case one — finding them on case forty means re-running thirty-nine.
Then hand off to agent-eval-run for execution, CI/CD gating, and analysis.
| Excuse | Reality |
|---|---|
| "I'll write the evalset JSON by hand from scratch." | The schema has nested invocation/tool-use structure that's easy to get subtly wrong. Capture a session in adk web and edit it. |
| "The captured session is the expected behavior." | It's the observed behavior, bugs included. Edit every captured case into ground truth before it enters the golden set. |
| "I remember the EvalTask/metric API from training data." | The surface is changing fast; a stale signature fails late and confusingly. Verify with a live doc lookup first. |
| "Exact trajectory match for everything — it's the strictest." | Strictest is not safest: agents with multiple valid paths fail spuriously and the suite gets ignored. Match strictness to how procedural the task is (see the metric taxonomy). |
| "The judge rubric can bundle correctness, tone, and efficiency." | Multi-quality rubrics produce uninterpretable middle scores. One rubric per quality, anchored levels. |
| "Skip the smoke test, the suite is almost done." | Auth, schema, and runnable-wiring errors surface on the first case. Prove the pipe with one case before scaling to forty. |
| "No plan exists, but I can pick reasonable metrics while coding." | Metrics chosen during implementation measure what's convenient. Invoke agent-eval-design first — it's a short step. |
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-runExecute 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).Other plugins' skills for the same job