Stata Replication
End-to-end Stata replication pipeline, scaffolds numbered `.do` files in...
Install
npx skills add pedrohcgs/claude-code-my-workflow --skill stata-replication -g -a claude-code -y- Repository
- pedrohcgs/claude-code-my-workflow1.7k
- Category
- AI and agents
- Updated
- 1mo ago
- License
- MIT
- Context cost
- Mediumabout 1,862 tokens
- Runs scripts
- No, instructions only
What it does
End-to-end Stata replication pipeline, scaffolds numbered `.do` files in `scripts/stata/`, executes them via the `stata-mcp` MCP server, captures logs and outputs to `output/`, and produces publication-ready tables (esttab) and figures (graph export). Mirrors `/data-analysis` for R-first projects. Use when user says "stata replication", "set up Stata pipeline", "scaffold the .do files", "run Stata analysis", "AEA replication package in Stata", or when a project's analysis language is Stata not R.
/stata-replication, Stata pipeline scaffold + execution
Build a complete Stata replication pipeline in scripts/stata/: numbered .do files following .claude/rules/stata-code-conventions.md, executed via the stata-mcp MCP server, with outputs landing in output/.
When to use
- Your project's analysis language is Stata (not R). Common in econ field experiments, RCT studies, and any AEA submission where the original replication package is Stata.
- You're porting an R-first project to Stata for an AEA submission.
- You're adding a Stata robustness check to an R-first paper.
- You want a one-command reproduction:
do scripts/stata/99_run_all.do.
When NOT to use
- Your project is R-first. Use
/data-analysis. - Your project is Python-first. Neither this skill nor
/data-analysisis the right fit; consider extending the convention rule for Python or porting one of these skills. - You're doing quick exploratory work. The numbered-pipeline scaffold is for replication packages, not scratch notebooks.
Prerequisite: stata-mcp installed
This skill requires the stata-mcp MCP server. Install once per user:
claude mcp add stata-mcp --scope user -- uvx stata-mcp
The MCP server provides command-guarded Stata execution (refuses destructive operations like !/shell/erase), RAM monitoring, and Stata Language Server pairing. Maintained by SepineTam.
If stata-mcp is not installed, the skill halts at Phase 0 with installation instructions.

