# stata

This skill assists with writing, running, and debugging Stata code, including do-files and Mata programs. Use it for dataset work and regressions.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 240 repo stars
- Author: franklee16
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/franklee16/academic-research-skills/tree/HEAD/data-analysis/stata-skill-main/SKILL.md
- Updated: 2026-09-18
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/stata

## What it 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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add franklee16/academic-research-skills --skill stata -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/stata-skill-main/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/stata-skill-main/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add franklee16/academic-research-skills --skill stata -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/stata-skill-main/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add franklee16/academic-research-skills --skill stata -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/stata-skill-main/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install franklee16/academic-research-skills data-analysis/stata-skill-main/SKILL.md
```

2. **Manually: put the files in place**
- File: `.github/skills/stata-skill-main/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add franklee16/academic-research-skills --skill stata -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/franklee16/academic-research-skills --path data-analysis/stata-skill-main
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/stata-skill-main/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/franklee16/academic-research-skills/tree/HEAD/data-analysis/stata-skill-main/SKILL.md

## When to use it
- 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
- 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`.

## Similar
- [stata-replication](https://affpapa.org/en/nevibecode/skills/stata-replication.md) — skill · ★ 1729 repo stars
- [stata-regression](https://affpapa.org/en/nevibecode/skills/stata-regression.md) — skill · 430 installs
- [stata-mcp](https://affpapa.org/en/nevibecode/mcp/stata-mcp.md) — MCP server · ★ 281 repo stars
- [stata-data-cleaning](https://affpapa.org/en/nevibecode/skills/stata-data-cleaning.md) — skill · 359 installs
- [data-analysis](https://affpapa.org/en/nevibecode/skills/pedrohcgs-data-analysis.md) — skill · ★ 1729 repo stars
- [regression-modeler](https://affpapa.org/en/nevibecode/skills/regression-modeler.md) — skill · ★ 4719 repo stars

## Other versions with the same name
- [stata · franklee16](https://affpapa.org/en/nevibecode/skills/franklee16-stata.md) — ★ 240 repo stars

From the same set: [franklee16/academic-research-skills](https://affpapa.org/en/nevibecode/by/franklee16/academic-research-skills.md) — 98 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
