Designs, runs, and reads A/B tests and growth experiments — hypothesis, sample size, duration, and honest interpretation. Use this to plan a test, judge whether a result is real, build an experimentation program, decide what to test next, or diagnose why tests keep producing inconclusive or non-replicating results.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Experimentation?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/cbrock84-experimentation)
---
name: experimentation
description: Designs, runs, and reads A/B tests and growth experiments — hypothesis, sample size, duration, and honest interpretation. Use this to plan a test, judge whether a result is real, build an experimentation program, decide what to test next, or diagnose why tests keep producing inconclusive or non-replicating results.
---
# Experimentation
Most A/B testing programs produce confident conclusions from insufficient data. The discipline is
almost entirely in what you do before launch.
## Before running
- **Hypothesis with a mechanism.** "Moving the pricing table above the fold will raise trial starts,
because visitors currently leave before seeing pricing." Not "let's try a green button."
- **One primary metric**, chosen in advance. Secondary metrics are context, never the verdict.
- **Sample size calculated in advance**, from your baseline rate and the smallest lift that would
change a decision. If the required sample is unreachable, do not run the test — decide by judgment
and say so.
- **Duration set in advance**, covering at least one full weekly cycle, and two if the buying cycle
is long.
- **Guardrail metrics** that would make you reject a win: refunds, support volume, downstream
retention.
## While running
Do not look at results and act on them mid-flight. Peeking and stopping at significance is the
single most common way to generate false positives, and it is very effective at it.
Check only that the test is running correctly — even split, no broken variant, tracking firing.
## Reading
- **At the pre-set duration**, not before, and not extended because it is nearly significant.
Extending until significance manufactures it.
- **Significance is not size.** A statistically significant 0.3% lift may not be worth shipping.
- **Inconclusive is a real result** and the most common one. It means the change did not matter
enough to detect, which is useful.
- **Check the guardrails** before declaring a win.
- **Segment afterward for hypotheses only**, never for verdicts. Slice enough ways and something is
always significant.
## Program level
Test where the traffic and the leverage are. Most sites can only run a handful of adequately powered
tests a year — spend them on structural questions, not button colors.
Keep a log of every test: hypothesis, result, decision. Without it, teams re-run the same tests every
eighteen months and re-learn the same things.
## Calculator
`scripts/sample_size.py` gives the visitors needed per variant for a conversion test and the weeks
it must run, rounded up to whole weeks. Where you can run code, run it with the person's numbers and
quote its output, instead of doing the arithmetic in prose:
```
python3 scripts/sample_size.py --baseline 0.10 --relative-lift 0.10 --daily-visitors 4000
```
Where you cannot run code, open the script, follow the same steps, and say the figures were worked
by hand. Run it with `--help` for every input.
Run it before the test starts and write the result into the plan. The lift you enter is the smallest
one worth acting on, not the one you hope for; a smaller true effect needs a larger sample than the
script reported.
## Sources
`references/sources.md` in this skill lists the outside authorities that settle the questions
here — what each one is authoritative for, and what you may do with it. Check them before
answering on anything they cover, and cite what you used. Most are free to read and not free
to reproduce; the use note on each is binding.
## Tooling
Client-side and web testing: Optimizely, VWO, AB Tasty, and similar. Warehouse- or
product-native: GrowthBook, Statsig, Eppo, PostHog, and similar — these compute against your own
event data, which is what you want once the metric definitions matter.
Feature flags are the server-side path to the same thing: LaunchDarkly, Unleash, Split, and similar.
Running an experiment behind a flag you already use for release control is cheaper than adding a
second system, and `technology:release-and-deployment` covers the release side of it.
No tool fixes an underpowered test. The platform reports a result either way, which is exactly the
risk.
## Never
- Stop a test because it reached significance early. Peeking until it looks conclusive manufactures the result.
- Run a test that cannot reach adequate sample size in a reasonable window. Ship the change on judgment instead and say so.
- Change more than one variable and attribute the outcome to the one you liked.
- Count a flat result as a failure. A well-run test that rules out a plausible idea has bought information.
<!-- BEGIN GENERATED: company-context -->
## Company context
Before answering, look for the company profile: the file `.headcount/company.md` in the working folder, or a document titled "Headcount company profile" in the conversation, the project's instructions or files, or saved memory. Where there is one, answer for that company and do not ask for anything it already states. Where it conflicts with what the person says now, the person is right, and say that the profile looks out of date. Where there is none, carry on: ask only for the facts this question turns on, and mention once that `executive:company-onboarding` records them so they are not asked again.
<!-- END GENERATED: company-context -->
<!-- BEGIN GENERATED: handoff -->
## Other departments
A skill written as `department:skill` belongs to another department, and each department installs separately. If the one a question belongs to is not installed, name the department that owns it and how to add it, and do not improvise its work. `references/departments.md` in this skill lists each department this skill names, with the install step for Claude Code and for ChatGPT.
<!-- END GENERATED: handoff -->