一键导入
new-analysis
Scaffolds a method-specific analysis notebook (DiD, IV, RDD, LASSO, Panel FE) with boilerplate. Use when starting a new econometric analysis.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scaffolds a method-specific analysis notebook (DiD, IV, RDD, LASSO, Panel FE) with boilerplate. Use when starting a new econometric analysis.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Scaffold a Quarto analysis notebook (generic or method-specific — DiD, IV, RDD, LASSO, Panel FE), register it in _quarto.yml, apply publication-quality figure styling, and generate dataset codebooks. Use when starting a new analysis notebook.
Manage the project's literature workflow — ideate research questions, run structured literature reviews, add citations to references.bib, write annotation notes in references/, and audit citation integrity. Use for any bibliography or literature task.
Audit a Quarto manuscript or a single notebook — freeze freshness, data-path existence, citation integrity, figure/table export presence, placeholder and anonymization checks. Produces a scored review report under notes/. Read-only — never modifies notebooks, data, or the manuscript.
Build publication-quality regression and robustness tables from notebook estimation output, exported to tables/ as CSV + Markdown + LaTeX. Use when creating a results table.
Draft and revise manuscript prose for index.qmd — sections, the abstract, regression-result interpretation, and referee responses. Use when writing or revising the manuscript.
Reads the manuscript and notebooks to generate a structured abstract. Use when writing or updating the abstract.
| name | new-analysis |
| description | Scaffolds a method-specific analysis notebook (DiD, IV, RDD, LASSO, Panel FE) with boilerplate. Use when starting a new econometric analysis. |
| argument-hint | <method> [title] |
| allowed-tools | Bash, Read, Write, Edit, Glob, Grep |
| version | 1.1.0 |
| workflow_stage | analysis |
| tags | ["econometrics","notebook","DiD","IV","RDD","panel-data"] |
Create a new notebook pre-populated with method-specific boilerplate for a common econometric technique.
$ARGUMENTS — the method name and optional title (e.g., "DiD Event Study", "IV Analysis of Colonial Origins", "RDD Minimum Wage", "LASSO Variable Selection", "Panel FE Growth Regressions")Parse the method from the arguments. Recognized methods:
Follow the same notebook creation conventions as /project:new-notebook:
notebooks/ for existing files to determine the next sequential number.qmd with YAML frontmatter (title and jupyter kernel) and the setup cellAdd method-specific sections as markdown and code cells:
All methods include these sections:
../tables/)../images/)All figures: 6 inches wide × 4 inches tall, 300 DPI, exported to ../images/.
All tables: Export to ../tables/ in three formats (CSV + Markdown + LaTeX). Build regression tables manually — do NOT use pf.etable(type="md"), etable(markdown=TRUE), or esttab md as their output doesn't render correctly in the manuscript.
Method-specific boilerplate:
did package (R, Callaway & Sant'Anna 2021), csdid (Stata), or did2s (Python, Gardner 2022) instead. Include Bacon decomposition to diagnose heterogeneity in treatment timing.Include language-specific package guidance in the notebook preamble:
pyfixest for fixed effects and DiD, linearmodels for IV and panel models, rdrobust for RDD, scikit-learn for LASSOfixest (preferred for all FE models — supports sunab() for staggered DiD, feols() for IV), rdrobust for RDD, ivreg for IV, glmnet for LASSOreghdfe for high-dimensional FE, ivregress for IV, rdrobust for RDD, csdid for staggered DiD, lasso2 for LASSORegister in _quarto.yml under manuscript.notebooks:
- notebook: notebooks/<name>.qmd
title: "<title>"
To embed in index.qmd:
{{< embed notebooks/<name>.qmd#fig-label >}}{{< include tables/<label>.md >}}Confirm the notebook renders: quarto render notebooks/<name>.qmd
Report the file path and list the embed-ready labels created.