ReproAI Prep
By Leo Yang Yang and Yiqing Xu.
An author-facing pre-diagnose tool for replication packages. Run it on your own
replication package before you submit, so the downstream reproducibility check passes on
the first try instead of bouncing back through round after round of fixes.
ReproAI Prep is a Claude Code / OpenAI Codex plugin.
A deterministic engine decides what is wrong; the host LLM explains it, drafts the fixes, and —
only when you ask — rehearses a copy of the package the way a certification service will.
Website: reproai.org.
What it does
You point it at a messy replication package (Stata / R / Python). It:
- Scans, statically — file inventory, dependency graph, table↔command mapping, orphan
files, an author rule set, a target-venue profile (AEA, Econometric Society, JASA, World Bank, APSR, AJPS, JOP, …),
and, if you are headed for certification, a certification-target profile (IQSS Certify).
- Advises, by priority — every finding is graded P0–P4 by its downstream
reproducibility cost (P0 = blocks the run; P4 = polish) and tagged defect ("this would
cost the pipeline") vs normalization ("a more standard way to write it"). Each finding
ships a self-contained fix prompt: the problem, why it hurts downstream, the target form,
and the lossless boundary for the fix.
- Fixes, on a copy — the host LLM rewrites a copy of your package under a
semantics-preserving contract (your original is never touched), re-checks, and iterates
until the findings clear. You review the diff.
- Rehearses, on request — runs a copy of the fixed package twice, the way a certification
service will (from the root, no network, a private home, fixed locale and time zone, seeded
generators), and compares the outputs. On a runtime error it does not auto-fix: it
explains the root cause, offers options, and asks you to decide.
- Hands off — a prepared copy with every approved change recorded in
CERTIFICATION-NOTES.txt, and a handoff that names the run order, the libraries, what is
still open, and the next steps for your destination. For IQSS Certify, it then checks that
Certify can start and offers to walk you to your draft dataset's Certify button.
Trust boundary. ReproAI Prep never compares your coefficients to the paper and never issues a
"reproducible / certified" verdict — that is a separate downstream step. The static commands
(check / comply / fix / map) do not execute your code; only the opt-in rehearsal
(debug, prepare with your permission, or reproai rehearse) runs it, and only on a copy.
Commands
| Command | What it does |
|---|
/reproai:prepare | The whole preparation in one pass: check, approved repairs on a copy, rehearsal (with permission), handoff, and for IQSS Certify the way in. |
/reproai:check | One-shot static pre-diagnose → 4 JSON reports (architecture, advisory, venue compliance, risk register), plus a certification-readiness report with --target certify. |
/reproai:comply | Just the target-journal replication-package checklist (AEA, …). |
/reproai:fix | Apply the advisory fixes to a copy under a lossless contract; re-check; iterate. Chain: A12 → N2 → D1 (anchor table comments → unroll loops → export per-table outputs). |
/reproai:debug | Rehearse the (fixed) copy with reproai rehearse: run it twice under certification-like settings, confirm the table/figure outputs appear and agree; ask the author on a runtime error. |
/reproai:map | Advisory overlay of the manuscript's figures/tables on the package's outputs (exhibits with no output, outputs with no exhibit, panel mismatches). LaTeX; never runs code; not part of check. |
/reproai:update | Show the installed knowledge version and how to update the rule set. |
/reproai:contribute | File a pre-filled GitHub issue for a missed rule, a false flag, or a new venue + its rules. You click Submit; reproai never posts. |
What it checks (rule set)
55 author-preventable rules across four families, each with a fix prompt and a per-rule
lossless boundary:
- Structural — explicit data loads, stable includes, no mid-script
cd, intermediate-data
hygiene (data/ + existence guards), explicit multi-script run order, per-table → Table N
anchor comments, per-table/figure output export, per-file documentation.
- Code-style — visible data-load failures, balanced table-output calls, no embedded
foreign code, no cross-script
clear all.
- Environment — user-written commands vendored inside the package (no runtime
ssc install / install.packages, no adopath outside the package), declared
Stata/package versions, modern merge syntax, no removed R packages.
- Venue compliance — README/forms/structure against the target journal's standard.