a-b-test-design — Claude Code skill: design A/B experiments
Walks you through planning an A/B test: hypothesis, variants, primary metric and sample size. Useful when a change can be measured quantitatively.
npx skills add Owl-Listener/designer-skills --skill a-b-test-design -a claude-codeWhat a-b-test-design does
The skill guides the agent through experiment structure. It starts with a hypothesis in the form "if we [change], then [outcome] will [improve/decrease] because [rationale]". Then a control group A with the current design and a treatment B with the proposed change. It advises testing one variable at a time.
The primary metric is a single measure, the one most sensitive to the change. Secondary and guardrail metrics catch unintended consequences. Sample size follows from the minimum detectable effect, baseline conversion rate, significance level and power. The test runs until that sample is reached, in full weeks, so weekly cycles are accounted for.
A separate section lists common pitfalls: peeking at results before completion, running too many variants at once, picking a metric that cannot detect the change. There is also a section on when not to A/B test — low traffic, ethical concerns about withholding an improvement, foundational changes that affect everything. For qualitative behaviour observation the skill points to test-scenario.
What it helps with
- write a testable hypothesis for an experiment
- pick one primary metric and keep it from blurring
- calculate sample size before launching
- avoid peeking at results early
- decide when an A/B test is the wrong tool
Example prompts for the agent
- help me design an A/B test for a new landing page button
- calculate the sample size for a test with a 3% baseline conversion rate
- which guardrail metrics should I add to this experiment
How to install a-b-test-design
1Skills CLI (Vercel)
npx skills add Owl-Listener/designer-skills --skill a-b-test-design -a claude-code2Manually: put the files in place
~/.claude/skills/a-b-test-design/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/a-b-test-design/
1Skills CLI (Vercel)
npx skills add Owl-Listener/designer-skills --skill a-b-test-design -a codex2Manually: put the files in place
.agents/skills/a-b-test-design/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add Owl-Listener/designer-skills --skill a-b-test-design -a cursor2Manually: put the files in place
.cursor/skills/a-b-test-design/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install Owl-Listener/designer-skills a-b-test-design2Manually: put the files in place
.github/skills/a-b-test-design/SKILL.md1Skills CLI (Vercel)
npx skills add Owl-Listener/designer-skills --skill a-b-test-design -a gemini-cli2Platform CLI
gemini skills install https://github.com/Owl-Listener/designer-skills --path prototyping-testing/skills/a-b-test-designManually: put the files in place
.devin/skills/a-b-test-design/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add Owl-Listener/designer-skills --skill a-b-test-design -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about a-b-test-design
How do I install a-b-test-design in Claude?
Run npx skills add Owl-Listener/designer-skills --skill a-b-test-design -a claude-code. The skill lands in ~/.claude/skills/a-b-test-design/SKILL.md.
What does a-b-test-design do?
It walks the agent through A/B experiment design: hypothesis, control and treatment variants, primary metric, secondary metrics and sample size calculation.
How is a-b-test-design different from test-scenario?
This skill is for quantitative measurement at scale. For qualitative behaviour observation it points to test-scenario.
Source text
SKILL.md · MIT
--- name: a-b-test-design description: Design an A/B experiment — hypothesis, variants, primary metric, and sample size. Use when a change can be measured quantitatively at scale. For observing behaviour qualitatively, use `test-scenario`. --- # A/B Test Design You are an expert in designing rigorous A/B experiments that produce actionable results. ## What You Do You design A/B tests with clear hypotheses, controlled variants, appropriate metrics, and statistical rigor. ## Test Structure ### 1. Hypothesis Structured as: 'If we [change], then [outcome] will [improve/decrease] because [rationale].' ### 2. Variants - Control (A): current design - Treatment (B): proposed change - Keep changes isolated — test one variable at a time ### 3. Primary Metric The single most important measure of success. Must be measurable, relevant, and sensitive to the change. ### 4. Secondary Metrics Supporting measures and guardrail metrics to detect unintended consequences. ### 5. Sample Size Based on: minimum detectable effect, baseline conversion rate, statistical significance level (typically 95%), and power (typically 80%). ### 6. Duration Run until sample size is reached. Account for weekly cycles (run in full weeks). Minimum 1-2 weeks typically. ## Common Pitfalls - Peeking at results before completion - Too many variants at once - Metric not sensitive enough to detect change - Sample size too small - Not accounting for novelty effects - Ignoring segmentation effects ## When Not to A/B Test - Very low traffic (insufficient sample) - Ethical concerns with withholding improvement - Foundational changes that affect everything - When qualitative insight is more valuable ## Best Practices - One hypothesis per test - Document everything before starting - Don't stop early on positive results - Analyze segments after overall results - Share learnings broadly regardless of outcome
© Owl-Listener · MIT · Owl-Listener/designer-skills