# Duo experimentation

> Duo experimentation is an open-source agent skill for analytics and data. Guides an agent through A/B test design, metrics, sample size and kill criteria. 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/HKTITAN/duolingo/tree/main/skills/duo-experimentation
- **Repository:** https://github.com/hktitan/duolingo
- **GitHub stars:** 10
- **License:** MIT
- **Skill name:** duo-experimentation
- **Collection:** https://github.com/HKTITAN/duolingo
- **Categories:** [analytics and data](https://ai-powered.com/categories/analytics-and-data)
- **Listing updated:** 2026-12-03

## About

This skill applies a decision protocol modeled on Duolingo's experimentation practice, where experiment results settle disagreements rather than seniority. It is organized as a map of linked reference notes, so the agent reads only the pieces relevant to the question at hand. Coverage spans hypothesis writing, randomization units, primary and guardrail metrics, sample size and test duration, novelty effects, and explicit criteria for stopping a test.

The material also addresses measurement design beyond plain randomized tests. It includes notes on choosing who enters a comparison, capturing a baseline at first contact, embedding probes in normal product use, and running quasi-experiments such as matched cohorts when randomization is not possible. A set of pitfall and cadence notes covers when shipping beats further testing and how to run a weekly review rhythm for a high volume of experiments.

No scripts are bundled and no tools are required. The skill is plain Markdown reference material, and it cross-links to sibling skills on retention, product and culture. It is released under the MIT license.

## When your agent uses it

> Duolingo-style experimentation as a decision protocol — hundreds of A/B tests a week, opinions resolved by data, ideas killed quickly. Covers hypothesis design, metric selection, guardrails, sample size, novelty effects, and explicit kill criteria. Use when the user wants to run an A/B test, decide between two designs without arguing, set up an experiment program, debug why a test isn't moving, or build a culture where "show don't tell" replaces seniority-based decisions. Source the Duolingo Handbook (Show Don't Tell) and engineering blog posts.

## What it can access

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

- [Instructions only, no scripts](https://github.com/HKTITAN/duolingo/tree/HEAD/skills/duo-experimentation)
- [License: MIT](https://github.com/HKTITAN/duolingo/tree/HEAD/skills/duo-experimentation)

## Features

- **Hypothesis and test structure:** Guidance on writing testable hypotheses and defining variants, control groups, randomization units and exposure rules.
- **Metric selection and guardrails:** Covers choosing primary metrics tied to long-term retention and checking that key metrics do not regress.
- **Sample size and duration:** Explains how to size an experiment and the risks of stopping a test early.
- **Novelty effect detection:** Describes how to spot lifts that fade over time and how to discount them.
- **Explicit kill criteria:** Sets thresholds for stopping an experiment rather than continuing to chase a weak result.
- **Quasi-experimental methods:** Covers causal reads without randomization, such as self-as-control and matched cohorts.

## Good for

- Design an A/B test for a new onboarding flow
- Decide between two product designs using experiment data
- Pick a primary metric and guardrail metrics for a test
- Work out how many users and days a test needs
- Diagnose why an experiment shows no movement
- Set up a weekly experiment review process for a team

## Install

### Claude Code

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

```sh
/plugin marketplace add HKTITAN/duolingo
/plugin install duolingo@duolingo
```

Or copy only this skill to `~/.claude/skills/duo-experimentation`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/HKTITAN/duolingo.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/duo-experimentation &&
cp -R "$tmp/skills/duo-experimentation" ~/.claude/skills/duo-experimentation &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/duo-experimentation` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/duo-experimentation` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/HKTITAN/duolingo.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/duo-experimentation &&
cp -R "$tmp/skills/duo-experimentation" ~/.agents/skills/duo-experimentation &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/duo-experimentation` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/duo-experimentation` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/HKTITAN/duolingo.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/duo-experimentation &&
cp -R "$tmp/skills/duo-experimentation" ~/.cursor/skills/duo-experimentation &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/duo-experimentation` 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/HKTITAN/duolingo.git --path skills/duo-experimentation
```

Or copy the folder to `~/.gemini/skills/duo-experimentation` yourself.

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/HKTITAN/duolingo.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/duo-experimentation &&
cp -R "$tmp/skills/duo-experimentation" ~/.copilot/skills/duo-experimentation &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/duo-experimentation` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/HKTITAN/duolingo.git
```

Then copy `duolingo/skills/duo-experimentation` into your agent's skills folder as `duo-experimentation`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

No scripts or special tools are listed. It is a set of Markdown reference notes that the agent reads as needed.

### Does Duo experimentation cover non-randomized analysis?

Yes. It includes notes on quasi-experiments such as self-as-control, matched cohorts and within-stratum scoring.

### Which clients does Duo experimentation work with?

The skill is a plain SKILL.md folder with no client-specific hooks or plugin features listed, so it follows the shared agent skills format.

### What license applies?

The skill is released under the MIT license.

### How do I install Duo experimentation in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/duo-experimentation to use it in all your projects, or to .claude/skills/duo-experimentation in one project. Or install the duolingo plugin, which includes it: /plugin marketplace add HKTITAN/duolingo, then /plugin install duolingo@duolingo.

### Does Duo experimentation 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 Duo experimentation?

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 Duo experimentation?

The closest alternatives to Duo experimentation are Duo experiment velocity, Trustworthy experiments, Ab testing, Analyze experiments and Ab test design.

## Where this comes from

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

## Alternatives

- [Duo experiment velocity](https://ai-powered.com/skills/duo-experiment-velocity): Duo experiment velocity is an open-source agent skill for analytics and data.
- [Trustworthy experiments](https://ai-powered.com/skills/trustworthy-experiments): Trustworthy experiments is an open-source agent skill for analytics and data.
- [Ab testing](https://ai-powered.com/skills/ab-testing): Ab testing is an open-source agent skill for marketing and seo.
- [Analyze experiments](https://ai-powered.com/skills/analyze-experiments): Analyze experiments is an open-source agent skill for analytics and data.
- [Ab test design](https://ai-powered.com/skills/ab-test-design): Ab test design is an open-source agent skill for analytics and data.
- [Ab test designer](https://ai-powered.com/skills/ab-test-designer-lionelsimai): Ab test designer is an open-source agent skill for analytics and data.
- [Quantitative analysis](https://ai-powered.com/skills/quantitative-analysis): Quantitative analysis is an open-source agent skill for analytics and data.
- [Duo motivation segmentation](https://ai-powered.com/skills/duo-motivation-segmentation): Duo motivation segmentation is an open-source agent skill for analytics and data.

---
Source: https://ai-powered.com/skills/duo-experimentation
