agentleFS
Trystan-SATrystan-SA/product-engineer-skills/skills/experiment-readout/SKILL.md

experiment-readout

Skill2.1k starsChanged 11 days agoMITView on GitHub

Analyze a finished A/B test and recommend a decision — validity checks first (sample ratio mismatch, duration, exposure), then lift, confidence intervals and p-values from a bundled script, guardrails and pre-registered segments, and a ship / iterate / roll back call with a stakeholder summary and flag cleanup. Use when an experiment has ended, or when someone asks "did the test win?", "is this significant?", or to read A/B results.

2 other projects use a version of this.

Trending

More talk lately.thin dataabout the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 4 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the Trystan-SA/product-engineer-skills repository that our weekly crawl found: only 4 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read experiment.md in the feature folder (docs/product/<feature-slug>/) for the pre-registered primary metric, guardrails, MDE, duration …

    line 12
  2. Distinctive:

    Stop and report if a check fails.

    line 18
  3. Distinctive:

    Sample ratio mismatch (SRM): Do the variant sizes match the planned split?

    line 20
  4. Very specific:

    Run the bundled script, in the scripts/ folder next to this file:

    line 28
  5. Distinctive:

    Read the confidence interval, not only the p-value:

    line 44

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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 Readout

The readout is where experimentation most often loses its value: a dashboard shows +4 % in green, someone ships, and nobody checks whether the test was valid or whether +4 % is noise. This skill checks validity before results, computes the numbers reproducibly, and states the decision together with its uncertainty.

Phase 1: Gather the spec and the data

Read experiment.md in the feature folder (docs/product/<feature-slug>/) for the pre-registered primary metric, guardrails, MDE, duration and segments. Without a spec, reconstruct it with the user and label the readout as post hoc.

Get raw numbers per variant: users (randomization units) and conversions, or users, mean and standard deviation for continuous metrics. Sources, in order of preference: a warehouse query, the experimentation or analytics tool's API or export, numbers the user pastes. Prefer raw counts to percentages copied from a dashboard.

Phase 2: Check validity before reading results

Stop and report if a check fails. A result from an invalid test isn't weak evidence; it's no evidence.

  1. Sample ratio mismatch (SRM). Do the variant sizes match the planned split? The script below runs a chi-square test; p < 0.001 means assignment or exposure logging is broken (bots, redirects, a variant that crashes before logging). Find the cause; don't adjust the numbers.
  2. Duration. Did the test run its planned duration, in whole weeks? Was it stopped early because it looked good?
  3. Sample size. Did it reach the planned sample? If not, it's underpowered and a non-significant result says little.
  4. Stability. Did anything change mid-test (allocation, targeting, variant code, an outage)? Data from before a change can't be pooled with data from after.
  5. Exposure. Are only exposed, eligible users counted?

Phase 3: Compute

Run the bundled script, in the scripts/ folder next to this file:

# Conversions: users and conversions per variant
python3 scripts/readout.py --control 48210 5302 --treatment 48655 5598 --mde 0.05

# Continuous metric: users, mean and standard deviation per variant
python3 scripts/readout.py --control-mean 48210 41.2 38.5 --treatment-mean 48655 42.0 39.1

It prints the SRM check, each variant's rate or mean, the absolute and relative differences with 95 % confidence intervals, the p-value, and a verdict against the MDE. Run it for the primary metric and for each guardrail.

For metrics whose unit differs from the randomization unit (revenue per order, clicks per session), this script underestimates the variance. Use the delta method or the experimentation platform's computation instead, and say so in the readout.

Phase 4: Interpret

Read the confidence interval, not only the p-value:

Interval for the relative liftMeaning
Entirely above zero and above the MDEClear win
Above zero, but includes lifts smaller than the MDEReal, possibly too small to be worth maintaining: judgment call
Includes zero, stays within ± MDEFlat: no effect large enough to matter. A useful result
Includes zero and reaches beyond ± MDEInconclusive: the test was too small to tell
Entirely below zeroThe change hurts

Then:

  • Guardrails — a guardrail significantly worse beyond its threshold blocks shipping, whatever the primary metric says.
  • Segments — only the pre-registered ones. With 20 post-hoc segments, one will look significant by chance; report post-hoc patterns as hypotheses for the next test.
  • Novelty — with daily data, check whether the lift shrinks over time. Early lifts on visible changes often fade.
  • Practical size — translate the lift into what it means: "+0.6 pp activation ≈ 140 more activated teams a month".

Phase 5: Decide and clean up

Recommend one of:

  • Ship — roll the variant out to 100 %, then remove the flag and the control code.
  • Iterate — the direction is promising or the learning is clear; propose the next test.
  • Roll back — keep control and remove the variant code.

Whatever the decision, create the task or PR that removes the flag. Dead flags are permanent complexity.

Output

Add a ## Readout section to experiment.md (or write readout.md): validity checks, a results table for the primary metric and guardrails with the commands that produced it, the interpretation, the decision, and what was learned. Open it with a five-line summary for stakeholders: decision, primary result with its interval, guardrails, confidence, next step.

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.