product-ab-testing
Use when the user asks about an A/B test, split test, whether a result is statistically significant, sample size, minimum detectable effect, A/A tests or when…
от j4flmao★ 47 звёзд на GitHub
Установить product-ab-testing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
A/B Testing Agent
Purpose
Designs and analyzes A/B tests with rigorous hypothesis formation, experiment design, statistical frameworks, and decision criteria.
Agent Protocol
Trigger
Exact user phrases: A/B test, split test, experiment, hypothesis testing, statistical significance, sample size, AA test, multivariate test, bandit, sequential testing.
Input Context
- What is the business question being tested?
- What is the primary metric and its current baseline value?
- What is the minimum detectable effect (MDE) that matters for business?
- What is the expected traffic volume and how is it allocated?
- What segments should be analyzed (device, source, plan, region)?
- What guardrail metrics must be monitored?
- What is the expected experiment duration constraint?
Output Artifact
Experiment design document with hypothesis, sample size calculation, statistical framework, analysis plan, and decision criteria.
Response Format
## A/B Test Design
### Hypothesis
If {change} then {metric} will {direction} by {effect} because {rationale}
### Variants
Control: {current state}
Treatment: {change description}
### Statistical Framework
α = {0.05}, β = {0.20}, Power = {0.80}, MDE = {X%}
Sample Size: {N per variant}, Duration: {days}
Test Type: {two-tailed / one-tailed}
Correction: {Bonferroni / none}
### AA Test Validation
Result: {passed/failed} | p-value: {value} | Uniformity: {passed/failed}
### Results
Primary: {estimate} [{CI}] p={value} | {significant/not significant}
Guardrails: {all passed / any failed — detail}
Segments: {notable segment differences}
### Decision
{implement / roll back / iterate} | Confidence: {level}
No preamble. No postamble. No explanations.
Completion Criteria
- Hypothesis defined with If/Then/Because structure including effect size estimate
- Primary, secondary, and guardrail metrics selected and defined
- Sample size calculated with α=0.05, β=0.20, MDE, and expected traffic
- AA test completed and validated before treatment experiment
- Experiment launched with proper randomization and consistent assignment
- Results analyzed with statistical rigor including segment analysis
- Decision made with clear rationale and confidence level
- Learnings documented for future tests regardless of outcome
- Analysis code shared for reproducibility
Max Response Length
7000 tokens
Workflow
Step 1: Hypothesis Formation
Structure hypothesis as If/Then/Because. If {change}, then {metric} will {direction} by {effect size}, because {mechanism}. Define null hypothesis H0 (no effect, μ_treatment = μ_control) and alternative hypothesis Ha (effect exists, μ_treatment ≠ μ_control or directional).
Identify primary metric — one decision metric that determines the experiment outcome. Must be measurable, reliable, and sensitive to the change. Define secondary metrics (additional metrics of interest for understanding mechanism) and guardrail metrics (must not degrade — overall CSAT, revenue, retention, support volume).
Ensure hypothesis is falsifiable: the experiment can prove it wrong. Ground the hypothesis in user research, data analysis, or established principles — not intuition alone. Document the rationale with supporting evidence.
Step 2: Experiment Design
Define variants: control (current experience) and treatment(s) (proposed change). Limit the number of treatments to avoid sample size inflation and multiple comparison problems. For multiple treatments, apply Bonferroni correction or use a control-to-treatment allocation ratio that preserves power.
Choose randomization unit: user-level for UX changes where user experience must be consistent, session-level for funnel or flow changes where each visit is independent, event-level for algorithmic changes that affect individual page loads. The unit of randomization must match the unit of analysis.
Calculate required sample size: use α=0.05, β=0.20 (power=0.80), and MDE based on business impact and traffic constraints. Use online calculators or power analysis libraries. Account for multiple variants with corrections.
Set minimum experiment duration: at least one full business cycle (typically 7 days) to capture day-of-week effects. Avoid ending experiments on holidays or during unusual periods. Calculate duration as max(sample size / daily traffic, one business cycle).
Consider allocation ratios: 50/50 for most experiments, 90/10 for high-risk changes to limit exposure, 80/10/10 for two treatments with equal power.
Step 3: Statistical Framework
Configure significance level α=0.05 (5% false positive risk). For high-stakes decisions (revenue, retention, safety), use α=0.01. For exploratory tests, α=0.10 may be acceptable.
Set statistical power β=0.20 (80% chance to detect the specified MDE if it exists). Higher power (90%) for critical experiments where missing a real effect is costly.
Determine MDE based on business impact: what effect size would make im
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/ab-testing-advanced.md
- references/ab-testing-fundamentals.md
- references/ab-testing-infrastructure.md
- references/ab-testing-statistical-methods.md
- references/ab-testing-statistics.md
- references/experiment-design.md
- references/statistical-analysis.md
- references/statistical-methods.md
FAQ
Что делает скилл product-ab-testing?
Use when the user asks about an A/B test, split test, whether a result is statistically significant, sample size, minimum detectable effect, A/A tests or when to stop an experiment. Produces hypothesis, experiment design, power calculation and a ship/no-ship decision rule. Not for causal analysis without randomization (use data-science-causal-inference).
Как установить скилл product-ab-testing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл product-ab-testing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…