Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

agent-platform-autorater-customization

БесплатноЗапускает вложенные скриптыНе проверен

Customizes an autorater (evaluation metric) for an AI agent so its grades match the user's own judgment, starting from the agent's real trajectories. Use when…

googleот google★ 25 380 звёзд на GitHub

Об этом скилле

Agent Platform Autorater Customization

This skill helps a user build graders for their agent that judge the way they do. You do the reading, writing and testing; the user makes the judgment calls. The result is a set of metrics registered in the Agent Platform evaluation service, one or more for each criterion the user cares about.

Carry out the steps below in order. Don't summarize them to the user.

Usage Attribution

MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read and follow the instructions in Usage Attribution.

Setup

Check each item before the first evaluation call, and ask the user to fix what is missing. Ask before installing anything, because it changes the user's environment.

  1. Python SDK. Install or upgrade the Agent Platform SDK with the evaluation extra:

    pip install --upgrade 'google-cloud-aiplatform[evaluation]>=2.8.0,<3'
    

    Keep the quotes; unquoted, the shell reads >= as a redirect. The gcloud CLI is also needed for authentication; if it is missing, point the user to https://cloud.google.com/sdk/docs/install instead of installing it.

  2. Project and billing. Use the project the user names, or ask for one (gcloud config set project {project_id}). The project needs an active billing account: evaluation calls are billed as model usage. See https://cloud.google.com/pricing for current prices; don't quote numbers.

  3. API. Enable the Agent Platform API: gcloud services enable aiplatform.googleapis.com.

  4. Authentication. Run gcloud auth login for the CLI and gcloud auth application-default login for the SDK and scripts, or set GOOGLE_APPLICATION_CREDENTIALS to a service account key file.

  5. IAM. The user or service account needs roles/aiplatform.user to run evaluations and register metrics. Don't grant broader roles such as roles/aiplatform.admin; ask the user to request the narrower role if it is missing.

  6. Region. Use us-central1 unless the user needs another region (use global for gemini-4-hydrogen judge models unless allow_cross_region_model is enabled; see https://cloud.google.com/about/locations).

Working with the user

  • At each Approval point, show the proposal and ask: "Would you like to change anything, or go ahead with this version?" Wait for a clear yes; silence is not approval.
  • For setup choices (project, region, storage), suggest a default.
  • Everything the user reviews (cases, grades, metric definitions) goes in a review page, not in chat; see Review pages. Chat updates say what you did, the numbers, and what you need.
  • When you ask about a trajectory in chat, quote the relevant lines.

Inputs

The user brings a folder of trajectories: the ones they think went wrong, plus some good ones. Optional: a note or rating per trajectory (thumbs, human score, an old autorater's verdict), an existing rubric, or reference answers.

  • Use all of them unless grading them would be slow or costly in the evaluation service. Then agree a sample with the user that covers the failures and a few good cases, and say what was left out.
  • AgentData JSONL is best; see Converting trajectories. If you can't map a format to AgentData with confidence, don't guess: say you need to convert it to AgentData, and ask the user for a schema, a converter, or one example mapped by hand. Then check every converted case.
  • Building a dataset is not this skill's job. If the user has no folder yet, help them pick and convert trajectories, then continue.

Terms

  • Criterion: one thing the user cares about in the agent's behavior: the answer is correct, the right tool is called, the system instructions are followed throughout. A criterion holds for the whole dataset; every trajectory, or every turn, is graded on it, and it can be N/A for some.
  • Rubric: one yes/no check.
  • Metric: what grades a criterion in the evaluation service: code, one rubric, or several weighted rubrics. A criterion gets as many metrics as it needs, for example a code check for the tool call plus a judge for the answer.

The predefined multi-turn metrics also turn intents into rubrics with an importance, but they score the unweighted share of rubrics that pass. Custom metrics add rubrics written for the user's agent, weights, must-pass rubrics, and a pass threshold.

Steps

1. Confirm the inputs

Ask where the folder is and whether any trajectories have a note or rating.

2. Propose criteria (Approval)

Read the trajectories and the user's notes, and propose the criteria the data supports, as few as cover the problems the user cares about. They can cover any part of the trajectory: the final answer, tool calls and arguments, following the system instr

Полный SKILL.md на GitHub

Установить agent-platform-autorater-customization в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/attribution.mdreferences/converting_trajectories.mdreferences/metric_templates.mdreferences/multi_turn.mdreferences/noise_and_agreement.mdreferences/sdk_gotchas.mdreferences/writing_checks.mdscripts/agreement.pyscripts/build_review_page.pyscripts/render_agent_data.pyscripts/run_metrics.py

FAQ

Что делает скилл agent-platform-autorater-customization?

Customizes an autorater (evaluation metric) for an AI agent so its grades match the user's own judgment, starting from the agent's real trajectories. Use when a user wants a metric tailored to their agent, wants to turn failing trajectories into rubrics, says an existing autorater grades their agent wrong, or wants an autorater to agree with human labels (autorater hillclimbing, judge calibration). Don't use for quick evals with built-in metrics or for improving the agent itself (use agent-platform-eval-flywheel).

Как установить скилл agent-platform-autorater-customization?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл agent-platform-autorater-customization запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить agent-platform-autorater-customization с