In Claude (connector)install_skill("ab-test-analyzer")
CLIlendskill install ab-test-analyzer
SKILL.md
---
name: ab-test-analyzer
description: Plan and analyze A/B tests — sample size and duration before, then sanity checks, effect size, confidence intervals and p-values after, with a plain-language decision. Use for experiment design, conversion tests, 'is this result significant' or 'how long should my test run'.
license: Proprietary — Lendskill original
---
# A/B Test Analyzer
## Before the test
Primary metric (one), baseline rate, minimum detectable effect worth acting on, significance (α = 0.05) and power (80%). Compute required sample size per variant and the run time from daily traffic — round up to full weeks to cover weekday effects. Decide the stopping rule now; no peeking-and-stopping.
## After the test
1. **Sanity checks**: sample ratio mismatch (chi-square on assignment counts), tracking bugs, novelty spikes.
2. **Effect**: absolute and relative difference with a 95% confidence interval. Proportions: two-proportion z-test; means: Welch's t-test; skewed revenue: bootstrap.
3. **Guardrails**: check metrics that must not get worse.
4. Compute with code (scipy/statsmodels) and show the numbers.
## Verdict
Ship / don't ship / inconclusive — with the interval in words ("between +0.4 and +2.1 points"). If underpowered, say how much more traffic is needed. Don't slice into many segments to find a winner; flag post-hoc segments as hypotheses.
## Output format
- Plan: metric, baseline, minimum effect, sample size per variant, run time and stopping rule
- Results table: variant · users · conversions · rate · difference · 95% CI · p-value
- Sanity-check results (sample ratio, tracking)
- Verdict in one sentence, plus the code used