Stata Lint
Testing & Qualitystata-lintStata Lint is an Agent Skill for testing & quality published in the brycewang-stanford/Auto-Empirical-Research-Skills repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Run static analysis on a Stata .do or .ado file and report style and best-practice issues.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills/blob/HEAD/skills/64-tmonk-mcp-stata/skills/stata-lint/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/stata-lint, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
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:
- Line number and issue description for each finding
- Common issues: use of
cd,preserve/restore,#delimit, hardcoded paths, long lines, missingversionstatement
-
For 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
.door.adofile.