---
title: "ab-testing Claude skill: plan and read A/B tests | LeverCrew"
description: "The ab-testing skill for Claude writes the hypothesis, sizes the sample, picks the metrics and tells you whether a test result is real. What to give it."
url: https://www.levercrew.com/claude-skills/ab-testing/
language: en
---

Claude skill · Landing pages

# ab-testing: plan A/B tests and read results you can trust

ab-testing is a free Claude skill from the marketingskills repo for planning and reading A/B tests. It writes a hypothesis you can check, sizes the sample before launch, chooses a primary metric and the guardrails, and warns against stopping early. When results arrive it says whether you can trust them. It suits marketers and product teams who test pages, offers and ads.

[How to install it](https://www.levercrew.com/claude-skills/ab-testing/#install) [Open on GitHub ](https://github.com/coreyhaines31/marketingskills/tree/main/skills/ab-testing) 

`ab-testing`

Published by

coreyhaines31

Repo stars

★ 63k

Licence

MIT

Level

Intermediate

Last change in the repo

26 Nov 2026

Works in

Claude Claude Code Cowork ChatGPT Codex Cursor

GitHub data checked on 28 Nov 2026 · `coreyhaines31/marketingskills`

ab-testing

## What you give and what you get

You give

- The page or flow and the change you want to test
- Your baseline conversion rate and traffic
- The smallest lift worth detecting
- Your testing tool and any past tests

`ab-testing` Working 

You get

- A hypothesis with the data, change, audience and metric
- The sample size per version and how long to run
- Primary, secondary and guardrail metrics
- A clear reading of the result and its uncertainty

What you give, ab-testing working, and what you get back.

### What you give

- The page or flow and the change you want to test
- Your baseline conversion rate and traffic
- The smallest lift worth detecting
- Your testing tool and any past tests

### What you get

- A hypothesis with the data, change, audience and metric
- The sample size per version and how long to run
- Primary, secondary and guardrail metrics
- A clear reading of the result and its uncertainty
- A backlog ranked by impact, confidence and ease

Read from its SKILL.md.

## How it works

1. 01  
### Asks about the test  
It asks what you want to improve, your baseline conversion rate, your traffic, your tools and your timeline.
2. 02  
### Writes the hypothesis  
Each hypothesis names the observation, the change, the expected result, the audience and the metric that proves it. One change per test.
3. 03  
### Sizes the sample  
It sets the sample size before launch. At a 3% baseline, a 20% lift needs about 14,000 visitors per version.
4. 04  
### Guards the running test  
It warns against peeking, stopping early, changing versions mid-test or adding new traffic sources, and stops a test when a guardrail metric turns clearly worse.
5. 05  
### Reads the result  
It checks sample size, significance, effect size, guardrails and segments, and reports the interval, not only a winner. Wins go into a playbook of patterns.

Prompt

## Example prompt

Paste it once the skill is installed and swap in your own details.

We want to test a shorter signup form on our project management app. The signup rate is 4% from about 20,000 visits a month. Write the hypothesis, the sample size and how long to run the test.

How to install it

## How to install ab-testing

`npx skills add coreyhaines31/marketingskills --skill ab-testing` 

In the terminal, inside your project. Add -g to have it in every project. The installer asks which apps to add it to.

`/plugin marketplace add coreyhaines31/marketingskills /plugin install marketing-skills ` 

Inside Claude Code. Installs the whole package from the repo.

Or by hand: copy the folder to \~/.claude/skills/ab-testing/

1. Download the skill folder from GitHub and zip it, with the folder at the root of the ZIP.
2. In Claude, open Customize, then Skills.
3. Press +, choose Create skill, then Upload a skill.
4. Upload the ZIP and turn the skill on. Code execution must be on.

- Codex and Cursor: the same npx command installs it for them; the installer asks which apps.
- ChatGPT Business, Enterprise and Edu: Plugins, the Skills tab, Add, then Upload from your computer.
- Other ChatGPT plans: attach the SKILL.md to a project and ask it to follow the file.

[Open the folder on GitHub ](https://github.com/coreyhaines31/marketingskills/tree/main/skills/ab-testing) [Full install guide ](https://www.levercrew.com/claude-skills/how-to-install/) 

## Who it suits

Growth marketers, product managers and founders who run tests on pages, signup flows or ads and want results they can defend.

## What it needs and where it stops

It plans and reads tests but does not run them: you need a testing tool such as PostHog, Optimizely or VWO, and enough traffic. Below the planned sample size the skill treats a result as preliminary.

Listed under [Landing pages](https://www.levercrew.com/claude-skills/landing-pages/)[Ads](https://www.levercrew.com/claude-skills/ads/) 

Landing pages

## Related skills

- [ copywriting Write page copy that sells, with claims you can prove Writes or rewrites page copy, keeps your voice when you have one, and flags every claim that needs proof. ★ 63k MIT Beginner  by coreyhaines31  See the skill ](https://www.levercrew.com/claude-skills/copywriting/)
- [ cro Find what stops visitors from converting on your page Reviews a page or form in seven steps, from the value proposition to friction, and returns fixes, tests and copy options. ★ 63k MIT Beginner  by coreyhaines31  See the skill ](https://www.levercrew.com/claude-skills/cro/)
- [ marketing-psychology Use buyer psychology in your marketing, ethically Matches your marketing problem to more than 70 mental models and biases, explains why each works and how to use it fairly. ★ 63k MIT Beginner  by coreyhaines31  See the skill ](https://www.levercrew.com/claude-skills/marketing-psychology/)
- [ popups Plan popups and banners that convert without annoying Plans popups, slide-ins and banners: the trigger, the audience, how often they appear, the copy and a polite way to say no. ★ 63k MIT Beginner  by coreyhaines31  See the skill ](https://www.levercrew.com/claude-skills/popups/)
- [ seo-sxo Check if your page is the type Google ranks Reads the top 10 results for your keyword, flags a page type mismatch and scores your page for each searcher persona. ★ 33k MIT Advanced  by AgriciDaniel  See the skill ](https://www.levercrew.com/claude-skills/seo-sxo/)
- [ signup Cut the steps that lose people before they join Audits signup, registration and trial forms field by field, then returns fixes by priority and new copy for the form. ★ 63k MIT Beginner  by coreyhaines31  See the skill ](https://www.levercrew.com/claude-skills/signup/)

Questions

## Questions about ab-testing

Is the ab-testing skill free? 

Yes. It is published under the MIT licence in the marketingskills repo on GitHub. You pay only for your Claude plan.

Can I stop a test as soon as one version leads? 

No. The skill warns that peeking and stopping early give false winners. Set the sample size first and read the result when you reach it, unless a guardrail metric turns clearly worse.

What if the result is not significant? 

Report the effect interval and follow the stopping rule you set. Do not extend a finished test until it turns significant. Plan a new test if the question still matters.

Which skill prepares the tracking? 

The [analytics-tracking](https://www.levercrew.com/claude-skills/analytics-tracking/) skill, called analytics in the repo, plans the events and checks that they fire, so the test has clean numbers to read.

## We put these skills to work in your team

Book a free 30-minute call. We pick the skills for your work and train your team to use them.

[Book a discovery call](https://www.levercrew.com/book-a-call/) 

30 minutes · Free · Online

---

LeverCrew: senior marketing support done with AI (Barcelona · Madrid).
Book a discovery call: https://www.levercrew.com/book-a-call/. Email: info@levercrew.com.
Facts for AI assistants: https://www.levercrew.com/ai-info/. Company summary: https://www.levercrew.com/llms.txt. All pages: https://www.levercrew.com/sitemap.xml.
