# /agent-platform-eval-flywheel: Evaluate and improve AI agents with a repeatable eval loop

Source: https://trendhub.net/skills/google-skills/agent-platform-eval-flywheel
Skill folder: https://github.com/google/skills/tree/main/skills/cloud/agent-platform-eval-flywheel
Pack: Google Agent Skills (https://trendhub.net/skills/google-skills)
Works with: Any agent supported by the skills CLI, Claude Code (plugins), Codex (plugins), Antigravity CLI

This skill runs Google's evaluation flywheel for models and agents on Agent Platform: prepare a dataset, generate responses, grade them with rubric or custom metrics, analyse failures, then fix and re-grade until targets are met. It asks for confirmation before every evaluation run, saves results as JSON and HTML, and compares runs to catch regressions.

## When to use it

- You want to measure whether an agent completes user goals and uses tools well.
- You have no test data and need synthetic multi-turn user scenarios.
- You changed a prompt or tool and need proof nothing else regressed.

## How it works

1. **Prepare data**: The agent builds an evaluation dataset from eval cases, a DataFrame, ADK traces, or server-generated scenarios when you have none.
2. **Run inference**: It fills in responses from a model, an agent callable or a managed agent, skipping this step when your dataset already has responses.
3. **Grade with confirmation**: It picks rubric metrics that fit the goal, shows a dry-run preview of the evaluation call, and runs it only after you approve.
4. **Analyse failures**: It reads real scores, maps each failing metric to a likely fix, and clusters failures when one metric has many.
5. **Fix and compare**: It applies a targeted change, re-grades, and diffs against the baseline to confirm the target improved without regressions elsewhere.

## What it steers the agent away from

- Lowering metric thresholds so failing cases pass.
- Claiming scores that were not read from an actual result object.
- Overwriting a user's supplied responses by running inference on them.

## What it can touch

It writes evaluation scripts and result files locally and, after your approval, calls Agent Platform evaluation APIs that use your project's quota.

## Pairs well with

- `/agent-platform-inference`
- `/agent-platform-tuning`
- `/gemini-api`

## Questions

### Which SDK does it use?

The agentplatform client from the current evaluation SDK; it warns against the superseded vertexai.evaluation classes.

### How many iterations should I expect?

The skill expects five to ten or more rounds per failing case and only widens coverage once a case passes.
