pipeline
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy + statsmodels + linearmodels + pyfixest +…
Document a recently solved research problem to compound methodological knowledge
$ npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill workflows-compound --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/workflows-compoundContext preview
The summary Claude sees to decide when to auto-load this skill.
Document a recently solved research problem to compound methodological knowledge
name: workflows:compound description: Document a recently solved research problem to compound methodological knowledge argument-hint: "[optional: brief context about the fix or problem solved]" allowed-tools: Read, Write, Edit, Glob
**Pipeline mode:** This command operates fully autonomously. All decisions are made automatically.
Coordinate multiple subagents working in parallel to document a recently solved research problem. Creates structured documentation in `docs/solutions/` with YAML frontmatter for searchability and future reference.
Captures problem solutions while context is fresh. Uses parallel subagents for maximum efficiency — Phase 1 gathers information, Phase 2 assembles the final document.
**Why "compound"?** Each documented solution compounds your methodological knowledge. The first time you solve a convergence problem takes hours of research. Document it, and the next occurrence takes minutes. Knowledge compounds.
/workflows:compound # Document the most recent fix /workflows:compound convergence failure in BLP inner loop # Provide context /workflows:compound fixed cluster-robust SEs # Brief description
<critical_requirement> **Only ONE file gets written — the final documentation.**
Phase 1 subagents return TEXT DATA to the orchestrator. They must NOT use Write, Edit, or create any files. Only the orchestrator (Phase 2) writes the final documentation file. </critical_requirement>
<parallel_tasks>
Launch these subagents IN PARALLEL. Each returns text data to the orchestrator.
</parallel_tasks>
Problems are auto-classified into one or more categories using keyword matching on the problem description and session content:
| Category | Directory | Keywords / Signals | |----------|-----------|-------------------| | **Estimation Issues** | `estimation-issues/` | convergence, bias, efficiency, standard errors, MLE, GMM, likelihood, optimizer, starting values, boundary, gradient, Hessian | | **Data Issues** | `data-issues/` | missing data, measurement error, sample selection, merge, duplicates, outliers, panel structure, encoding, cleaning | | **Numerical Issues** | `numerical-issues/` | floating-point, overflow, underflow, condition number, tolerance, ill-conditioning, precision, NaN, Inf, singular matrix | | **Methodology Issues** | `methodology-issues/` | identification, model specification, assumption violations, endogeneity, exclusion restriction, functional form, overidentification | | **Derivation Issues** | `derivation-issues/` | proof, theorem, lemma, asymptotic, regularity conditions, existence, uniqueness, fixed point, convergence rate | | **Replication Issues** | `replication-issues/` | reproducibility, package versions, seeds, environment, Docker, conda, renv, pipeline, Makefile, DVC |
**Multi-category problems:** A problem can belong to multiple categories (e.g., "BLP convergence failure" is both `estimation-issues/` and `numerical-issues/`). Use the primary category for the file location and cross-reference the secondary category in the frontmatter `tags` field.
**Ambiguous problems:** If keyword matching is inconclusive, default to `methodology-issues/` (the broadest category).
<sequential_tasks>
**WAIT for all Phase 1 subagents to complete before proceeding.**
The orchestrating agent performs these steps:
1. **Collect** all text results from Phase 1 subagents 2. **Assemble** complete markdown file using the template below 3. **Validate** YAML frontmatter fields are complete 4. **Create** directory if needed: `mkdir -p docs/solutions/[category]/` 5. **Write** the SINGLE final file: `docs/solutions/[category]/[filename].md`
--- title: "[Problem title — concise, searchable]" date: YYYY-MM-DD category: [primary category] tags: [estimation, convergence, BLP, ...] estimation_method: [if applicable: MLE, GMM, IV, DiD, ...] language: [Python, R, Julia, Stata] severity: [critical, moderate, minor] time_to_resolve: [approximate time spent] --- # [Problem Title] ## Problem **Symptom:** [What was observed — error messages, wrong results, failure to converge] **Context:** [What estimation/analysis was being performed, what data, what method] **Reproduction:** [Minimal steps to reproduce the problem]
📌 文档结构(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…