ashuiGordonashuiGordonCommunity·1 Agent Skills Included

stata-cli

Run Stata analyses, regressions, and graphs from the terminal

Runs Stata code, .do files, and econometric analyses directly from the command line with structured JSON output. Eliminates manual clicking in the Stata GUI and slow restarts through a persistent daemon that cuts execution to under 100ms. Retrieves regression results, matrices, variable metadata, and graphs automatically, with a built-in 57-topic Stata reference library.
npx skills add ashuiGordon/stata-cli --all -g -y

All Skills in This Repository (1)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How to install stata-cli?

Run `npx skills add ashuiGordon/stata-cli --all -g -y` in your terminal to install this skill globally. You also need Stata 17+ and Python 3.9+ on your machine.

How to run Stata from the command line?

Use `stata-cli run` followed by your Stata code in quotes, or `stata-cli do analysis.do` to execute a full .do file. Start the daemon first with `stata-cli daemon start` for sub-second execution.

Can AI coding agents use stata-cli?

Yes. It is designed for Claude Code, Codex, and Cursor, with structured JSON output, exit codes, and a SKILL.md definition so agents can run Stata with zero extra setup.

How to get regression results as JSON from Stata?

After running a model, use `stata-cli return e` for stored estimation results or `stata-cli matrix e(b)` for the coefficient vector, both returned as structured JSON.

Does stata-cli work without coding experience?

Basic Stata knowledge helps, but the built-in reference library of 57 topics lets you look up syntax and econometrics patterns with `stata-cli skill <topic>` before writing code.

Related Repositories in Data & Analytics

View All in Data & Analytics