DS

dylantmoore/stata-skill

Code review

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

302 stars Качество 43 Тренд 20NOASSERTION

dylantmoore/stata-skill - кандидат на агентские навыки, импортированный из https://github.com/dylantmoore/stata-skill.

Обзор

dylantmoore/stata-skill - кандидат на агентские навыки, импортированный из https://github.com/dylantmoore/stata-skill.

Обзор (машинный перевод)

Этот проект содержит два навыка Клода Кода:

  1. Stata — Всеобъемлющий справочник, рассказывающий Клоду, как использовать Stata. Охватывает основной синтаксис, управление данными, эконометрику, каузальный вывод, графику и пакеты сообщества 20+.

  2. Stata C Plugins — навык, который говорит Клоду, как сделать код Stata, который использует плагины C для выполнения задач. Он включает в себя информацию, которую Клод может использовать для перевода существующих пакетов в C-плагины, которые можно вызвать из Stata. Это очень полезно, потому что это означает, что вы можете делать вещи в Stata, которые вы не могли бы сделать очень легко.

Пока вы можете где-то найти существующий пакет, вы можете просто позволить Клоду взглянуть на существующий пакет Python, и этот навык обеспечивает рабочий процесс, который Клод может использовать для разработки репликации того, что он есть, реализованный в Python или R или любом другом, который работает в Stata и использует плагин C. Во многих, если не в большинстве случаев, вы должны быть в состоянии получить что-то, что работает как минимум так же быстро в Stata, как и на языке оригинала, если не быстрее.

##Установка

Добавьте это РЕПО в качестве торговой площадки в Claude Code:

Затем установите любой вариант, соответствующий вашим потребностям:

Плагин | Командование | [скрыто] [скрыто] [скрыто] [скрыто]

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

Stata Skills for Claude Code

This project contains two Claude Code skills:

  1. Stata — A comprehensive reference that tells Claude how to use Stata. Covers core syntax, data management, econometrics, causal inference, graphics, and 20+ community packages.

  2. 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.

Installation

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.

What’s Included

Skill 1: Stata

37 core reference files covering:

  • Data import/export, management, and cleaning
  • Linear regression, panel data, time series
  • Limited dependent variables, survival analysis, SEM
  • Causal inference: DiD, RD, matching, treatment effects
  • Mata programming and matrix operations
  • Graphics, tables, and reporting
  • Workflow best practices

20 community package guides including:

  • reghdfe — high-dimensional fixed effects
  • estout / outreg2 — publication-quality tables
  • csdid, did_multiplegt — modern DiD estimators
  • rdrobust — regression discontinuity
  • psmatch2 — propensity score matching
  • synth — synthetic control
  • ivreg2 / xtabond2 — IV and dynamic panel GMM
  • And more (binsreg, coefplot, grstyle, winsor2, gtools, …)

Skill 2: Stata C Plugins

Reference files covering:

  • Stata plugin SDK (stplugin.h) setup and data flow
  • Memory safety, debugging, and common failure modes
  • .ado wrapper patterns (preserve/merge, plugin loading)
  • Cross-platform compilation (macOS, Linux, Windows)
  • Performance optimization (pthreads, pre-sorted indices, XorShift RNG)
  • Packaging and distribution via net install
  • Translation workflow for porting Python/R packages to Stata
  • Testing strategy with correlation-based validation against reference implementations

How It Works

Открыть полный README на GitHub

Рекомендуемые инструменты

Попробуйте другой запрос или уберите фильтр.

Установка

npx skillfish add dylantmoore/stata-skill
Новичок в MCP? Начните с руководства на mcpskill.org →