Skip to content

Structured guide for planning, designing, and running A/B tests with statistically sound sample sizing and metric selection.

CCM score
65 of 100
skills.sh installs
356
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers hypothesis writing, test types (A/B, A/B/n, multivariate, split URL), sample size, duration, and result analysis
  • Includes a hypothesis template, a sample size reference table, and pre-launch and in-test checklists
  • Enforces pre-committed sample sizes and warns against peeking and stopping early at significance
  • Designed for product and marketing teams choosing between client-side and server-side test implementations

Install

$ npx -y skills add davila7/claude-code-templates --skill ab-test-setup -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

Before designing a test, understand:

  1. Test Context

    • What are you trying to improve?
    • What change are you considering?
    • What made you want to test this?
  2. Current State

    • Baseline conversion rate?
    • Current traffic volume?
    • Any historical test data?
  3. Constraints

    • Technical implementation complexity?
    • Timeline requirements?
    • 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
  • Save MVT for later

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

Details

Repository
github.com/davila7/claude-code-templates
Categories
Marketing, SEO & Ads, Testing & QA
First seen
Jun 3, 2026

Questions

What is the ab-test-setup skill for?

The ab-test-setup skill helps you plan, design, and implement A/B tests and experiments. It guides you toward a specific hypothesis, a single variable per test, a pre-set sample size, and a primary metric tied to business value.

How do I install the ab-test-setup skill?

Run npx -y skills add davila7/claude-code-templates --skill ab-test-setup -y in your project. Once installed, the agent can help you design variants, choose test types, and calculate sample sizes.

Which other skills sit alongside ab-test-setup in Marketing, SEO & Ads?

ab-test-setup is in the Marketing, SEO & Ads category, alongside seo-audit, content-strategy, marketing-psychology, ai-seo and programmatic-seo. The skill's own description points to analytics-tracking for tracking implementation, which is a separate concern.

Does ab-test-setup cover analytics tracking?

No, the skill itself points to analytics-tracking for tracking implementation. ab-test-setup focuses on the test design, hypothesis, variants, traffic allocation and result analysis.

More from davila7/claude-code-templates

All 398

Similar to Ab Test Setup

More Marketing, SEO & Ads