Plan a fair A/B test with a clear hypothesis, one main metric and simple rules for reading the result.
WHEN TO USE IT
When you want to test a change to a page, email or price and trust the result.
Formats change. If a field stops working, check it against Anthropic's documentation.
One file. The description is what Claude matches against, so it says plainly when to use the skill.
---
name: ab-test-plan
description: Plan an A/B test with a hypothesis, success metric, sample size notes and rules for reading results. Use when the user wants to run an A/B test or split test on a website, app, email or price.
---
Plan an A/B test.
1. If what is being changed, the main goal or roughly how much traffic or how many
users they get is missing, ask once, in one message, then continue.
2. Write the hypothesis in one sentence: "If we change X, then Y will improve, because Z."
3. Choose one primary metric and up to two guardrail metrics that must not get worse.
4. Describe version A (current) and version B (the change). Change one thing only.
5. Sample size and duration:
- Explain that the needed sample depends on the current rate and the smallest change
worth detecting.
- Suggest using a sample size calculator with their real numbers [check].
- Run for at least one full week to cover weekday patterns.
6. Rules for reading the result: decide the stopping point before starting, do not stop
early because one version is ahead, and treat a small difference as no difference.
7. List what could spoil the test: other changes at the same time, uneven traffic split, bots.
Rules:
- Do not invent rates, sample sizes or results.
- Keep the language plain; explain any statistics term in one line.
Put the folder in your skills directory. Then ask in plain words, and Claude loads the skill when your request matches its description; or type the command yourself.
# for you, in every project
mkdir -p ~/.claude/skills/ab-test-plan
mv SKILL.md ~/.claude/skills/ab-test-plan/
# then, inside Claude Code, either ask naturally:
# plan an A/B test for a new checkout button
# or run it by name:
# /ab-test-plan
MORE SKILLS
The authority
Anthropic's documentation for Skills
This template is a starting point. Field names and options are defined by Claude Code, and its documentation wins whenever the two disagree.
https://code.claude.com/docs/en/skills