stata · franklee16, stata-skill-main — Claude Code skill: what it does, how to install
This skill assists with writing, running, and debugging Stata code, including do-files and Mata programs. Use it for dataset work and regressions.
no license ★ 240 updated 2026-09-18
npx skills add franklee16/academic-research-skills --skill stata -a claude-codeWhat stata does
The skill gives an agent context for Stata tasks such as loading data, analysing it, building commands or packages, and working with Mata syntax. Ask it to draft or inspect code, create a do-file, or troubleshoot an ado-file.
Its materials include terminal commands for running Stata and examples of do-file workflows. For searching PDF manuals, it describes pdfplumber and markitdown; large manuals should not be loaded in full. The stata-mp command and /Applications/StataNow/ paths belong to the documented setup, so they may not match another environment.
What it helps with
- write a do-file for a data analysis
- track down an error in Stata code
- load a dataset and run a regression
- work through Mata syntax
Example prompts for the agent
- Write a do-file that loads
data.dta, describes the data, and runs a regression. - Inspect this Stata code and explain why it fails when run.
- Search the Stata manuals for regression guidance with
pdfplumber.
How to install stata
1Skills CLI (Vercel)
npx skills add franklee16/academic-research-skills --skill stata -a claude-code2Manually: put the files in place
~/.claude/skills/stata-skill-main/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/stata-skill-main/
1Skills CLI (Vercel)
npx skills add franklee16/academic-research-skills --skill stata -a codex2Manually: put the files in place
.agents/skills/stata-skill-main/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add franklee16/academic-research-skills --skill stata -a cursor2Manually: put the files in place
.cursor/skills/stata-skill-main/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install franklee16/academic-research-skills data-analysis/stata-skill-main/SKILL.md2Manually: put the files in place
.github/skills/stata-skill-main/SKILL.md1Skills CLI (Vercel)
npx skills add franklee16/academic-research-skills --skill stata -a gemini-cli2Platform CLI
gemini skills install https://github.com/franklee16/academic-research-skills --path data-analysis/stata-skill-mainManually: put the files in place
.devin/skills/stata-skill-main/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about stata
How do I install stata in Claude Code?
Run npx skills add franklee16/academic-research-skills --skill stata-skill-main -a claude-code. The skill file is at ~/.claude/skills/stata-skill-main/SKILL.md.
What does the stata skill do?
It helps an agent write, run, and debug Stata code, work with datasets and regressions, and handle ado-files or Mata programs.
How can I search Stata manuals?
The skill describes using the pdfplumber Python API to search PDF manuals and markitdown[pdf] to turn them into readable Markdown. Large manuals should not be loaded all at once.
Similar skills
All skills for Data and databases →stata by other authors comes first.