About experiment-designer
experiment-designer is a skill for product teams designing experiments and interpreting A/B test results. It covers sample sizing, run-time estimates, predefined success criteria, and statistical as well as practical significance.
Key features
- 01Hypothesis restatement
- 02Control and variant definition
- 03Sample-size and runtime estimates
- 04Predefined success criteria
- 05Statistical and practical significance checks
- 06Design risk and early-stop checks
Use cases
- 01Plan an A/B test from a product hypothesis
- 02Estimate sample size from baseline and MDE
- 03Review test results before a ship decision
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ mohitagw15856/ pm-claude-skills --skill experiment-designerAfter installing, type/experiment-designerin Claude Code to confirm it loaded.
Details
From the project READMEExperiment Designer Skill
Produce rigorous experiment designs from product hypotheses, and interpret results with statistical and practical significance — so you can defend every decision to a sceptical engineering lead or data scientist.
Required Inputs
Work from what is given. If any of these is missing, still produce the complete output: fill each gap with a reasonable assumption marked (assumed, confirm) and list those assumptions at the end. Ask a question first only when the core subject itself is missing (there is nothing to write about). For experiment design:
- Hypothesis (what change, what metric, what expected movement)
- Current baseline metric value
- Minimum detectable effect (MDE) — the smallest lift worth caring about
- Available daily sample size
For results interpretation:
- Control and variant results (raw numbers or percentages)
- P-value or confidence interval
- Run duration (days)
- Any anomalies observed during the test
Two-Phase Process
Phase 1: Experiment Design
- Restate hypothesis as: "If we [change], we expect [metric] to [move by X%] because [reason]"
- Define control and variant clearly
- Select primary metric (one only) and secondary guardrail metrics (2-3 max)
- Calculate required sample size from MDE and baseline
- Estimate run time in days
- Set pre-defined success criteria before the test runs — no moving goalposts
- Flag design risks: novelty effects, seasonal confounds, multiple testing issues, network effects, sample ratio mismatch
Phase 2: Results Interpretation
- Assess statistical significance (p < 0.05 threshold)
- Assess practical significance: was the lift meaningful for the business, not just real?
- Interpret confidence intervals
- Investigate confounding factors
- Recommend: Ship / Iterate / Kill / Run follow-up test
- Validate — Confirm the test ran for the full planned duration. Flag if it was stopped early (peeking problem). Confirm sample ratio mismatch did not occur.
Output Structure
[Design or Results header based on phase]
Hypothesis: "If we [change], we expect [metric] to [move by X%] because [reason]"
Primary metric: [One metric only] Guardrail metrics: [2-3 max] Required sample size: [n per variant] Estimated run time: [days] Pre-defined success threshold: [specific number] Design risk flags: [any concerns]
Results (Phase 2 only): Statistical significance: [p-value and conclusion] Practical significance: [lift size vs. business threshold] Recommendation: Ship / Iterate / Kill / Follow-up — [rationale]
Quality Checks
- Hypothesis specifies the change, the metric, the direction, and the reason
- Primary metric is singular — guardrail metrics are secondary
- Success criteria are defined before the test launches (not after seeing results)
- Test was not stopped early (or flagged clearly if it was)
- Practical significance assessed separately from statistical significance
- Sample ratio mismatch is checked in results interpretation
Anti-Patterns
- Do not define success criteria after seeing preliminary results — post-hoc success definitions are HARKing (Hypothesising After Results are Known) and invalidate the experiment
- Do not stop a test early because the result looks significant — early stopping dramatically inflates false positive rates; the test must run to the planned sample size
- Do not treat statistical significance as the same as practical significance — a p < 0.05 result with a 0.1% lift is real but may not be worth shipping
- Do not run the same experiment on the same population multiple times without correction — multiple testing inflates the chance of a false positive proportionally
- Do not use more than one primary metric — multiple primary metrics require multiple hypothesis corrections and make the ship/kill decision ambiguous
Example Trigger Phrases
- "Design an experiment."
- "Run an A/B test."
- "Calculate sample size."
- "Interpret test results."
- "Assess whether an experiment was successful."