Agent skill

Stata

by dylantmoore in dylantmoore/stata-skill

Comprehensive Stata reference for writing correct .do files, data management, econometrics, causal inference, graphics, Mata programming, and 20 community packages (reghdfe, estout, did, rdrobust…

Custom licenceAuto-check passedResearch & Science

Install Stata

skills CLI
$ npx skills add dylantmoore/stata-skill --skill stata -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install dylantmoore/stata-skill stata --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/dylantmoore/stata-skill.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/stata/skills/stata .claude/skills/stata && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
stata
GitHub stars
291
Used in
1 other repo
Token cost
~4.2k tokens
SKILL.md length
1,204 words
Files
60 (incl. references)
Skills in repo
3
Repo updated
First seen
Licence
Custom licence

At a glance

Comprehensive Stata reference for writing correct .do files, data management, econometrics, causal inference, graphics, Mata programming, and 20 community packages (reghdfe, estout, did, rdrobust…

  • The user asks you to write
  • SKILL.md covers Critical Gotchas, Running Stata from the Command… and Routing Table
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Explain Stata code

What it does

Stata is an agent skill from dylantmoore/stata-skill. Comprehensive Stata reference for writing correct .do files, data management, econometrics, causal inference, graphics, Mata programming, and 20 community packages (reghdfe, estout, did, rdrobust, etc.). Covers syntax, options, gotchas, and idiomatic patterns. Use this skill whenever the user asks you to write, debug, or explain Stata code.

Its SKILL.md is about 4.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 60 other files, including reference files (for example `packages/asdoc.md`, `packages/binsreg.md` and `packages/coefplot.md`).

It sits in Research & Science, covering Econometrics and empirical research. The repository describes itself as: Claude Code skill for writing correct, idiomatic Stata code — covers syntax, data management, econometrics, causal inference, graphics, Mata, and 20 community packages.

When your agent uses it

  • The user asks you to write
  • Explain Stata code

Example prompts

  • “/stata”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 33a7efc. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are stata and bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Stata loads about 4.2k tokens when it runs, and up to ~122k if it reads all its reference files. Until then it costs about 87 tokens; SKILL.md has 1,204 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~87
When it runs · the whole SKILL.md, loaded when a task matches
~4.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~122k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,204 words (~4,194 tokens).

“You have access to comprehensive Stata reference files. Do not load all files. Read only the 1-3 files relevant to the user's current task using the routing table below.”

— opening of SKILL.md by dylantmoore, Custom licence
name
stata

Read the full SKILL.md on GitHub

Files

SKILL.md and 59 other files (references) in plugins/stata/skills/stata of dylantmoore/stata-skill.

  • SKILL.md
  • packages/asdoc.md
  • packages/binsreg.md
  • packages/coefplot.md
  • packages/data-manipulation.md
  • packages/diagnostics.md
  • packages/did.md
  • packages/estout.md
  • packages/event-study.md
  • packages/graph-schemes.md
  • packages/ivreg2.md
  • packages/nprobust.md
  • packages/outreg2.md
  • packages/package-management.md
  • packages/psmatch2.md
  • packages/rdrobust.md
  • packages/reghdfe.md
  • packages/synth.md
  • packages/tabout.md
  • packages/winsor.md
  • … and 40 more

Open the folder on GitHubat commit 33a7efc

Used in 1 other repository

We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in dylantmoore/stata-skill, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Stata next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Stata compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Stata this skilldylantmoore/stata-skill2911 repos~4.2kAutomated safety check: PassCustom licence
Example Datasetspymc-labs/CausalPy1.2k—~587Automated safety check: PassApache-2.0
Stata AuditSepineTam/mcp-for-stata264—~1.2kAutomated safety check: PassAGPL-3.0
Diagnostic DofileSepineTam/mcp-for-stata264—~1.2kAutomated safety check: PassAGPL-3.0
Referee2scunning1975/MixtapeTools4732 repos~2.4kAutomated safety check: PassNone
Review Papermaxwell2732/paper-replicate-agent-demo1372 repos~1.1kAutomated safety check: PassNone

Similar skills

  • Example Datasets

    pymc-labs/CausalPy

    Load built-in CausalPy example datasets for demos, tutorials, tests, and quick causal-analysis prototypes.

    1.2k GitHub stars~587 tokensUpdated today
    Research & ScienceAuto-check passed
  • Stata Audit

    SepineTam/mcp-for-stata

    Inspect, validate, summarize, and render local Stata-MCP audit evidence under .statamcp.

    264 GitHub stars~1.2k tokensUpdated 3 days ago
    Research & ScienceAuto-check passed
  • Diagnostic Dofile

    SepineTam/mcp-for-stata

    A skill your agent uses when the user needs to inspect, audit, or diagnose the safety of a Stata do-file.

    264 GitHub stars~1.2k tokensUpdated 3 days ago
    Research & ScienceAuto-check passed
  • Referee2

    scunning1975/MixtapeTools

    Systematic audit and review by Referee 2. An agent skill from scunning1975/MixtapeTools.

    473 GitHub starsUsed in 2 repos~2.4k tokens
    Research & ScienceAuto-check passed
  • Review Paper

    maxwell2732/paper-replicate-agent-demo

    Comprehensive manuscript review covering argument structure, econometric specification, citation completeness, and potential referee objections

    137 GitHub starsUsed in 2 repos~1.1k tokens
    Research & ScienceAuto-check passed
  • Legal Abductive Reasoning

    THUYRan/Legal-Skills-Chinese

    Legal abductive reasoning skill for generating and evaluating the most reasonable explanatory hypotheses when evidence is incomplete or facts are ambiguous.

    873 GitHub stars~4k tokensUpdated 1 mo ago
    Research & ScienceAuto-check passed

More from dylantmoore/stata-skill

  • Stata C Plugins

    dylantmoore/stata-skill

    Develop high-performance C/C++ plugins for Stata using the stplugin.h SDK.

    291 GitHub starsUsed in 1 repo~5.8k tokens
    Auto-check passed
  • Stata Skill Contributor

    dylantmoore/stata-skill

    Guide for contributing to the stata-skill project. An agent skill from dylantmoore/stata-skill.

    291 GitHub starsUsed in 1 repo~2.4k tokens
    Auto-check passed

Questions about Stata

What does Stata do?

Comprehensive Stata reference for writing correct .do files, data management, econometrics, causal inference, graphics, Mata programming, and 20 community packages (reghdfe, estout, did, rdrobust…. Stata is an agent skill from dylantmoore/stata-skill.).

When should I use Stata?

Stata fits situations like: the user asks you to write; explain Stata code.

How do I install Stata in Claude Code?

Run `npx skills add dylantmoore/stata-skill --skill stata -a claude-code`. Or copy the skill folder (plugins/stata/skills/stata in dylantmoore/stata-skill) into .claude/skills/stata in your project. Claude Code loads it when a task matches its description.

How do I install Stata in Codex?

Run `npx skills add dylantmoore/stata-skill --skill stata -a codex`. Or copy the skill folder (plugins/stata/skills/stata in dylantmoore/stata-skill) into .agents/skills/stata in your project. Codex loads it when a task matches its description.

Can I use Stata in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add dylantmoore/stata-skill --skill stata -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/stata, .gemini/skills/stata, .github/skills/stata and .opencode/skills/stata in your project.

What does Stata need to run?

SKILL.md names no scripts, command-line tools or credentials: Stata is instructions for the agent only. Our summary lists: Python 3.

Does Stata access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Stata safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Stata use?

Stata has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Stata use?

About 4.2k tokens (SKILL.md is roughly 17k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 118k tokens, read only when the agent opens those files.

What are the alternatives to Stata?

Skills that share tags, products or a category with Stata: Example Datasets (pymc-labs/CausalPy, 1.2k stars), Stata Audit (SepineTam/mcp-for-stata, 264 stars), Diagnostic Dofile (SepineTam/mcp-for-stata, 264 stars) and Referee2 (scunning1975/MixtapeTools, 473 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Stata?

dylantmoore (a GitHub user) maintains it in dylantmoore/stata-skill, which has 291 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on April 10, 2026.

Source: dylantmoore/stata-skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.