Modernize Stata

SkillDev tools

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.

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

Then ask your AI: use the Modernize Stata skill

What this skill tells your AI

The instructions your AI receives, as published by brycewang-stanford/auto-empirical-research-skills in skills/64-tmonk-mcp-stata/skills/stata-modernize/SKILL.md and read by ahel’s review.

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.

Signals

GitHub stars
4k
Forks
531
Last commit
Sep 2026
Advanced
Item type
skill
Key
stata-modernize
Source
github.com/brycewang-stanford/auto-empirical-research-skills