By dylantmoore
Build high-performance C/C++ plugins for Stata using stplugin.h SDK. Set up development environment with Docker and Python, compile cross-platform .ado wrappers, optimize performance, debug data flows, and port Python/R packages to native extensions.
npx claudepluginhub dylantmoore/stata-skill --plugin stata-bundleThis project contains two Claude Code skills:
Stata — A comprehensive reference that tells Claude how to use Stata. Covers core syntax, data management, econometrics, causal inference, graphics, and 20+ community packages.
Stata C Plugins — A skill that tells Claude how to make Stata code that uses C plugins to do things. It includes information that Claude can use to translate existing packages into C plugins that can be called from Stata. This is very useful because it means you can do things in Stata that you wouldn't otherwise be able to do very easily.
As long as you can find an existing package somewhere, you can just let Claude go look at the existing Python package and this skill provides a workflow that Claude can use to develop a replication of whatever it is, implemented in Python or R or whatever, that runs in Stata and uses a C plugin. In many if not most cases, you should be able to get something that runs at least as fast in Stata as it did in the original language, if not faster.
Add this repo as a marketplace in Claude Code:
/plugin marketplace add dylantmoore/stata-skill
Then install whichever option fits your needs:
| Plugin | Command |
|---|---|
| Stata reference only | /plugin install stata |
| C plugin development only | /plugin install stata-c-plugins |
| Both skills | /plugin install stata-bundle |
You can also find this and other plugins via the claude-plugins collection.
37 core reference files covering:
20 community package guides including:
reghdfe — high-dimensional fixed effectsestout / outreg2 — publication-quality tablescsdid, did_multiplegt — modern DiD estimatorsrdrobust — regression discontinuitypsmatch2 — propensity score matchingsynth — synthetic controlivreg2 / xtabond2 — IV and dynamic panel GMMReference files covering:
stplugin.h) setup and data flow.ado wrapper patterns (preserve/merge, plugin loading)net installBoth skills use progressive disclosure: a compact SKILL.md file loaded on activation directs Claude to read only the reference files relevant to the current task. This keeps context usage efficient while giving Claude access to detailed reference documents when needed.
| Category | Files | Topics |
|---|---|---|
| Data Operations | 7 | Import, management, strings, dates, math functions |
| Statistics | 10 | Regression, panel, time series, MLE, GMM, survey, MI |
| Causal Inference | 5 | DiD, RD, matching, treatment effects, selection |
| Advanced Methods | 5 | Survival, SEM, nonparametric, spatial, ML/lasso |
| Programming | 6 | Do-files, macros, loops, Mata |
| Output & Workflow | 3 | Tables, reporting, best practices, external tools |
| Packages | 20 | Community-contributed packages |
| C Plugins | 4 | SDK patterns, performance, packaging, translation |
This repo is also a good place to learn about building Claude Code skills. The ROADMAP.md lists open problems around testing, progressive disclosure, and dynamic documentation that apply to skill development in general — not just Stata.
See CONTRIBUTING.md for how to add documentation for new Stata packages. Pull requests welcome!
This reference material is derived in part from Stata's official documentation and community package documentation. No copyright is claimed. Stata is a registered trademark of StataCorp LLC. This project is not affiliated with or endorsed by StataCorp.
Access thousands of AI prompts and skills directly in your AI coding assistant. Search prompts, discover skills, save your own, and improve prompts with AI.
Behavioral guidelines to reduce common LLM coding mistakes, derived from Andrej Karpathy's observations on LLM coding pitfalls
Comprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.
Design fluency for frontend development. 1 skill with 23 commands (/impeccable polish, /impeccable audit, /impeccable critique, etc.) and curated anti-pattern detection.
Reliable automation, in-depth debugging, and performance analysis in Chrome using Chrome DevTools and Puppeteer
Claude Code skills for Godot 4.x game development - GDScript patterns, interactive MCP workflows, scene design, and shaders