aer-preregistration

aer-preregistration is a skill for Claude Code, Codex from brycewang-stanford/AER-Skills. It costs 71 tokens per session (1,841 once invoked), scanned A, original, MIT.

A research planning skill for randomized studies and other projects that collect new data. It creates a pre-analysis plan, which records how results will be analyzed before data collection begins, and registers the study with the AEA RCT Registry when required.

In plain words
What is it for?
Use it before a field, laboratory, or survey experiment to calculate sample size, document the analysis, and complete study registration.
Why use it?
It reduces concerns that researchers changed their analysis after seeing the results and helps justify the planned sample size.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: positional $N argument.

Part of the aer-skills plugin — 15 skills shipped together

Good fit Use it before a field, laboratory, or survey experiment to calculate sample size, document the analysis, and complete study registration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/brycewang-stanford/aer-skills/aer-preregistration
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add brycewang-stanford/AER-Skills --skill aer-preregistration
Clone the repo
git clone --depth 1 https://github.com/brycewang-stanford/AER-Skills

Made for: Claude Code, Codex.

Or install aer-skills, the plugin that ships this one along with the rest of its 15 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for aer-preregistration

README.md
[![agentmods](https://agentmods.dev/badge/skills/brycewang-stanford/aer-skills/aer-preregistration/github.svg)](https://agentmods.dev/skills/brycewang-stanford/aer-skills/aer-preregistration)
Your own site
<a href="https://agentmods.dev/skills/brycewang-stanford/aer-skills/aer-preregistration"><img src="https://agentmods.dev/badge/skills/brycewang-stanford/aer-skills/aer-preregistration/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for aer-preregistration

Your own site · 80×15
<a href="https://agentmods.dev/skills/brycewang-stanford/aer-skills/aer-preregistration"><img src="https://agentmods.dev/badge/skills/brycewang-stanford/aer-skills/aer-preregistration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,841 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Agent Snooping · line 130
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00071 $0.01841
Opus 5.5 $0.00028 $0.00736
Sonnet 5.5 $0.00014 $0.00368
Haiku 4.5 $0.00007 $0.00184

Measured 3mo ago against content hash 3d2f03f0540d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

aer-preregistration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/aer-preregistration/SKILL.md · 155 lines

How it starts

The opening of the file, as written. The whole thing — 155 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

Read the full file on GitHub · 155 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 155 lines · 71 tokens per session scan A 3d2f03f0540d

Subscribe to this mod's changes

aer-preregistration is a skill published in the GitHub repository brycewang-stanford/AER-Skills (63 stars, last pushed today), licensed MIT. It adds 71 tokens to every session and 1,841 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

aer-preregistration compared with skills from other repositories

aer-preregistration next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
aer-preregistrationbrycewang-stanford/AER-SkillsSkill63todayMITA71Claude Code, Codex
promote-memorypedrohcgs/claude-code-my-workflowSkill1.8k27d agoMITA0Claude Code
slide-excellencepedrohcgs/claude-code-my-workflowSkill1.8k27d agoMITA94Claude Code
compress-sessionpedrohcgs/claude-code-my-workflowSkill1.8k27d agoMITA123Claude Code
voice-profilepedrohcgs/claude-code-my-workflowSkill1.8k27d agoMITA128Claude Code
academic-writingjamditis/claude-skills-journalismSkill4723d agoMITA38Claude Code, Codex
context-statuspedrohcgs/claude-code-my-workflowSkill1.8k27d agoMITA37Claude Code