ab-testing
Qué hace
Te ayuda a planificar y ejecutar pruebas A/B (también llamadas pruebas divididas) para comparar dos versiones de algo, como una web o un anuncio, y descubrir cuál funciona mejor. El objetivo es tomar decisiones basadas en datos.
Cuándo usarla
- ✓Cuando quieres probar qué titular de anuncio recibe más clics.
- ✓Cuando decides qué color de botón de una web genera más ventas.
- ✓Cuando quieres mejorar la tasa de registro en un formulario.
Link de la skill
https://github.com/coreyhaines31/marketingskills/blob/main/skills/ab-testing/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Quiero probar dos versiones de titular para mi anuncio de Facebook. ¿Cuál debería recibir más clics?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La IA te ayuda a definir una hipótesis clara (lo que esperas que ocurra), elegir qué probar (solo una cosa a la vez), calcular cuántas personas necesitan ver la prueba y definir cómo medir el éxito.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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 .agents/product-marketing.md exists (or .claude/product-marketing.md, or the legacy product-marketing-context.md filename, in older setups), 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:
- Test Context - What are you trying to improve? What change are you considering?
- Current State - Baseline conversion rate? Current traffic volume?
- 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
Quick Reference
| 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 |
Calculators:
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 variant |
| Ramping | Start small, increase | Technical risk mitigation |
Considerations:
- Consistency: Users see same variant on return
- Balanced exposure across time of day/week
Implementation
Client-Side
- JavaScript modifies 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 metric defined
- Sample size calculated
- Variants implemented correctly
…
Preguntas frecuentes
¿Qué es una prueba A/B?
Es un método para comparar dos versiones (A y B) de algo, como una página web o un correo, para ver cuál funciona mejor según unas métricas concretas.
¿Por qué es importante tener una hipótesis?
La hipótesis convierte la prueba de "a ver qué pasa" en una predicción basada en un razonamiento o en datos. Así guía la prueba y ayuda a entender los resultados.
¿Puedo parar la prueba en cualquier momento?
No es recomendable. Parar una prueba antes de llegar al número de participantes previsto puede llevar a conclusiones erróneas. Es importante tener paciencia y seguir el plan.
Detalles
Descripción original del autor
When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "gro
Popularidad
- Estrellas en GitHub
- 55 mil
- Posición en el ranking
- #3288
- Licencia
- MIT
- Actualizada
- 15/10/2026
Comentarios
- …
Más skills de este repositorio
ad-creative
55 milHace que tu agente cree y mejore anuncios. Es útil para generar textos publicitarios más eficaces para distintas plataformas.
ads
55 milAyuda a tu agente con campañas de publicidad de pago. Es útil para gestionar anuncios en plataformas como Google y Facebook.
ai-seo
55 milAyuda a tu agente a optimizar el contenido para búsquedas con IA. Es útil para que tu contenido aparezca en las respuestas generadas por IA.
analytics
55 milAyuda a tu agente a configurar y mejorar el seguimiento de datos. Es útil para entender cómo interactúan los usuarios con tu web o app.
Skills parecidas
competitive-platform-analysis
280 milAyuda a conocer a tus competidores. Identifica, clasifica y filtra empresas competidoras antes de hacer un análisis más profundo.
competitive-report-structure
280 milCrea informes completos de competidores. Combina la información para mostrar el panorama general y las recomendaciones, y ayuda a alinear al equipo.
lead-intelligence
280 milAyuda a tu agente a encontrar y contactar a personas clave. Analiza leads, sugiere enfoques y gestiona el contacto por correo y redes sociales.