stata-cli

Execute Stata commands and .do files via command-line interface.

59|3|Updated May 11, 2026
One-click install
npx skills add https://github.com/ashuiGordon/stata-cli --skill stata-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stata-cli
Source: https://github.com/ashuiGordon/stata-cli/tree/main
Command: npx skills add https://github.com/ashuiGordon/stata-cli --skill stata-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill simplifies running Stata commands, executing .do files, and accessing Stata data and results from the command line, with optimized output for AI agents.

Core Features & Use Cases

  • Command Execution: Run Stata code and execute .do files.
  • Data Inspection: View data, inspect variables, and retrieve stored results.
  • Help System Access: Access Stata help topics and reference library.
  • Use Case: If you need to analyze data using Stata but want to automate or integrate the process with AI tools, this Skill can help you execute Stata commands directly from your command line or AI environment.

Quick Start

Start the Stata CLI daemon for fast execution: stata-cli daemon start. Then, run a command: stata-cli run "sysuse auto, clear".

Frequently Asked Questions about stata-cli

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

FAQPage Schema
How do I run Stata commands from the command line?

You can run Stata commands from the command line by using the execution feature to parse and execute code, or by running .do files directly. Starting a daemon mode enables sub-second execution for rapid Stata analysis.

Can I integrate Stata econometrics analysis with AI agents?

Yes, integrating Stata econometrics analysis with AI agents is supported through AI-friendly output. The tool retrieves Stata data and results formatted for AI environments, allowing automated data analysis workflows.

Do I need Stata 17 and Python 3.9 to use command-line Stata automation?

Yes, command-line Stata automation requires Stata 17 or newer and Python 3.9 or newer. These environment prerequisites are necessary to execute commands, run .do files, and retrieve data.

What is the best way to speed up Stata command execution for AI integration?

The best way to speed up Stata command execution is to start a daemon mode. This background process enables sub-second execution, significantly reducing latency when running rapid Stata commands or retrieving data.

How do I access Stata help topics and reference libraries without the GUI?

You can access Stata help topics and reference libraries without the GUI using the built-in help system. This feature allows users to retrieve documentation and reference materials directly from the command line.

What are the limitations of automating Stata data inspection via command line?

A limitation of automating Stata data inspection via command line is the mandatory dependency on Stata 17+ and Python 3.9+. Users without these specific local environment setups cannot execute commands or retrieve stored results.