A/B test designer
Plans A/B tests with one clear metric, the right sample size and clean tracking, so you can trust the result.
Claude's review
7/10 Sound A/B test design: one primary metric, randomization unit, business-set MDE, exposure logging, no flicker, no peeking, with a sample size calculator.
We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.
In detail
Design an A/B test that can answer its question — hypothesis, one primary metric, guardrails, randomization unit, minimum detectable effect, sample size and duration with a bundled calculator — decide whether a test is worth running at all, and implement the variant behind the project's feature-flag tool (GrowthBook, LaunchDarkly, Statsig, PostHog, Optimizely, Unleash or in-house flags). Use when asked to A/B test, experiment, split test, or validate a change with data before rolling it out.
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: ab-test-design
description: Design an A/B test that can answer its question — hypothesis, one primary metric, guardrails, randomization unit, minimum detectable effect, sample size and duration with a bundled calculator — decide whether a test is worth running at all, and implement the variant behind the project's feature-flag tool (GrowthBook, LaunchDarkly, Statsig, PostHog, Optimizely, Unleash or in-house flags). Use when asked to A/B test, experiment, split test, or validate a change with data before rolling it out.
---
# A/B Test Design
An A/B test is a measuring instrument. Designed badly, it gives a confident answer to the wrong question, or no answer after six weeks of traffic. This skill writes the experiment spec before any code, checks that the test is feasible, and implements it so the data can be trusted.
## Phase 1: Write the hypothesis
> Because <evidence>, we believe that <change> for <eligible users> will <increase or decrease> <primary metric> by at least <MDE>.
Evidence comes from `brief.md`, `flow-audit.md` or `adoption-plan.md` in the feature folder (`docs/product/<feature-slug>/`), from research, or from data. Test one idea per experiment: if the variant changes copy, layout and pricing at once, a win can't tell you which change worked. Bundling is fine when you only need the decision and not the learning — say so explicitly.
## Phase 2: Decide whether to test at all
An experiment fits when the change is reversible, the outcome is genuinely uncertain, and there's enough traffic. Don't run one when:
- **It's a fix.** Ship bug fixes, accessibility fixes and repaired flows directly.
- **Traffic is too low.** If Phase 4 asks for more than about 6–8 weeks, the test won't conclude. Alternatives: test a bigger change (larger MDE), choose a more sensitive metric closer to the change, widen the eligible population, or ship behind a flag and compare before and after with qualitative feedback — while saying clearly that this is weaker evidence.
- **The decision is already made.** A test nobody will act on is waste.
## Phase 3: Choose metrics and the unit
- **Primary metric** — exactly one, chosen now. It must move if the hypothesis is true, be measurable per randomization unit, and matter to the business: the value moment beats clicks on the button you changed.
- **Guardrails** — 2 to 4 metrics that must not get worse: error rate, latency, support contacts, revenue, unsubscribes, a later step of the funnel.
- **Secondary metrics** — for learning only, never to declare a winner.
- **Randomization unit** — the user for signed-in products (stable across devices); the **account or organization** when users collaborate, otherwise teammates see different versions and contaminate each other; an anonymous ID for signed-out flows (accept some cross-device noise).
- **Eligibility and exposure** — only users who can reach the change are enrolled, and they're counted from the moment they actually see it. Users who never reach the changed screen dilute the effect.
## Phase 4: Size it
Run the bundled calculator, in the `scripts/` folder next to this file:
```bash
# Conversion metric: 12% baseline, detect a +10% relative lift, 3,000 eligible users a day
python3 scripts/sample_size.py --baseline 0.12 --mde 0.10 --daily-users 3000
# Continuous metric: standard deviation 40, detect +3 units
...From Trystan-SA's repository, MIT licence.
Related skills
-
Checked
Product manager copilot
Turns evidence into product decisions, PRDs, prioritised backlogs and launch plans, all kept in one workspace.
7/101 credit -
Checked
AI Agent Eval Rubric
Writes pass or fail checks that define good behaviour for your AI agent, plus release targets for the PRD.
7/101 credit -
Checked
Feature prioritisation frameworks
Scores features with RICE, ICE, MoSCoW and more, showing where rankings agree so you can pick what to build.
7/101 credit -
Checked
Interview me first
Asks you one question at a time until it knows what you really want, so you build the right thing first.
7/101 credit -
Checked
Feature adoption plan
Plans how people find, try and keep using a new feature, and shows exactly where adoption drops off.
7/101 credit -
Checked
Feature framing brief
Frames a feature before it is built with a job story, success metric, click budget and kill criteria.
7/101 credit