OpenParable
Skip to content
← Back to skills

Stata Modernize

Development
stata-modernize

Stata Modernize is an Agent Skill for development published in the brycewang-stanford/Auto-Empirical-Research-Skills repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Improve, modernize, and optimize existing Stata code for performance, portability, and maintainability. Use when legacy patterns such as preserve/restore, cd,

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills/blob/HEAD/skills/64-tmonk-mcp-stata/skills/stata-modernize/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/stata-modernize, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

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.