experiment-methodology
Skill2 starsChanged 2 months agoMITView on GitHub
Use when designing experiments, calculating sample sizes, formulating hypotheses, or interpreting A/B test results
In this repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- builder-osSkill
- competitive-intelSkill
- delivery-disciplineSkill
- discovery-methodsSkill
- evidence-ledgerSkill
- financial-modelsSkill
- gate-checksSkill
- growth-frameworksSkill
- ideation-methodsSkill
- okr-frameworksSkill
- opportunity-mappingSkill
- outcome-reviewSkill
- pm-artifactsSkill
- pressure-testingSkill
- problem-framingSkill
- release-opsSkill
- research-methodsSkill
- saas-metrics-referenceSkill
- spec-writingSkill
- strategy-frameworksSkill
- tracking-standardsSkill
- using-builder-osSkill
- ux-architectureSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
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
- Very specific: line 8
Follow ../../references/operating-modes.md for standalone versus lifecycle work.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.
Files
Experiment Methodology
Follow ../../references/operating-modes.md for standalone versus lifecycle work. Design and analysis below are analytical modes, separate from that choice. Use only the steps the question needs: a sample-size request does not require a full preregistration.
Load evidence-ledger when recording claims, the relevant shapes in references/analytics-contract.md when querying, and references/capability-map.md before a new data source. Skill-local resources resolve relative to this SKILL.md:
- Calculations and readout for sample size and significance.
- Design reference for the hypothesis template, metric and randomization specification, runtime rule, worked examples, experiment types and the full common-mistakes list.
- Output contracts when writing the design or the readout.
Capabilities
| Capability | Used for | Floor when absent |
analytics.query | Baseline and results readout | Ask the user for the baseline, tag it, and state that the power calculation inherits its uncertainty |
analytics.events | Whether output and guardrail metrics are emitted | Search the repository for the call sites |
db.query | Outcomes in the application database | Same floor: ask |
repo.read | Flag and assignment code, to verify randomization | Ask how assignment works |
files.read / files.write | The pre-registration and the readout | Always present |
Design mode needs nothing connected. Analysis mode needs numbers, and a user pasting two conversion counts is a legitimate source.
Procedure
A change not yet shipped is design; results in hand are analysis.
Design mode
- Resolve capabilities and establish the baseline: the current output-metric rate, tagged. A guessed baseline gives a confidently wrong sample size.
- Write the hypothesis from the template: the change, the metric, the direction, the effect size worth detecting, and the mechanism.
- Define the metrics triad: one preregistered primary (output) outcome, an input indicator when useful, and the applicable guardrails. Without a guardrail the experiment cannot catch a win that breaks something else.
- Verify the metrics are instrumented. An unemitted output metric makes the experiment unreadable: that is the finding, handed to
tracking-standardsbefore anything ships. - Calculate sample size and runtime from the baseline, the minimum detectable effect and the traffic, then state the calendar date of the first read.
- Pre-register before the experiment starts: what ships it, what kills it, whether a preregistered sequential or blinded extension is permitted, its maximum sample/duration, and who decides.
Analysis mode
- Collect the results for every metric, per variant, each tagged.
- Check validity before significance: full planned duration covering whole weeks, the intended split, no mid-flight instrumentation change.
- Compute significance with the preselected method in
references/proportions.md, on the one pre-registered primary metric. - Read the guardrails. A guardrail breach overrides an output win.
- Apply the pre-registered decision rule, and say plainly when the result is inconclusive. Nonsignificance does not establish zero or a small effect: inspect the interval for both meaningful benefit and harm. Never extend a fixed-horizon test merely because its p-value is close to a threshold.
- Report, including what the experiment cannot conclude.
End with ## EXPERIMENT DESIGN COMPLETE or ## EXPERIMENT ANALYSIS COMPLETE in its output contract.
Common Mistakes
| Mistake | Correction |
| Mixing pp and relative percent | Convert both to the alternative probability before powering |
| Lookup table disagrees with formula | Generate it from scripts/proportions.mjs; regression tests check equality |
| Treating users in one account as independent | Randomize/analyze at the account level or use a clustered method |
| Applying normal tests to zero conversions | Use a suitable exact/rare-event method and state approximation limits |
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
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.

