Skip to main content
skill CX Codex

stata · franklee16 — Claude Code skill: Stata reference for .do files

A Stata reference that Claude opens while you write, debug or explain .do files, from data cleaning to reghdfe and Mata.

no license ★ 240 updated 2026-09-18

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add franklee16/academic-research-skills --skill stata -a claude-code
Open on GitHub

What stata does

The skill gives Claude a set of Stata reference documents. Ask for a .do file and the matching ones come up: import and cleaning, descriptive statistics, regression, panel and time-series models, logit/probit/tobit, causal effects, Mata, graphics, export to Excel and Word. Community packages have their own sections, reghdfe and estout among them.

SKILL.md is an index with a routing table. 1–3 files per task, not the whole library. The same file spells out the traps: missing values sorting above every number, = where == belongs, an unclosed local macro quote, by on unsorted data, a categorical variable left continuous without i., an uninspected _merge after a merge, and weight types that do not swap.

Routing reads the phrasing of your request. Naming the command and the variables gets the right reference; a broad question does not.

What it helps with

  • write a .do file that merges and reshapes without breaking variable names
  • find out why missing values slipped into if income > 50000
  • build a regression table with esttab and export it to Word
  • fit a fixed-effects panel model with reghdfe and run a Hausman test
  • move a slow loop into Mata

Example prompts for the agent

  • Write a .do file that loads the panel, runs xtset id year and fits a fixed-effects model with reghdfe.
  • Why do missing values show up in list if age > 60, and how do I exclude them?
  • Turn these regressions into an esttab table and export it to Word.

How to install stata

1Skills CLI (Vercel)

npx skills add franklee16/academic-research-skills --skill stata -a claude-code

2Manually: put the files in place

~/.claude/skills/stata/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/stata/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about stata

How do I install the stata skill in Claude Code?

Run npx skills add franklee16/academic-research-skills --skill stata -a claude-code. The skill lands at ~/.claude/skills/stata/SKILL.md.

What does the stata skill do?

It gives Claude Stata references for data work, econometrics, graphics and Mata, plus sections on community packages such as reghdfe and estout.

Does it load every reference file at once?

No. SKILL.md limits each task to 1–3 files picked from its routing table.

Similar skills

All skills for Science and research →

stata by other authors comes first.

stata franklee16 This skill assists with writing, running, and debugging Stata code, including do-files and Mata programs. Use it for dataset work and regressions. CX Codex +1 ★ 240repo stars stata-regression Awesome Econ AI Community stata-regression is a Claude Code skill for preparing Stata regression code, checking data, and exporting tables for papers or reports. It covers linear and nonlinear models, fixed effects, and clustered errors. CX Codex +1 430installs stata-mcp SepineTam Lets your AI agent call local Stata for regressions, econometrics and paper replication. Your data and license stay on your machine. CX Codex +1 ★ 281repo stars stata-data-cleaning Awesome Econ AI Community stata-data-cleaning generates reproducible Stata do-files for empirical research, covering missing value replacement, outlier capping, and data integrity checks. CX Codex +1 359installs stata-replication Claude Code Academic Workflow The stata-replication skill builds numbered Stata scripts, runs them through an MCP server, and saves logs, tables, and figures. Use it to set up a reproducible analysis workflow. CX Codex +1 ★ 1,729repo stars r-empirical-finance aspi6246 Sets the R conventions your agent follows for empirical finance work: fixest regressions, DiD and IV models, Parquet loading through arrow, plots in ggplot2. CX Codex +1 ★ 165repo stars model-selection bis-med-it The model-selection Claude Code skill matches econometric models to a research question and available data. It runs when a user needs an approach or wants to check a model they have chosen. CX Codex +1 ★ 89repo stars

From the same set98

The whole set →
diagram-generator diagram-generator is a Claude Code skill that creates and edits draw.io, Mermaid, and Excalidraw diagrams from text descriptions. CX Codex +1 ★ 240repo stars LR LR helps write literature reviews, systematic review sections, and structured syntheses of scholarly sources for a research topic. CX Codex +1 ★ 240repo stars paper-to-social paper-to-social adapts academic papers and preprints into platform-native posts for LinkedIn, X, Xiaohongshu, and Substack. CX Codex +1 ★ 240repo stars nature-citation The nature-citation skill splits manuscript text into citable claims, searches selected journal families for supporting papers, and exports references. Use it when a draft needs evidence-linked citations. CX Codex +1 ★ 240repo stars yomitoki yomitoki converts research papers into technical, standalone HTML study notes with formulas, method breakdowns, and code links. CX Codex +1 ★ 240repo stars paper-revision paper-revision is a Claude Code skill that organizes referee feedback, plans manuscript changes, and drafts a response letter for journal revision. CX Codex +1 ★ 240repo stars propose-economics-paper-titles propose-economics-paper-titles reads an economics manuscript and returns one recommended English title plus alternatives, with every word checked against what the paper actually shows. CX Codex +1 ★ 240repo stars write-economics-abstract write-economics-abstract is a Claude Code skill that drafts, reviews, and fact-checks English abstracts against economics manuscripts. CX Codex +1 ★ 240repo stars

Project sponsors

Companies that keep this analytics open