/oss:replication-package [path to replication folder, plus manuscript path or availability statements when auditing; package path defaults to ./replication]from oss
Scaffolds or audits a social-science replication package with folder structure, README, master.R, codebook, and FAIR compliance checks. Use when setting up, repairing, or auditing a replication package before submission.
Ships in oss. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
The structural conventions here — single entry point, compact vs. build/analyze layouts, the figure/table crosswalk, the paper-consistency check, the pre-release checklist — come from Yusaku Horiuchi's replication-package-guide, whose README explicitly authorizes agent consumption: it is "designed to be read by humans and by coding agents such as Codex or Claude Code before they prepare, audit, or repair a replication package."
This skill modifies rather than copies that guide. The FAIR principles are folded in (Findable, Accessible, Interoperable, Reusable; Wilkinson et al. 2016; GO FAIR) so the scaffolded package is platform-neutral, and platform-specific upload mechanics are dropped: build and audit the local package, generate no upload code. Uploading to Harvard Dataverse, OSF, Zenodo, a journal repository, or an institutional archive belongs to the user and the platform's own tools.
Horiuchi's caveat carries over: "AI is useful for checking, reorganizing, documenting, and catching inconsistencies, but it should not be treated as a substitute for the author's judgment about which files, scripts, data sources, and results are actually part of the replication record." If the user publishes a package built with this skill, cite Horiuchi's guide as the methodological source.
A replication package is ready when a competent reader can download it, open the package root, run one documented command, and regenerate the published results without hidden manual steps. master.R is the entry-point convention; run_replication.R is acceptable where that is already the project's convention. The Pre-Release Checklist below enumerates what "ready" requires.
The FAIR principles are the second standard, applied to every research object the manuscript depends on. FAIR does not mean everything must be openly downloadable. Sensitive or restricted data can be FAIR when metadata, access conditions, identifiers, and reuse terms are explicit. The practical standard is "as open as possible, as restricted as necessary." Core references for the FAIR block: Wilkinson et al. (2016) for the principles, GO FAIR for the F/A/I/R subprinciples, OSF documentation for repository metadata and data archiving, FORCE11 for data citation principles, and TOP/DA-RT for manuscript transparency expectations.
Treat $ARGUMENTS as the path to the replication folder; with no argument, use ./replication. Note whether it exists and is empty. If the user also supplied a manuscript, a repository URL, or availability statements, keep them for the FAIR block.
In audit mode, overwrite an existing file only with the user's confirmation; offer to create only the scaffolding files that do not yet exist.
The one decision is whether data construction is complex (restricted sources, scraping, API pulls, or expensive upstream work that produces analysis-ready data). If yes, use build/analyze; otherwise use compact. Ask only when the context does not settle it, and when in doubt choose compact: build/analyze is justified only when the build stage creates real complexity for users.
Compact structure (default):
<root>/
|-- README.md
|-- master.R
|-- LICENSE
|-- .gitignore
|-- data/
|-- code/
|-- docs/
| |-- crosswalk.md
| `-- codebook.md
`-- outputs/
|-- figures/
|-- tables/
`-- logs/
Build/analyze structure:
<root>/
|-- README.md
|-- master.R
|-- LICENSE
|-- .gitignore
|-- build/
| |-- data/
| |-- scripts/
| `-- output/
`-- analyze/
|-- data/
|-- scripts/
|-- figures/
|-- tables/
|-- docs/
| |-- crosswalk.md
| `-- codebook.md
`-- logs/
Leave data/, code/, scripts/, figures/, tables/, and logs/ empty — the user fills them with project content.
Use the templates in the Templates section below. Fill in placeholder fields (<paper title>, <authors>, etc.) with values the user provides; if a placeholder cannot be resolved from context, leave it as written and flag it in the final report so the user knows what to edit.
The templates are written for the compact layout. When scaffolding build/analyze, adapt the paths as you write them: code/ → build/scripts/ and analyze/scripts/, outputs/ → analyze/, docs/ → analyze/docs/ — in the README's file descriptions and in every source() line of master.R.
Then report the tree created, the placeholder fields the user must fill in, and the next three actions (typically: fill in README placeholders, drop data into data/, add scripts under code/ or build/scripts/ and analyze/scripts/).
One audit, two blocks. The package block grades the local package against the Pre-Release Checklist and the Paper Consistency Check. The FAIR block grades the manuscript and every archived research object against Findable, Accessible, Interoperable, and Reusable. Run both when a manuscript is available; run the package block alone when only the directory was supplied.
Read everything in the target directory. Grade it against the Pre-Release Checklist and, when manuscript source or a final PDF is available, the Paper Consistency Check below. Report each item as present, partial, or missing, with the file or path that supports the verdict.
Grading a package by reading it cannot establish whether it reproduces. scripts/verify_package.py answers the part reading cannot.
Static tier, safe to run unasked. python3 scripts/verify_package.py --root <dir> reads files only. It reports whether a seed is set, whether session or environment information is recorded, whether a dependency lockfile exists, whether any absolute path will fail on another machine, whether anything credential-shaped is committed, and a sha256 manifest of the data directory. Fold each result into the Pre-Release Checklist rather than restating it separately.
Execution tier, only on an explicit choice to run. --run copies the package to a temporary directory, executes its master script there, and compares what appeared against the figure-table crosswalk. That executes the package author's code on this machine, and a request for an audit is not authorization to do so. Ask with AskUserQuestion (headed Clean-room run, naming the master script), offering Run it now (state the timeout) and Skip, record NOT CHECKED, and say up front that a long or failing run is normal for a package that was never made portable. If the user declines, no master script exists, or the interpreter is missing, record the clean-room run as NOT CHECKED in the report.
Report the script's verdict rather than re-deriving it. A failure on crosswalk means the package claims outputs its own code did not produce, which is a blocking issue.
Before judging FAIR compliance, list every research object the manuscript depends on, whether or not it is inside the package:
If an object is not shareable, it still needs metadata and a clear access or non-availability explanation.
For each research object, verify:
Prompt the author if missing: repository URL, DOI/identifier, title, contributors, version/date, and how each object maps to manuscript claims.
Verify:
Prompt the author if missing: access restrictions, embargo date, contact process, data-use agreement, privacy constraints, and post-acceptance public URL.
Verify that others can read and combine the materials:
docs/codebook.md, checked in the package block, is where this lives.renv.lock, requirements.txt, environment.yml, Dockerfile, session info, package versions, or OS notes. session_info.log from master.R satisfies the session-info half but not the lockfile.Prompt the author if missing: codebook, README, variable dictionary, software environment, data provenance, or mapping from files to outputs.
Verify:
LICENSE is filled in; this check asks whether one license covers objects that need several.Prompt the author if missing: license choices, consent/sharing compatibility, restrictions on reuse, provenance notes, and replication instructions.
Check these sections, or draft them if absent:
Statements must be specific enough for a reader to find and reuse objects. "Available upon request" is weak unless privacy, legal, or contractual constraints justify it and the access process is concrete.
Produce a Replication Package Audit. Drop the FAIR sections when no manuscript or repository information was supplied, and say so in the scope line.
# Replication Package Audit
Scope:
Package path:
Manuscript files:
Repository/package links checked:
Summary: <N blocking, N recommended, N minor, N author prompts>
## Package Checklist
| Item | PASS/FAIL/PARTIAL/NA | Evidence | Notes |
## Paper Consistency
| Figure/table | In crosswalk | Script | Output on disk | Notes |
## Research Object Inventory
| Object | Location in manuscript | Repository/identifier | Share status | Notes |
## FAIR Checklist
| Object | Findable | Accessible | Interoperable | Reusable | Main gap |
## Blocking Issues
| Location | Dimension | Issue | Fix |
## Recommended Fixes
| Location | Dimension | Issue | Fix |
## Author Prompts
1. <question the author must answer before the statement can be finalized>
## Draft Availability Statements
### Data
### Code
### Materials
### Preregistration
## Missing Scaffolding
<files this skill can create on request; never overwrite existing files>
Severity:
README.md# <paper title>
**Authors.** <author 1>, <author 2>, ...
**Journal.** <journal name>, <year>. DOI: <article DOI>
**Data DOI.** <data archive DOI>
**Verified.** <YYYY-MM-DD>
## What this package reproduces
<one paragraph: which figures, tables, and in-text numbers this package generates from which data.>
## How to run
From a fresh R session in the package root:
```r
source("master.R")
```
`master.R` runs the full public path end-to-end and writes session information and per-script logs to `outputs/logs/` (compact) or `analyze/logs/` (build/analyze).
## Software requirements
- R <version>
- Required packages: <list>
- Operating system tested on: <list>
- Approximate runtime on the listed environment: <time>
A `session_info.log` is written by `master.R` on a successful run and records the exact package versions used.
## Folder structure
<paste the actual tree from `tree -L 2` or list manually>
## Data sources
- **<dataset 1>** — <source, license, public or restricted, citation>.
- **<dataset 2>** — ...
If any input is restricted, document how a reader with access can obtain it and which files in this package depend on it.
## File descriptions
- `master.R` — public entry point.
- `code/01_*.R` — <what it does>.
- `code/02_*.R` — <what it does>.
- `data/<file>.csv` — <one-line description; see `docs/codebook.md` for variables>.
- `docs/crosswalk.md` — paper-order map from figures/tables to scripts and outputs.
- `outputs/figures/`, `outputs/tables/`, `outputs/logs/` — generated by `master.R`.
## Figure and table crosswalk
See `docs/crosswalk.md`. Every figure and table in the paper and its appendix appears there with the script that generates it and the output path.
## Citation
<paper citation in journal style.>
## License
See `LICENSE`. <one sentence: data license, code license, any restrictions>.
## Attribution
This package follows the structural conventions in Yusaku Horiuchi's [replication-package-guide](https://github.com/yhoriuchi/replication-package-guide) and the FAIR principles (Wilkinson et al. 2016, doi:10.1038/sdata.2016.18).
master.R# master.R — public entry point for <paper title> replication package.
# Running this script regenerates every figure, table, and reported number
# from the public input data.
# Reproducibility
set.seed(20260101) # change to the seed used in the paper
# Capture the start time and prepare the log directory
.start_time <- Sys.time()
log_dir <- "outputs/logs" # change to "analyze/logs" if build/analyze
if (!dir.exists(log_dir)) dir.create(log_dir, recursive = TRUE)
# Run scripts in order. Add or remove as the project grows.
source("code/01_load.R") # load and validate inputs
source("code/02_clean.R") # clean and recode
source("code/03_analysis.R") # estimate models
source("code/04_figures.R") # produce figures
source("code/05_tables.R") # produce tables
# Session info
writeLines(
capture.output(sessionInfo()),
file.path(log_dir, "session_info.log")
)
# Runtime
.end_time <- Sys.time()
cat(
sprintf("Replication complete. Elapsed: %s.\n",
format(round(.end_time - .start_time, 2)))
)
docs/crosswalk.md# Figure and Table Crosswalk
In paper order. Every figure and table in the article and supplementary information must appear in this table. Mark conceptual or hand-made items explicitly.
| # | Type | Label / Caption (short) | Script | Output path |
|---|------|-------------------------|--------|-------------|
| 1 | Figure | <short caption> | `code/04_figures.R` | `outputs/figures/fig01.pdf` |
| 2 | Table | <short caption> | `code/05_tables.R` | `outputs/tables/tab01.tex` |
| 3 | Figure (conceptual) | <short caption> | — | `docs/concept_fig.pdf` (hand-drawn; not generated) |
docs/codebook.md# Codebook
One entry per public analysis-ready dataset. List every variable.
## `data/<dataset>.csv`
Source: <where this dataset comes from; raw input, derived, or restricted>.
N rows: <count>.
N cols: <count>.
| Variable | Type | Values / range | Description |
|----------|------|----------------|-------------|
| `id` | integer | 1–N | Respondent identifier. Anonymized. |
| `treatment` | factor | control / T1 / T2 | Experimental assignment. |
| `outcome` | numeric | 0–100 | Primary outcome (see paper §2.1). |
LICENSE# LICENSE — fill this in before publishing.
#
# Common choices for replication materials:
# - Code: MIT, BSD-3-Clause, or Apache-2.0.
# - Data: CC0 (waiver) for fully public data, or CC BY 4.0 for attribution-required.
# - Whole package: CC BY 4.0 is a common single-license choice when code and data ship together.
#
# Restricted-data files cannot be licensed here. Document them in the README.
#
# Replace this file with the chosen license text. Update the README's License section to match.
.gitignore# OS and editors
.DS_Store
Thumbs.db
.vscode/
.idea/
# R
.Rhistory
.RData
.Ruserdata
.Rproj.user/
# Python
__pycache__/
.venv/
# Secrets and local config
.env
.env.*
*.pem
*.key
# Large generated artifacts; uncomment if outputs should not be tracked
# outputs/figures/*.pdf
# outputs/tables/*.tex
Run this after scaffolding is done and the user has filled in placeholders, dropped in data, and written scripts.
README.md, current and matching the files on disk.docs/codebook.md has a data dictionary for every public analysis-ready dataset.docs/crosswalk.md is complete and in paper order.master.R produces session_info.log and per-script logs recording inputs, sample sizes, and warnings.LICENSE is filled in.The repository copy is the truth. A local run is necessary but not sufficient.
When the manuscript source or final PDF is available, verify:
docs/crosswalk.md.If paper source files cannot be included publicly, document whether they were used during package preparation.
citation-check — when repository objects need formal citation or DOI checks.figure-table-audit — to verify figures and tables trace to repository files or scripts.methods-reporting — for DA-RT, TOP, JARS, and CONSORT integration, so the methods section reports what the package documents.text-classification, topic-modeling, vlm-ocr — when FAIRness depends on prompts, models, corpora, or other derived computational objects.research-repo — for the surrounding project repository rather than the publication archive.paper-review-lite or presubmit — for full pre-submission review after the audit's fixes are made.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub scdenney/open-science-skills --plugin oss46 skills in this plugin
/advisorConsults Fable as an independent, read-only reviewer at an effort the caller matches to the question. The calling session (usually Opus, or Haiku) holds the task and escalates one decision point. Use before committing to an interpretation or a substantial piece of writing or analysis, when stuck or not converging, when changing approach, or as a final check on a finished task. Fallback for when the native advisor tool is unavailable. Not for a session already running Fable./beamerHouse rules and craft for LaTeX Beamer slide decks (lectures, seminars, talks), drawn from the author's own Overleaf edits and published slide-design guidance. Covers storyboarding, frame titles, slide prose, word and frame budgets, layout without overfull boxes, XeLaTeX fonts and Korean (xeCJK), color, figures and screenshots, Overleaf source hygiene, speaker notes, and a build-and-QA loop with a contact sheet. Use when writing, editing, reviewing, or building a Beamer deck, theme, or storyboard. A course skill supplies course facts and the frame skeleton; this skill supplies the craft. Not for HTML or PowerPoint decks, posters, or papers./citation-checkAudits a manuscript's citations for fabricated or nonexistent sources, DOIs that resolve to a different work, mismatches between in-text citations and the reference list, APA 7 or journal style, and whether each source supports the claim it is attached to. Checks entries against Crossref, OpenAlex, and DataCite and labels anything it could not verify NOT CHECKED. Use to check citations, references, a .bib file, or DOIs, or when a source may be AI-invented. Figures and tables go to figure-table-audit./conjoint-cleaningTurns a raw Qualtrics conjoint export into an analysis-ready long-format dataset, covering export settings, identifying the implementation, package or manual wide-to-long reshaping, choice-profile alignment, ratings, reference categories, pilot exclusion, and subgroup merges. Use when the user has a conjoint CSV to clean, reshape, or debug, cannot align choices with profiles, or asks what the data must look like before AMCE estimation. Design goes to conjoint-design, validity review to conjoint-diagnostics./conjoint-designDesigns conjoint and factorial-vignette experiments, covering attribute architecture and randomization restrictions, effective-N power, treatment realism, the choice among AMCE, marginal-mean, and AMIE estimands, forced-choice versus rating designs, and PAP tiers. Use when the user is planning a conjoint, drafting or critiquing an attribute table, asking how many respondents or tasks are needed, whether to report AMCEs or marginal means, or how to test interactions. Reviewing an existing design goes to conjoint-diagnostics, cleaning the export to conjoint-cleaning./conjoint-diagnosticsReviews an existing conjoint study for threats to inference and returns severity-ranked findings on design integrity, estimation, measurement error, external validity, and interpretation, including the guardrail against reading an AMCE as majority preference. Use when the user asks whether a conjoint design or analysis holds up, has referee comments on a conjoint, or wants a second opinion on estimation or interpretation. New designs go to conjoint-design, reshaping to conjoint-cleaning.Other plugins' skills for the same job