agent-platform-eval-flywheel
Measures and improves the quality of AI models and agents on Google Cloud using the Eval Quality Flywheel methodology
Install / Use
npx skills add google/skills --skill agent-platform-eval-flywheelInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
AI & Machine LearningSupported Platforms
Tags
Our assessment of agent-platform-eval-flywheel
agent-platform-eval-flywheel scores 95/100 on our quality scale, 79th of 705 AI & Machine Learning skills we index (top 12%).
Its SKILL.md is 26 KB long, well organised into 34 sections with 7 code examples: a thorough specification that gives an agent plenty to work with.
With 20,340 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 3 days ago, so agent-platform-eval-flywheel is actively maintained.
- It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-09-26. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
agent-platform-eval-flywheel compared with similar skills
All 4 of these similar skills score higher than agent-platform-eval-flywheel; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| agent-platform-eval-flywheel (this skill)by google | 95 | 20.3k | 3d ago | SKILL.md |
| claude-memby thedotmack | 100 | 94.7k | today | CLAUDE.md |
| Understand-Anythingby Egonex-AI | 100 | 84.2k | 14d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 73.8k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.1k | today | CLAUDE.md |
Frequently asked questions
- How do I install agent-platform-eval-flywheel?
- Run
npx skills add google/skills --skill agent-platform-eval-flywheel. The install tabs above show the steps for each supported agent. - Which AI agents does agent-platform-eval-flywheel work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is agent-platform-eval-flywheel safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is Apache-2.0-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is agent-platform-eval-flywheel still maintained?
- The repository was last updated 3 days ago, so agent-platform-eval-flywheel is actively maintained.
Skill content
View source on GitHubname: agent-platform-eval-flywheel metadata: version: "1.0.2" category: AiAndMachineLearning description: >- 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.
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 explicitly requested 'global'. - Missing Parameters: If the user's request omits the project or location, you MUST pause in your response and ask the user for the missing location/project before preparing or running the evaluation.
Correct SDK entrypoints
import agentplatform
client = agentplatform.Client(project=PROJECT, location=LOCATION)
client.evals.run_inference(model=..., src=...)
client.evals.evaluate(dataset=..., metrics=...)
client.evals.generate_conversation_scenarios(...)
Two imports that look plausible and are not:
from agentplatform.types import evals--ModuleNotFoundError.typesis a module, not a package; usefrom agentplatform import types.from vertexai.evaluation import PointwiseMetric, EvalTask-- the superseded SDK. Its classes take different arguments (PointwiseMetrichas nosystem_instruction), so code written against it fails withTypeErrorrather than an import error. Useagentplatformthroughout.
The Quality Flywheel
Five stages, run in order on the first pass, then loop 2 → 5 until quality targets are met.
Shortcuts that waste time
| Shortcut | Why it fails |
| ------------------------------------ | ------------------------------------ |
| "I'll tune the metric threshold down | Hides real failures. Fix the agent, |
: so it passes." : not the bar. :
| "This case is flaky, I'll skip it." | Flakiness reveals non-determinism in |
: : the agent. Fix with temperature=0 :
: : or stricter instructions. :
| "I just need to fix the eval | If expected outputs keep moving, the |
: dataset, not the agent." : agent has a behavior problem. :
| "I can tell from the trace it works | Self-grading doesn't generalize. |
: — skip Stage 3." : Always run evaluate() and read :
: : scores. :
| "One iteration is enough." | Expect 5–10+ iterations. Stopping |
: : early leaves regressions on other :
: : metrics undetected. :
1. Prepare Data
Produce an EvaluationDataset. There are three input shapes, pick the one that
matches the data the user already has:
-
EvalCaselist (single-turn or multi-turn):from agentplatform import types from google.genai import types as genai_types # prompt/reference/response values are Content, not str. UserContent and # ModelContent wrap a plain string and set the right role. dataset = types.EvaluationDataset(eval_cases=[ types.EvalCase( prompt=genai_types.UserContent("What is 2+2?"), responses=[types.ResponseCandidate( response=genai_types.ModelContent("4"))], reference=types.ResponseCandidate( response=genai_types.ModelContent("4")), ), # For multi-turn agent traces, set agent_data instead of prompt/responses. ])Multi-turn agent traces wrap each conversation in
AgentData→ConversationTurn→AgentEvent. See references/dataset_schema.md for the full type hierarchy. -
Pandas DataFrame (tabular sources — CSV, BigQuery, Sheets):
import pandas as pd from agentplatform import types df = pd.DataFrame({ "prompt": ["What is 2+2?", "Capital of France?"], "response": ["4", "Paris"], "reference": ["4", "Paris"], }) dataset = types.EvaluationDataset(eval_dataset_df=df)Column names must match the fields the chosen metrics expect (see references/dataset_schema.md for the per-metric requirements table).
-
Cold start (no data at all): synthesize scenarios server-side with
client.evals.generate_conversation_scenarios(agent=..., config=...)-- the parameter isagentoragent_info, notagents, andconfigis required. The config class istypes.evals.UserScenarioGenerationConfig, nottypes.UserScenarioGenerationConfig. Set itsuser_scenario_count(1-100): it defaults to None, the client accepts that, and the server rejects the call with400 INVALID_ARGUMENT.countis a separate field and does not substitute for it. Stage 2 plays the scenarios out.- CRITICAL - Underspecified Requests: When asked to synthesize
scenarios, if the request omits required parameters (such as
location,environment_data,simulation_instruction, ormodel_name), do NOT assume defaults or guess values. You MUST pause in your first turn and explicitly ask the user for the missing information (e.g., "Please provide the missing simulation instructions, environment data, model name, and location"). Only proceed with the dry-run preview after the user provides them. - Friction & Parameter Changes: When asked to generate synthetic user
scenarios, if the user modifies requested parameters (such as scenario
count, model, or instructions) or pushes back, you MUST present a
revised dry-run confirmation card with the updated parameters and wait
for explicit user approval before executing generation code via
run_command. Do NOT generate scenarios directly in plain text.
- CRITICAL - Underspecified Requests: When asked to synthesize
scenarios, if the request omits required parameters (such as
-
Managed Agents (Gemini Agents API): evaluate agents created with the Managed Agents API. Use
generate_conversation_scenariosto create test scenarios from the agent's configuration,run_inferenceto execute the agent, andevaluateto score the traces. These functions now accept managed agents and interaction ids as input. You can also evaluate existing interactions recorded via the Interactions API usingInteractionsDataSource. See references/sdk_patterns.md Pattern 8 for the full code pattern.
For ADK session dumps, use scripts/parse_adk_traces.py instead of writing the
conversion by hand.
2. Run Inference
Populate responses/traces on the dataset. Skip this stage if traces are already complete (e.g., production logs or replay).
# Agent eval — pass a callable wrapping the user's ADK Agent/App.
client.evals.run_inference(model=agent_callable, src=dataset)
# Model eval — pass a model ID directly.
client.evals.run_inferen
Truncated for display — read the full file on GitHub.
Related Skills
claude-mem
94.7kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Understand-Anything
84.2kGraphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
headroom
73.8kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
CowAgent
47.1kOpen-source super AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
