# Ab test analysis

> Ab test analysis is an open-source agent skill for analytics and data. Analyze A/B test results and get a ship, extend or stop recommendation. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/phuryn/pm-skills/tree/main/pm-data-analytics/skills/ab-test-analysis
- **Repository:** https://github.com/phuryn/pm-skills
- **GitHub stars:** 28,088
- **License:** MIT
- **Skill name:** ab-test-analysis
- **Collection:** https://github.com/phuryn/pm-skills
- **Categories:** [analytics and data](https://ai-powered.com/categories/analytics-and-data), [productivity](https://ai-powered.com/categories/productivity)
- **Listing updated:** 2026-11-21

## About

Evaluates experiment results with statistical rigor and turns them into a product decision. The agent first asks about the hypothesis, the variant, the primary and guardrail metrics, duration and traffic split, then validates the setup: sample size against the expected effect, at least one or two full business cycles, possible sample ratio mismatch and novelty effects.

It then calculates conversion rates, relative lift, p-value with a two-tailed z-test or chi-squared test, and a 95% confidence interval, and weighs statistical against practical significance. If given CSV, Excel or analytics exports it reads them directly and generates and runs Python for the calculations.

## When your agent uses it

> Analyze A/B test results with statistical significance, sample size validation, confidence intervals, and ship/extend/stop recommendations. Use when evaluating experiment results, checking if a test reached significance, interpreting split test data, or deciding whether to ship a variant.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/phuryn/pm-skills/tree/HEAD/pm-data-analytics/skills/ab-test-analysis)
- [License: MIT](https://github.com/phuryn/pm-skills/tree/HEAD/pm-data-analytics/skills/ab-test-analysis)

## Features

- **Setup validation:** Sample size, power, duration and SRM checks.
- **Significance tests:** Lift, p-value and 95% confidence interval.
- **Guardrail metrics:** Checks that secondary metrics did not regress.
- **Data file input:** Reads CSV or Excel and runs Python for the math.
- **Decision recommendation:** Ship, extend or stop.

## Good for

- Check whether a test reached significance
- Validate sample size for an experiment
- Interpret split-test data from a CSV
- Decide whether to ship a variant

## Install

### Claude Code

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

```sh
/plugin marketplace add phuryn/pm-skills
/plugin install pm-data-analytics@pm-skills
```

Or copy only this skill to `~/.claude/skills/ab-test-analysis`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/phuryn/pm-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/ab-test-analysis &&
cp -R "$tmp/pm-data-analytics/skills/ab-test-analysis" ~/.claude/skills/ab-test-analysis &&
rm -rf "$tmp"
```

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

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/phuryn/pm-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/ab-test-analysis &&
cp -R "$tmp/pm-data-analytics/skills/ab-test-analysis" ~/.agents/skills/ab-test-analysis &&
rm -rf "$tmp"
```

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

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/phuryn/pm-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/ab-test-analysis &&
cp -R "$tmp/pm-data-analytics/skills/ab-test-analysis" ~/.cursor/skills/ab-test-analysis &&
rm -rf "$tmp"
```

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

### Gemini CLI

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

```sh
gemini skills install https://github.com/phuryn/pm-skills.git --path pm-data-analytics/skills/ab-test-analysis
```

Or copy the folder to `~/.gemini/skills/ab-test-analysis` yourself.

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/phuryn/pm-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/ab-test-analysis &&
cp -R "$tmp/pm-data-analytics/skills/ab-test-analysis" ~/.copilot/skills/ab-test-analysis &&
rm -rf "$tmp"
```

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/phuryn/pm-skills.git
```

Then copy `pm-skills/pm-data-analytics/skills/ab-test-analysis` into your agent's skills folder as `ab-test-analysis`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Can Ab test analysis read my data files?

Yes, CSV, Excel or analytics exports; it generates Python when needed.

### What outcomes does Ab test analysis give?

Ship, extend or stop recommendations.

### What significance threshold is used?

p < 0.05 with a 95% confidence interval.

### How do I install Ab test analysis in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/ab-test-analysis to use it in all your projects, or to .claude/skills/ab-test-analysis in one project. Or install the pm-data-analytics plugin, which includes it: /plugin marketplace add phuryn/pm-skills, then /plugin install pm-data-analytics@pm-skills.

### Does Ab test analysis 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 test analysis?

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 test analysis?

The closest alternatives to Ab test analysis are Ab testing, Brainstorm experiments existing, Brainstorm experiments new, Agent platform eval flywheel and Cohort analysis.

## Where this comes from

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

## Alternatives

- [Ab testing](https://ai-powered.com/skills/ab-testing): Ab testing is an open-source agent skill for marketing and seo.
- [Brainstorm experiments existing](https://ai-powered.com/skills/brainstorm-experiments-existing): Brainstorm experiments existing is an open-source agent skill for productivity.
- [Brainstorm experiments new](https://ai-powered.com/skills/brainstorm-experiments-new): Brainstorm experiments new is an open-source agent skill for productivity.
- [Agent platform eval flywheel](https://ai-powered.com/skills/agent-platform-eval-flywheel): Agent platform eval flywheel is an open-source agent skill for ai models and llm tooling.
- [Cohort analysis](https://ai-powered.com/skills/cohort-analysis): Cohort analysis is an open-source agent skill for analytics and data.
- [Prioritize assumptions](https://ai-powered.com/skills/prioritize-assumptions): Prioritize assumptions is an open-source agent skill for productivity.

---
Source: https://ai-powered.com/skills/ab-test-analysis
