stata-replication

Scaffolds and executes numbered Stata .do file pipelines for reproducible replication packages.

4|Updated Aug 22, 2025
One-click install
npx skills add https://github.com/stevejbickley/arcbita-geek-seminars --skill stata-replication-stevejbickley
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: stata-replication
Source: https://github.com/stevejbickley/arcbita-geek-seminars/tree/main/sessions/2026-07-29-ClaudeCodeforAppliedSocialScience/starter/.claude/skills/stata-replication
Command: npx skills add https://github.com/stevejbickley/arcbita-geek-seminars --skill stata-replication-stevejbickley

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires stata-mcp.

What problem does it solve? Setting up a Stata replication pipeline for an academic paper involves repetitive scaffolding of numbered .do files, consistent logging conventions, and manual execution tracking. This Skill automates the entire pipeline from scaffold to verified outputs, following AEA replication package standards. ## Core Features & Use Cases - Pipeline Scaffolding: Generates numbered .do files (00_install through 99_run_all) in scripts/stata/ following a strict code-conventions rule, including esttab tables and graph export. - MCP-Based Execution: Runs each .do file via the stata-mcp MCP server, captures SMCL logs and outputs to scripts/stata/_outputs/, and halts on substantive failures for user review. - R-to-Stata Porting: With the --from-r flag, translates an existing R pipeline into Stata and cross-checks point estimates, standard errors, and sample sizes against tolerance thresholds. - Use Case: An economist preparing an AEA submission whose original analysis is in Stata can scaffold the full replication package, execute it end-to-end, and produce publication-ready .tex tables with one command. ## Quick Start Ask the assistant to set up a Stata replication pipeline for your paper and run all the .do files, optionally passing a paper or data pointer and the --from-r flag if porting from R.

Frequently Asked Questions about stata-replication

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a Stata replication pipeline for an AEA submission?▼

Invoke the skill with a pointer to your paper or data. It scaffolds numbered .do files (install, clean, descriptive, analyze, robustness, tables/figures, run_all) in scripts/stata/, executes them via stata-mcp, and verifies outputs including sessionInfo capture.

How to convert an R analysis pipeline to Stata?▼

Run the skill with the --from-r flag. It locates the existing pipeline at scripts/R/, translates it into Stata .do files, then cross-checks point estimates (~0.01 tolerance), standard errors (~0.05), and exact sample sizes between the two languages.

Does this Stata skill require any external tools?▼

Yes, it requires the stata-mcp MCP server installed via 'claude mcp add stata-mcp --scope user -- uvx stata-mcp', plus a local Stata installation. Without stata-mcp, the skill halts at Phase 0 with installation instructions.

When should I not use a numbered .do file pipeline?▼

Skip it for R-first projects (use /data-analysis instead), Python-first projects, and quick exploratory work. The numbered-pipeline scaffold is designed for formal replication packages, not scratch notebooks.

What happens when a Stata .do file fails during execution?▼

Execution halts at the failing script. Trivial parse-time typos may be auto-fixed, but substantive failures like insufficient observations, singular matrices, or missing covariates are surfaced to the user for investigation.