# Ab Test Setup > Diseña, planifica y analiza tests A/B con rigor estadístico: hipótesis, tamaño de muestra, duración, tipos de test y priorización con ICE scoring. Fuente: https://skillsagentes.com/skills/openclaudia/openclaudia-skills/ab-test-setup Markdown: https://skillsagentes.com/skills/openclaudia/openclaudia-skills/ab-test-setup.md Repositorio: https://github.com/OpenClaudia/openclaudia-skills Autor: OpenClaudia Licencia: MIT Actualizado: hace 7 meses Coste de contexto: 115 tok instalada, 1.7k tok al activarse, 1.7k tok con todos los archivos del bundle Bundle: 1 archivo, 7 KB Permisos que pide: ninguno declarado ## Instalación Un skill son archivos markdown: los mismos archivos valen para cualquier agente y lo único que cambia es el directorio de destino, es decir la bandera `--agent`. Añade `-g` para instalarlo en todos los proyectos de la máquina. ```bash # Claude Code npx -y skills add OpenClaudia/openclaudia-skills --skill ab-test-setup --agent claude-code # Cursor npx -y skills add OpenClaudia/openclaudia-skills --skill ab-test-setup --agent cursor # Codex npx -y skills add OpenClaudia/openclaudia-skills --skill ab-test-setup --agent codex # Gemini CLI npx -y skills add OpenClaudia/openclaudia-skills --skill ab-test-setup --agent gemini # Windsurf npx -y skills add OpenClaudia/openclaudia-skills --skill ab-test-setup --agent windsurf # Cline npx -y skills add OpenClaudia/openclaudia-skills --skill ab-test-setup --agent cline ``` ## Qué hace - Guía al agente para diseñar hipótesis de test A/B con plantilla estructurada - Calcula tamaño de muestra y duración del test según tasa de conversión y tráfico - Recomienda tipo de test (A/B, A/B/n, MVT, Bandit, Pre/Post) según contexto - Analiza resultados post-test con tabla de significancia estadística y decisión - Prioriza un roadmap de experimentos usando ICE scoring ## Cuándo usarla - El usuario pregunta sobre A/B testing, split testing o diseño de experimentos - Necesita calcular tamaño de muestra o duración de un test - Quiere analizar resultados de un experimento de conversión o planificar un roadmap de tests ## Qué la activa - "Ayúdame a diseñar un A/B test para el CTA de mi landing page" - "¿Qué tamaño de muestra necesito para un test con 5% de conversión actual?" - "Analiza estos resultados de mi split test y dime si son significativos" - "Crea un roadmap de experimentos priorizado con ICE scoring" ## Archivos - SKILL.md — 7 KB ## SKILL.md Reproducido tal cual desde OpenClaudia/openclaudia-skills bajo MIT. Esta sección es el documento original y está en inglés. # A/B Test Design and Analysis You are an expert in experimentation and A/B testing. When the user asks you to design a test, calculate sample sizes, analyze results, or plan an experimentation roadmap, follow this framework. ## Step 1: Gather Test Context Establish: page/feature being tested, current conversion rate, monthly traffic, primary metric, secondary metrics, guardrail metrics, duration constraints, testing platform (Optimizely, VWO, custom). ## Step 2: Hypothesis Framework ### Hypothesis Template ``` OBSERVATION: [What we noticed in data/research/feedback] HYPOTHESIS: If we [specific change], then [metric] will [change] by [amount], because [behavioral/psychological reasoning]. CONTROL (A): [Current state] VARIANT (B): [Proposed change] PRIMARY METRIC: [Single metric that determines winner] GUARDRAILS: [Metrics that must not degrade] ``` ### Hypothesis Categories - **Clarity**: "Users don't understand what we offer" -- test headline, value prop - **Motivation**: "Users aren't motivated to act" -- test social proof, urgency, benefits - **Friction**: "Process is too difficult" -- test form length, step count, layout - **Trust**: "Users don't trust us" -- test testimonials, guarantees, badges - **Relevance**: "Content doesn't match intent" -- test personalization, segmentation ## Step 3: Sample Size and Duration ### Sample Size Formula ``` n = (Z_alpha/2 + Z_beta)^2 * (p1*(1-p1) + p2*(1-p2)) / (p2 - p1)^2 Where: Z_alpha/2 = 1.96 (95%), Z_beta = 0.84 (80% power), p2 = p1 * (1 + MDE) ``` ### Quick Reference (per variant, 95% significance, 80% power) | Baseline CR | 10% MDE | 15% MDE | 20% MDE | 25% MDE | |---|---|---|---|---| | 2% | 385,040 | 173,470 | 98,740 | 63,850 | | 3% | 253,670 | 114,300 | 65,080 | 42,110 | | 5% | 148,640 | 67,040 | 38,200 | 24,730 | | 10% | 70,420 | 31,780 | 18,120 | 11,740 | | 15% | 44,310 | 20,010 | 11,420 | 7,400 | | 20% | 31,310 | 14,140 | 8,070 | 5,230 | **Duration** = (Sample size per variant x Number of variants) / Daily traffic. Minimum 7 days, maximum 8 weeks. If duration exceeds 8 weeks: increase MDE, reduce variants, test a higher-traffic page, use a micro-conversion metric, or accept lower power. ## Step 4: Test Types | Type | What | When | Caution | |---|---|---|---| | A/B | Two versions, 50/50 split | One specific change, sufficient traffic | Minimum 7 days | | A/B/n | Control + 2-4 variants | Multiple approaches to same element | Needs proportionally more traffic | | MVT | Multiple element combinations | High traffic (100K+/month) | Combinations multiply fast | | Bandit | Dynamic traffic allocation | High opportunity cost | Harder to reach significance | | Pre/Post | Before vs. after (no split) | Cannot split traffic | Weakest causal evidence | ## Step 5: Test Design by Element ### Headline Tests Test: value prop angle, specificity, social proof integration, question vs. statement, length. Measure: conversion rate, bounce rate, scroll depth. ### CTA Tests Test: button copy (action vs. benefit), color (contrast), size, placement, surrounding copy. Measure: click-through rate, conversion rate. ### Layout Tests Test: single vs. two column, long vs. short form, section order, video vs. static hero, with vs. without nav. Measure: conversion rate, scroll depth. Guardrail: page load time. ### Pricing Tests Test: price point, billing display, tier count, feature allocation, default plan, anchoring, decoy pricing. Measure: **revenue per visitor** (not just CR). Guardrail: support tickets, refund rate. ### Copy Tests Test: tone, length, format (paragraphs vs. bullets), emotional angle, proof type. Measure: conversion rate, read depth. ## Step 6: Running the Test ### Pre-Launch Checklist - [ ] Hypothesis documented with primary metric defined - [ ] Sample size calculated, traffic sufficient - [ ] QA on both variants across devices and browsers - [ ] Tracking verified -- conversions fire correctly for both variants - [ ] No other tests on same page/funnel - [ ] Traffic allocation set (50/50) - [ ] Exclusion criteria defined (bots, internal IPs) - [ ] Stakeholders aligned on decision criteria before launch ### During the Test - Do not peek for first 3-5 days (early results are misleading) - Do not stop early unless guardrail metrics violated - Monitor for technical issues and tracking accuracy - Watch for sample ratio mismatch (SRM): >1% deviation means setup problem - Do not add variants mid-test ### Post-Test Analysis ``` TEST RESULTS ============ Test: [name] | Duration: [days] | Sample: [n] | Split: [%/%] SRM Check: [Pass/Fail] | Variant | Visitors | Conversions | CR | vs Control | p-value | Significant? | |---------|----------|-------------|-----|------------|---------|--------------| | Control | X,XXX | XXX | X.XX% | -- | -- | -- | | Var B | X,XXX | XXX | X.XX% | +X.X% | 0.XXX | Yes/No | DECISION: [Implement / Keep Control / Iterate] REASONING: [Data-based rationale] NEXT TEST: [What to test next] ``` ## Step 7: Common Pitfalls 1. **Peeking**: Checking daily inflates false positives to 25-30%. Commit to sample size upfront. 2. **Underpowered tests**: "No result" often means "not enough data." 3. **Too many variables**: Isolate one variable per test. 4. **Ignoring segments**: Overall flat, but mobile wins / desktop loses. Always segment. 5. **Novelty effect**: Run 2+ weeks to account for novelty wearing off. 6. **Multiple comparisons**: One primary metric. Bonferroni correction for extras. 7. **Practical significance**: A significant 0.1% lift may not be worth implementing. ## Step 8: Test Prioritization (ICE Scoring) ``` Impact (1-10): How much will this move the metric? Confidence (1-10): How likely to produce a result? Ease (1-10): How easy to implement? ICE Score = (Impact + Confidence + Ease) / 3 ``` ### Roadmap Template ``` EXPERIMENTATION ROADMAP Quarter: [Q] | Page: [target] | Traffic: [volume] | Current CR: [X%] | Priority | Test | ICE | Duration | Status | |----------|------|-----|----------|--------| | 1 | ... | 8.3 | 14 days | Ready | | 2 | ... | 7.7 | 21 days | Ready | | 3 | ... | 7.0 | 14 days | Idea | ``` Run tests sequentially on the same page to avoid interaction effects. Provide a backlog ranked by ICE score. ## Dónde encaja - Categoría: [Datos y analítica](https://skillsagentes.com/categorias/datos-analitica.md) — Consulta, limpia y visualiza datos sin salir del agente. - Creador: [OpenClaudia](https://skillsagentes.com/creators/openclaudia.md) — 76 skills en el directorio - [Todas las skills](https://skillsagentes.com/skills.md) - [Ranking de instalaciones](https://skillsagentes.com/ranking.md) ## Otras skills del mismo repositorio - [Competitor Traffic Report](https://skillsagentes.com/skills/openclaudia/openclaudia-skills/competitor-traffic-report.md): Genera un informe HTML autocontenible de tráfico competitivo: visitas mensuales (SimilarWeb), tráfico orgánico y Domain Rating (Ahrefs), con gráficos ranked, tendencias y tabla de datos. - [Brand Dev](https://skillsagentes.com/skills/openclaudia/openclaudia-skills/brand-dev.md): Obtiene datos de marca (nombre, descripción, logos, industria) desde la API de brand.dev y guarda los logos localmente. - [Gsc Portfolio Audit](https://skillsagentes.com/skills/openclaudia/openclaudia-skills/gsc-portfolio-audit.md): Audita TODAS las propiedades de Google Search Console a la vez: ranking por clics e impresiones con deltas, y diff de keywords por sitio (nuevas, suben, bajan, perdidas, o bien rankeadas sin clics). - [Wechat Moments](https://skillsagentes.com/skills/openclaudia/openclaudia-skills/wechat-moments.md): Clasifica y resume el feed de WeChat Moments (朋友圈) del usuario para que los eventos reales y la información genuina destaquen sobre la promoción, ponderando según cuánto le escribe el usuario a cada autor. - [Podcast Edit](https://skillsagentes.com/skills/openclaudia/openclaudia-skills/podcast-edit.md): Edita audio o video de podcast: recorta charla previa/posterior, quita muletillas, corta silencios, mejora el audio y aplica el mismo corte a una versión en video. --- Skills Agentes · [Índice de páginas en markdown](https://skillsagentes.com/sitemap.md) · [Inicio](https://skillsagentes.com/index.md)