Skip to content
Skill

Ab testing

Plan, run and read A/B tests: hypotheses, sample size and stopping calls

Install

Ab testing is an open-source agent skill for marketing and seo. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
60.9K
Last commit
License
MIT
Listing updated

Similar skills

About Ab testing

Helps the agent design experiments that produce valid, actionable results, and make judgement calls on running ones: is the result real, can we stop, which version won, is a test worth running. Topics include hypotheses, sample size, duration, significance and experiment backlogs.

It reads a product marketing context file first if one exists, then asks about test context, current baseline and traffic, and constraints. Core principles are to start from a hypothesis, test one variable, pre-determine sample size and avoid peeking, and to pick a primary metric with guardrails. A hypothesis template and weak versus strong examples are included.

Tracking setup and page-level conversion fixes are left to the analytics and cro skills.

When your agent uses it

When the user wants to plan, run, or read A/B tests, or asks a judgement call on one: is the result real, can we stop, which version won, is this worth testing at all: sample size, duration, significance, hypotheses, and experiment backlogs. For tracking setup, see analytics. For page-level conversion fixes, see cro.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 4 files (37 KB) on GitHub on 17 November 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the marketing-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add coreyhaines31/marketingskills
/plugin install marketing-skills@marketingskills

Or copy only this skill to ~/.claude/skills/ab-testing:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/coreyhaines31/marketingskills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/ab-testing &&
cp -R "$tmp/skills/ab-testing" ~/.claude/skills/ab-testing &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/ab-testing inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/ab-testing to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/coreyhaines31/marketingskills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/ab-testing &&
cp -R "$tmp/skills/ab-testing" ~/.agents/skills/ab-testing &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/ab-testing inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/ab-testing to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/coreyhaines31/marketingskills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/ab-testing &&
cp -R "$tmp/skills/ab-testing" ~/.cursor/skills/ab-testing &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/ab-testing inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/coreyhaines31/marketingskills.git --path skills/ab-testing

Or copy the folder to ~/.gemini/skills/ab-testing yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/ab-testing:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/coreyhaines31/marketingskills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/ab-testing &&
cp -R "$tmp/skills/ab-testing" ~/.copilot/skills/ab-testing &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/ab-testing inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/coreyhaines31/marketingskills.git

Then copy marketingskills/skills/ab-testing into your agent's skills folder as ab-testing. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Hypothesis framework
A structured statement with observation, change, outcome and audience.
Core principles
One variable, fixed sample size and no early peeking.
Metric selection
Primary, secondary and guardrail metrics.
Context check
Reads the product marketing context file before asking questions.
Experiment backlogs
Prioritizing what is worth testing.

Good for

  • Write a test hypothesis
  • Calculate sample size and duration
  • Decide if a test can stop early
  • Prioritize an experiment backlog

Ab testing FAQ

Does Ab testing set up tracking?

No, the skill points to the analytics skill for that.

Which context file does Ab testing read?

Product marketing context, e.g. .agents/product-marketing.md or .claude/product-marketing.md.

What does Ab testing advise on peeking?

Pre-determine sample size and don't stop early.

How do I install Ab testing in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/ab-testing to use it in all your projects, or to .claude/skills/ab-testing in one project. Or install the marketing-skills plugin, which includes it: /plugin marketplace add coreyhaines31/marketingskills, then /plugin install marketing-skills@marketingskills.

Does Ab testing run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Ab testing?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Ab testing?

The closest alternatives to Ab testing are Ab test analysis, Cro, Ads, Attribution and Conversion tracking.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from coreyhaines31/marketingskills

  1. Writes and iterates ad headlines, copy and static or video concepts within platform limits

    • Open source
    • 60.9K GitHub stars
    • Marketing and SEO
  2. Plans and diagnoses paid ads on Google, Meta and LinkedIn and ends with facts and gaps

    • Open source
    • 60.9K GitHub stars
    • Marketing and SEO
  3. Audits and improves how a site gets cited and recommended in AI answers and by AI agents

    • Open source
    • 60.9K GitHub stars
    • Marketing and SEO
  4. Sets up and audits analytics tracking: event plans, GA4 and GTM, UTMs and metric math

    • Open source
    • 60.9K GitHub stars
    • Analytics and data
  5. Scores App Store and Google Play listings on six dimensions with a prioritized fix list

    • Open source
    • 60.9K GitHub stars
    • Marketing and SEO
  6. Judges which marketing drives revenue: attribution models, MMM, holdouts, blind spots

    • Open source
    • 60.9K GitHub stars
    • Marketing and SEO