stata-skill  by dylantmoore

Stata coding assistant for Claude Code

Created 5 months ago
267 stars

Top 95.7% on SourcePulse

GitHubView on GitHub
Project Summary

This repository provides two Claude Code skills designed to empower AI-assisted Stata programming and plugin development. It offers a comprehensive reference for generating correct, idiomatic Stata code across syntax, data management, econometrics, causal inference, graphics, and Mata, alongside guides for over 20 community packages. A secondary skill facilitates the creation of Stata C plugins, enabling the translation of existing Python/R packages into high-performance Stata extensions. This is ideal for users leveraging Claude Code for statistical analysis and Stata development.

How It Works

The skills employ a "progressive disclosure" strategy. A concise SKILL.md file, loaded upon activation, intelligently directs Claude to access only the specific reference files pertinent to the user's current task. This approach optimizes AI context window usage while ensuring detailed, relevant documentation is available when needed, maintaining efficiency without sacrificing depth.

Quick Start & Requirements

To install, add the repository to your Claude Code plugin marketplace: /plugin marketplace add dylantmoore/stata-skill. Then, install the desired skill(s): /plugin install stata (reference only), /plugin install stata-c-plugins (C plugin development only), or /plugin install stata-bundle (both skills). No specific Stata version or hardware prerequisites are listed, as this is a knowledge base for the AI.

Highlighted Details

  • Extensive Stata Coverage: Features 37 core reference files spanning data operations, statistics (regression, panel, time series, MLE, GMM, survey, MI), causal inference (DiD, RD, matching), advanced methods (survival, SEM, ML), programming (Mata), and output/workflow best practices.
  • Community Package Integration: Includes detailed guides for over 20 popular community packages such as reghdfe, estout, csdid, rdrobust, psmatch2, synth, ivreg2, and xtabond2.
  • Stata C Plugin Development: Offers guidance on building Stata C plugins, covering SDK setup, memory management, cross-platform compilation (macOS, Linux, Windows), performance optimization, and packaging for distribution via net install.
  • AI Skill Development Resource: Serves as a practical example for constructing Claude Code skills, with open development challenges documented in ROADMAP.md.

Maintenance & Community

The repository actively encourages contributions, with details provided in CONTRIBUTING.md and open problems listed in ROADMAP.md. Specific maintainer details, sponsorships, or community channels (like Discord/Slack) are not explicitly mentioned.

Licensing & Compatibility

The project states "No copyright is claimed," suggesting permissive usage, though it is not a formal open-source license. Generated Stata code should be compatible with standard Stata installations. C plugin development targets cross-platform compatibility. Usage of Stata itself is governed by StataCorp's proprietary licensing.

Limitations & Caveats

This project functions as an AI knowledge base for Claude Code, not as a standalone executable Stata package. The reference material is derived from existing documentation and is not officially endorsed by StataCorp LLC, the registered trademark holder for Stata. The absence of a formal license may require clarification for strict compliance needs.

Health Check
Last Commit

3 months ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
16 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.