From mcp-stata
Modernizes legacy Stata code by replacing anti-patterns like preserve/restore, cd, #delimit, slow aggregation with frames, reghdfe, gtools for performance and maintainability.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mcp-stata:stata-modernizeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill when a user wants stronger Stata code, not just working Stata code.
Use this skill when a user wants stronger Stata code, not just working Stata code.
reghdfe, gtools, portable paths, and explicit state handling.Read references/patterns.md for common replacements and examples.
npx claudepluginhub tmonk/mcp-stata --plugin mcp-stataProvides Stata reference for .do files, data management, econometrics, causal inference, graphics, Mata programming, and packages like reghdfe, estout, did, rdrobust. Aids writing, debugging, explaining code.
Lints Stata .do and .ado files for style and best-practice issues like hardcoded paths, long lines, missing version statements, and improper cd or delimit usage. Suggests modern alternatives.
Runs Stata do-files, queries data structure, installs ado packages, reads .smcl/.log files, and looks up command documentation via the MCP-for-Stata server.