SkillAgentSearch skills...

Full-empirical-analysis-skill

Classical end-to-end empirical analysis workflow in the traditional Python econometric stack β€” pandas + numpy + scipy + statsmodels + linearmodels + pyfixest + rdrobust + econml + causalml + matplotlib/seaborn.

Install / Use

npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill 00.1-Full-empirical-analysis-skill_Python

Installs into whichever agent you are using.

About this skill
πŸ“„

SKILL.md

Installable skill definition

Quality Score

86/100

Category

Automation

Supported Platforms

Universal

Our assessment of Full-empirical-analysis-skill

Full-empirical-analysis-skill scores 86/100 on our quality scale, 1781st of 2,780 Automation skills we index.

Its SKILL.md is 110 KB long, well organised into 280 sections with 62 code examples: long enough that it reads more like full documentation than a focused instruction file, which agents can find harder to follow.

With 4,360 GitHub stars, it is one of the more widely adopted skills in the catalogue.

Substance
21/30
Structure
20/20
Description
15/15
Adoption
15/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated about 2 months ago, so Full-empirical-analysis-skill is actively maintained.
  • Our last check on 2026-11-03 found the source still online.
  • No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
  • Its trust signals score 88/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit β€” read the skill file before letting an agent act on it.

Safety scan

No issues found

Our scan of the first 100 KB of the file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.

AI review by kimi-k2.7-code on 2026-09-29. Automated pattern scan on 2026-09-29. It catches known dangerous patterns, not every risk β€” read a skill before letting an agent act on it.

Full-empirical-analysis-skill compared with similar skills

All 4 of these similar skills score higher than Full-empirical-analysis-skill; compare them before choosing.

SkillScoreStarsUpdatedFormat
Full-empirical-analysis-skill (this skill)by brycewang-stanford864.4k54d agoSKILL.md
Agent-Reachby Panniantong100112.3k8d agoCLAUDE.md
rufloby ruvnet10081.9ktodayCLAUDE.md
headroomby headroomlabs-ai10079.8ktodayCLAUDE.md
Claude-Code-Game-Studiosby Donchitos10039.7k7d agoCLAUDE.md

Frequently asked questions

How do I install Full-empirical-analysis-skill?
Run npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill Full-empirical-analysis-skill. The install tabs above show the steps for each supported agent.
Which AI agents does Full-empirical-analysis-skill work with?
It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
Is Full-empirical-analysis-skill safe to use?
Our scan of the first 100 KB of the file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It declares no license and scores 88/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is Full-empirical-analysis-skill still maintained?
The repository was last updated about 2 months ago, so Full-empirical-analysis-skill is actively maintained.

name: Full-empirical-analysis-skill description: Classical end-to-end empirical analysis workflow in the traditional Python econometric stack β€” pandas + numpy + scipy + statsmodels + linearmodels + pyfixest + rdrobust + econml + causalml + matplotlib/seaborn. Defaults to economics empirical-paper style (AER / QJE / AEJ) β€” every run produces a publication-ready output set with a multi-column regression table (M1β†’M6 progressive controls/FE) as the centerpiece, plus Table 1 (descriptives), mechanism / heterogeneity / robustness tables, and event-study + coefficient + trend figures. Covers the full 8-step pipeline an applied economist or quantitative social scientist runs on every paper β€” (1) data cleaning, (2) variable construction & transformation, (3) descriptive statistics & Table 1, (4) statistical diagnostic tests, (5) baseline empirical modeling, (6) robustness battery, (7) further analysis (mechanism, heterogeneity, mediation, moderation), (8) publication-ready tables & figures. Also covers two parallel domain modes that share the same 8-step scaffolding β€” Mode A β€” Epidemiology / public health (target-trial emulation via zepid / hand-rolled pandas, IPTW + g-formula + TMLE doubly-robust triplet via zepid / econml / lifelines, Mendelian randomization via pymr / mrtool (or rpy2 β†’ MendelianRandomization/TwoSampleMR), KM / AFT / Cox survival via lifelines, E-value sensitivity, principal stratification β€” STROBE / TRIPOD reporting), and Mode B β€” ML causal inference (DML via econml.dml / doubleml, S/T/X/R/DR meta-learners via econml.metalearners / causalml, causal forest via econml.grf / causalml, Dragonnet / TARNet / CEVAE neural causal via causalml, BCF via pymc-bart / bcf-py, matrix completion, CATE distribution + policy tree via econml.policy / policytree-py, off-policy evaluation, conformal causal via mapie, fairness audit via fairlearn, DAG learning via causal-learn / cdt / LLM-assisted). Prescribes which library to reach for at each step, shows the canonical code, and links to deeper references/ files for variant-specific patterns. Use when the user asks for a complete empirical analysis in Python, wants to replicate an applied-economics paper from scratch, needs a reproducible workflow that is NOT opinionated on any single vertical package (contrast with StatsPAI), wants explicit control over every estimator and diagnostic, or asks "how do I write a full empirical pipeline in Python?". Also triggers when the user names a specific classical step in isolation β€” "winsorize at 1/99%", "run Breusch-Pagan", "build a Table 1 balance table", "do a placebo test", "event study plot", "mediation analysis" β€” and wants it wired into the broader pipeline. Mode A triggers on "target trial emulation", "IPTW", "TMLE", "Mendelian randomization", "STROBE", "ε…¬ε…±ε₯εΊ·", "ζ΅θ‘Œη—…ε­¦". Mode B triggers on "DML", "double machine learning", "causal forest", "meta-learner", "Dragonnet", "BCF", "policy tree", "conformal causal", "fairness audit", "ε› ζžœζœΊε™¨ε­¦δΉ ". triggers:

  • full empirical analysis in Python
  • classical econometrics pipeline
  • traditional Python econometrics
  • end-to-end empirical workflow
  • pandas statsmodels linearmodels workflow
  • replicate an applied economics paper
  • data cleaning empirical
  • winsorize and standardize
  • variable construction
  • Table 1 summary statistics
  • balance table
  • correlation matrix
  • normality test
  • heteroskedasticity test
  • autocorrelation test
  • stationarity test
  • multicollinearity VIF
  • endogeneity test
  • baseline regression
  • panel fixed effects
  • DID workflow Python
  • event study
  • instrumental variables regression
  • regression discontinuity
  • propensity score matching
  • synthetic control python
  • double machine learning
  • robustness checks
  • placebo test
  • specification curve
  • alternative clustering
  • heterogeneity analysis
  • mechanism analysis
  • mediation analysis
  • moderation analysis
  • publication-ready regression table
  • coefplot
  • binscatter
  • event study plot

Mode A β€” Epidemiology / public health

  • epidemiology pipeline python
  • public health causal inference python
  • target trial emulation python
  • g-formula python
  • IPTW marginal structural model python
  • TMLE doubly robust python
  • HAL-TMLE python
  • Mendelian randomization python
  • MR-Egger weighted median python
  • STROBE TRIPOD reporting python
  • E-value sensitivity python
  • Kaplan-Meier AFT survival python
  • lifelines survival python
  • zepid epidemiology
  • ζ΅θ‘Œη—…ε­¦ python
  • ε…¬ε…±ε₯εΊ· python

Mode B β€” ML causal inference

  • ML causal inference python
  • double machine learning DML python
  • econml DoubleML
  • meta-learner S T X R DR python
  • causal forest GRF python
  • causalml meta-learner
  • Dragonnet TARNet CEVAE python
  • Bayesian causal forest BCF python
  • CATE distribution python
  • policy tree python
  • off-policy evaluation python
  • conformal causal prediction python
  • mapie conformal
  • fairness audit python
  • fairlearn audit
  • causal discovery PC NOTEARS python
  • causal-learn cdt
  • ε› ζžœζœΊε™¨ε­¦δΉ  python

Full Empirical Analysis β€” Classical Python Workflow

This skill is the canonical 8-step pipeline an applied economist runs on every empirical paper, written in the traditional Python ecosystem β€” no opinionated one-stop wrapper. Every step calls libraries directly (pandas, numpy, scipy, statsmodels, linearmodels, pyfixest, rdrobust, econml, causalml, matplotlib, seaborn), so the agent β€” or the user reading the agent's code β€” has full visibility and can swap any component.

Companion skill: if the user prefers a single-import agent-native DSL (import statspai as sp), route to 00-StatsPAI_skill instead. This skill is the opposite philosophy: everything explicit, everything inspectable, every diagnostic run by hand, every plot shaped by the user.

Philosophy

  1. Traditional stack, no magic. Agents should be able to read every line and know exactly which library / estimator / standard error family is at work.
  2. Full pipeline, not just estimation. 80% of the time on a real paper is steps 1–4 and 6–8. This skill treats them as first-class, not an afterthought.
  3. Rich outputs. Every step produces at least one table or figure β€” never a single point estimate in isolation.
  4. Progressive disclosure. SKILL.md gives the canonical call at each step; references/ holds variant-specific depth (dozens of tests, estimator-specific diagnostics, plot recipes).
  5. Reproducible. Every code block is runnable after pip install -r requirements.txt and df = pd.read_csv(...).

SkillOpt-style execution gate

Use this long playbook as a seed skill, not as a script to exhaustively apply. SkillOpt discipline: treat each local analysis-code change as a candidate patch that must beat a selection check and survive a held-out check before it becomes reusable boilerplate. Before writing or revising analysis code, compress the user's request into a task-local best_skill card:

best_skill: <mode + design + artifact target>
train_signal: <current failure, user goal, or missing evidence>
selection_split: <focal dataset/spec/output used to judge the candidate>
heldout_gate: <checks the patch must pass beyond the focal example>
accepted_patterns: <rules to reuse after validation>
rejected_patterns: <failed shortcuts not to retry without new evidence>
patch_scope: <one estimator/sample/export/robustness change>
reject_if: <conditions that force rollback to the last passing spec>
  1. Route card: record the mode (econ, epi, or ml-causal), estimand, identification design, focal outcome/treatment, package stack, and required artifacts.
  2. Bounded edit: change one decision at a time (sample rule, estimator, clustering, export format, or robustness check). Prefer the smallest patch that can pass validation.
  3. Selection split discipline: treat the user's immediate failure or requested artifact as the selection split. Reserve at least one alternate outcome, sample window, estimator family, or export target as the held-out gate.
  4. Held-out gate: define checks before running code: row counts, key uniqueness, treatment support, missingness thresholds, expected table/figure files, and one non-focal robustness/specification that the change must not break.
  5. Reject buffer: if a candidate spec fails the gate, log the failure, code diff, and gate output in analysis_log.md; revert to the last passing spec and do not retry the same unchecked pattern.
  6. Slow/meta update: at the end of the task, write down accepted_patterns and rejected_patterns from the trajectory. Do not widen the canonical project template from a single passing run.
  7. Promote only after validation: only turn a one-off fix into reusable project boilerplate after it passes the current data and at least one alternate outcome/sample/specification.

Three domain modes (default = AER econ; alternates = epi & ML-causal)

The default playbook above is AER-style applied econometrics β€” the AEA convention: written-out estimating equation, identifying assumption, design horse-race, full robustness gauntlet. The skill also ships two parallel sub-pipelines for the other two big causal-inference traditions, each reusing the same Steps 1–4 (cleaning / construction / descriptives / diagnostics) and Step 8 (tables & figures) β€” only Step 5 (estimator) and Step 6/7 (robustness / mechanism) swap libraries:

| Mode | Reader convention | Step-5 estimator stack | Reporting stack | Jump to | |---|---|---|---|---| | Default β€” Applied Econ (AER / QJE / AEJ) | "Show the equation + identifying assumption + design horse-race; controls visible; clustered SE" | DID / IV / RD / SCM / matching / pyfixest.feols HDFE | AER house-style multi-column pf.etable / Stargazer + 8-section paper layout | Steps 1 β†’ 8 (entire playbook below) | | Mode A β€” Epidemiology / Public Health | "STROBE / TRIPOD-AI; target trial protocol; doubly-robust estimand; absolute & relative risk; KM survival" | Target-trial emulation Β· IPTW (zepid) Β· g-formula (zepid / hand-rolled) Β· TMLE (zepid.causal.gformula / econml) Β· Mendelian randomization (pymr / rpy2+TwoSampleMR) Β· KM/AFT (lifelines) | Same pf.etable + risk-difference / hazard-ratio / E-value rows | Β§A. Epidemiology pipeline | | Mode B β€” ML Causal Inference | "DML / meta-learners / causal forest / DR-learner; CATE distribution; policy value" | DML (econml.dml / doubleml) Β· S/T/X/R/DR-Learner (econml.metalearners / causalml) Β· GRF causal forest (econml.grf) Β· Dragonnet/TARNet/CEVAE (causalml) Β· BCF (pymc-bart/bcf-py) Β· matrix completion | pf.etable ML horse-race + CATE plot + policy-value table + conformal PI (mapie) | Β§B. ML causal pipeline |

How to invoke a non-default mode (Claude / agent picks this up from the user's wording):

| User says... | Mode the skill switches to | |---|---| | "Run a DID / IV / RD / event study", "AER table", "applied micro" | Default (AER econ) β€” Steps 1 β†’ 8 | | "Target trial emulation", "g-formula", "IPTW", "TMLE", "Mendelian randomization", "STROBE / TRIPOD", "ε…¬ε…±ε₯εΊ· / ζ΅θ‘Œη—…ε­¦", "epi pipeline", "RWE study", "cohort study", "case-control" | Mode A (Epi) β€” Β§A | | "DML", "double machine learning", "causal forest", "meta-learner", "CATE", "Dragonnet", "BCF", "policy learning", "conformal causal", "fairness audit", "ML causal", "uplift modeling", "ε› ζžœζœΊε™¨ε­¦δΉ " | Mode B (ML causal) β€” Β§B | | "Mix" (e.g. "estimate DID + then ML CATE on the heterogeneity") | Default + Mode B in sequence β€” every estimator returns a coefficient + SE pair, drop them all into one pf.etable(...) for the horse-race column |

The three modes share **the same Step 1–4 cleaning / Table 1 / diagnostics scaffolding, the same Step 8 export stack, and the same DAG-first identification logi

Truncated for display β€” read the full file on GitHub.

Related Skills

View on GitHub
GitHub Stars4.4k
CategoryAutomation
Updated1mo ago
Forks527

Languages

Stata

Trust signals

88/100

From repository metadata: license, adoption, age and documentation. Not a code audit β€” see the Safety scan above for what the skill file itself contains.

1 medium
Full-empirical-analysis-skill β€” Universal Skill: Install & Safety Check | SkillAgent