Stata plan

From Chanw-research/claude-code-paper-writing · View interactive version

Stata plan is an AI agent skill from the GitHub repository Chanw-research/claude-code-paper-writing. Convert an empirical design into a Stata execution plan or optional do-file skeleton covering merge, variable construction, regressions, robustness, and exports

How to use this skill

Skill file

/stata-plan

Read the selected empirical design, wiki/variables/*.md, wiki/datasets/*.md, wiki/models/*.md, robustness and heterogeneity pages, plus local .do, .dta, .xlsx, dictionaries, and READMEs.

By default, create wiki/outputs/stata-plan-{slug}-{YYYY-MM-DD}.md with:

  1. Input data
  2. Merge keys and merge order
  3. Sample filters
  4. Variable construction
  5. Winsorization and missing-value handling
  6. Descriptive statistics
  7. Correlations
  8. Baseline regressions
  9. Mechanism tests
  10. Heterogeneity tests
  11. Robustness checks
  12. Table exports
  13. Verification checklist

Only when the user passes --write-do, also create wiki/outputs/stata-plan-{slug}-{YYYY-MM-DD}.do.

Constraints:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.