Stata CLI
Run Stata commands, .do files, view data, inspect results, and get help from the terminal. Wraps PyStata with a daemon mode for fast execution. Built-in Stata reference library with 57 topics. Designed for AI agents.
Install
npx skills add ashuiGordon/stata-cli --skill stata-cligit clone --depth 1 https://github.com/ashuiGordon/stata-cli.git /tmp/stata-cli
mkdir -p ~/.claude/skills
cp -r /tmp/stata-cli/. ~/.claude/skills/stata-cliPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# stata-cli Run Stata code, `.do` files, view data, retrieve stored results, inspect matrices — all from the command line. Designed for AI agent tool-use via `Bash`. Includes a daemon mode for sub-second execution and a built-in Stata reference library. ## Install ```bash pip install stata-cli ``` Requires **Stata 17+** installed on the machine (provides PyStata). ## Critical Gotchas These are Stata-specific pitfalls that lead to silent bugs. Internalize before writing code. - **Missing values sort to +infinity** — `if income > 50000` includes missing! Use `if income > 50000 & !missing(income)` - **`=` vs `==`** — `=` is assignment, `==` is comparison. `gen x = 1 if y = 1` is wrong. - **Local macro syntax** — backtick + single-quote: `` `name' ``. Forgetting the closing `'` is the #1 macro bug. - **`by` requires sort** — use `bysort id:` instead of `by id:`. - **Factor variables** — use `i.race` for categorical. Bare `race` treats categories as continuous. - **Always check `_merge`** — `tab _merge` after every `merge`. - **`e()` results overwrite** — a new estimation command wipes previous `e()`. Use `estimates store`. For full gotchas and patterns: `stata-cli skill` ## Commands ### Run code ```bash stata-cli run "sysuse auto, clear" stata-cli run "sysuse auto, clear regress price mpg weight" echo "display 42" | stata-cli run - ``` ### Run a .do file ```bash stata-cli do analysis.do ``` ### View data
Details
- Skill name
stata-cli- Repository
- ashuiGordon/stata-cli
- Repo updated
- 28 October 2026
FAQ
What does the Stata CLI skill do?
Run Stata commands, .do files, view data, inspect results, and get help from the terminal. Wraps PyStata with a daemon mode for fast execution. Built-in Stata reference library with 57 topics. Designed for AI agents.
How do I install the Stata CLI skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add ashuiGordon/stata-cli --skill stata-cli. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Stata CLI popular?
It lives in ashuiGordon/stata-cli, which has 58 GitHub stars and 4 forks.
Related skills
Milvus
47zilliztech/milvus-skill
Operate Milvus vector database with pymilvus Python SDK. Use when the user wants to connect to Milvus, create collections, insert vectors, perform similarity search, hybrid search, full-text search, manage indexes, partitions, databases, or RBAC via Python code.
Shelby
45shelby/shelby-skills
Shelby, a data platform with an S3-compatible API. Use when the user asks about Shelby in general or is starting a Shelby integration, to route to the right Shelby skill.
Codespaces
54diskd-ai/codespaces
Build and query architecture-aware code search, dependency graphs, call flows, impact analysis, and belief maps for Python, TypeScript, TSX, Rust, C#, Java, Go, Ruby, and Ruby on Rails repositories. Use before non-trivial code changes to find module boundaries, blast radius, architecture violations, and the minimal source files to read.
Xiaobai Skills
59Tyuts/xiaobai-skills
One-click starter pack and curator for Codex/agent skills. Use when a beginner wants a high-quality default skills setup across common needs, when the user asks to install useful skills without researching them one by one, or when the installed skills library needs auditing, deduplication, conflict resolution, global-vs-backup selection, restore planning, or a written skills inventory.
Tgcli
44kfastov/tgcli
Telegram CLI for reading/searching messages, syncing archives, and sending or downloading files. Use when the user asks about Telegram chats, messages, contacts, groups, or files.
Alibaba Java Development Guide
60Sxuan-Coder/alibaba-java-development-guide
《阿里巴巴Java开发手册(黄山版)》总纲与路由入口。涵盖编程规约、异常日志、单元测试、安全规约、MySQL数据库、工程结构、设计规约七大维度。Use when writing, reviewing, or designing Java code; handling exceptions/logging; writing SQL or designing tables; writing unit tests; designing project architecture; or whenever Alibaba Java standards apply. 写/改 Java 或 SQL 代码前先读 SKILL.md「规约执行策略」。P0 红线(新代码与被改到的存量代码都必须合规,静默保留红线问题视为违规):禁 Executors.newFixedThreadPool/newCachedThreadPool 等工厂(须 new ThreadPoolExecutor 显式参数);禁裸 new Thread;日期禁 SimpleDateFormat 与 java.util.Date(一律 java.time + DateTimeFormatter);SQL 禁 ${} 拼接、update/delete 必带 where;资源必须 try-with-resources;禁空 catch 吞异
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.