From mcp-stata
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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mcp-stata:stata-lintThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
The argument is the absolute path to a `.do` or `.ado` file.
The argument is the absolute path to a .do or .ado file.
Call stata_inspect_data(action="lint", path=<argument>).
Display the lint results, grouping issues by severity or type:
cd, preserve/restore, #delimit, hardcoded paths, long lines, missing version statementFor each category of issue found, briefly explain the modern alternative (refer to the stata-modernize skill for details).
If the file is clean, confirm: "No issues found in <filename>."
If the path argument is missing, tell the user to provide an absolute path to a .do or .ado file.
npx claudepluginhub tmonk/mcp-stata --plugin mcp-stataModernizes legacy Stata code by replacing anti-patterns like preserve/restore, cd, #delimit, slow aggregation with frames, reghdfe, gtools for performance and maintainability.
Provides 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.
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.