pipeline
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy + statsmodels + linearmodels + pyfixest +…
Draft a full academic paper manuscript from analysis outputs, project spec, and lit review. Make sure to use this skill whenever the user wants to turn completed analysis into a written paper — not to run analysis or review existing writing. Triggers include: "write the paper",
$ npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill write-paper --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/write-paperContext preview
The summary Claude sees to decide when to auto-load this skill.
Draft a full academic paper manuscript from analysis outputs, project spec, and lit review. Make sure to use this skill whenever the user wants to turn completed analysis into a written paper — not to run analysis or review existing writing. Triggers include: "write the paper",
name: write-paper description: >- Draft a full academic paper manuscript from analysis outputs, project spec, and lit review. Make sure to use this skill whenever the user wants to turn completed analysis into a written paper — not to run analysis or review existing writing. Triggers include: "write the paper", "draft the manuscript", "write up the results", "start the paper", "turn my results into a paper", "write the introduction", "draft the empirics section", "I have my results, now write the paper", "help me write this up", "write the abstract", or any request to produce academic prose from existing research outputs. argument-hint: "[paper title, research question, or 'from spec']" allowed-tools: ["Read", "Grep", "Glob", "Write", "Edit", "Task"]
Draft an academic manuscript from existing analysis outputs. Follows propose-first — the outline is always shown for approval before writing begins.
**Input:** `$ARGUMENTS` — a paper title, research question, or `from spec` to read from `quality_reports/specs/`.
---
Read project context:
If no spec exists, ask the user for the core research question before proceeding.
---
Glob for available outputs:
List what exists. Note any gaps (e.g., "no summary statistics table found").
---
Draft a paper outline using standard social science structure:
1. Abstract 2. Introduction 3. Related Literature 4. Data and Institutional Background 5. Empirical Strategy 6. Results 7. Robustness and Extensions 8. Conclusion References
Present the outline with a one-sentence description of each section's content, linking specific output files to each section (e.g., "Table 2 → Section 6, Results"). **Do NOT start writing until the user approves the outline or requests changes.**
---
Write in this order (minimizes backtracking):
1. **Data section** — describe the dataset, summary statistics. Reference `output/tables/summary_stats.tex` if it exists. 2. **Empirical Strategy** — describe the identification approach from the research spec. 3. **Results** — one paragraph per main finding. Reference each table/figure with `\input{}` or `\includegraphics{}` — do NOT copy table content inline. 4. **Robustness** — brief description of robustness checks, referencing additional output files. 5. **Literature** — synthesize from the lit review document if one exists. 6. **Introduction** — write after results are known. State the question, preview the findings, and map the paper. 7. **Abstract** — write last: one sentence each for motivation, question, method, finding, and implication. 8. **Conclusion** — summarize and state limitations and next steps.
---
Save to `manuscripts/[project-name]-draft.tex` (or `.qmd` if the user prefers Quarto).
Create `manuscripts/` directory if it does not exist.
Use `\input{}` for tables and `\includegraphics{}` for figures — reference the actual files in `output/`, do not embed content directly.
---
After saving the draft, launch the `domain-reviewer` agent via Task:
Task prompt: "Review the draft at manuscripts/[filename] for argument structure, identification assumptions, and citation fidelity. Check that the identification strategy is clearly stated, assumptions are explicit, and all cited tables/figures exist in output/." Task agent: domain-reviewer
Wait for the review to complete, then present the findings to the user.
---
Inform the user:
---
📌 文档结构(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…