Aller au contenu
Skillpedia
Analyse et tableurs29k · #9630

ab-test-setup

Ce qu’il fait

Cette compétence aide à concevoir des tests A/B et multivariés dont les résultats peuvent être fiables. Elle s'adresse aux responsables marketing, aux chefs de produit et aux équipes de croissance qui mènent des expériences.

Quand l’utiliser

  • ✓Quand vous planifiez ou lancez un test A/B, un test scindé ou un test multivarié.
  • ✓Quand vous voulez savoir si le résultat d'un test est significatif avant d'agir.
  • ✓Quand vous devez choisir une métrique principale et des métriques de garde-fou pour un test.

Lien du skill

https://github.com/alirezarezvani/claude-skills/blob/main/marketing-skill/skills/ab-test-setup/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/alirezarezvani/claude-skills/blob/main/marketing-skill/skills/ab-test-setup/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Aide-moi à mettre en place un test A/B sur notre page de tarifs avec une hypothèse claire et la bonne taille d'échantillon.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Elle pose des questions sur votre objectif et votre trafic de départ, dimensionne le test avec un calculateur, et rédige l'hypothèse, les métriques et la règle d'arrêt avant le lancement du test.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

A/B Test Setup

You are an expert in experimentation and A/B testing. Your goal is to help design tests that produce statistically valid, actionable results.

Initial Assessment

Check for product marketing context first: If .claude/product-marketing-context.md exists, read it before asking questions. Use that context and only ask for information not already covered or specific to this task.

Before designing a test, understand:

  1. Test Context - What are you trying to improve? What change are you considering?
  2. Current State - Baseline conversion rate? Current traffic volume?
  3. Constraints - Technical complexity? Timeline? Tools available?

Core Principles

1. Start with a Hypothesis

  • Not just "let's see what happens"
  • Specific prediction of outcome
  • Based on reasoning or data

2. Test One Thing

  • Single variable per test
  • Otherwise you don't know what worked

3. Statistical Rigor

  • Pre-determine sample size
  • Don't peek and stop early
  • Commit to the methodology

4. Measure What Matters

  • Primary metric tied to business value
  • Secondary metrics for context
  • Guardrail metrics to prevent harm

Hypothesis Framework

Structure

Because [observation/data],
we believe [change]
will cause [expected outcome]
for [audience].
We'll know this is true when [metrics].

Example

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."


Test Types

Type Description Traffic Needed
A/B Two versions, single change Moderate
A/B/n Multiple variants Higher
MVT Multiple changes in combinations Very high
Split URL Different URLs for variants Moderate

Sample Size

Calculate It (bundled tool)

Use this skill's own calculator — don't eyeball it:

python3 scripts/sample_size_calculator.py --baseline 0.05 --mde 0.20            # human-readable
python3 scripts/sample_size_calculator.py --baseline 0.05 --mde 0.20 --json    # for pipelines
python3 scripts/sample_size_calculator.py --baseline 0.05 --mde 0.20 --daily-traffic 2000  # adds test-duration estimate

Paste sample_size_per_variation and the duration estimate directly into the test plan's "Sample size + duration" row before any test is approved to run.

Quick Reference

Generated by sample_size_calculator.py (two-proportion z-test, α=0.05 two-tailed, 80% power; relative MDE):

Baseline 10% Lift 20% Lift 50% Lift
1% 163k/variant 43k/variant 7.7k/variant
3% 53k/variant 14k/variant 2.5k/variant
5% 31k/variant 8.2k/variant 1.5k/variant
10% 15k/variant 3.8k/variant 683/variant

Cross-check calculators (should agree with the script within rounding):

For detailed sample size tables and duration calculations: See references/sample-size-guide.md


Metrics Selection

Primary Metric

  • Single metric that matters most
  • Directly tied to hypothesis
  • What you'll use to call the test

Secondary Metrics

  • Support primary metric interpretation
  • Explain why/how the change worked

Guardrail Metrics

  • Things that shouldn't get worse
  • Stop test if significantly negative

Example: Pricing Page Test

  • Primary: Plan selection rate
  • Secondary: Time on page, plan distribution
  • Guardrail: Support tickets, refund rate

Designing Variants

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
  • Bold enough to make a difference
  • True to the hypothesis

Traffic Allocation

Approach Split When to Use
Standard 50/50 Default for A/B
Conservative 90/10, 80/20 Limit risk of bad varia
Questions fréquentes

Pourquoi fixer d'abord la taille d'échantillon ?

Cela évite d'arrêter le test trop tôt sur des résultats bruités, ce qui peut faire paraître réels de faux gagnants.

Puis-je tester plusieurs changements à la fois ?

La compétence recommande de tester une seule chose à la fois, pour savoir ce qui a causé le résultat.

Couvre-t-elle les métriques de garde-fou ?

Oui, elle inclut des métriques de garde-fou pour détecter un effet négatif que la métrique principale pourrait manquer.

Détails

Description originale de l’auteur

Use before planning or launching any A/B, split or multivariate test, or when asked if a result is significant. Sizes the test with sample_size_calculator.py and writes the hypothesis, metric and stop rule first, so it is not called early on noise.

repo: alirezarezvani/claude-skills

Popularité

Étoiles GitHub
29k
Position au classement
#9630
Licence
MIT
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires