Assemble a submission-ready replication package to the AEA Data and Code Availability Standard (DCAS) / openICPSR / Social Science Reproduction Platform expectations — standard replication README, dataset manifest, computational-requirements capture, a Table/Figure → script:line map, and a confidential-data deposit plan. Use when user says "build the replication package", "prepare the openICPSR deposit", "make the AEA data and code package", "DCAS compliance", "assemble the deposit for the journal", or after a paper is accepted and the journal's data editor needs the package. NOT a numeric verifier — it calls /audit-reproducibility to confirm claims reproduce before packaging.
npx skills add https://github.com/pedrohcgs/claude-code-my-workflow --skill replication-package
Produce the deposit an economist hands a journal at acceptance: a directory tree (data/, code/, output/, README) plus a DCAS compliance checklist, built to the AEA Data and Code Availability Standard, openICPSR deposit expectations, and the Social Science Reproduction Platform reproduction protocol. This skill moves the repo from auditing reproducibility to producing the deposit — /audit-reproducibility proves the numbers; this skill packages everything a third party needs to regenerate them from scratch.
Core principle: the package is reproducible by a stranger with the data and the README — no tacit knowledge, no "ask the author" steps. Every table and figure maps to the exact script and line that produces it.
$0 — path to the manuscript (.tex, .qmd, .md, .pdf). Required (the source of the Table/Figure inventory).$1 — outputs directory. Defaults to scripts/R/_outputs/. Recognised alternatives: scripts/stata/_outputs/, scripts/python/_outputs/, _targets/objects/.scripts/R/*.R (+ renv.lock / DESCRIPTION), scripts/stata/*.do, scripts/python/*.py (+ requirements.txt / environment.yml / pyproject.toml). A project may be polyglot — record all detected languages.$1) and the one-command entry point (00_run_all.R, 99_run_all.do, run.py, Makefile). If none exists, flag it — DCAS requires a single master script.quality_reports/passports/<paper-slug>.yaml exists, load it; its claims: entries are the authoritative Table/Figure → source_file:source_line map for Phase 1.Write replication_package/README.md (the AEA template, fields below). Leave a [FILL] marker on any field you cannot infer — never fabricate a data source or license.
filename | description | source (URL/citation) | access (public / DUA / purchase) | license | provided in package? (Y/N).Exhibit | Program | Line | Output file. Read from the passport if present; otherwise grep the manuscript for \input{} / \includegraphics{} and trace each to the producing script. This map is what a reproducer follows; it is the heart of the package.Generate the dependency lockfile(s) and an environment snapshot for each detected language. Prefer /capture-environment if available; otherwise produce them directly:
renv::snapshot() → renv.lock; sessionInfo() → output/sessionInfo.txt.pip freeze → requirements.txt (or export the conda environment.yml); record python --version.creturn list / about → output/stata_version.txt; confirm every .do pins version NN (per stata-code-conventions.md).Dockerfile pinning the base image + language version.Run /audit-reproducibility $0 $1 (passport-aware if the YAML exists).
Create the deposit skeleton (copy/symlink real files where they exist; leave [FILL] placeholders otherwise):
replication_package/
├── README.md # Phase 1
├── data/
│ ├── raw/ # as-obtained (or a pointer + DUA note if restricted)
│ └── analysis/ # constructed analysis files
├── code/ # numbered scripts + master script (00_run_all.* / 99_run_all.do)
└── output/ # tables/, figures/, logs/, sessionInfo.txt, renv.lock / requirements.txt
Then emit the DCAS compliance checklist (replication_package/DCAS_checklist.md): Data Availability Statement present · every dataset has source + access + license · master script present and one-command · computational requirements stated · every Table/Figure mapped to program:line · no absolute/machine-specific paths in code · seeds set for any stochastic step · license file (a code license such as BSD/MIT + a data-usage statement). Mark each PASS / FAIL / [FILL].
Per .claude/rules/confidential-data.md, scan the manifest for restricted, proprietary, or PII-bearing inputs (administrative records, IRS/Census RDC, proprietary panels, linked health data).
replication_package/data/. Replace it with a pointer: the provider, the application/DUA process, the access cost, and the expected wait time.replication_package/data/access-restricted-data.md — the access-restricted-data note a reproducer follows to obtain the same inputs.output/.Write quality_reports/replication_package_[paper-slug].md:
# Replication Package: [Paper Title]
**Date:** [YYYY-MM-DD] **Languages:** [R / Stata / Python] **Deposit target:** [openICPSR / Zenodo / Dataverse]
## DCAS checklist
| Item | Status |
|---|---|
| Data Availability Statement | PASS / FAIL / [FILL] |
| Dataset manifest (source · access · license) | ... |
| One-command master script | ... |
| Computational requirements | ... |
| Table/Figure → program:line map | ... |
| No machine-specific paths · seeds set | ... |
| Reproducibility audit (Phase 3) | PASS / EXPLAINED-only / FAIL (blocker) |
| Confidential-data note (if applicable) | ... |
## Skeleton built at
replication_package/ (tree + README + checklist)
## Open [FILL] items
[one line per unresolved field]
[FILL]) and audit PASS/EXPLAINED-only: exit 0; print the tree location and any [FILL] items for the author to complete..claude/rules/replication-protocol.md — tolerance contract + passport schema (the upstream verification this skill packages)..claude/skills/audit-reproducibility/SKILL.md — the Phase 3 gate; proves claims reproduce..claude/rules/confidential-data.md — restricted-data deposit rules driving Phase 5.templates/passport-template.yaml — source of the Table/Figure → program:line map when present..claude/skills/data-analysis/SKILL.md · .claude/skills/stata-replication/SKILL.md — the R / Stata pipelines whose outputs this skill packages..claude/skills/simulation-study/SKILL.md — seeded Monte Carlo outputs are packaged the same way (seeds + per-rep raw results belong in output/)..claude/skills/preregister/SKILL.md — for RCTs, the PAP belongs in the deposit alongside the analysis./audit-reproducibility (called in Phase 3). This skill packages a *verified* result; it blocks rather than re-derives on FAIL./review-paper question. A reproducible package can still house a flawed design.Use when the user is doing AI/ML work in a scientific domain such as biology, chemistry, physics, astronomy, climate, genomics, materials, medicine, ecology, energy, engineering, math, drug discovery, protein design, weather modeling, theorem proving, single-cell, or PDE solving. Hugging Science is a curated catalog of scientific datasets, models, blog posts, and interactive Spaces. This skill helps discover and use resources via `datasets`, `transformers`, the HF Inference API, `gradio_client`, and methodology citations.
Publish and manage research papers on Hugging Face Hub. Supports creating paper pages, linking papers to models/datasets, claiming authorship, and generating professional markdown-based research articles.
Semantic search, similar content discovery, and structured research using Exa API. Use when you need semantic/embeddings-based search, finding similar content, or searching by category (company, people, research papers, etc.).
Build RAG (Retrieval Augmented Generation) pipelines with web search and LLMs. Tools: Tavily Search, Exa Search, Exa Answer, Claude, GPT-4, Gemini via OpenRouter. Capabilities: research, fact-checking, grounded responses, knowledge retrieval. Use for: AI agents, research assistants, fact-checkers, knowledge bases. Triggers: rag, retrieval augmented generation, grounded ai, search and answer, research agent, fact checking, knowledge retrieval, ai research, search + llm, web grounded, perplexity alternative, ai with sources, citation, research pipeline
| Build RAG (Retrieval Augmented Generation) pipelines with web search and LLMs. research agent, fact checking, knowledge retrieval, ai research, search + llm, web grounded, perplexity alternative, ai with sources, citation, research pipeline
Web search and content extraction with Tavily and Exa via inference.sh CLI. Apps: Tavily Search, Tavily Extract, Exa Search, Exa Answer, Exa Extract. Capabilities: AI-powered search, content extraction, direct answers, research. Use for: research, RAG pipelines, fact-checking, content aggregation, agents. Triggers: web search, tavily, exa, search api, content extraction, research, internet search, ai search, search assistant, web scraping, rag, perplexity alternative
Web search and content extraction with Tavily and Exa via inference.sh CLI. Apps: Tavily Search, Tavily Extract, Exa Search, Exa Answer, Exa Extract. Capabilities: AI-powered search, content extraction, direct answers, research. Use for: research, RAG pipelines, fact-checking, content aggregation, agents. Triggers: web search, tavily, exa, search api, content extraction, research, internet search, ai search, search assistant, web scraping, rag, perplexity alternative
The protocol behind every investigation skill. Use when AI research must proceed without you: search-plan gate, Fact/Inference/Assumption labels, confidence stacking, diffable outputs.
Take pedrohcgs/replication-package from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.