replicate-paper
Skill by brycewang-stanford
Runs a six-phase autonomous replication of a biomedical or epidemiology paper on UK Biobank or similar cohort data. Built for researchers who need Python and R scripts and a validation report.
Install replicate-paper
Built from the published package, never by AI.
git clone --depth 1 https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills /tmp/Auto-Empirical-Research-Skills && mkdir -p ~/.claude/skills && cp -r /tmp/Auto-Empirical-Research-Skills/skills/28-maxwell2732-paper-replicate-agent-demo/dot-claude/skills/replicate-paper ~/.claude/skills/replicate-paperRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills /tmp/Auto-Empirical-Research-Skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Auto-Empirical-Research-Skills/skills/28-maxwell2732-paper-replicate-agent-demo/dot-claude/skills/replicate-paper ~/.gemini/antigravity-cli/skills/replicate-paperAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Replicate-paper runs a six-phase replication of a biomedical or epidemiology paper against UK Biobank or similar cohort data. The phases cover intake of the paper's tables and figures, a data audit, mapping the paper's methods to the dataset, translating the analysis into Python and R scripts, validating both against the published targets, and writing a report. Each phase saves a markdown file in the project.
The skill compares results to targets using stated tolerances: exact for integers, plus or minus 0.01 for point estimates, and plus or minus 0.05 for standard errors. It ends with a verdict of replicated, partial or failed, and it can auto-commit when the quality score is at least 80. It is aimed at researchers who want an end-to-end replication of a paper on cohort data.
Written from the project's SKILL.md and checked against it.
What it can do
- IntakeReads the paper and records every table and figure with its target values and sample sizes.
- Data auditCompares the provided dataset to the paper's sample and applies inclusion and exclusion criteria.
- Code analysisMaps the paper's variables and methods to the variables in the provided dataset.
- TranslationProduces Python replicate.py and R replicate.R scripts with fixed random seeds.
- ValidationRuns both scripts and compares results to the paper using stated tolerance thresholds.
- ReportWrites a replication report with a verdict and a reproducibility section.
What you need
- Python with pandas, statsmodels and lifelines
- R with Rscript, here, tidyverse, survival and fixest
- Read, Write, Edit, Bash, Glob and Grep tool access
- A paper PDF and a cohort data file in csv or dta format
Try asking
- /replicate-paper papers/AuthorYear.pdf data/ukb_extract.csv
- Replicate this paper end-to-end using my cohort extract.
- Build Python and R scripts that reproduce the paper's main estimates.
Good to know
- Uses the paper's Methods text, not the original code, as ground truth.
- Stops for review if the sample size differs from the paper by more than 5%.
- Relies on convention files (python-code-conventions.md, r-code-conventions.md, replication-protocol.md) that are not included in the source.
- Auto-commit only applies when the quality score is 80 or higher.
Security check
B- Allowed to use Write, Edit, Bash without limitsIn
SKILL.md
Checked automatically: skills/28-maxwell2732-paper-replicate-agent-demo/dot-claude/skills/replicate-paper/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWriteEditBashGlobGrep
Alternatives to replicate-paper
All alternatives →Searches arXiv for scientific papers and preprints, extracts their metadata and abstracts, and downloads PDF or HTML full text. Suited to users who need research papers, literature or specific arXiv IDs.
Downloads AlphaFold predicted structures and PAE matrices for a UniProt ID, then reports pLDDT confidence, domain boundaries and disorder. Built for users who already have a UniProt accession.
Queries the QuickGO and Evidence & Conclusion Ontology REST API to map genes to Gene Ontology terms. Built for researchers doing functional annotation and GO hierarchy exploration.
Connects an AI assistant to Peloton to browse fitness classes, check live and archived schedules, and manage workouts. Built for Peloton users who want to plan rides from their assistant.
Queries NCBI Gene through the E-utilities and Datasets API. It helps researchers search genes by symbol or ID, retrieve gene details, and run batch lookups for annotation and functional analysis.
Prepares and launches nf-core/pacsomatic runs for matched tumor-normal PacBio HiFi data starting from unaligned BAM files. It generates samplesheets and pinned launch artifacts, then runs locally or submits to a scheduler.
Compare with literature-search-arxiv, alphafold-database-fetch-and-analyze or quickgo-database
replicate-paper: common questions
What data does replicate-paper need?
The source says it works with UK Biobank or similar cohort data, passed as a csv or dta file alongside the paper PDF.
What files does it produce?
It produces Python and R replication scripts, results files in each language's results folder, a validation report and a final replication report.
How does it decide whether a result matches?
It compares results to the paper's targets with set tolerances, such as plus or minus 0.01 for point estimates and plus or minus 0.05 for standard errors.
How do I install replicate-paper?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is replicate-paper free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is replicate-paper safe to use?
It scores 73 of 100. Grades: maintenance A, licence F, quality A. Security check: grade B (allowed to use write, edit, bash without limits). Review the code before you install. How grades work.
What are alternatives to replicate-paper?
Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.
