preregister
Skill17 starsChanged 3 months agoMITView on GitHub
Drafts a preregistration that meets the two-researchers test — hypotheses with estimand, smallest effect of interest, and decision rule; sample and stopping rule; thresholded exclusions; outcome and index construction; the exact primary model as it will appear in code; multiplicity policy; pre-committed robustness; deviations policy with standard operating procedures; blinding plan for existing data — and refuses to mark it ready until every field is specific. Use before fielding or before touching a fresh sample, or when the user mentions preregistration, a pre-analysis plan, OSF, EGAP, or AsPredicted.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- pedrohcgs/claude-code-my-workflowtheir own version, first seen Nov 8, 2026
- dilulloriccardo-arch/rigor-skillstheir own version, first seen Sep 2, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- pedrohcgs/claude-code-my-workflow★ 1.7ksame name
- dilulloriccardo-arch/rigor-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository38 other files it gives its agents.
- abstract-shotgunSkill
- analyzeSkill
- archiveSkill
- carefulSkill
- coauthor-reviewSkill
- codebookSkill
- cover-letterSkill
- data-acquireSkill
- data-cleanSkill
- design-researchSkill
- draft-sectionSkill
- freezeSkill
- guardSkill
- hypothesis-designSkill
- idea-shotgunSkill
- identification-reviewSkill
- journal-fitSkill
- learnSkill
- lit-mapSkill
- llm-checklistSkill
- mstack-initSkill
- mstack-upgradeSkill
- paper-statusSkill
- pdf-ingestSkill
- power-analysisSkill
- r-and-rSkill
- referee-mockSkill
- research-questionSkill
- results-auditSkill
- retroSkill
- robustnessSkill
- scope-challengeSkill
- submission-packSkill
- survey-buildSkill
- theory-buildSkill
- title-shotgunSkill
- unfreezeSkill
- vizSkill
The file
Files
/mstack:preregister
Stage: design · Voice: preregistration-clerk
Before fielding a survey, before analyzing a sample you have not touched, or whenever confirmatory must be credibly separable from exploratory. Expects /mstack:hypothesis-design, /mstack:identification-review, and /mstack:power-analysis to have run, plus /mstack:survey-build if survey-based. The bar throughout: could two researchers, given only this document and the data, produce the same primary table without talking?
Procedure
- Load
.mstack/hypotheses.md(estimands, SESOIs, decision rules),.mstack/identification-review-*.md(the tests to pre-commit),.mstack/theory.md(rivals),.mstack/power-analysis.md,.mstack/research-question.md,.mstack/lit-map.md;.mstack/survey-design.mdif a survey is involved;paper/sections/theory.texandmethods.texif drafted. - Read
${CLAUDE_PLUGIN_ROOT}/references/preregistration-guide.mdfor the specificity standard and the vague-to-specific examples, and${CLAUDE_PLUGIN_ROOT}/references/robustness-protocols.mdfor what to pre-commit. - Registry and data status. OSF by default (the Secondary Data template when the data already exist); AsPredicted for a simple experiment; EGAP for a field experiment in political science; the AEA registry if an economics audience expects it. Record in the header what has already been seen of the data (nothing; descriptives only; an exploratory split), because a plan that hides prior looks is worse than none.
- Draft
prereg/osf-prereg.mdfrom${CLAUDE_PLUGIN_ROOT}/skills/preregister/assets/prereg-template.md. All nine sections are required:- Hypotheses — each with direction, estimand, SESOI, and the decision rule (support / evidence against a meaningful effect via the equivalence region / inconclusive); one primary, the rest explicitly secondary; the rival-discriminating hypotheses from
hypotheses.mdincluded. - Sample — population, frame, provider or dataset with version, target N justified by
/mstack:power-analysis, stopping rule with no interim looks, expected attrition and its handling. - Exclusions — every rule with a threshold decided before data; from the probe manifest if survey-based; how excluded cases are reported.
- Measures — exact items and stimulus text attached; scoring, reverse-coding, index construction fixed now; the covariate list with each justified as pre-treatment; the exhaustive moderator list.
- Primary analysis — the equation with variable names as they will appear in code, the estimator for the design (a heterogeneity-robust DiD estimator under staggered adoption,
rdrobustfor RD, and so on), sample, standard-error type and cluster level, test and alpha, software with versions. - Secondary analyses — each with its estimand; the multiplicity policy for the family.
- Robustness — the checks committed to in advance, including the sensitivity analysis named in the identification review.
- Deviations policy and SOP — deviations reported alongside the original plan; standard operating procedures for unanticipated problems adopted and linked (Lin & Green 2016).
- Data and code availability — repository, timing, restrictions, and the blinding plan for secondary data (register before the outcome is merged to the treatment; or an exploratory split with the holdout untouched).
- Hypotheses — each with direction, estimand, SESOI, and the decision rule (support / evidence against a meaningful effect via the equivalence region / inconclusive); one primary, the rest explicitly secondary; the rival-discriminating hypotheses from
- Pre-flight. Refuse to mark the plan ready until: every hypothesis has direction, estimand, SESOI, and decision rule; the primary model could be coded from the text alone; index construction and the covariate list are fixed; every exclusion has a threshold; the stopping rule is concrete; more than one hypothesis comes with a multiplicity policy; the power section is imported with its assumptions; for existing data, the data-access statement and the blinding plan are honest.
- Config. Set
design.prereg: truein.mstack/config.yamland stubprereg_urlfor the user to fill after registration. - Hand-off. Tell the user: copy the Markdown into the registry, paste the resulting URL into
.mstack/config.yaml, then field or analyze; keep the registered text inprereg/unchanged and put later edits in a dated addendum.
Outputs
prereg/osf-prereg.md— the preregistration..mstack/config.yaml—design.prereg: true, URL stubbed.- Summary block: registry, data-access status, the items still failing pre-flight if any; register before fielding, paste the URL back.
Anti-patterns
- Vague primary analysis. "We will run a regression" is not a specification; neither is "appropriate controls".
- No stopping rule. "When we have enough" guarantees a garden of forking paths.
- Exclusions without thresholds. "Inattentive respondents" is not a rule; "fails ≥ 2 of 3 attention checks" is.
- Open index construction. The outcome must be computable from the plan.
- Hidden moderation tests. Pre-specify or label exploratory.
- A plan written after peeking, without saying so.
Next
Field / /mstack:data-acquire. If the analysis is meant to be confirmatory, do not run /mstack:analyze before registering.
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.

