Skip to content
Back to skills

Phoenix Experiments

ASecurity

Test changes to an LLM app or prompt with Phoenix datasets and experiments, in Python or TypeScript. Build datasets from traces, files, or synthetic data, run a task and evaluators as an experiment, rerun with repetitions, compare experiments to decide whether a change is better, improve an app's prompt and measure the result, and gate CI with pytest, Vitest, or Jest. Use for "did my prompt change help", "compare these two experiments", "should we ship this", "run an experiment", "create a da...

  • 12,550 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 26, 2026
ai-agentstypescriptpythonnode

Works with

  • terminal
  • cli
  • mcp

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned November 26, 2026

npx -y skills add Arize-ai/phoenix --skill phoenix-experiments --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Phoenix Experiments?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Phoenix Experiments
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/arize-ai-phoenix-experiments/badge)](https://www.skillsdirectory.com/skills/arize-ai-phoenix-experiments)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: phoenix-experiments
description: Test changes to an LLM app or prompt with Phoenix datasets and experiments, in Python or TypeScript. Build datasets from traces, files, or synthetic data, run a task and evaluators as an experiment, rerun with repetitions, compare experiments to decide whether a change is better, improve an app's prompt and measure the result, and gate CI with pytest, Vitest, or Jest. Use for "did my prompt change help", "compare these two experiments", "should we ship this", "run an experiment", "create a dataset from traces", "A/B test prompts", "improve my system prompt", "regression test my agent", or "add evals to CI". For writing the evaluators themselves use phoenix-evals.
license: Apache-2.0
compatibility: Requires a Phoenix server. Python needs arize-phoenix-client (plus arize-phoenix-evals for library evaluators). TypeScript needs @arizeai/phoenix-client 8.x and Node.js 22.15 or later. Library evaluators also need @arizeai/phoenix-evals and an AI SDK v7 provider.
metadata:
  targets: "agents mcp"
  author: oss@arize.com
  version: "1.0.0"
  languages: "Python, TypeScript"
---

# Phoenix experiments

An experiment runs a task (your app, a prompt, or one step of an agent) on every
example in a dataset and scores each output with evaluators. Comparing two
experiments on the same dataset shows whether a change helped.

Related skills: **phoenix-evals** writes the evaluators; **phoenix-judge-alignment**
checks an LLM judge against human labels; **phoenix-cli** lists and reads datasets and
experiments from the terminal (`px dataset list`, `px experiment get`).

## Workflow

1. **Pick or build the dataset.** Reuse the dataset the user names. Build a new one
   from traces, a file, or synthetic examples only when none fits. Each example has
   `input`, an optional reference `output`, and `metadata`.
2. **Run the baseline** when none exists: the current app or prompt, with the
   evaluators you'll compare on.
3. **Run the change** on the same dataset version, with the same evaluators, under a
   name that says what changed.
4. **Repeat when variation matters.** When the task or a judge calls an LLM, set
   `repetitions` to 3 or more so you can see whether a result is stable. Raise or
   lower the count from there based on cost and the decision's risk.
5. **Compare per evaluator and per example.** Read pass rates side by side, then the
   examples that flipped. See [compare-experiments](references/compare-experiments.md).
6. **Decide and say why.** Name the metric, the two rates, the number of runs behind
   each, and whether the difference is larger than the run-to-run spread.

| Task | Python | TypeScript |
| ---- | ------ | ---------- |
| Create and update datasets | [datasets-python](references/datasets-python.md) | [datasets-typescript](references/datasets-typescript.md) |
| Run, add evaluations to, and resume experiments | [experiments-python](references/experiments-python.md) | [experiments-typescript](references/experiments-typescript.md) |
| Compare experiments and decide | [compare-experiments](references/compare-experiments.md) | [compare-experiments](references/compare-experiments.md) |
| Generate synthetic examples | [synthetic-data-python](references/synthetic-data-python.md) | [synthetic-data-typescript](references/synthetic-data-typescript.md) |
| Gate CI on evals | [ci-pytest](references/ci-pytest.md) | [ci-vitest-jest](references/ci-vitest-jest.md) |

## Rules

- **Compare like with like.** Prefer the same dataset version, evaluator definitions,
  and number of repetitions. If they differ, restrict the comparison to shared
  records where possible and report the setup difference.
- **Apply the user's decision rule when they give one.** "Ship if the format check
  doesn't drop" is decided on the observed format-check numbers. Report the
  uncertainty next to the call, but don't swap their rule for a significance test.
- **Must-pass means what the user names.** The checks or slices the user says must
  not regress decide the call. Report other regressions, but don't let them decide
  unless the user says so.
- **Count every run.** With repetitions, a pass rate is passes over all runs. For a
  must-pass check, also report how many examples passed every repetition: an
  example that fails one run in three is a real, intermittent failure.
- **Separate tuning from the final check.** A holdout split is often the clearest
  option. For small datasets, cross-validation or repeated resampling can use the
  available examples more efficiently. Use `dry_run` for drafts so they don't pile
  up as experiments, and report how you kept the final estimate independent of
  prompt changes.
- **Without a stated rule, small differences are noise until shown otherwise.** On
  20 examples, one example is 5 points. Compare per example (see
  [compare-experiments](references/compare-experiments.md)) before calling a change
  better or worse.
- **Report every evaluator the baseline used,** not only the one that improved. When
  the baseline's evaluator code isn't available, rebuild it under the same name,
  check it against the baseline's recorded results, and say how well it matches.
  Match which records it scores, too: if the baseline scored a record and the
  rebuilt evaluator returns no score for it, the two experiments aren't measured
  on the same records. Compare the scored counts, not only agreement where both
  scored.
- **Don't change other people's datasets or experiments.** Creating a dataset with an
  existing name replaces its examples, and `evaluate_experiment` replaces evaluations
  with the same name. Make a new dataset or experiment unless the user asks.
- **Consider separate regression and capability suites.** Regression suites hold
  behavior you expect to preserve. Capability suites hold harder cases you're still
  improving. Choose thresholds from the cost of each failure, and move stable cases
  into regression when they become behavior you rely on.

Files in this skill

  • SKILL.md5.9 KB
  • references/ci-pytest.md8.7 KB
  • references/ci-vitest-jest.md10.7 KB
  • references/compare-experiments.md6.2 KB
  • references/datasets-python.md3.8 KB
  • references/datasets-typescript.md3.4 KB
  • references/experiments-python.md5.8 KB
  • references/experiments-typescript.md4.7 KB
  • references/synthetic-data-python.md2 KB
  • references/synthetic-data-typescript.md1.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.