New guide:Claude skills vs prompt templates for marketing work
Chartroom Search

Home/Conversion and retention/A/B Testing

A/B Testing skill for Claude

A/B Testing works out how many visitors a test needs before it starts, then checks the finished result against a six-point list before anyone calls a winner

A 3-minute read with a 6-step sample run and a 20 KB download, updated

Download the skill

Works in claude.ai and Claude Code

How it works

Step 1 of 7

Step 1 of 7

Starts from your current numbers

Claude asks for the page's current conversion rate, its weekly traffic, the change you want to try and the smallest lift worth detecting

Step 2 of 7

One change, written as a prediction

The idea becomes a prediction that names what you observed, the change, the expected outcome for an audience and the metric that will prove it

Step 3 of 7

One primary metric plus guardrails

One metric decides the test, while guardrails such as refund rate or support tickets watch for harm

Step 4 of 7

Works out how long the test runs

From the baseline and the lift, Claude gets the sample each variant needs at 95% confidence and 80% power, then divides by your daily traffic to get the test length

Step 5 of 7

No early calls while it runs

During the test you watch tracking, segment quality and guardrails and leave the primary metric alone, because stopping on a good-looking day is how fake winners get shipped

Step 6 of 7

Checks the final numbers

Claude checks the sample, significance with its confidence interval, effect size, secondary metrics, guardrails and segments, and a result short of the planned sample stays preliminary

Step 7 of 7

A verdict and a playbook entry

You get what to do next and a written record of the test, and new ideas go into a backlog ranked by ICE score

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

VariantVisitorsOrders
Control (free over $50)8,197258
Free shipping, no minimum8,255275

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

Reading 36 rows from ab-test-export.csv: 9 days, 2 variants, 2 devices
Totals, Nov 16 to Nov 24
VariantVisitorsOrdersConversion
Control (free over $50)8,1972583.15%
Free shipping, no minimum8,2552753.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.

Running lift, day by day
  • Day 17%
  • Day 3-3.1%
  • Day 6 (Sat)13.3%the peak
  • Day 95.8%
Analysis checklist1 passed, 3 need a look, 2 failed
  • 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

Step by step: Use skills in Claude

In Claude Code

unzip ab-testing.zip -d ~/.claude/skills/

For one project only, move the ab-testing folder into .claude/skills/ inside it

Step by step: Claude Code skills docs

ab-testing.zipA 20 KB download with 6 files
  • 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