---
name: brycewang-stanford/stata-modernize
source: https://app.decimal.ai/s/brycewang-stanford-stata-modernize@1/SKILL.md
source_sha256: c60b1801b66f
---

# 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.