跳到主要内容

ab-testing-framework 标准

A/B and multivariate testing methodology. Design experiments, calculate sample sizes, determine statistical significance, avoid common pitfalls, and interpret results. Platform-agnostic framework applicable to landing pages, emails, ads, pricing, and product features. Use when the user asks about A/B testing, split testing, experiment design, statistical significance, or conversion experiments.

在 GitHub 打开

安装方式

cp -r skills/ab-testing-framework ~/.claude/skills/ab-testing-framework

把该 skill 目录放进客户端 skills 目录。不同客户端的目录可能不同,Claude Code 默认是 ~/.claude/skills/

整仓一次性获取:git clone --depth 1 https://github.com/thatrebeccarae/claude-marketing.git

依赖与权限

  • 无需 API Key
  • 需要联网访问外部服务
  • 依赖外部命令:git make
  • 以上为按正文与 frontmatter 自动推断的信号,仅供参考;安装前建议先阅读原文。
触发场景
split testingexperiment designstatistical significanc

SKILL.md 正文

来源 thatrebeccarae/claude-marketing@a8a63ec · 许可 MIT · 内容未修改

A/B Testing Framework

Design, run, and analyze conversion experiments with statistical rigor.

Install

git clone https://github.com/thatrebeccarae/claude-marketing.git && cp -r claude-marketing/skills/ab-testing-framework ~/.claude/skills/

Test Design Process

Step 1: Hypothesis

Template: If we [change X], then [metric Y] will [increase/decrease] by [Z%] because [reason].

Good hypothesis: "If we change the CTA from Get Started to Start Free Trial, then signup rate will increase by 15% because it reduces uncertainty about cost."

Bad hypothesis: "If we change the button color, conversions will improve." (No reasoning, no expected magnitude.)

Step 2: Sample Size Calculation

To determine how long to run a test:

Required sample per variation = 16 * (p * (1-p)) / (MDE^2)

Where:
  p = baseline conversion rate (as decimal)
  MDE = minimum detectable effect (as decimal)
Baseline Rate10% MDE20% MDE30% MDE
1%253,41463,35428,157
3%82,36920,5929,152
5%48,64012,1605,404
10%23,0405,7602,560
20%10,2402,5601,138

Minimum test duration: 2 full business weeks (to capture day-of-week effects), even if sample size is reached sooner.

Step 3: Test Execution Rules

  1. Random assignment — visitors must be randomly assigned to control/variant
  2. No peeking — do not check results before reaching sample size
  3. No mid-test changes — do not modify variants during the test
  4. Even traffic split — 50/50 for A/B, even splits for multivariate
  5. Single variable — change only one thing per test (unless multivariate)
  6. Full duration — run for the pre-calculated duration, not until significance

Step 4: Statistical Analysis

Frequentist Approach

Z-test for proportions:

Z = (p1 - p2) / sqrt(p_pooled * (1 - p_pooled) * (1/n1 + 1/n2))

Where:
  p1, p2 = conversion rates of control and variant
  p_pooled = (x1 + x2) / (n1 + n2)
  n1, n2 = sample sizes

p-value interpretation:

  • p < 0.05: Statistically significant (95% confidence)
  • p < 0.01: Highly significant (99% confidence)
  • p >= 0.05: Not significant — do not declare a winner

Bayesian Approach

When to use Bayesian:

  • Low traffic (small sample sizes)
  • Need to make decisions faster
  • Want probability of each variant being best (not just "significant or not")

Interpretation: "There is a 94% probability that Variant B is better than Control" vs frequentist "We reject the null hypothesis at 95% confidence."

Step 5: Decision Framework

ResultSignificanceAction
Variant winsp < 0.05Implement variant
Control winsp < 0.05Keep control, learn from failure
No differencep >= 0.05Keep control, test something bigger
Variant winsp = 0.05-0.10Consider traffic — may need more time

Common Testing Pitfalls

  1. Peeking — checking results early inflates false positive rate from 5% to 26%+
  2. Stopping early — reaching significance != reaching required sample size
  3. Testing too many variants — each variant needs full sample size
  4. Ignoring segments — overall winner may be loser for key segments
  5. Too small an effect — testing for 2% lift needs enormous sample sizes
  6. Not accounting for seasonality — run full weeks, avoid holidays
  7. Multiple metrics — primary metric must be pre-declared; secondary are directional
  8. Survivorship bias — only measuring users who complete, not those who abandon
  9. Simpson paradox — segment-level winners can reverse at aggregate level
  10. Novelty effect — new designs get temporary lift; re-test after 2-4 weeks

What to Test (Prioritized by Impact)

High Impact

  • Value proposition / headline
  • CTA text and placement
  • Pricing and offer structure
  • Form length (fields removed)
  • Page layout (single column vs multi)
  • Social proof presence and placement

Medium Impact

  • Image/video vs static
  • Testimonial format (text vs video)
  • Navigation presence on landing pages
  • Trust badges and security signals
  • Urgency elements (countdown, stock)

Low Impact (Usually Not Worth Testing)

  • Button color (unless extreme contrast issue)
  • Font changes
  • Minor copy tweaks
  • Icon styles
  • Footer content

Integration with Other Skills

  • cro-auditor — CRO audit generates test hypotheses; this skill designs the experiments
  • google-analytics — GA4 for experiment data and segment analysis
  • copywriting-frameworks — Generate variant copy using proven frameworks

质量与来源

所属仓库
thatrebeccarae/claude-marketing
仓库星标
163
最近更新
5 个月前
采集时间
今天
commit
a8a63ec1341f
内容指纹
sha256:3403bd69091afe9
文件路径
skills/ab-testing-framework/SKILL.md

同仓库其它 Skill

查看全部 50 个
account-structure-review
Google and Meta paid media account structure evaluation. Audits campaign/ad set architecture against conversion volume minimums, budget thresholds, and targeting overlap. Identifies over-segmentation, under-segmentation, budget fragmentation, and structural anti-patterns blocking algorithmic learning. Provides consolidation roadmaps with migration plans. Use when inheriting accounts, quarterly health checks, or before scaling budgets.
thatrebeccarae/claude-marketing 163 原文
Claude CodeGemini CLIMCP 客户端
aeo-geo-optimizer
Answer Engine Optimization (AEO) and Generative Engine Optimization (GEO) specialist. Optimize content and websites to appear in AI-generated answers from ChatGPT, Perplexity, Claude, Google AI Overviews, and other LLM-powered search experiences. Use when the user asks about AI search optimization, AEO, GEO, AI Overviews, appearing in AI answers, LLM citations, or optimizing for generative search.
thatrebeccarae/claude-marketing 163 原文
Claude CodeGemini CLIMCP 客户端
brand-dna
Extract brand identity from a website URL — voice, colors, typography, imagery, values, and target audience — into a structured brand-profile.json. The profile feeds downstream skills (seo-content-writer, email-composer, frontend-design, pro-deck-builder, cross-platform-audit) for brand-consistent output. Use when the user says brand DNA, brand profile, extract brand, analyze brand, brand voice, brand identity, brand colors, or brand style guide.
thatrebeccarae/claude-marketing 163 原文
Claude CodeGemini CLIMCP 客户端
brand-voice-guidelines
Develop brand voice, tone matrices, messaging frameworks, and brand book documentation. Use when the user asks about brand voice, tone of voice, brand guidelines, messaging framework, or brand consistency.
thatrebeccarae/claude-marketing 163 原文
Claude CodeGemini CLIMCP 客户端
braze
Braze customer engagement platform expertise. Audit campaigns, Canvases, segments, messaging channels, and data architecture. Use when the user asks about Braze, customer engagement, push notifications, in-app messaging, cross-channel orchestration, or lifecycle marketing at scale.
thatrebeccarae/claude-marketing 163 原文
Claude CodeGemini CLIMCP 客户端
cold-email-outreach
Cold email and outreach sequence design with personalization, deliverability optimization, follow-up cadence, and compliance (CAN-SPAM/GDPR). Use when the user asks about cold email, outreach sequences, email prospecting, cold outreach, or email deliverability for outbound.
thatrebeccarae/claude-marketing 163 原文
Claude CodeGemini CLIMCP 客户端