Agent Skills: Modernize Stata

Improve, modernize, and optimize existing Stata code for performance, portability, and maintainability. Use when legacy patterns such as preserve/restore, cd, #delimit, slow aggregation, or weak fixed-effects workflows appear in code under review.

UncategorizedID: tmonk/mcp-stata/stata-modernize

Repository

tmonkLicense: AGPL-3.0
7516

Install this agent skill to your local

pnpm dlx add-skill https://github.com/tmonk/mcp-stata/tree/HEAD/plugin/skills/stata-modernize

Skill Files

Browse the full folder contents for stata-modernize.

Download Skill

Loading file tree…

plugin/skills/stata-modernize/SKILL.md

Skill Metadata

Name
stata-modernize
Description
Improve, modernize, and optimize existing Stata code for performance, portability, and maintainability. Use when legacy patterns such as preserve/restore, cd, #delimit, slow aggregation, or weak fixed-effects workflows appear in code under review.

Modernize Stata

Use this skill when a user wants stronger Stata code, not just working Stata code.

  1. Identify the current anti-patterns.
  2. Recommend or implement modern replacements with clear rationale.
  3. Favor frames, reghdfe, gtools, portable paths, and explicit state handling.

Read references/patterns.md for common replacements and examples.