Aer Preregistration logo

Aer Preregistration

Community
brycewang-stanford
aer-preregistration

Use when the project collects primary data or runs a field, lab, or survey experiment, before the intervention begins — write the pre-analysis plan, size the sample from a power calculation, and register with the AEA RCT Registry. Apply after the design is chosen in aer-identification and before any outcome data are seen.

Overview

Publisherbrycewang-stanford
RepositoryAER-Skills
Skill nameaer-preregistration
Stars
62
Forks
11
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by brycewang-stanford on GitHub. Read the source before you install it.

Installation

Install the Aer Preregistration AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/brycewang-stanford/AER-Skills/tree/main/skills/aer-preregistration
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/brycewang-stanford/AER-Skills.git /tmp/AER-Skills
mkdir -p .claude/skills
cp -r /tmp/AER-Skills/skills/aer-preregistration .claude/skills/aer-preregistration
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Aer Preregistration in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Aer Preregistration on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Aer Preregistration is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

AER Pre-Registration

Overview

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.

When to Use

  • The paper runs a randomized controlled trial (field, lab, or survey experiment)
  • The project collects primary data whose analysis should be pre-committed
  • A referee or editor asks for the trial registration number or the PAP
  • Reviewers suspect the reported specification was chosen after seeing outcomes
  • You must justify the sample size, or explain why an effect was "not detected"

Register-or-Not Decision

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-Analysis Plan Contents

Pre-specify, in order, and timestamp before unblinding:

  1. 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.

  2. Primary outcomes — a short list (ideally 1-3). Everything else is secondary or exploratory and labeled as such.

  3. Estimating equation — the exact regression, fixed effects, covariates, and the level at which standard errors cluster.

  4. Sample and inclusion rules — who is in the analysis and how attrition is handled (pre-commit to bounds; see examples/lee-bounds-demo/).

  5. Multiple-testing correction — the family and the method (e.g. Romano-Wolf, romano_wolf_2005), pre-specified, not chosen after the p-values land.

  6. Heterogeneity — the subgroups you will test, fixed in advance; all others are exploratory.

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

Power and the Minimum Detectable Effect

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))
  • Target 80% power at a 5% two-sided level: $z_{0.80} = 0.84$ and $z_{0.975} = 1.96$, so z_power + z_alpha = 2.80.
  • State the MDE in the units the audience cares about, and benchmark it against the smallest effect that would be economically interesting. If the MDE exceeds that, the study is underpowered — do not run it as designed.
  • Correct the variance for clustered assignment (design effect $1 + (m-1)\rho$ — e.g. $m = 30$ per cluster and $\rho = 0.05$ inflates the needed sample by a factor of $2.45$), for a baseline covariate ($R^2$ gain), and for expected attrition. A power number that ignores the ICC is fiction.
  • Underpowered designs do not just miss: when they reach significance they exaggerate the effect (Type-M). See 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.

Reporting Against the Plan

  • Report the pre-specified primary result first, exactly as written, even if it is null. A pre-registered null is a publishable finding, not a failure.
  • Mark every deviation from the PAP explicitly, with the reason, in a table.
  • Separate confirmatory from exploratory results in the manuscript; never promote an exploratory subgroup to the headline.
  • File the disclosure and IRB/ethics approvals; AEA journals require both.

Red Flags for Referees

  • No registration number on an RCT, or a timestamp after data collection began
  • A power calculation that omits clustering, attrition, or the ICC
  • Twenty "primary" outcomes with no multiplicity correction
  • The headline result is an unregistered subgroup interaction
  • "Not statistically significant" reported as "no effect" with no MDE stated
  • Deviations from the PAP that are silent rather than disclosed

Pre-Registration Gate

Do not advance to data collection until all are true:

  • Primary outcomes and the estimating equation are pre-specified in writing
  • The sample size is justified by an MDE with clustering and attrition built in
  • The multiple-testing family and correction are fixed in advance
  • The study is registered (AEA RCT Registry) with a pre-intervention timestamp
  • Exploratory analyses are labeled as such, not disguised as confirmatory

Repository Resources

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 checklist

When working from the repo or plugin bundle, load only the relevant resource:

  • Power/MDE worked simulation with the Type-M winner's-curse check: examples/power-mde-demo/
  • Attrition bounds to pre-commit in the PAP: examples/lee-bounds-demo/
  • Estimator defaults, diagnostics, and BibTeX keys: docs/methods-reference.md
  • Multiple-testing correction methods: skills/aer-robustness/SKILL.md
  • Verified references (mckenzie_2012, duflo_glennerster_kremer_2007): references.bib

Fix the MDE and the primary-outcome list before drafting; both feed the aer-identification estimator choice and the aer-consistency audit.

Handoff

text
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

Anti-Patterns

  • Writing the PAP after the endline data are in hand — the timestamp is the point
  • Pre-registering so many outcomes that "confirmatory" loses all meaning
  • Powering the study for the effect you hope for instead of the smallest one worth detecting
  • Treating a registered null as a failed experiment rather than a clean result
  • Reporting an exploratory subgroup as if it had been pre-specified

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Aer Preregistration AI skill do?

Use when the project collects primary data or runs a field, lab, or survey experiment, before the intervention begins — write the pre-analysis plan, size the sample from a power calculation, and register with the AEA RCT Registry. Apply after the design is chosen in aer-identification and before any outcome data are seen.

Why use Aer Preregistration on TypingMind?

Because you install it once and use it with any model. Aer Preregistration is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Aer Preregistration in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/brycewang-stanford/AER-Skills/tree/main/skills/aer-preregistration. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Aer Preregistration?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Aer Preregistration?

As many as you like. As long as a model supports skills, you can use Aer Preregistration with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Aer Preregistration AI skill free?

Yes. It is published on GitHub by brycewang-stanford under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇