ab-testing
Installation
SKILL.md
A/B Testing Skill
Purpose
Enables experimentation on lead generation sites to optimize conversion rates through simple, privacy-friendly client-side testing with statistical rigor.
Core Rules
- One test at a time — Per page, avoid interaction effects
- Statistical significance — Don't call winners too early (p < 0.05)
- Track conversions — Not just clicks or exposures
- Minimize flicker — Apply variants before paint using visibility hidden
- Respect privacy — No PII in experiments, localStorage only
- Minimum duration — Never less than 1 week (day-of-week effects)
- Sample size first — Calculate required n before starting
- Persist assignments — User sees same variant across sessions
- Track exposures — Log every variant view to GA4
- Conversion-focused — Optimize for business metrics, not vanity metrics