agentleFS
chatquillchatquill/claude-code-websites/.claude/skills/experiment/SKILL.md

experiment

Skill1 starsChanged 24 days agoMITView on GitHub

Designs an A/B or multivariate experiment with a hypothesis, primary and guardrail metrics, minimum detectable effect and a shown sample-size calculation, or reads out a finished one. Use when testing a change to a page, flow, pricing or onboarding; use 'readout EXP-NN' to analyse results.

33 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ascii-diagram, research-fleet and 10 more.

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.
  • SethGammonSkill

    ascii-diagram

    Generate perfectly aligned ASCII diagrams — architecture, flow, sequence, box-and-arrow. Uses a programmatic character-grid approach so alignment is guaranteed by math, not token prediction. Includes post-render verification.

    Also in 4 projects that use this

  • SethGammonSkill

    research-fleet

    Parallel research using Fleet wave mechanics. Spawns multiple scout agents, each investigating a different angle of the same question. Findings are compressed between waves. Produces a unified research brief from multiple independent perspectives.

    Also in 3 projects that use this

  • vicoa-aiSkill

    live-preview

    Start a local app in the current user project, expose it through a tunnel, and return preview details in structured Markdown. Use when the user asks for a preview URL, public URL, shareable localhost, mobile/web preview, or tunnel setup.

    Also in 4 projects that use this

  • botlearn-aiSkill

    doc-gen

    Also in 4 projects that use this

  • chidekinaSkill

    test-gen

    Generate test cases from type constraints and specs. Creates boundary tests, edge cases, and fixtures automatically. Pact-lang inspired. Triggers on: generate tests, test from spec, create fixtures, boundary tests.

    Also in 4 projects that use this

  • qtzx06Skill

    eval

    Evaluate trained YOLO model accuracy with mAP metrics and per-class error analysis. Identifies failure cases for targeted improvement. Use after training.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 31 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask for the idea if no argument was given.

    line 29
  2. Distinctive:

    If there is no evidence, say so.

    line 32
  3. Very specific:

    Ask for the baseline rate p and weekly eligible visitors.

    line 43
  4. Very specific:

    Low-traffic warning: If duration > 6 weeks, say so plainly and offer: Bigger swing (raise the MDE), Qualitative test instead (5 usability …

    line 54
  5. Very specific:

    Ask "May I write this to production/experiments/EXP-NN-<slug>.md?"

    line 66
  6. Distinctive:

    Read the brief. Ask the user for the result numbers per variant (exposures, conversions, guardrails).

    line 70
  7. Very specific:

    Check the stop rule was met (sample size reached).

    line 72

“Common” is measured: kept by at least 6 in 10 of the 31 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

Experiment

Writes an experiment brief to production/experiments/EXP-NN-<slug>.md before any test starts, and a readout into the same file when it ends. It never launches, stops or changes a live experiment or flag itself, and it refuses to call a winner without the pre-registered stop rule.

Inputs

  • production/analytics/tracking-plan.md (events available to measure)
  • docs/product/prd.md metrics section
  • production/experiments/ (existing experiments, numbering)
  • project.yaml: stack.analytics (flags/experiments support)
  • The user's baseline conversion rate and weekly traffic for the page or flow

Design mode (default)

Phase 1: Hypothesis

Ask for the idea if no argument was given. Shape it into: "Because we saw [evidence], we believe [change] for [audience] will increase [primary metric]. We'll know when [metric moves by MDE]." If there is no evidence, say so; the experiment is still allowed but labelled exploratory.

Phase 2: Metrics

  • One primary metric, an event from the tracking plan (missing → suggest /analytics-plan).
  • Guardrails: revenue per visitor, error rate, page performance (LCP/INP), unsubscribe or refund rate as relevant.
  • Unit of randomisation (user, not session, for logged-in flows) and exposure event.

Phase 3: Sample size (show the maths)

Ask for the baseline rate p and weekly eligible visitors. With α = 0.05 (two-sided) and power 0.8, per variant:

n ≈ (1.96 + 0.84)² × [p(1−p) + p₂(1−p₂)] / (p₂ − p)²     where p₂ = p × (1 + relative MDE)
duration (weeks) = n × variants ÷ weekly eligible visitors   (round up to whole weeks, min 1, max 6)

Show the numbers. Example: p = 4%, MDE +20% → p₂ = 4.8%, n ≈ 10,300 per variant; at 3,000 visitors/week with 2 variants ≈ 7 weeks.

Low-traffic warning. If duration > 6 weeks, say so plainly and offer: Bigger swing (raise the MDE), Qualitative test instead (5 usability sessions, /ux-review), Sequential before/after with caveats, Run anyway.

Phase 4: Brief

Spawn growth-lead to review the hypothesis and metrics. Fill .claude/docs/templates/experiment-brief.md: hypothesis, variants (with copy/design references), audience and targeting, metrics, sample size, duration, stop rule (fixed horizon; no peeking-and-stopping), risks, implementation notes (flag key, exposure event). Get the number from bash .claude/scripts/next-number.sh production/experiments EXP. Ask "May I write this to production/experiments/EXP-NN-<slug>.md?"

Readout mode (readout EXP-NN)

  1. Read the brief. Ask the user for the result numbers per variant (exposures, conversions, guardrails); never fetch them from a live system.
  2. Check the stop rule was met (sample size reached). If not, label the readout INCONCLUSIVE: stopped early.
  3. Compute rates, absolute and relative lift, and a two-proportion z-test p-value and 95% CI. Show the working.
  4. Verdict: WIN, LOSS, NO DIFFERENCE or INCONCLUSIVE, with guardrail status.
  5. Record learnings, including null results. Ask before appending the ## Readout section.

Output

production/experiments/EXP-NN-<slug>.md (template experiment-brief).

Next step

Design: /dev-story for the variant implementation. Readout: /retrospective or the next /experiment.

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.