finding-google-skills
Locates and loads the right Google product skill on demand from a remote catalog index, instead of preloading every skill. Use at the START of any request…
Measures and improves the quality of AI models and agents on Google Cloud using the Eval Quality Flywheel methodology. Use when evaluating an agent or model, building an eval dataset, picking or writing evaluation metrics, analyzing failures, comparing results before and after a
$ npx -y skills add google/skills --skill agent-platform-eval-flywheel --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/agent-platform-eval-flywheelContext preview
The summary Claude sees to decide when to auto-load this skill.
Measures and improves the quality of AI models and agents on Google Cloud using the Eval Quality Flywheel methodology. Use when evaluating an agent or model, building an eval dataset, picking or writing evaluation metrics, analyzing failures, comparing results before and after a
name: agent-platform-eval-flywheel metadata: category: AiAndMachineLearning description: >- Measures and improves the quality of AI models and agents on Google Cloud using the Eval Quality Flywheel methodology. Use when 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.
Help users evaluate and iteratively improve GenAI models and agents using the Agent Platform GenAI Evaluation SDK (`google.genai` / `agentplatform`).
SDK (`client.evals.evaluate()`).
synthetic generation.
**Model-as-a-Service (MaaS)** model by ID — including deploying the model first if needed. For this case, follow [references/deployment.md](references/deployment.md) and use the `endpoint_evaluation.py` / `maas_evaluation.py` scripts.
Before executing any commands or scripts on behalf of the user, you MUST adhere to the following safety tiers based on the action requested:
1. **Tier R**: Read-only (`inspect_results.py`, `compare_results.py`, `validate_dataset.py`, `parse_adk_traces.py`, `render_html_report.py`)
immediately to inspect data, validate schemas, parse traces, or compare evaluation results. 2. **Tier M: Read-only with Compute Costs (`client.evals.run_inference`, `client.evals.evaluate`, `client.evals.generate_conversation_scenarios`, `client.evals.generate_loss_clusters`)**
that consume compute resources and incur costs. This requires **interactive confirmation** with 'Yes'/'No' options. Once granted once, you do not have to prompt for future evaluation.
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.
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`. Check env vars first; if missing, ask the user. Newer Gemini models often need `location="global"`.
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:
a module, not a package; use `from agentplatform import types`.
superseded SDK. Its classes take different arguments (`PointwiseMetric` has no `system_instruction`), so code written against it fails with `TypeError` rather than an import error. Use `agentplatform` throughout.
Five stages, run in order on the first pass, then loop 2 → 5 until quality targets are met.
| 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. :
Produce an `EvaluationDataset`. There are three input shapes, pick the one that match
This repository contains Agent Skills for Google products and technologies, including Google Cloud.
Repo: google/skills
Locates and loads the right Google product skill on demand from a remote catalog index, instead of preloading every skill. Use at the START of any request…
Provides safety-critical validation, guardrails, and data reduction for gcloud CLI operations across Google Cloud Platform (GCP) services and infrastructure.…
Provides expert guidance on authenticating and authorizing to Google Cloud services and APIs, covering human users, service identities, Application Default…
Guides a developer's first steps on Google Cloud, covering account creation, billing setup, project management, and deploying a first resource. Use when a new…
Searches, retrieves, and synthesizes official Google developer documentation across Google Cloud, AI/Gemini, Android, Chrome, Web, Flutter, Go, Firebase, and…
Guides developers through managing (adding, removing, and clearing) audience members for Google products using the Data Manager API and its associated client…