Skip to content
Automation
Skill

/empirical-playbook

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

From plugin
auto-empirical-research-skills
5k200 skills

Claude Code

$ npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill empirical-playbook --agent claude-code

SKILL.md

empirical-playbook.SKILL.md
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".

Applied Micro Toolkit

Reference for applied micro research design: method selection, diagnostics, inference, pitfalls, reporting standards, and power analysis.

When to Use This Skill

Use when the user is:

  • Choosing between empirical methods for a causal question
  • Evaluating which identification strategy fits their data and setting
  • Running standard diagnostic tests and unsure which ones apply
  • Designing a study and needs to calculate statistical power
  • Reviewing or critiquing an empirical strategy
  • Preparing the "Empirical Strategy" section of a paper
  • Downloading macroeconomic or cross-national data (see `references/data-sources.md` for FRED/World Bank API access)

Skip when:

  • Implementation details for a specific method are needed (use `causal-inference` skill for IV, DiD, RDD, SC, matching)
  • The task is structural estimation (use `structural-modeling` skill)
  • The task is manuscript preparation or journal logistics (use `submission-guide` skill)
  • The task is formal identification proof (use `identification-proofs` skill)
  • The task is Bayesian model specification (use `bayesian-estimation` skill)

After selecting a method, the `econometric-reviewer` agent can review the implementation and the `identification-critic` agent can evaluate the identification argument.

Method Selection Decision Tree

Start with the fundamental question: **What source of variation identifies the causal effect?**

Step 1: What is your source of variation?

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

Step 2: Refinements Within Method Families

**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 + AIPW

Standard Diagnostics by Method

Key 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

Read more
@brycewang-stanford
Ships withauto-empirical-research-skills

## ๐Ÿ”ฅ ๅŠ›่ ยท 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

Stars on GitHub

Momentum

stars in total
5.0k
Star history of brycewang-stanford/Auto-Empirical-Research-Skills on GitHub, a chart by star-history.com

More skills from other plugins.

agent-builder

agent-builder

Load immediately after an Agent intent, before the first agent_builder_* call. Governs how you create, configure, test, andโ€ฆ

n8n2w209k
@n8n-io@n8n-ioInstall Skill
browser-use

browser-use

Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work. Also coversโ€ฆ

@browser-use@browser-useInstall Skill
agent-browser

agent-browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, fillingโ€ฆ

@vercel-labs-2@vercel-labs-2Install Skill
add-anydoc

add-anydoc

Add local office-document-to-Markdown conversion to NanoClaw agent containers with the pinned Firecrawl AnyDoc CLI. Use whenโ€ฆ

@nanocoai@nanocoaiInstall Skill

Questions about empirical-playbook.

Which coding agents can use empirical-playbook?
empirical-playbook installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.