pipeline
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack โ pandas + numpy + scipy +โฆ
This skill covers applied microeconomic empirical methods and research design. Use when the user is selecting an identification strategy, comparing estimators, running diagnostics, designing a research study, or evaluating an empirical strategy. Triggers on "which method", "what
Claude Code
$ npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill empirical-playbook --agent claude-code
Codex
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill empirical-playbook -a codex -y
Cursor
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill empirical-playbook -a cursor -y
Gemini CLI
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill empirical-playbook -a gemini-cli -y
GitHub Copilot
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill empirical-playbook -a github-copilot -y
OpenCode
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill empirical-playbook -a opencode -y
Windsurf
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill empirical-playbook -a windsurf -y
name: empirical-playbook argument-hint: "<method, research question, or diagnostic>" description: >- This skill covers applied microeconomic empirical methods and research design. Use when the user is selecting an identification strategy, comparing estimators, running diagnostics, designing a research study, or evaluating an empirical strategy. Triggers on "which method", "what estimator", "how to choose", "method comparison", "empirical strategy", "research design", "applied micro", "identification strategy", "power analysis", "design-based", "model-based", "minimum detectable effect", "specification".
Reference for applied micro research design: method selection, diagnostics, inference, pitfalls, reporting standards, and power analysis.
Use when the user is:
Skip when:
After selecting a method, the `econometric-reviewer` agent can review the implementation and the `identification-critic` agent can evaluate the identification argument.
Start with the fundamental question: **What source of variation identifies the causal effect?**
| Source of Variation | Method Family | Key Assumption | |--------------------|---------------|----------------| | Randomized assignment (with full compliance) | Experimental analysis (OLS on treatment indicator) | Random assignment | | Randomized assignment (with imperfect compliance) | IV / 2SLS using random assignment as instrument | Exclusion restriction, monotonicity | | Policy change at a sharp threshold | Sharp RDD | Continuity of potential outcomes at cutoff | | Policy change at a threshold with imperfect compliance | Fuzzy RDD (= IV at the cutoff) | Continuity + monotonicity at cutoff | | Policy change at a point in time, with affected and unaffected groups | Difference-in-differences | Parallel trends | | Staggered policy adoption across units over time | Staggered DiD (Callaway-Sant'Anna, Sun-Abraham, etc.) | Parallel trends (conditional on group and time) | | Rare event affecting a single unit, long pre-treatment data | Synthetic control | Pre-treatment fit implies post-treatment counterfactual | | Exogenous shifter of treatment that does not affect outcome directly | IV / 2SLS / GMM | Exclusion restriction, relevance, monotonicity | | Rich set of observables that plausibly captures all confounders | Matching, IPW, AIPW (selection on observables) | Conditional independence (no unobserved confounders) | | No credible exogenous variation | Sensitivity analysis, bounds, partial identification | Depends on bounding assumptions |
**Within DiD:**
Is treatment timing staggered?
โโโ No โ Classic 2x2 DiD (TWFE is fine)
โโโ Yes
โโโ Can treatment turn off (reversals)?
โ โโโ Yes โ de Chaisemartin-D'Haultfoeuille (2020)
โ โโโ No
โ โโโ Do you have never-treated units?
โ โ โโโ Yes โ Callaway-Sant'Anna (2021) with never-treated controls
โ โ โโโ No โ Callaway-Sant'Anna with not-yet-treated controls
โ โ or Sun-Abraham (2021)
โ โโโ Are effects likely heterogeneous across cohorts?
โ โโโ Yes โ Callaway-Sant'Anna or Sun-Abraham (NOT TWFE)
โ โโโ No โ TWFE is OK, but report Bacon decomposition**Within IV:**
How many instruments for how many endogenous regressors?
โโโ Exactly identified (K instruments = K endogenous)
โ โโโ 2SLS (= IV = Wald estimator for single instrument)
โโโ Over-identified (K instruments > K endogenous)
โ โโโ 2SLS (default)
โ โโโ GMM (efficient, use if heteroskedasticity suspected)
โ โโโ LIML (less biased with weak instruments)
โโโ Under-identified (K instruments < K endogenous)
โโโ Cannot identify all parameters โ need more instruments or fewer endogenous regressors**Within RDD:**
Does crossing the threshold guarantee treatment?
โโโ Yes โ Sharp RDD
โโโ No โ Fuzzy RDD
โโโ Is the running variable continuous?
โโโ Yes โ Standard rdrobust
โโโ No (discrete / few mass points)
โโโ Cattaneo-Idrobo-Titiunik (2019) discrete RD methods**Within Matching / Selection on Observables:**
Is the selection-on-observables assumption plausible?
โโโ No โ Need a different identification strategy
โโโ Yes
โโโ Do you need ATE or ATT?
โ โโโ ATE โ IPW or AIPW
โ โโโ ATT โ Matching or IPW with ATT weights
โโโ Is the propensity score model well-specified?
โ โโโ Uncertain โ Use AIPW (doubly robust)
โ โโโ Confident โ IPW or regression adjustment
โโโ Many covariates or nonlinear confounding?
โโโ Yes โ ML-based methods (causal forests, DML)
โโโ No โ Parametric PS model + AIPWKey diagnostics to run for each method family. For full reporting checklists and minimum standards, see `references/reporting-standards.md`.
| Method | Must-Run Diagnostics | Key Concern | |--------|---------------------|-------------| | IV / 2SLS | Fi
## ๐ฅ ๅ่ ยท 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โฆ