google-agents-cli-eval
What it does
This skill guides the evaluation of an AI agent using datasets, metrics and an AI judge. It is for developers who want to measure how well an agent answers and improve it.
When to use it
- βWhen you want to run an evaluation on your AI agent.
- βWhen you need to write a dataset of test cases for your agent.
- βWhen you want to analyze why evaluation results failed and compare runs.
Skill link
https://github.com/google/agents-cli/blob/main/skills/google-agents-cli-eval/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βRun an evaluation on my agent using a test dataset, then tell me why the failing cases failed.β
5 new skills a week. 1 minute to read.
How it works
The skill explains the dataset format, the available metrics and how the AI judge scores answers. It helps the agent run the evaluation command and then read the results to find common causes of failure.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Agent Evaluation Guide
Requires:
agents-cli(uv tool install google-agents-cli) β install uv first if needed.
Scaffolded project? If you used
/google-agents-cli-scaffold, dataset and a custom metric are already scaffolded intests/eval/(Python projects) oreval/(Go projects). For simplicity, this skill and its references use the Python directory layout; adjust accordingly if you've scaffolded a Go agent. You already haveagents-cli eval run(chainsgenerate+grade),tests/eval/datasets/, andtests/eval/eval_config.yaml. Start with executingeval runand iterate from there.
Reference Files
| File | Contents |
|---|---|
references/dataset_schema.md |
Canonical EvaluationDataset schema β all field types, JSON examples for single-turn / multi-turn / multi-agent, common mistakes |
references/metrics-guide.md |
Complete metrics reference β all built-in metrics, match types, custom metrics, judge model config |
references/user-simulation.md |
Dynamic conversation testing β eval dataset synthesize flags, what scenarios are, compatible metrics |
references/builtin-tools-eval.md |
google_search and model-internal tools β trajectory behavior, metric compatibility |
references/advanced-commands.md |
Opt-in commands: eval analyze, eval optimize, eval submit / eval results |
references/multimodal-eval.md |
Multimodal inputs β eval dataset schema, built-in metric limitations, custom evaluator pattern |
references/live-eval.md |
Live and voice agents β --mode adk_live, what gets graded, user-only turn authoring, the Live-model and region traps |
The Quality Flywheel
Improving agent quality is iterative. The 4 stages below describe the loop. Each stage has a Default path (you, the coding agent, do the work directly) and an Opt-in CLI command that delegates to the Eval Service in Gemini platform for better quality and scale.
1. Prepare Data
Default: Use or edit the scaffolded tests/eval/datasets/basic-dataset.json to define single-turn eval inputs. Start with 1β2 cases.
Opt-in (ADK projects): agents-cli eval dataset synthesize: user-simulate multi-turn datasets when you lack data; its output already includes traces, so Stage 2 collapses to agents-cli eval grade alone. See Eval Commands and references/user-simulation.md.
2. Run the Eval (always run)
Default: agents-cli eval run runs the agent over the dataset and grades the traces, writing results_<ts>.{json,html} to artifacts/grade_results/.
Decoupled form: eval generate then eval grade, for a custom traces location, re-grading without re-running the agent, or traces from synthesize (eval grade alone).
3. Analyze Failures
Default: Open the latest artifacts/grade_results/results_<ts>.html (or .json) and identify failed metrics β see What to fix when scores fail below for the fix table.
Opt-in: agents-cli eval analyze, LLM-based failure clustering; prefer when you have 10+ failing cases and want categorized failure modes. See references/advanced-commands.md.
4. Optimize & Code Fix
Default: Edit the agent β adjust prompts, tool descriptions, instructions, or eval dataset based on the failure analysis. See What to fix when scores fail below for the failure β fix mapping.
Opt-in (ADK projects): agents-cli eval optimize runs ADK GEPA prompt optimization against a target metric (see references/advanced-commands.md). Suitable for prompt-only failures. The optimized prompt appears in the command output; capture it and apply it to the agent. For the full per-iteration trace, set print_detailed_results: true in your optimization config file.
Long-running and expensive. GEPA optimization makes many LLM calls and can take a long time. Do not run it unless the user explicitly asks for prompt optimization. When you do run it, iterate as far as possible with manual fixes first, then run a single final
eval optimizeβ never loop on this command.
Running the loop
Iterate stages 2 β 3 β 4 β 2 (with synthesize, re-run Stage 1 each pass, then eval grade). After each fix, run agents-cli eval compare <prev_results>.json <new_results>.json to confirm the target metric improved without regressing others. Expect 5β10+ iterations per case before it passes, which is normal. Only after a case passes should you expand
FAQ
Do I need a special project layout?
The skill uses the Python layout for examples, so you may need to adjust it for a Go project.
What kinds of metrics are there?
The skill has a metrics guide covering the built-in metrics, match types and custom metrics.
Can it compare two runs?
Yes, the description says it can help compare eval results.
Details
Original description by the author
This skill should be used when the user wants to "run an evaluation", "evaluate my agent", "evaluate my ADK agent", "write an eval dataset", "analyze eval failures", "compare eval results", "optimize agent", or needs guidance on the Gemini platform eval methodology and the Quality Flywheel. Covers eval metrics, dataset schema, LLM-as-judge scoring, and common failure causes. Applies to any agents-cli project, whatever framework the agent is written in. Do NOT use for agent API code patterns (ADK: use google-agents-cli-adk-code), deployment (use google-agents-cli-deploy), or project scaffolding
repo: google/agents-cli
Popularity
- GitHub stars
- 6.3k
- Ranking position
- #14370
- License
- Apache-2.0
- Updated
- 10/27/2026
Comments
- β¦
More skills from this repository
google-agents-cli-adk-code
6.3kHelps your agent write code for AI agents with the Google ADK, including tools, callbacks, state and orchestration patterns.
google-agents-cli-deploy
6.3kHelps your agent deploy an AI agent to Google Cloud, covering Agent Runtime, Cloud Run, GKE, secrets, CI/CD and troubleshooting.
google-agents-cli-observability
6.3kHelps your agent set up tracing, logging and monitoring for a deployed AI agent on Google Cloud, so you can see what it does.
google-agents-cli-publish
6.3kHelps your agent register a deployed AI agent with Gemini, and manage registered agents and MCP servers in the Agent Registry.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.