/aer-skills:aer-preregistrationfrom aer-skills
Writes pre-analysis plans, sizes samples via power calculations, and registers RCTs with the AEA RCT Registry before data collection to prevent specification search.
Ships in aer-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
For experimental and prospective-data AER-track work, credibility is bought before the data exist. This skill writes the pre-analysis plan (PAP), sizes the sample from a power calculation, and registers the study. Its job is to make the eventual results un-p-hackable: a referee who sees a public PAP timestamp predating data collection cannot accuse you of specification search.
Registration is not optional at AEA journals for RCTs. If the design is
observational, skip to aer-robustness; there is nothing to pre-register.
Is treatment assigned by the researcher (randomization)?
├── Yes → register with the AEA RCT Registry BEFORE the intervention; write a PAP
├── No, but you collect new primary data → post a PAP for the pre-committed analysis
└── No, secondary/observational data already realized → do NOT pre-register
(a PAP written after the outcomes exist is theater); go to aer-robustness
Pre-specify, in order, and timestamp before unblinding:
Hypotheses — each stated as a signed, testable prediction, not a topic:
H1: the cash transfer raises household consumption at endline by at least 0.15 SD, estimated by OLS of log consumption on treatment with strata fixed effects, clustered at the village level.
Primary outcomes — a short list (ideally 1-3). Everything else is secondary or exploratory and labeled as such.
Estimating equation — the exact regression, fixed effects, covariates, and the level at which standard errors cluster.
Sample and inclusion rules — who is in the analysis and how attrition is
handled (pre-commit to bounds; see examples/lee-bounds-demo/).
Multiple-testing correction — the family and the method (e.g. Romano-Wolf,
romano_wolf_2005), pre-specified, not chosen after the p-values land.
Heterogeneity — the subgroups you will test, fixed in advance; all others are exploratory.
Power — the MDE and the assumptions behind it (below).
Keep the PAP moderate in scope (Olken's advice): pre-specify the primary analysis tightly, leave genuine discovery clearly flagged as exploratory. An over-long PAP that pre-registers forty outcomes protects nothing.
Size the sample from the MDE, not the other way around. For a two-arm trial with
equal allocation, size sigma, share p, total N:
MDE = (z_power + z_{1-alpha/2}) * sigma * sqrt(1 / (p (1 - p) N))
z_power + z_alpha = 2.80.examples/power-mde-demo/ for the
MDE-attains-target-power check and the winner's-curse simulation.Cite mckenzie_2012 (more rounds beat larger cross-sections when outcomes are
noisy) and duflo_glennerster_kremer_2007 (the design toolkit). Keys in
../../references.bib; defaults in
../../docs/methods-reference.md.
Do not advance to data collection until all are true:
Bundled with the installed skill, no repository checkout needed --- read it before the repo resources below:
references/pap-template.md --- PAP outline, power/MDE reporting template, registry field checklistWhen working from the repo or plugin bundle, load only the relevant resource:
examples/power-mde-demo/examples/lee-bounds-demo/docs/methods-reference.mdskills/aer-robustness/SKILL.mdmckenzie_2012, duflo_glennerster_kremer_2007): references.bibFix the MDE and the primary-outcome list before drafting; both feed the
aer-identification estimator choice and the aer-consistency audit.
DESIGN: <RCT | primary-data collection | observational (no PAP)>
PRIMARY OUTCOMES: <list, 1-3>
MDE / POWER: <MDE in outcome units; power; assumptions incl. ICC and attrition>
MULTIPLICITY: <family + correction method>
REGISTRATION: <AEA RCT ID + timestamp, or "n/a">
NEXT SKILL: aer-identification (confirm estimator) then aer-robustness
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub brycewang-stanford/auto-empirical-research-skills --plugin aer-skills15 skills in this plugin
/aer-consistencyUse when auditing a finished or near-finished AER, AER:Insights, or AEJ manuscript for internal consistency: headline numbers across abstract, introduction, results, and tables; sample sizes; log-point and percentage-point conversions; cross-references; and in-text-citation/bibliography matching. Apply after the body and exhibits exist, before aer-referee-sim and aer-submission./aer-identificationUse when selecting, implementing, or stress-testing the causal identification strategy for an empirical economics manuscript — difference-in-differences (including staggered designs), instrumental variables (including weak-IV-robust inference), regression discontinuity, synthetic control, or shift-share / Bartik. Apply before writing the introduction or results./aer-introduction2 plugins ship this exact skill · first indexed Jul 9, 2026
Other plugins' skills for the same job