Experiment designer
Skill mouadja02/skills/skills/product-management/experiment-designer
A/B and multivariate experiments — hypothesis, sample size, ICE priority, stats significanceFrom its SKILL.md
npx -y skills add mouadja02/skills --skill experiment-designerAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 8 stars8 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
11.4 KB, ~2.6k tokens by cl100k_base, as published. Nobody here has run it
Experiment Designer
Design, prioritize, and evaluate controlled experiments — both product experiments (features, flows, ML changes) and marketing experiments (landing pages, copy, pricing, CTAs) — with clear hypotheses and defensible decisions.
This skill is the canonical home for A/B-test methodology in this collection. Marketing-specific framing (proactive CRO triggers, ad-copy patterns) is handled below; deeper CRO surface-level work lives in page-cro, signup-flow-cro, and onboarding-cro.
When to use
- A/B and multivariate experiment planning
- Hypothesis writing and success criteria
- Sample size and minimum-detectable-effect (MDE) calculation
- Experiment prioritization (ICE, RICE-style scoring)
- Statistical interpretation of test results for business decisions
- Optimizing signup, onboarding, pricing, landing page, ad copy, or feature changes
Core principles
- Start with a hypothesis — not "let's see what happens". Specific prediction, based on data or reasoning.
- Test one thing — single variable per test; otherwise you cannot isolate cause.
- Statistical rigor — pre-determine sample size, do not peek and stop early, commit to the methodology.
- Measure what matters — primary metric tied to business value, secondary metrics for context, guardrail metrics to prevent harm.
Hypothesis framework
If/Then/Because format (product context)
- If we change
[intervention] - Then
[metric]will change by[expected direction/magnitude] - Because
[behavioral mechanism]
Marketing/CRO format
Because [observation/data],
we believe [change]
will cause [expected outcome]
for [audience].
We'll know this is true when [metrics].
Weak: "Changing the button color might increase clicks."
Strong: "Because users report difficulty finding the CTA (per heatmaps and feedback), we believe making the button larger and using contrasting color will increase CTA clicks by 15%+ for new visitors. We'll measure click-through rate from page view to signup start."
Hypothesis quality checklist
- Contains explicit intervention and audience
- Specifies measurable metric change
- States plausible causal reason
- Includes expected minimum effect (MDE)
- Defines failure condition
Test types
| Type | Description | Traffic needed |
|---|---|---|
| A/B | Two versions, single change | Moderate |
| A/B/n | Multiple variants, single change | Higher |
| MVT (multivariate) | Multiple changes in combinations | Very high |
| Split URL | Different URLs for variants | Moderate |
Metric selection
Primary metric
- Single decision metric, directly tied to hypothesis.
- This is what you call the test on.
Secondary metrics
- Diagnostic — explain why/how the change worked.
- Never the basis for go/no-go on their own.
Guardrail metrics
- Things that shouldn't get worse — quality, safety, downstream funnel steps, support tickets, refund rate.
- Stop the test if these go significantly negative.
Example: pricing-page test
- Primary: plan-selection rate
- Secondary: time on page, plan distribution
- Guardrail: support tickets, refund rate
Sample size
Quick reference table
| Baseline | 10% lift | 20% lift | 50% lift |
|---|---|---|---|
| 1% | 150k/variant | 39k/variant | 6k/variant |
| 3% | 47k/variant | 12k/variant | 2k/variant |
| 5% | 27k/variant | 7k/variant | 1.2k/variant |
| 10% | 12k/variant | 3k/variant | 550/variant |
Tooling
# Demo mode
python3 scripts/sample_size_calculator.py
# Compute sample size for a 5% baseline targeting 20% relative lift
python3 scripts/sample_size_calculator.py --baseline 0.05 --mde 0.20
# Add daily traffic to estimate test duration
python3 scripts/sample_size_calculator.py --baseline 0.05 --mde 0.20 --daily-traffic 500
# JSON output for automation
python3 scripts/sample_size_calculator.py --baseline 0.05 --mde 0.20 --json
The calculator is 100% stdlib (no scipy / numpy required). For a deeper sample-size guide with edge cases see references/sample-size-guide.md.
External calculators worth knowing:
Prioritization (ICE)
When you have more candidate experiments than capacity:
ICE Score = (Impact × Confidence × Ease) / 10
- Impact: potential upside if it wins (1–10).
- Confidence: evidence quality the hypothesis is right (1–10).
- Ease: cost / speed / complexity to ship the variant (1–10).
Run highest-ICE first.
Traffic allocation
| Approach | Split | When to use |
|---|---|---|
| Standard | 50/50 | Default for A/B |
| Conservative | 90/10, 80/20 | Limit risk of a bad variant |
| Ramping | Start small, increase | Technical-risk mitigation |
- Keep variant assignment consistent across visits for the same user.
- Ensure exposure is balanced across time of day / week.
Designing variants (marketing context)
What to vary
| Category | Examples |
|---|---|
| Headlines / copy | Message angle, value prop, specificity, tone |
| Visual design | Layout, color, images, hierarchy |
| CTA | Button copy, size, placement, number |
| Content | Information included, order, amount, social proof |
Best practices
- Single, meaningful change per test arm.
- Bold enough to detect — too-small differences are statistically invisible.
- True to the hypothesis — the variant is the hypothesis, not random tweaks.
Implementation
Client-side
- JavaScript modifies the page after load.
- Quick to implement; can cause flicker.
- Tools: PostHog, Optimizely, VWO.
Server-side
- Variant determined before render.
- No flicker, requires dev work.
- Tools: PostHog, LaunchDarkly, Split.
Running the test
Pre-launch checklist
- Hypothesis documented
- Primary, secondary, guardrail metrics defined
- Sample size calculated; duration committed
- Variants implemented correctly
- Tracking verified end-to-end
- QA completed on all variants
During the test
DO: monitor for technical issues, check segment quality, document external factors.
DON'T: peek at results and stop early, change variants mid-test, add traffic from new sources.
The peeking problem
Looking at results before reaching sample size and stopping early inflates false positives. Pre-commit to the sample size and trust the process. If you must look, use sequential analysis with a formal correction (e.g., always-valid p-values).
Analyzing results
Statistical significance
- 95% confidence ⇔ p-value < 0.05.
- Means there's a < 5% chance the result is noise — not a guarantee of truth.
- Statistical significance is not business significance.
Analysis checklist
- Reached sample size? If not, the result is preliminary.
- Statistically significant? Check confidence intervals, not just p-values.
- Effect size meaningful? Compare point estimate to MDE and to business impact.
- Secondary metrics consistent? Do they support the primary?
- Guardrail concerns? Anything got materially worse?
- Segment differences? Mobile vs. desktop, new vs. returning, geo, plan.
Interpreting results
| Result | Conclusion |
|---|---|
| Significant winner | Implement variant |
| Significant loser | Keep control, learn why |
| No significant difference | Need more traffic or a bolder test |
| Mixed signals | Dig deeper, segment, possibly re-run |
Statistical interpretation guardrails
- p-value < α → evidence against the null, not guaranteed truth.
- Confidence interval crossing zero → uncertain directional claim.
- Wide intervals → low precision even when significant.
- Use practical significance thresholds tied to business impact.
Common pitfalls
Test design
- Underpowered tests → false negatives; the variant might have worked but you can't tell.
- Testing too many things at once → can't isolate cause.
- No clear hypothesis → no learning even if the variant wins.
Execution
- Stopping early on random spikes.
- Changing things mid-test (tracking, copy, eligibility).
- Sample-ratio mismatch and instrumentation drift.
- Running too many simultaneous tests on overlapping audiences without isolation.
Analysis
- Declaring success from p-value without effect-size context.
- Cherry-picking segments after the fact.
- Over-interpreting inconclusive results.
- Ignoring novelty effects on early data.
Documentation
Document every test:
- Hypothesis
- Variants (with screenshots)
- Results (sample, metrics, significance, CI)
- Decision and learnings — even if the variant lost.
Templates: references/test-templates.md.
Output artifacts
| Artifact | Format | Description |
|---|---|---|
| Experiment brief | Markdown | Hypothesis, variants, metrics, sample size, duration, owner |
| Sample-size input | Table | Baseline rate, MDE, confidence, power |
| Pre-launch QA checklist | Checklist | Implementation, tracking, variant rendering verification |
| Results report | Markdown | Statistical significance, effect size, segment breakdown, decision |
| Test backlog | Prioritized list | Ranked experiments by ICE / expected impact |
Proactive triggers (marketing context)
Proactively offer A/B test design when:
- Conversion rate mentioned — user shares a conversion rate and asks how to improve it; suggest designing a test rather than guessing.
- Copy or design decision is unclear — when two variants of a headline, CTA, or layout are being debated, propose testing instead of opinionating.
- Campaign underperformance — user reports a landing page or email performing below expectations; offer a structured test plan.
- Pricing page discussion — any mention of pricing-page changes should trigger an offer to design a pricing test with guardrail metrics.
- Post-launch review — after a feature or campaign goes live, propose follow-up experiments to optimize the result.
References
references/experiment-playbook.md— end-to-end experiment workflow.references/statistics-reference.md— significance, power, MDE, p-value pitfalls.references/sample-size-guide.md— extended sample-size tables and duration calculations.references/test-templates.md— Markdown templates for briefs, QA, and results reports.
Related skills
page-cro— what to test on a marketing page (use first to generate hypotheses).signup-flow-cro— signup-specific test patterns.onboarding-cro— activation/onboarding experiments.product-discovery— qualitative validation before you have a hypothesis worth testing.marketing-context— load this for ICP/positioning framing before designing marketing tests.
What ships with it: 6 files
29.0 KB alongside SKILL.md, 1 of them executable
references/
- experiment-playbook.md1.9 KB
- sample-size-guide.md6.9 KB
- statistics-reference.md1.5 KB
- test-templates.md6.1 KB
scripts/
- sample_size_calculator.pyruns12.3 KB
- _meta.json298 B