run-stata
CommunityRun a Stata do-file with validated results.
Data & Analytics#reproducible research#do-file#stata#batch execution#output verification#log validation#econometrics workflow
Authormaxwell2732
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It helps you run a Stata do-file end-to-end reliably and quickly confirm whether the analysis actually succeeded, using the project’s wrapper, logs, and output checks.
Core Features & Use Cases
- Batch execution via project wrapper: Runs a specified do-file in Stata batch mode from the project root, capturing exit code and producing a consistent log.
- Safety checks before execution: Resolves the do-file path, confirms the file exists, and validates declared inputs in the do-file header.
- Post-run validation and output verification: Scans the log for common Stata runtime errors (including r(<n>) patterns and missing observations) and verifies expected artifacts referenced in the do-file’s Outputs header.
Quick Start
Ask Codex to run the Stata analysis by instructing it: “/run-stata dofiles/03_analysis/main_regression.do, then report the log path, any errors found, and which expected tables/figures were created.”
Dependency Matrix
Required Modules
None requiredComponents
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: run-stata Download link: https://github.com/maxwell2732/codex-stata-for-economists/archive/main.zip#run-stata Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.