k-dense-ai avatar

Setting Up Reproducible Analysis

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.

GitHub stars
202
last updated
Jun 1, 2026

Install

$ npx -y skills add k-dense-ai/science-superpowers --skill setting-up-reproducible-analysis --agent claude-code

Installs into .claude/skills of the current project.

Files

Setting Up a Reproducible Analysis

Overview

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."

Step 0: Detect Existing Isolation

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

Details

Repository
github.com/k-dense-ai/science-superpowers
First seen
Jun 11, 2026

More from k-dense-ai/science-superpowers

All 15

Recommended

1juliusbrussee avatarcavemanjuliusbrussee/cavemanUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels618.3Kskills.sh installs
2mattpocock avatargrill-memattpocock/skillsA relentless interview to sharpen a plan or design.1.5Mskills.sh installs
3shadcn avatarimproveshadcn/improveSurvey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on s40Kskills.sh installs
4obra avatarsystematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes326.7Kskills.sh installs
5forrestchang avatarkarpathy-guidelinesforrestchang/andrej-karpathy-skillsBehavioral guidelines to reduce common LLM coding mistakes through explicit assumptions, simplicity, and verifiable success criteria.17.9Kskills.sh installs
6vercel-labs avatarfind-skillsvercel-labs/skillsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express int4.3Mskills.sh installs