Skip to main content
skill CX Codex

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.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add Owl-Listener/designer-skills --skill a-b-test-design -a claude-code
Open on GitHub

What 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-code

2Manually: put the files in place

~/.claude/skills/a-b-test-design/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/a-b-test-design/

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

Similar skills

Everything for Testing and QA →

From the same set109

test-scenario Writes usability test scenarios with realistic context, success criteria and facilitation notes. Useful once the study is planned and the tasks are still missing. CX Codex +1 2,000installs stakeholder-alignment Builds alignment artifacts: a stakeholder map, RACI matrix, decision rights and a communication plan. Useful when unclear ownership stalls decisions. CX Codex +1 2,000installs metrics-definition Defines UX metrics and KPIs that connect design decisions to measurable outcomes. Useful when deciding what to measure before tracking changes. CX Codex +1 2,100installs diary-study-plan Walks you through designing a diary study: prompts, cadence, duration, participant criteria and an analysis frame. CX Codex +1 2,100installs form-design Designs forms end to end, covering field order, grouping, validation, and accessibility. Useful when building anything from single inputs to multi-step flows. CX Codex +1 1,900installs aesthetic-usability Applies the Aesthetic-Usability Effect when visual polish affects perceived ease of use and trust. Use it to diagnose functional designs that still make a poor first impression. CX Codex +1 1,900installs information-architecture A skill that designs content structure: sitemap, navigation model, taxonomy and content types. Useful when you need to organise what already exists. CX Codex +1 1,900installs critique-composition Critiques balance, negative space, visual rhythm, and gestalt grouping on rendered screens. Useful when layout hierarchy is solid but the spatial composition still feels off. CX Codex +1 1,900installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor