pipeline
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy + statsmodels + linearmodels + pyfixest +…
This skill covers reproducible research pipelines and replication packages. Use when the user is setting up a research project directory structure, configuring workflow managers (Make, Snakemake, DVC), managing computational environments, preparing replication packages for
$ npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill reproducible-pipelines --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/reproducible-pipelinesContext preview
The summary Claude sees to decide when to auto-load this skill.
This skill covers reproducible research pipelines and replication packages. Use when the user is setting up a research project directory structure, configuring workflow managers (Make, Snakemake, DVC), managing computational environments, preparing replication packages for
name: reproducible-pipelines argument-hint: "<pipeline tool or reproducibility concern>" description: >- This skill covers reproducible research pipelines and replication packages. Use when the user is setting up a research project directory structure, configuring workflow managers (Make, Snakemake, DVC), managing computational environments, preparing replication packages for journal submission, or debugging reproducibility failures. Triggers on "reproducible", "replication package", "Makefile", "Snakemake", "DVC", "pipeline", "workflow manager", "data versioning", "conda environment", "Docker", "seed management", "AEA data editor", "replication", "project structure", or "submission checklist".
Reference for building reproducible research pipelines: from project directory structure to automated workflows to journal-ready replication packages. Every computational result should be regenerable from raw data by running a single command.
Use when the user is:
Skip when:
Use a standardized layout from the start. This is the structure expected by most replication reviewers:
project/
├── README.md # Master documentation (how to replicate)
├── Makefile # Or Snakefile — single entry point
├── environment.yml # Conda environment (or requirements.txt)
├── data/
│ ├── raw/ # Original, immutable data files
│ │ └── README.md # Data sources, access instructions, citations
│ ├── intermediate/ # Cleaned/transformed data (gitignored, regenerable)
│ └── final/ # Analysis-ready datasets (gitignored, regenerable)
├── code/
│ ├── 01_clean.py # Data cleaning
│ ├── 02_build.py # Variable construction, merges
│ ├── 03_estimate.py # Main estimation
│ ├── 04_robustness.py # Robustness checks
│ └── 05_tables_figures.py # Output generation
├── output/
│ ├── tables/ # LaTeX/CSV tables (gitignored, regenerable)
│ └── figures/ # PDF/PNG figures (gitignored, regenerable)
├── docs/
│ ├── brainstorms/ # Research brainstorming docs
│ ├── plans/ # Implementation plans
│ └── codebook.md # Variable definitions
├── tests/ # Validation tests
│ ├── test_clean.py
│ └── test_estimates.py
└── paper/
└── manuscript.tex # The paper itself**Key principles:**
# Data (too large for git; document in README how to obtain) data/raw/*.csv data/raw/*.dta data/raw/*.parquet data/intermediate/ data/final/ # Generated output (reproducible from code) output/tables/ output/figures/ # Environment .conda/ __pycache__/ *.pyc .ipynb_checkpoints/ # Large files managed by DVC *.dvc # OS .DS_Store Thumbs.db # IDE .vscode/ .idea/
Make is universally available, well-understood, and sufficient for most research pipelines. Use it unless you have a specific reason for something else.
# Makefile — Top-level research pipeline .PHONY: all clean tables figures # Default target: reproduce everything all: output/tables/main_results.tex output/figures/event_study.pdf # === DATA CLEANING === data/intermediate/clean.parquet: data/raw/survey_2020.csv code/01_clean.py python code/01_clean.py # === VARIABLE CONSTRUCTION === data/final/analysis.parquet: data/intermediate/clean.parquet code/02_build.py python code/02_build.py # === ESTIMATION === output/estimates/main.pkl: data/final/analysis.parquet code/03_estimate.py python code/03_estimate.py output/estimates/robustness.pkl: data/final/analysis.parquet code/04_robustness.py python code/04_robustness.py # === TABLES AND FIGURES === output/tables/main_results.tex: output/estimates/main.pkl output/estimates/robustness.pkl code/05_tables_figures.py python code/05_tables_figures.py --tables output/figures/event_study.pdf: output/estimates/main.pkl code/05_tables_figures.py python code/05_tables_figures.py --figures # === UTILITIES === clean: rm -rf data/intermediate/ data/final/ output/ tables: output/tables/main_results.tex figures: output/figures/event_study.pdf
**Make best practices:**
Use Snakemake when the pipeline has many steps, parameter sweeps, or needs
📌 文档结构(2026-07-22 起): 本文件是中文默认入口 —— banner + badges + 信任面 + 9 阶段流水线速览 + 76 行合集总表。 每个合集的完整描述、按用途分组、精确数字、验证方法在 docs/CONTENT_ZH.md(扩展正文,总表行内的 → 直接跳转到对应锚点)。 English version: README-en.md · 中文扩展正文:docs/CONTENT_ZH.md · README-zh-CN.md 已弃用(重定向占位) 🌐 语言: English |
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy + statsmodels + linearmodels + pyfixest +…
Use when the user asks to run a full empirical / causal analysis in Python — by default in the style of an applied economics paper (AER / QJE / JPE / ReStud /…
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy + statsmodels + linearmodels + pyfixest +…
Classical end-to-end empirical analysis workflow in the traditional Stata ecosystem — native Stata + reghdfe + ivreg2 + csdid + did_imputation +…
Classical end-to-end empirical analysis workflow in the modern tidyverse + econometrics R ecosystem — dplyr + tidyr + haven + fixest + sandwich + lmtest +…
Systematic writing framework for philosophy and interdisciplinary academic papers from optimized outline to submission-ready manuscript. Use when users want…