
This is the checklist you wish you'd had before that analysis you couldn't reproduce six months later. It walks through setting up an isolated worktree (with detection to avoid nesting them), pinning your environment with lockfiles, fixing random seeds globally, and making raw data immutable with checksums. The Step 0 worktree detection is especially thoughtful since it checks for existing isolation before creating more. Use it before running any analysis that matters, especially pre-registered work where reproducibility isn't optional. The emphasis on baseline verification (does the existing analysis still reproduce?) before adding new work is the kind of discipline that separates real science from notebook chaos.
$ npx -y skills add k-dense-ai/science-superpowers --skill setting-up-reproducible-analysis --agent claude-codeInstalls into .claude/skills of the current project.
Ensure the analysis happens in an isolated workspace that another person (or future you) can reproduce exactly: same code, same environment, same seed, same immutable input data.
Core principle: A result you cannot reproduce is not a result. Set up reproducibility before you run anything.
Announce at start: "I'm using the setting-up-reproducible-analysis skill to set up an isolated, reproducible workspace."
Before creating anything, check whether you're already in an isolated workspace.
GIT_DIR=$(cd "$(git rev-parse --git-dir)" 2>/dev/null && pwd -P)
GIT_COMMON=$(cd "$(git rev-parse --git-common-dir)" 2>/dev/null && pwd -P)
BRANCH=$(git branch --show-current)
Submodule guard: GIT_DIR != GIT_COMMON is also true in submodules. Verify you're not in one:
git rev-parse --show-superproject-working-tree 2>/dev/null
If GIT_DIR != GIT_COMMON (and not a submodule): already in a linked worktree. Skip to Step 2 (Environment). Don't create another.
Sponsors