Skip to content
Back to skills

Stata Lint

ASecurity

Run static analysis on a Stata .do or .ado file and report style and best-practice issues.

  • 5,142 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 3, 2026
researchgo

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 3, 2026

npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill stata-lint --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Stata Lint?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Stata Lint
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/brycewang-stanford-stata-lint/badge)](https://www.skillsdirectory.com/skills/brycewang-stanford-stata-lint)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: stata-lint
description: Run static analysis on a Stata .do or .ado file and report style and best-practice issues.
---

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

1. Call `stata_inspect_data(action="lint", path=<argument>)`.

2. 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, missing `version` statement

3. For each category of issue found, briefly explain the modern alternative (refer to the **stata-modernize** skill for details).

4. If the file is clean, confirm: "No issues found in `<filename>`."

5. If the path argument is missing, tell the user to provide an absolute path to a `.do` or `.ado` file.

Files in this skill

  • SKILL.md808 B
  • agents/openai.yaml222 B
  • manifest.json621 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in research →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.