agentleFS
assimovtassimovt/productskills/skills/experiment-design/SKILL.md

experiment-design

Skill71 starsChanged 10 months agoMITView on GitHub

Design hypothesis-driven experiments and A/B tests with proper methodology. Use when asked to design an A/B test, validate a hypothesis, plan an experiment, or set up a test for a product change. Covers hypothesis writing, sample size, and common mistakes.

23 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use list-quality-scorecard and positive-reply-scoring.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • growthenginenowoslawskiSkill

    list-quality-scorecard

    Pre-send quality scorecard for any lead list. Grades duplicate rate, title diversity, bad-title patterns, catch-all domain density, ICP fit, email verification coverage. Outputs a letter grade + action items BEFORE you send. Catches bad lists before they burn inboxes. Run after email enrichment, before Smartlead upload.

    Also in 3 projects that use this

  • growthenginenowoslawskiSkill

    positive-reply-scoring

    Pulls replies from a Smartlead campaign, classifies each as positive/neutral/negative/OOO/bounce/unsubscribe using Claude, and reports the positive reply rate — the north-star metric for cold email. Use when the user wants to know if a campaign is actually working (not just getting replies, but getting the RIGHT replies). Triggers on "score my replies", "how's campaign X doing", "positive reply rate", "is this campaign working".

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 8 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 17 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every experiment starts with a written hypothesis before any work begins:

    line 14
  2. Distinctive:

    If you need 50,000 users and you get 500/week, the experiment will take 100 weeks.

    line 42
  3. Distinctive:

    Run for at least one full business cycle (usually 1-2 weeks minimum) to capture day-of-week effects.

    line 45
  4. Very specific:

    Write BEFORE launching: what metric, what threshold, what you'll do if it wins/loses/is inconclusive.

    line 48
  5. Distinctive:

    NEVER peek at results before the pre-determined end date.

    line 61
  6. Distinctive:

    NEVER run an experiment without calculating required sample size first.

    line 62
  7. Distinctive:

    ALWAYS include guardrail metrics.

    line 63
  8. Distinctive:

    NEVER test more than one major change per experiment.

    line 64
  9. Distinctive:

    ALWAYS document learnings from inconclusive tests.

    line 65

“Common” is measured: kept by at least 6 in 10 of the 17 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Design experiments that actually prove something. Most A/B tests fail because they test vague ideas, run too short, or peek at results. A well-designed experiment has a clear hypothesis, adequate power, and a pre-committed analysis plan.

Hypothesis Template

Every experiment starts with a written hypothesis before any work begins:

"If we [make this specific change] for [this audience], then [this metric] will [change in this direction] by [this amount], because [this reason based on evidence]."

Example:

"If we replace the 5-step onboarding wizard with a single guided first-project flow for new signups, then 7-day activation rate will increase from 23% to 35%, because 4/6 interviewed users said they wanted to 'just start using it' not 'set everything up first.'"

Every part matters:

  • Specific change: Not "improve onboarding" — the exact change
  • Audience: Who sees this? New users only? Free tier only?
  • Metric + direction + amount: A number you'll measure
  • Because: The evidence-based reason. No evidence = no experiment.

Experiment Design

1. Primary Metric

One metric the experiment is designed to move. Not three. One. Additional metrics are guardrails.

2. Guardrail Metrics

Metrics that must NOT degrade. These prevent "winning" by breaking something else.

3. Sample Size

Calculate BEFORE running. Use a sample size calculator with:

  • Baseline conversion rate (current number)
  • Minimum detectable effect (smallest change worth caring about)
  • Statistical significance (95% is standard)
  • Power (80% minimum)

If you need 50,000 users and you get 500/week, the experiment will take 100 weeks. Either increase the MDE or don't run the experiment.

4. Duration

Run for at least one full business cycle (usually 1-2 weeks minimum) to capture day-of-week effects. NEVER run less than 7 days.

5. Analysis Plan

Write BEFORE launching: what metric, what threshold, what you'll do if it wins/loses/is inconclusive. Pre-commit to avoid post-hoc storytelling.

Common Mistakes

  • Peeking: Checking results daily and stopping when you see significance. This inflates false positive rates. Set a duration and don't peek until it's done.
  • Underpowered tests: Running a test with too few users to detect a meaningful effect. The result is "inconclusive" which teaches you nothing.
  • Testing too many things: Changing 5 things at once means you don't know what worked. One change per experiment.
  • No guardrails: Increasing signups by removing the password field "works" but breaks everything else.
  • Post-hoc storytelling: The test was inconclusive but "we noticed an interesting trend in the 25-34 age group." That's noise, not signal.

Guidelines

  • CRITICAL: Write the hypothesis and analysis plan BEFORE building anything. If you can't state what you're testing and how you'll decide, you're not ready.
  • NEVER peek at results before the pre-determined end date. Statistical significance at day 3 of a 14-day test is meaningless.
  • NEVER run an experiment without calculating required sample size first.
  • ALWAYS include guardrail metrics. Winning the primary metric while tanking retention is not a win.
  • NEVER test more than one major change per experiment. Isolate variables.
  • ALWAYS document learnings from inconclusive tests. "We couldn't detect an effect with N=5,000 users" is still useful information — it suggests the effect is small or nonexistent.

Built on controlled experimentation methodology (Kohavi, Tang, Xu). Skills from productskills.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.