Stata-to-Python translation for data analysis. An agent skill from brycewang-stanford/Auto-Empirical-Research-Skills.

Custom licenceAuto-check passedResearch & Science

Install Stata Python Translation

skills CLI
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill stata-python-translation -a claude-code

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

GitHub CLI
$ gh skill install brycewang-stanford/Auto-Empirical-Research-Skills stata-python-translation --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/brycewang-stanford/Auto-Empirical-Research-Skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/17-DAAF-Contribution-Community-daaf/dot-claude/skills/stata-python-translation .claude/skills/stata-python-translation && 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-python-translation
GitHub stars
4.5k
Token cost
~6.2k tokens
SKILL.md length
1,929 words
Files
11 (incl. references)
Skills in repo
364
Repo updated
First seen
Licence
Custom licence

At a glance

Stata-to-Python translation for data analysis. An agent skill from brycewang-stanford/Auto-Empirical-Research-Skills.

  • Works in 5 steps: Stata user auditing DAAF Python code and… → Agent annotating code with… → Stata user learning Python for data… → …
  • User has Stata background
  • SKILL.md covers What This Skill Does, How to Use This Skill, Quick Decision Trees and Command Mapping Overview, plus 5 more sections
  • Calls python

What it does

Stata Python Translation is an agent skill from brycewang-stanford/Auto-Empirical-Research-Skills. Stata-to-Python translation for data analysis. Maps Stata commands (reghdfe, xtreg, ivregress, margins, esttab, svy:) to Python (polars, pyfixest, statsmodels, svy). Use when user has Stata background or requests Stata-equivalent code comments.

Its SKILL.md is about 6.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 11 other files, including reference files (for example `references/causal-inference.md`, `references/data-management.md` and `references/external-resources.md`).

It sits in Research & Science, covering Econometrics and empirical research and Translation. It works with Python, Polars and statsmodels. The repository describes itself as: 🔬 A curated collection of 23,000+ agent skills for empirical research across 8 social science disciplines. | 精选 23,000+ AI Agent 技能库,覆盖8大社会科学学科的实证研究。CoPaper.AI…

When your agent uses it

  • User has Stata background
  • Requests Stata-equivalent code comments

Example prompts

  • “/stata-python-translation”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Stata user auditing DAAF Python code and needing to understand what operations are being performed
  2. Agent annotating code with Stata-equivalent comments for a Stata-background researcher
  3. Stata user learning Python for data analysis and needing a conceptual bridge
  4. Translating a specific Stata command or do-file idiom to its Python equivalent
  5. Understanding where Stata commands have no direct Python equivalent (and what the workaround is)

What it can do on your machine

Read from SKILL.md and the folder at commit 9fa87d8. 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

    Shell commands in SKILL.md call:

    • python

    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 Python Translation loads about 6.2k tokens when it runs, and up to ~78k if it reads all its reference files. Until then it costs about 67 tokens; SKILL.md has 1,929 words of instructions outside code blocks.

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

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,929 words (~6,203 tokens).

“Stata-to-Python translation reference for quantitative social science data analysis. Maps Stata commands and packages (reghdfe, xtreg, ivregress, margins, esttab, svy:, graph twoway) to DAAF Python equivalents (polars, pyfixest, statsmodels, linearmodels, marginaleffects, svy, plotnine). Use when user mentions Stata background, requests…”

— opening of SKILL.md by brycewang-stanford, Custom licence
name
stata-python-translation
metadata.audience
research-coders
metadata.domain
research-methodology
metadata.skill-last-updated
2026-03-28

Read the full SKILL.md on GitHub

Files

SKILL.md and 10 other files (references) in skills/17-DAAF-Contribution-Community-daaf/dot-claude/skills/stata-python-translation of brycewang-stanford/Auto-Empirical-Research-Skills.

  • SKILL.md
  • references/causal-inference.md
  • references/data-management.md
  • references/external-resources.md
  • references/gotchas.md
  • references/paradigm-differences.md
  • references/regression-modeling.md
  • references/strings-dates-labels.md
  • references/survey-spatial-ml.md
  • references/visualization.md
  • references/workflow-environment.md

Open the folder on GitHubat commit 9fa87d8

Compare with similar skills

Stata Python Translation 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 Python Translation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Stata Python Translation this skillbrycewang-stanford/Auto-Empirical-Research-Skills4.5k—~6.2kAutomated safety check: PassCustom licence
Stata C Pluginsdylantmoore/stata-skill2911 repos~5.8kAutomated safety check: PassCustom licence
Python Panel Datameleantonio/awesome-econ-ai-stuff6412 repos~804Automated safety check: PassCustom licence
Tooluniverse Epigenomicswu-yc/LabClaw1.1k2 repos~14kAutomated safety check: PassNone
Bio Temporal Genomics Temporal GrnGPTomics/bioSkills1.2k1 repos~5kAutomated safety check: PassMIT
Bio Workflows Timecourse PipelineGPTomics/bioSkills1.2k1 repos~6kAutomated safety check: PassMIT

Similar skills

  • 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
    Research & ScienceAuto-check passed
  • Python Panel Data

    meleantonio/awesome-econ-ai-stuff

    Panel data analysis with Python using linearmodels and pandas.

    641 GitHub starsUsed in 2 repos~804 tokens
    Data & AnalyticsAuto-check passed
  • Production-ready genomics and epigenomics data processing for BixBench questions.

    1.1k GitHub starsUsed in 2 repos~14k tokens
    Research & ScienceAuto-check passed
  • Infers directed, time-delayed gene regulatory edges from BULK time-series expression using Granger causality (statsmodels VAR F-test), dynGENIE3 (tree ensembles regressing ODE-derived derivatives…

    1.2k GitHub starsUsed in 1 repo~5k tokens
    Research & ScienceAuto-check passed
  • End-to-end bulk time-course analysis from an expression matrix to temporal gene modules and per-cluster pathway enrichment.

    1.2k GitHub starsUsed in 1 repo~6k tokens
    Research & ScienceAuto-check passed
  • NSFC Abstract Writer

    huangwb8/ChineseResearchLaTeX

    Writes Chinese and English abstracts for NSFC grant applications, with a recommended title and five alternatives, within set character limits.

    2.9k GitHub starsUsed in 1 repo~1.3k tokens
    Research & ScienceAuto-check passed

More from brycewang-stanford/Auto-Empirical-Research-Skills

All 364 skills in this repo
  • Latex Paper En

    brycewang-stanford/Auto-Empirical-Research-Skills

    English LaTeX academic paper assistant for existing .tex projects.

    4.5k GitHub starsUsed in 1 repo~2.2k tokens
    Auto-check passed
  • Bayesian Workflow

    brycewang-stanford/Auto-Empirical-Research-Skills

    Opinionated Bayesian modeling workflow with PyMC and ArviZ. An agent skill from brycewang-stanford/Auto-Empirical-Research-Skills.

    4.5k GitHub stars~3.5k tokensUpdated 3 days ago
    Auto-check passed
  • Five Questions

    brycewang-stanford/Auto-Empirical-Research-Skills

    Deeply analyze any empirical economics PDF using the five-question framework (五问框架): research question, identification strategy, core estimand, robustness logic, and scholarly contribution.

    4.5k GitHub stars~1.7k tokensUpdated 3 days ago
    Auto-check: notes
  • Kaggle Research

    brycewang-stanford/Auto-Empirical-Research-Skills

    A skill your agent uses when a research task needs reproducible Kaggle discovery, metadata inspection, bounded public-data downloads, competition or kernel discovery, model discovery, or an…

    4.5k GitHub stars~868 tokensUpdated 3 days ago
    Auto-check passed
  • Latex Thesis Zh

    brycewang-stanford/Auto-Empirical-Research-Skills

    Chinese LaTeX thesis assistant for existing .tex degree thesis projects (XeLaTeX/LuaLaTeX/latexmk).

    4.5k GitHub stars~1.5k tokensUpdated 3 days ago
    Auto-check passed
  • Obsidian Project Memory

    brycewang-stanford/Auto-Empirical-Research-Skills

    This skill should be used when the user asks to maintain an Obsidian knowledge base for a research project, import an existing research repository into Obsidian, keep project memory or daily notes…

    4.5k GitHub stars~2.4k tokensUpdated 3 days ago
    Auto-check passed

Questions about Stata Python Translation

What does Stata Python Translation do?

Stata-to-Python translation for data analysis. An agent skill from brycewang-stanford/Auto-Empirical-Research-Skills. Stata Python Translation is an agent skill from brycewang-stanford/Auto-Empirical-Research-Skills. Stata-to-Python translation for data analysis.

When should I use Stata Python Translation?

Stata Python Translation fits situations like: user has Stata background; requests Stata-equivalent code comments.

How do I install Stata Python Translation in Claude Code?

Run `npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill stata-python-translation -a claude-code`. Or copy the skill folder (skills/17-DAAF-Contribution-Community-daaf/dot-claude/skills/stata-python-translation in brycewang-stanford/Auto-Empirical-Research-Skills) into .claude/skills/stata-python-translation in your project. Claude Code loads it when a task matches its description.

How do I install Stata Python Translation in Codex?

Run `npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill stata-python-translation -a codex`. Or copy the skill folder (skills/17-DAAF-Contribution-Community-daaf/dot-claude/skills/stata-python-translation in brycewang-stanford/Auto-Empirical-Research-Skills) into .agents/skills/stata-python-translation in your project. Codex loads it when a task matches its description.

Can I use Stata Python Translation 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 brycewang-stanford/Auto-Empirical-Research-Skills --skill stata-python-translation -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-python-translation, .gemini/skills/stata-python-translation, .github/skills/stata-python-translation and .opencode/skills/stata-python-translation in your project.

What does Stata Python Translation need to run?

Going by SKILL.md and its folder, Stata Python Translation needs the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Stata Python Translation 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 Python Translation 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 Python Translation use?

Stata Python Translation 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 Python Translation use?

About 6.2k tokens (SKILL.md is roughly 25k 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 71k tokens, read only when the agent opens those files.

What are the alternatives to Stata Python Translation?

Skills that share tags, products or a category with Stata Python Translation: Stata C Plugins (dylantmoore/stata-skill, 291 stars), Python Panel Data (meleantonio/awesome-econ-ai-stuff, 641 stars), Tooluniverse Epigenomics (wu-yc/LabClaw, 1.1k stars) and Bio Temporal Genomics Temporal Grn (GPTomics/bioSkills, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Stata Python Translation?

brycewang-stanford (a GitHub user) maintains it in brycewang-stanford/Auto-Empirical-Research-Skills, which has 4,529 GitHub stars. The repository holds 364 skills in this directory. The repository was last updated on October 5, 2026.

Source: brycewang-stanford/Auto-Empirical-Research-Skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.