/evaluators
Author or refine a Phoenix evaluator — code or LLM-as-a-judge — that scores a run's output. Trigger when the user wants to create a new evaluator, improve an existing one's logic or rubric, choose labels, or decide what to measure on a dataset or experiment. Do NOT trigger on:
$ npx -y skills add arize-ai/phoenix --skill evaluators --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/evaluators
Context preview
The summary Claude sees to decide when to auto-load this skill.
Author or refine a Phoenix evaluator — code or LLM-as-a-judge — that scores a run's output. Trigger when the user wants to create a new evaluator, improve an existing one's logic or rubric, choose labels, or decide what to measure on a dataset or experiment. Do NOT trigger on:
SKILL.md
evaluators.SKILL.mdname: evaluators
description: >
Author or refine a Phoenix evaluator — code or LLM-as-a-judge — that scores a run's output. Trigger when the user wants to create a new evaluator, improve an existing one's logic or rubric, choose labels, or decide what to measure on a dataset or experiment. Do NOT trigger on: (1) manual prompt drafting (use `playground`), (2) running or comparing experiments themselves (use `experiments`), (3) cross-trace failure diagnosis with no evaluator in scope (use `debug-trace`).
summary: Design or refine a code or LLM evaluator — labels, logic or rubric, the field it reads, and representative preview cases.
Evaluators
A Phoenix evaluator scores a run: it reads some subset of the run's `input`, `output`, `reference`, and `metadata` and returns named annotations — a label, a score, or both. The two artifact kinds — a **code evaluator** (a Python or TypeScript function) and an **LLM evaluator** (a judge prompt sent to a model) — share the loop and discipline below; judgment structure follows task need and environment capability, not artifact kind. The `experiments` skill reads the scores you design here; the explanations you enable are its evidence channel when comparing runs.
The Authoring Loop
1. Derive the grading task from the stated purpose — a hypothesis and its evaluator are one design: the hypothesis names the failure mode, the evaluator scores it. Evidence comes from the stated purpose, the dataset's examples, and existing run outputs, not from interrogating the user. 2. Inventory before creating. Read the dataset's existing evaluators and check input-shape compatibility — an evaluator fits when its declared inputs parse the experiment's output topology. Reuse or attach on a match; create on a gap. A question is warranted only when the stated purpose lacks the failure mode, target output field, or acceptable tradeoff. 3. Decide the labels. Choose a small, mutually exclusive, collectively exhaustive set — often binary (`correct`/`incorrect`, `pass`/`fail`). Add labels only to distinguish failure modes that matter; every extra label adds boundary ambiguity. 4. Locate the signal in the run's fields — a top-level key, a chat-style `messages` array, assistant content parts, `tool_calls`, or a `function_call` — by inspecting the actual shape. 5. Write the judgment: a function that reads the field and returns the label or score, or a judge prompt whose rubric names each label and ties the decision to observable evidence in the fields. Align scores with the optimization direction and enable an explanation to justify the judgment and surface rubric ambiguity. 6. Calibrate against several representative cases covering the named failure modes — one preview is not calibration. Shape each payload like a real run. When a case mislabels, change one thing — rubric, logic, labels, or case — and fix an unrepresentative case before blaming the logic. 7. Iterate until the representative cases label correctly and the tradeoff is acceptable. Persistence is a separate save; do not claim the evaluator is created or updated until that save actually completes.
Reference Provenance
The first fork is **reference-based** versus **reference-free**: does the judgment compare the output against something stored with the example, or against the input and rubric criteria alone? When reference-based, triage what the `reference` actually is before trusting it as an answer key:
- **golden** — a hand-labeled ideal output. Deviation is a defect; strict comparison is warranted.
- **baseline-snapshot** — current-state outputs culled into the dataset as a comparison point, not
ground truth. It anchors did-behavior-change judgments — Pairwise suits it — and losing to it is a signal, not a verdict.
- **reference-free** — no stored answer key; judge the output against the input and a rubric.
Choosing The Judgment Structure
Discover the environment first: read the capability fingerprint of the sandbox the evaluator will run in — which model credentials its environment variables name, whether it has internet access, which packages are installed, and any restricted-language runtime notes. Choose by environment capability and task need, not artifact kind. The ladder, floor to heaviest:
- **deterministic primitives** — exact-match, contains, regex-match, json-distance,
embedding-distance, levenshtein-distance, scikit-learn metrics, and structural `tool_calls` checks. Prefer one whenever the judgment can be computed.
- **single LLM judge** — one rubric, one model, for reading-comprehension or open-ended quality.
- **Composite** — sub-checks (code or LLM) blended into one weighted score; per-axis breakdown in
the explanation.
- **LLM Jury** — one judgment polled across several models; weighted votes in the explanation.
- **Pairwise** — a blind head-to-head of `output` against `reference`, returning a winner or tie.
A credentialed sandbox with LLM access subsumes the LLM-evaluator artifact: a code evaluator there can call models, so Composite, LLM Jury, and Pairwise become layered code evaluators recording steps and votes in explanation or metadata. Design a suite, not a single check: a **deterministic floor** of primitives plus **judged dimensions** for what the floor cannot settle.
Matching The Field Topology
- At runtime, `output` is the new run's output; a dataset-backed evaluator receives the example's
output as `reference` — data the run never saw, provenance triaged above. Don't conflate the two.
- A playground-backed run's `output` always has the fixed LLM-span shape: a `messages` array
(`role`, `content`, and `tool_calls` with `function.name`/`function.arguments`) plus a top-level `available_tools`; shape calibration cases accordingly. A dataset example's output keeps the user-defined dataset shape — evidence for where the signal lives, not a guarantee; inspect it rather than assuming a top-level key.
Read more
name: evaluators description: > Author or refine a Phoenix evaluator — code or LLM-as-a-judge — that scores a run's output. Trigger when the user wants to create a new evaluator, improve an existing one's logic or rubric, choose labels, or decide what to measure on a dataset or experiment. Do NOT trigger on: (1) manual prompt drafting (use `playground`), (2) running or comparing experiments themselves (use `experiments`), (3) cross-trace failure diagnosis with no evaluator in scope (use `debug-trace`). summary: Design or refine a code or LLM evaluator — labels, logic or rubric, the field it reads, and representative preview cases.
Evaluators
A Phoenix evaluator scores a run: it reads some subset of the run's `input`, `output`, `reference`, and `metadata` and returns named annotations — a label, a score, or both. The two artifact kinds — a **code evaluator** (a Python or TypeScript function) and an **LLM evaluator** (a judge prompt sent to a model) — share the loop and discipline below; judgment structure follows task need and environment capability, not artifact kind. The `experiments` skill reads the scores you design here; the explanations you enable are its evidence channel when comparing runs.
The Authoring Loop
1. Derive the grading task from the stated purpose — a hypothesis and its evaluator are one design: the hypothesis names the failure mode, the evaluator scores it. Evidence comes from the stated purpose, the dataset's examples, and existing run outputs, not from interrogating the user. 2. Inventory before creating. Read the dataset's existing evaluators and check input-shape compatibility — an evaluator fits when its declared inputs parse the experiment's output topology. Reuse or attach on a match; create on a gap. A question is warranted only when the stated purpose lacks the failure mode, target output field, or acceptable tradeoff. 3. Decide the labels. Choose a small, mutually exclusive, collectively exhaustive set — often binary (`correct`/`incorrect`, `pass`/`fail`). Add labels only to distinguish failure modes that matter; every extra label adds boundary ambiguity. 4. Locate the signal in the run's fields — a top-level key, a chat-style `messages` array, assistant content parts, `tool_calls`, or a `function_call` — by inspecting the actual shape. 5. Write the judgment: a function that reads the field and returns the label or score, or a judge prompt whose rubric names each label and ties the decision to observable evidence in the fields. Align scores with the optimization direction and enable an explanation to justify the judgment and surface rubric ambiguity. 6. Calibrate against several representative cases covering the named failure modes — one preview is not calibration. Shape each payload like a real run. When a case mislabels, change one thing — rubric, logic, labels, or case — and fix an unrepresentative case before blaming the logic. 7. Iterate until the representative cases label correctly and the tradeoff is acceptable. Persistence is a separate save; do not claim the evaluator is created or updated until that save actually completes.
Reference Provenance
The first fork is **reference-based** versus **reference-free**: does the judgment compare the output against something stored with the example, or against the input and rubric criteria alone? When reference-based, triage what the `reference` actually is before trusting it as an answer key:
- **golden** — a hand-labeled ideal output. Deviation is a defect; strict comparison is warranted.
- **baseline-snapshot** — current-state outputs culled into the dataset as a comparison point, not
ground truth. It anchors did-behavior-change judgments — Pairwise suits it — and losing to it is a signal, not a verdict.
- **reference-free** — no stored answer key; judge the output against the input and a rubric.
Choosing The Judgment Structure
Discover the environment first: read the capability fingerprint of the sandbox the evaluator will run in — which model credentials its environment variables name, whether it has internet access, which packages are installed, and any restricted-language runtime notes. Choose by environment capability and task need, not artifact kind. The ladder, floor to heaviest:
- **deterministic primitives** — exact-match, contains, regex-match, json-distance,
embedding-distance, levenshtein-distance, scikit-learn metrics, and structural `tool_calls` checks. Prefer one whenever the judgment can be computed.
- **single LLM judge** — one rubric, one model, for reading-comprehension or open-ended quality.
- **Composite** — sub-checks (code or LLM) blended into one weighted score; per-axis breakdown in
the explanation.
- **LLM Jury** — one judgment polled across several models; weighted votes in the explanation.
- **Pairwise** — a blind head-to-head of `output` against `reference`, returning a winner or tie.
A credentialed sandbox with LLM access subsumes the LLM-evaluator artifact: a code evaluator there can call models, so Composite, LLM Jury, and Pairwise become layered code evaluators recording steps and votes in explanation or metadata. Design a suite, not a single check: a **deterministic floor** of primitives plus **judged dimensions** for what the floor cannot settle.
Matching The Field Topology
- At runtime, `output` is the new run's output; a dataset-backed evaluator receives the example's
output as `reference` — data the run never saw, provenance triaged above. Don't conflate the two.
- A playground-backed run's `output` always has the fixed LLM-span shape: a `messages` array
(`role`, `content`, and `tool_calls` with `function.name`/`function.arguments`) plus a top-level `available_tools`; shape calibration cases accordingly. A dataset example's output keeps the user-defined dataset shape — evidence for where the signal lives, not a guarantee; inspect it rather than assuming a top-level key.
Repo: arize-ai/phoenix
Other skills on phoenix.
- /annotate-spans
Write effective, consistent annotations on LLM/agent spans and traces, and coach the user on annotation practice. Load this whenever you are about to record structured feedback with the `batch_span_annotate` tool, or when the user asks how to annotate, label, score, or review
Open skill - /datasets
Understand what a Phoenix dataset is and reason well about its examples, outputs, splits, and how it feeds evaluators and experiments. Load this whenever a dataset is in view or the user asks what a dataset is, how splits work, what an output "means", or how datasets relate to
Open skill - /debug-trace
Diagnose failure modes by systematically investigating traces. Trigger when the user explicitly asks for cross-trace diagnosis: "what's going wrong?", "were there errors?", "debug this", "where is my agent struggling?". Do NOT trigger on: (1) advice questions ("what should I
Open skill - /experiments
Run, read, and compare dataset-backed experiments to find evidence that a prompt or pipeline is improving. Trigger when the user wants to iterate over a dataset with experiments, compare experiment runs, read experiment quality/latency/cost, or decide whether a change actually
Open skill - /phoenix-graphql
Write efficient GraphQL queries against the Phoenix API. Load this skill in two cases: (1) before composing any non-trivial GraphQL query yourself for data analysis (via the `phoenix-gql` bash command) — it contains schema entrypoints and patterns that eliminate the need for
Open skill - /playground
Author, edit, or iterate on prompts in the Phoenix prompt playground, including running experiments over a dataset. Load before any playground tool call, including single-shot prompt rewrites.
Open skill

