pipeline
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack โ pandas + numpy + scipy +โฆ
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
Claude Code
$ npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill reproducible-pipelines --agent claude-code
Codex
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill reproducible-pipelines -a codex -y
Cursor
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill reproducible-pipelines -a cursor -y
Gemini CLI
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill reproducible-pipelines -a gemini-cli -y
GitHub Copilot
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill reproducible-pipelines -a github-copilot -y
OpenCode
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill reproducible-pipelines -a opencode -y
Windsurf
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill reproducible-pipelines -a windsurf -y
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
## ๐ฅ ๅ่ ยท StatsPAI โ Stata ไธ R ็ Python ๅนณๆฟ๏ผไธบ AI Agent ่็ ๐ Stata / R ๅนณๆฟ๏ผreghdfeใcsdidใrdrobustใsynthใfixestใdid ็ญๅธธ็จๅฝไปคๅจ Python ไธญไธ็ซๅผๆฟไปฃ๏ผไธไธช import statspai as sp ๆๅฎ DID / RD / IV / SCM / DML / matching ๐ค ้ขๅ Agent ่ฎพ่ฎก๏ผ็ปๆๅ็ปๆๅฏน่ฑก + ๅ ็ฝฎ MCP Server๏ผClaude / Codex
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack โ pandas + numpy + scipy +โฆ
Use when the user asks to run a full empirical / causal analysis in Python โ by default in the style of an applied economicsโฆ
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack โ pandas + numpy + scipy +โฆ
Classical end-to-end empirical analysis workflow in the traditional Stata ecosystem โ native Stata + reghdfe + ivreg2 + csdid +โฆ
Classical end-to-end empirical analysis workflow in the modern tidyverse + econometrics R ecosystem โ dplyr + tidyr + haven +โฆ
Systematic writing framework for philosophy and interdisciplinary academic papers from optimized outline to submission-readyโฆ
Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work. Also coversโฆ
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, fillingโฆ