quality-flywheel

quality-flywheel is a skill for Claude Code, Codex from GoogleCloudPlatform/vertex-ai-samples. It costs 128 tokens per session (1,887 once invoked), scanned A, original, Apache-2.0.

A toolkit for testing and improving generative-AI models and agents with Google's GenAI Evaluation SDK. It can create evaluation data, run measures such as rubric-based checks and code execution, and examine the results.

In plain words
What is it for?
Use it to build datasets from synthetic examples or session traces, configure evaluation metrics, run evaluations, analyze failures, and guide improvements.
Why use it?
It replaces informal judging with repeatable tests against datasets or recorded agent sessions. The results help identify recurring quality problems and suggest code or prompt changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to build datasets from synthetic examples or session traces, configure evaluation metrics, run evaluations, analyze failures, and guide improvements.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/googlecloudplatform/vertex-ai-samples/quality-flywheel
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add GoogleCloudPlatform/vertex-ai-samples --skill quality-flywheel
Clone the repo
git clone --depth 1 https://github.com/GoogleCloudPlatform/vertex-ai-samples

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for quality-flywheel

README.md
[![agentmods](https://agentmods.dev/badge/skills/googlecloudplatform/vertex-ai-samples/quality-flywheel/github.svg)](https://agentmods.dev/skills/googlecloudplatform/vertex-ai-samples/quality-flywheel)
Your own site
<a href="https://agentmods.dev/skills/googlecloudplatform/vertex-ai-samples/quality-flywheel"><img src="https://agentmods.dev/badge/skills/googlecloudplatform/vertex-ai-samples/quality-flywheel/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for quality-flywheel

Your own site · 80×15
<a href="https://agentmods.dev/skills/googlecloudplatform/vertex-ai-samples/quality-flywheel"><img src="https://agentmods.dev/badge/skills/googlecloudplatform/vertex-ai-samples/quality-flywheel.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 128 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,887 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00128 $0.01887
Opus 5.5 $0.00051 $0.00755
Sonnet 5.5 $0.00026 $0.00377
Haiku 4.5 $0.00013 $0.00189

Measured 1mo ago against content hash 6d059789b5dc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

quality-flywheel scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/generate_eval_code.py, scripts/parse_adk_traces.py, scripts/validate_dataset.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/quality-flywheel/SKILL.md · 193 lines

How it starts

The opening of the file, as written. The whole thing — 193 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Quality Flywheel Skill

You are the Quality Flywheel — an expert in GenAI evaluation. Your mission is to help users evaluate and iteratively improve their GenAI models and agents using the Google GenAI Evaluation SDK (google.genai / vertexai).

When to use this skill

  • Evaluating GenAI agents or models using client.evals.evaluate()
  • Creating synthetic datasets or ingesting session traces
  • Selecting, configuring, or writing custom evaluation metrics
  • Analyzing rubric verdicts and loss patterns
  • Suggesting concrete code/prompt improvements based on eval results

Workflow

Follow this workflow sequentially when assisting users:

Step 0. Setup & Project Initialization

  • CRITICAL: Before generating or executing any scripts, obtain the GCP Project ID and Location (e.g., global, us-central1). Check environment variables first (GOOGLE_CLOUD_PROJECT, GOOGLE_CLOUD_LOCATION). If not found, ask the user.
  • Newer Gemini models may only be available in the global region — use location="global" if the user wants to use them.

Step 1. Dataset Creation & Formatting

  • Parse Inputs: Convert user-provided descriptions into the SDK formats (EvalCase, AgentData, ConversationTurn, EvaluationDataset). See references/dataset_schema.md for the full type hierarchy and examples.

  • Single-Turn (Model Eval): Create EvalCase objects with prompt strings. Use client.evals.run_inference(model=..., src=dataset) to populate model responses if needed.

  • Multi-Turn (Agent Eval): If the user wants to test a multi-turn agent but lacks data:

    1. Generate Scenarios: Use client.evals.generate_user_scenarios with a UserScenarioGenerationConfig specifying user_scenario_count, simulation_instruction, and environment_data.
    2. Run Inference: Use client.evals.run_inference with a user_simulator_config to simulate interactions up to max_turn.

Read the full file on GitHub · 193 lines

Files

What ships with it

9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 193 lines · 128 tokens per session scan A 6d059789b5dc

Subscribe to this mod's changes

quality-flywheel is a skill published in the GitHub repository GoogleCloudPlatform/vertex-ai-samples (790 stars, last pushed 3d ago), licensed Apache-2.0. It adds 128 tokens to every session and 1,887 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

examples-qa

Verify Instructor behavior through the repository's ./examples/ suite in pass, live record, or hermetic replay mode. Use when running selected examples or the corpus, capturing and reusing recorded LLM HTTP responses, diagnosing hub results, or distinguishing real errors, assertion failures, skipped examples, and…

cognesy/instructor-php · 67 tokens

AI/ML Model Testing

Testing machine learning models including accuracy validation, bias detection, drift monitoring, A/B testing, and model regression testing.

PramodDutta/qaskills · 29 tokens

deep-learning-pytorch

Use when writing or changing PyTorch code — model, Dataset/DataLoader, training and evaluation loops, determinism, mixed precision, torch.compile, checkpoints with safetensors, Hugging Face models, ONNX export, and tests that run on CPU.

makifbaysal/tasktrooper · 55 tokens

leakage-safe-feature-engineering

Use when building or changing features, preprocessing, encoders, resampling or train/validation/test splits — keep every fitted transform inside a Pipeline fitted on training folds only, and build time and group features without seeing the future or the same entity twice.

makifbaysal/tasktrooper · 57 tokens

ml-verify

Use when the user wants to verify code, config, or math before running — or proactively before any expensive training job or deployment.

Leeroo-AI/superml · 29 tokens

add-llm-evals

Use this when adding evaluation to an LLM/agent app - measuring output quality (correctness, faithfulness, relevance, safety) rather than just watching traces. Trigger on "add evals", "test my prompt", "is my RAG accurate", "catch regressions", "score outputs", or setting up an eval suite in CI. Covers offline (CI)…

ContextJet-ai/awesome-llm-observability · 95 tokens