Marketing Skill

A/B Testing

An A/B testing skill that has your AI agent design experiments the way a statistician would: a written hypothesis, a sample size set before launch, primary, secondary and guardrail metrics, and a stopping rule. It also covers running a continuous growth experimentation program with ICE scoring and a playbook of proven patterns.

Maintained by Corey Hainesv2.0.7Updated 2026-11-092 references
npx skills add coreyhaines31/marketingskills

Installs the full library — A/B Testing included

To run an A/B test you can trust, start with a hypothesis in the form "Because [observation], we believe [change] will cause [outcome] for [audience]. We'll know this is true when [metrics]." Test one meaningful change. Pick a single primary metric, plus secondary metrics for context and guardrail metrics that must not get worse. Calculate sample size before launch from your baseline rate and minimum detectable effect, at α = 0.05 and 80% power. Run for at least one full week (two business cycles for B2B) and avoid going past 4–8 weeks. Don't peek and stop early. At the end, report the effect size and confidence interval alongside the p-value, check guardrails and segments, and treat unplanned segment wins as exploratory until a new test confirms them.

How the A/B Testing skill works

  1. 1

    Assess context and baseline

    The agent reads your product marketing context file if one exists, then asks only what's missing: what you're trying to improve, the change you're considering, your current conversion rate and traffic, the smallest lift worth detecting, and which testing tools you have. Without a baseline and traffic figure, it can't tell whether the test is feasible at all.

  2. 2

    Write a falsifiable hypothesis

    It turns a vague idea like "changing the button might help" into a structured hypothesis tied to evidence: the observation, the change, the expected outcome, the audience, and the metric that proves it. The test is limited to a single variable, so a win or loss can be attributed to something specific.

  3. 3

    Size the test before launch

    Using baseline rate, minimum detectable effect, 5% significance and 80% power, the agent estimates sample per variant, then converts that into days with the duration formula. It applies minimum-duration rules (a full week, business cycles, paydays for e-commerce) and flags when the answer runs past 30 or 60 days, with options like raising the MDE or testing upstream.

  4. 4

    Define metrics and variants

    It sets one primary metric to call the test, secondary metrics to explain why, and guardrails such as refund rate or support tickets. Variants are kept bold enough to detect, and it recommends a traffic split (50/50 by default, 90/10 or ramping when risk is high) and client-side or server-side implementation. When a change only reaches visitors who interact with it, such as a hero video, it flags that a test on overall conversion is underpowered and analyzes only visitors who reached the trigger point instead.

  5. 5

    Run with a pre-launch checklist

    Before launch it confirms the hypothesis, metric, sample size, tracking and QA on every variant. During the test it tells you what to watch (technical issues, guardrails, external factors) and what not to do: peek and stop early, change variants mid-test, or add new traffic sources.

  6. 6

    Analyze and document the result

    It works through the analysis checklist: sample reached, significance, effect size against the MDE, secondary and guardrail metrics, and segment differences. Results go into a playbook entry with the confidence interval, the reusable pattern, and where else to apply it, so each test feeds the next hypothesis.

When to use it

Your agent reaches for this skill when you ask for things like:

“A/B test”“split test”“experiment”“test this change”“variant copy”“multivariate test”“hypothesis”“should I test this”“which version is better”“test two versions”

What's inside

The playbook covers

Initial AssessmentCore PrinciplesHypothesis FrameworkTest TypesSample SizeMetrics SelectionDesigning VariantsTraffic AllocationImplementationRunning the TestAnalyzing ResultsDocumentationGrowth Experimentation Program[Experiment Name]Common MistakesTask-Specific Questions

See it in action

You ask

I want to A/B test our homepage headline. We currently say 'The All-in-One Project Management Tool' and want to test something benefit-focused. We get about 15,000 visitors/month and our current signup rate is 3.2%.

The skill delivers
Feasibility check

Traffic: 15,000/month ≈ 500 visitors/day, all exposed, 50/50 split. Baseline: 3.2% signup rate. At a 3% baseline, the quick-reference sample per variant is roughly: 10% lift → ~53k per variant → ~210 days. Not feasible. 20% lift → ~14k per variant → ~56 days, about 8 weeks. 50% lift → ~2.5k per variant → ~10 days; run two full weeks. Plan on a 20% minimum detectable effect (3.2% → ~3.8%). That's right at the 8-week ceiling, so the headline change has to be bold. A small wording tweak won't be detectable at this traffic level.

Hypothesis and metrics

Because the current headline names a category ("All-in-One Project Management Tool") rather than an outcome, we believe a benefit-led headline focused on what teams get done will increase homepage signup rate by 20%+ for new visitors. We'll know this is true when signup rate rises from 3.2% with a confidence interval that excludes zero. Primary: homepage visitor → signup completed Secondary: CTA click-through, scroll depth, bounce rate Guardrail: signup → activation rate (a catchier headline shouldn't attract lower-intent signups)

Run rules

Variant B: one benefit-focused headline, everything else identical. Server-side or flicker-free setup so the headline doesn't swap after load. Commit to ~7 weeks or the full sample, whichever is later. No calling it at week two. If it ends inconclusive, report the effect interval and don't extend the test; queue a bolder angle as the next hypothesis rather than rerunning the same idea.

More things to ask

Real requests the skill is tested against:

  • we want to test like 4 different CTA button colors on our pricing page. is that a good idea?

  • Our test has been running for 3 days and Variant B is winning with 95% confidence. Should we call it?

  • Help me set up a multivariate test on our landing page. I want to test the headline, hero image, and CTA button simultaneously.

  • What metrics should I track for an A/B test on our trial signup page? We're testing a longer form (adds company size and role fields) against the current short form.

  • Can you help me write copy for our new landing page? We want to test it against the current version.

FAQ

How long should I run an A/B test?

Long enough to reach the sample size you calculated before launch, and never less than one full week so you capture day-of-week variation. B2B tests should cover two business cycles, and e-commerce tests should run through paydays. Work it out as sample per variant times number of variants, divided by daily eligible traffic. Avoid running past 4–8 weeks, when novelty effects wear off and outside factors creep in. Over 60 days usually means you should change the test design.

How many visitors do I need for an A/B test?

It depends on your baseline conversion rate and the smallest lift you want to detect. At a 3% baseline, detecting a 20% lift takes roughly 14,000 visitors per variant (95% confidence, 80% power), while a 10% lift needs around 53,000. At a 10% baseline, the same 20% lift needs about 3,800 per variant. Low baselines and small effects drive sample size up fast. Plug your own numbers into a calculator like Evan Miller's before committing.

My variant hit significance after a few days. Can I stop the test?

Not if you planned a fixed-horizon test. Checking results early and stopping the moment a variant looks significant is the peeking problem. The 5% false-positive rate only holds if you look once, at the planned sample. Early leads often regress and audience mix shifts across the week. If you need the option to stop early, plan a sequential or Bayesian analysis from the start, since those methods account for repeated looks.

What does a p-value actually tell me in an A/B test?

Assuming the null model and its assumptions hold, a p-value is the probability of seeing a result at least as extreme as yours. It is not the probability that the result is random, that the variant is better, or that it will win again. Following the American Statistical Association's guidance, report the effect size and confidence interval alongside it. Significance alone doesn't prove business value or justify shipping.

What should I do when an A/B test is inconclusive?

Report the effect interval rather than calling it a tie. The interval may still allow both meaningful benefit and harm, or it may rule out effects worth pursuing. Follow the stopping rule you planned. Don't extend a finished fixed-horizon test until it turns significant. Record what you learned, then design a new test, usually with a bolder change or a larger minimum detectable effect.

How do I prioritize which experiments to run first?

Score each hypothesis from 1 to 10 on Impact (how much it would move the primary metric), Confidence (how sure you are, based on data rather than gut) and Ease (how fast and cheap it is to ship and measure). Average the three for an ICE score, run the highest first, and re-score monthly. Fill the backlog from analytics drop-offs, customer research, support tickets, heatmaps and past losing tests, aiming for 20+ queued hypotheses.

Related skills

Use it in your agent

A/B Testing is a plain SKILL.md folder, so the same skill loads in any agent that reads the skills format. Setup guides:

Build a tool for this workflow?

Marketers run this skill mid-task — the exact moment your tool matters. Partner tiers put your tool inside the skill their agent runs.

See partner tiers