phoenix-experiments
FreeNo executable scriptsNot checkedTest 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…
by Arize-ai★ 12,510 GitHub starsAbout this skill
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
- 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 referenceoutput, andmetadata. - Run the baseline when none exists: the current app or prompt, with the evaluators you'll compare on.
- Run the change on the same dataset version, with the same evaluators, under a name that says what changed.
- Repeat when variation matters. When the task or a judge calls an LLM, set
repetitionsto 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. - Compare per evaluator and per example. Read pass rates side by side, then the examples that flipped. See compare-experiments.
- 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 | datasets-typescript |
| Run, add evaluations to, and resume experiments | experiments-python | experiments-typescript |
| Compare experiments and decide | compare-experiments | compare-experiments |
| Generate synthetic examples | synthetic-data-python | synthetic-data-typescript |
| Gate CI on evals | ci-pytest | ci-vitest-jest |
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_runfor 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) 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_experimentreplaces 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.
Install phoenix-experiments in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the phoenix-experiments skill do?
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.
How do I install the phoenix-experiments skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the phoenix-experiments skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
by Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
by Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
by Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
by Anthropic