google-agents-cli-eval
하는 일
이 스킬은 데이터셋, 지표, AI 심판을 사용해 AI 에이전트를 평가하는 과정을 안내합니다. 에이전트의 답변이 얼마나 좋은지 측정하고 개선하려는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓AI 에이전트에 대해 평가를 실행하고 싶을 때.
- ✓에이전트를 위한 테스트 사례 데이터셋을 작성해야 할 때.
- ✓평가 결과가 실패한 이유를 분석하고 실행들을 비교하고 싶을 때.
스킬 링크
https://github.com/google/agents-cli/blob/main/skills/google-agents-cli-eval/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“테스트 데이터셋을 사용해 제 에이전트를 평가하고, 실패한 사례가 왜 실패했는지 알려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 데이터셋 형식, 사용 가능한 지표, AI 심판이 답변을 채점하는 방식을 설명합니다. 에이전트가 평가 명령을 실행하도록 돕고, 결과를 읽어 실패의 흔한 원인을 찾도록 돕습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
특별한 프로젝트 구조가 필요한가요?
스킬의 예시는 Python 구조를 사용하므로, Go 프로젝트라면 조정이 필요할 수 있습니다.
어떤 지표가 있나요?
내장 지표, 매칭 유형, 사용자 정의 지표를 다루는 지표 가이드가 있습니다.
두 실행을 비교할 수 있나요?
네, 설명에 따르면 평가 결과를 비교하는 데 도움을 줄 수 있습니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 6.3k
- 순위
- #14370
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 10. 27.
댓글
- …
이 저장소의 다른 스킬
google-agents-cli-adk-code
6.3k에이전트가 Google ADK로 AI 에이전트 코드를 작성하도록 돕습니다. 도구, 콜백, 상태, 오케스트레이션 패턴을 포함합니다.
google-agents-cli-deploy
6.3k에이전트를 Google Cloud의 Agent Runtime, Cloud Run, GKE에 배포하고 시크릿, CI/CD, 문제 해결을 돕습니다.
google-agents-cli-observability
6.3k에이전트가 배포된 AI 에이전트의 추적, 로깅, 모니터링을 Google Cloud에 설정해 동작을 확인하도록 돕습니다.
google-agents-cli-publish
6.3k에이전트가 배포된 AI 에이전트를 Gemini에 등록하고, Agent Registry에서 등록된 에이전트와 MCP 서버를 관리하도록 돕습니다.
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.