Pular para o conteúdo
Skillpedia
Agentes6,3 mil · #14370

google-agents-cli-eval

O que ela faz

Esta skill orienta a avaliação de um agente de IA usando conjuntos de dados, métricas e um juiz de IA. É para desenvolvedores que querem medir como o agente responde e melhorá-lo.

Quando usar

  • ✓Quando você quer rodar uma avaliação no seu agente de IA.
  • ✓Quando você precisa escrever um conjunto de dados com casos de teste para o agente.
  • ✓Quando você quer analisar por que os resultados da avaliação falharam e comparar execuções.

Link da skill

https://github.com/google/agents-cli/blob/main/skills/google-agents-cli-eval/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/google/agents-cli/blob/main/skills/google-agents-cli-eval/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Rode uma avaliação no meu agente usando um conjunto de dados de teste e depois me diga por que os casos que falharam falharam.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

A skill explica o formato do conjunto de dados, as métricas disponíveis e como o juiz de IA pontua as respostas. Ela ajuda o agente a rodar o comando de avaliação e depois ler os resultados para encontrar as causas comuns de falha.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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 in tests/eval/ (Python projects) or eval/ (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 have agents-cli eval run (chains generate + grade), tests/eval/datasets/, and tests/eval/eval_config.yaml. Start with executing eval run and 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

Perguntas frequentes

Preciso de uma estrutura de projeto especial?

A skill usa a estrutura em Python nos exemplos, então talvez seja preciso ajustar para um projeto em Go.

Quais tipos de métrica existem?

A skill tem um guia de métricas que cobre as métricas embutidas, os tipos de correspondência e as métricas personalizadas.

Ela consegue comparar duas execuções?

Sim, a descrição diz que ela pode ajudar a comparar resultados de avaliação.

Detalhes

Descrição original do autor

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

Popularidade

Estrelas no GitHub
6,3 mil
Posição no ranking
#14370
Licença
Apache-2.0
Atualizada em
27/10/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas