Stata lint

From tmonk/mcp-stata · View interactive version

Stata lint is an AI agent skill from the GitHub repository tmonk/mcp-stata. Run static analysis on a Stata .do or .ado file and report style and best-practice issues.

How to use this skill

Skill file

The argument is the absolute path to a .do or .ado file.

  1. Call stata_inspect_data(action="lint", path=<argument>).
  1. Display the lint results, grouping issues by severity or type:
  1. For each category of issue found, briefly explain the modern alternative (refer to the stata-modernize skill for details).
  1. If the file is clean, confirm: "No issues found in <filename>."
  1. If the path argument is missing, tell the user to provide an absolute path to a .do or .ado file.
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.