agent-platform-eval-flywheel
What it does
It uses the Agent Platform evaluation SDK to score agents or models, find patterns in failures, and suggest fixes that can be tested again. It is for developers who want to measure quality before and after a change.
When to use it
- ✓When you want to evaluate an AI agent or model with a repeatable test set.
- ✓When you need to build an evaluation dataset from traces or a table.
- ✓When you want to compare results before and after a fix.
Skill link
https://github.com/google/skills/blob/main/skills/cloud/agent-platform-eval-flywheel/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
“Evaluate my agent on a test set I can reuse, then tell me the failure patterns and what to fix.”
5 new skills a week. 1 minute to read.
How it works
It builds or checks the dataset, runs the evaluation, reads the verdicts and failure patterns, and suggests code or prompt changes to test next. Steps that use compute are confirmed first.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Agent Platform Eval Flywheel Skill
Help users evaluate and iteratively improve GenAI models and agents using the
Agent Platform GenAI Evaluation SDK (google.genai / agentplatform).
When to use this skill
- Evaluating GenAI agents or models with the Agent Platform GenAI Evaluation
SDK (
client.evals.evaluate()). - Creating evaluation datasets from session traces, pandas DataFrames, or synthetic generation.
- Selecting, configuring, or writing custom evaluation metrics.
- Analyzing rubric verdicts, loss patterns, and clustering failures.
- Suggesting concrete code/prompt improvements based on eval results.
- Evaluating a model served on an Agent Platform endpoint (BYOM) or a
Model-as-a-Service (MaaS) model by ID — including deploying the model
first if needed. For this case, follow
references/deployment.md and use the
endpoint_evaluation.py/maas_evaluation.pyscripts.
Safety & Confirmation Tiers (CRITICAL)
Before executing any commands or scripts on behalf of the user, you MUST adhere to the following safety tiers based on the action requested:
- Tier R: Read-only (
inspect_results.py,compare_results.py,validate_dataset.py,parse_adk_traces.py,render_html_report.py)- Rule: No confirmation needed. You may execute these helper scripts immediately to inspect data, validate schemas, parse traces, or compare evaluation results.
- Tier M: Read-only with Compute Costs (
client.evals.run_inference,client.evals.evaluate,client.evals.generate_conversation_scenarios,client.evals.generate_loss_clusters)- Rule: These operations invoke LLMs or remote evaluation services that consume compute resources and incur costs. This requires interactive confirmation with 'Yes'/'No' options.
- Confirmation for EVERY evaluation run: Every evaluation, re-evaluation, metric update, parameter change, or synthetic scenario generation requires its own dry-run preview and interactive confirmation. Never execute a second evaluation, comparison pass, or modified evaluation without presenting a new confirmation preview and obtaining user approval.
- Same-turn restriction: Do not run the evaluation in the same turn as presenting the confirmation prompt. End your turn after asking and wait for the user's reply; only execute after explicit 'Yes' / approval. Printing a preview and then calling the tool before the user can answer does not count as obtaining confirmation.
- No Pre-Execution of Remote Evaluation: NEVER execute
client.evals.evaluate(),client.evals.run_inference(),client.evals.generate_conversation_scenarios(), or run any script invoking these remote operations before user confirmation. In the initial turn, you may prepare local data structures and compose the script, but you MUST present the dry-run preview card and obtain explicit user confirmation before running any remote evaluation or scenario generation call. - Immediate Execution Upon Approval: Once the user explicitly approves
(e.g., 'Yes', 'Approved', 'Go ahead', 'Proceed'), proceed directly to
executing the previewed evaluation script via
run_commandand report the results. Do not conclude the turn without executing the approved action.
Setup
The scripts need vertexai (from google-cloud-aiplatform[evaluation]),
google-genai, pandas, and requests. Do not create a virtual
environment — it starts empty and hides packages the environment already
provides, forcing a redundant install. Probe, and install only what is missing:
python3 -c "import vertexai, google.genai, pandas, requests" \
|| pip install 'google-cloud-aiplatform[evaluation]>=1.163.0' 'google-genai>=1.0.0'
The version specifiers must stay quoted: unquoted, bash reads >=1.154.0 as a
redirect and silently writes an empty file instead of constraining the install.
Need GOOGLE_CLOUD_PROJECT and GOOGLE_CLOUD_LOCATION.
- Preserve User Project and Location: Always prioritize the user's
explicitly provided project and location (e.g.
project='<PROJECT_NUMBER>',location='us-central1'). Never change or override the user's requested location to 'global' unless the user expl
FAQ
Does it run evaluations on its own?
Read-only helper steps run freely, but steps that use compute resources are confirmed first.
Can it evaluate a model on an endpoint?
Yes. It can evaluate a served model, deploying it first if needed.
Which SDK does it use?
The Agent Platform GenAI Evaluation SDK.
Details
Original description by the author
Measures and improves the quality of AI models and agents on Google Cloud using the Eval Quality Flywheel methodology. Use when generating synthetic user scenarios, evaluating an agent or model, building an eval dataset, picking or writing evaluation metrics, analyzing failures, comparing results before and after a fix, or when guidance is needed on Agent Platform eval methodology — including dataset schema, LLM-as-judge scoring, and common failure causes. For fine-tuning, use agent-platform-tuning. For general production deployment, use agent-platform-deploy.
repo: google/skills
Popularity
- GitHub stars
- 22k
- Ranking position
- #10202
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
finding-google-skills
22kHelps your agent find the right Google guides for a setup task, such as hosting, databases, storage, sign-in or AI model serving.
gcloud
22kHelps your agent write and check Google Cloud gcloud commands, looking up exact syntax before it runs anything so it does not guess flags.
google-cloud-recipe-auth
22kGuides your agent through Google Cloud identity and access, including how people and services sign in and which permissions they get.
google-cloud-recipe-onboarding
22kWalks a new developer through first steps on Google Cloud, including choosing a project, linking billing, and deploying a first resource.
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.