In detail
How it sizes a test
Sample size depends on two numbers: how often the page converts now and the smallest relative lift you care about. A page at 3% needs about 14,000 visitors per variant to detect a 20% lift (3% to 3.6%), and about 53,000 for a 10% lift. At a 1% baseline, a 10% lift needs about 160,000 per variant. Test length is the sample per variant times the number of variants, divided by daily traffic times the share of visitors exposed.
What it does when the numbers are too big
If the test would run more than 60 days, the skill suggests alternatives. These include accepting only larger effects, dropping extra variants, combining similar pages, testing earlier in the funnel where traffic is higher, or skipping the test and deciding from qualitative data. Each extra variant raises the sample: about 1.5 times for three arms and 2 times for four.
How it reads a result
Claude compares the p-value with the planned significance level, usually 0.05, and reports the confidence interval and effect size next to it. It is careful about what a p-value means: it is not the chance that the result is random or that the variant will win again. A flat result gets its interval reported, and an unplanned segment finding is labelled exploratory and sent to a new test.
Changes only some visitors see
For a hero video, a calculator or a chat widget, most visitors never touch the change, so overall conversion drowns the signal. The skill suggests comparing only visitors who reached the same trigger point in both arms, such as the play button coming into view. It warns against filtering on clicks, since the variant itself can change who clicks.
Running tests as a program
Ideas come from analytics, customer research, support tickets, heatmaps and past losers. Each gets an ICE score: impact, confidence and ease, each rated 1 to 10, averaged. Winners go into a playbook entry with the sample, the interval, guardrail outcomes and the pattern to reuse on other pages.
Rules it follows
Limits written into the skill, with the reason for each
Run every test at least one full week, and through two business cycles for B2B or through paydays for e-commerce
Traffic and buying behaviour change by day of week and time of month, so a shorter test can catch an unusual stretch
Avoid running a test longer than 4 to 8 weeks
Novelty wears off and outside events start to mix into the result
Do not extend a finished fixed-horizon test until it becomes significant
Adding days until the numbers cross the line produces false winners
Call no winner before the planned sample is reached; stop early only when a guardrail metric is significantly worse
Early stops on the primary metric inflate false positives, while real harm to refunds or support load should not wait
If you plan to analyse segments, size the test for the smallest segment
A sample sized for all traffic is too small to say anything about mobile or new visitors alone
What it needs and what you get
What you provide
- Baseline conversion rate of the page
- Weekly or daily traffic
- The change you want to test and why
- The smallest lift worth detecting
- Visitors and conversions per variant, to read a result
What you get back
A test plan with the hypothesis, metrics, sample per variant and duration, or a result read through the six-point checklist with a recommendation and a playbook entry
- A hypothesis written as observation, change, expected outcome and metric
- Sample size per variant and how many weeks the test needs
- A read of the result with its confidence interval and guardrail metrics
- A backlog of test ideas ranked by ICE score
- A playbook entry for each finished test
A piece of the output from the sample run
Totals, Nov 16 to Nov 24
| Variant | Visitors | Orders |
|---|---|---|
| Control (free over $50) | 8,197 | 258 |
| Free shipping, no minimum | 8,255 | 275 |
What to do
- Keep running about 7 more days, read the result once on Tue Dec 1
- Saturday's +13% was a swing; checking daily and stopping on a good day finds fake winners
When to use it
- Before launch, to check the page has enough traffic for the test
- When a variant looks like a winner after a few days and someone wants to stop
- When a test ends flat and you need to decide what it tells you
Sample run
One test task, shown exactly as it ran
Read the run as text
9 days into our free-shipping bar test. On Saturday the variant showed +13% and my cofounder wants to ship it. Planned 14,000 visitors per variant. Is this real, and can we stop?
- ab-test-export.csv36 rows
Using the skill ab-testing
| Variant | Visitors | Orders | Conversion |
|---|---|---|---|
| Control (free over $50) | 8,197 | 258 | 3.15% |
| Free shipping, no minimum | 8,255 | 275 | 3.33% |
Not real yet, don't stop. The variant leads by +5.8%, not +13%. The 95% interval runs from -11% to +23% and p = 0.51, so the data fit well with no difference at all.
- Day 17%
- Day 3-3.1%
- Day 6 (Sat)13.3%the peak
- Day 95.8%
- failed: Sample reached: 59% of 14,000 per variant
- failed: Significant: p = 0.51, interval -11% to +23%
- needs a look: Effect size: +5.8% vs the 20% lift it was sized for
- needs a look: Guardrail: average order value down 3.2% ($39.57 vs $40.87)
- needs a look: Segments: desktop +11%, mobile flat, both not significant
- passed: Split 49.8% / 50.2%, sample ratio check passes (p = 0.65)
What to do
- Keep running about 7 more days, read the result once on Tue Dec 1
- Saturday's +13% was a swing; checking daily and stopping on a good day finds fake winners
- If it ends flat, report the interval and decide on margin after shipping cost
- Don't extend the test just to make it significant
Example prompts
Our pricing page converts at 2.8% from about 9,000 visits a week. How long would a test need to run to detect a 15% lift?
Variant B has 312 signups from 10,400 visitors, control has 268 from 10,350. Is this real, and can we stop the test?
Help me build a backlog of tests for our signup flow and rank them by what to run first
How to install
In claude.ai
Download ab-testing.zip, upload the zip as it is under Settings, Capabilities, Skills and ask for the job in a new chat
In Claude Code
unzip ab-testing.zip -d ~/.claude/skills/ For one project only, move the ab-testing folder into .claude/skills/ inside it
- ab-testing/
- CHANGES.md3 KB
- SKILL.md19 KB
- evals/
- evals.json9 KB
- references/
- sample-size-guide.md9 KB
- test-templates.md6 KB
Questions
Does it run the test for me?
No, the A/B Testing skill plans and reads tests, and splitting traffic happens in your testing tool, such as PostHog, Optimizely or VWO
What if my page gets little traffic?
The skill first shows how many visitors each variant needs, and since a 10% lift at a 1% baseline needs about 160,000 per variant, it may tell you to test a bolder change or skip the test