Diagnose local Stata, MCP, package, startup, graph-export, and permissions issues.

Custom licenceAuto-check passedResearch & Science

Install Stata Environment Diagnose

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

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

GitHub CLI
$ gh skill install brycewang-stanford/Auto-Empirical-Research-Skills stata-environment-diagnose --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/64-tmonk-mcp-stata/skills/stata-environment-diagnose .claude/skills/stata-environment-diagnose && 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-environment-diagnose
GitHub stars
4.6k
Token cost
~194 tokens
SKILL.md length
55 words
Files
5 (incl. scripts, references)
Skills in repo
383
Repo updated
First seen
Licence
Custom licence

At a glance

Diagnose local Stata, MCP, package, startup, graph-export, and permissions issues.

  • Works in 4 steps: Verify detection with… → Reproduce the smallest failing command. → Use logs, package checks, and… → …
  • Setup is failing
  • Runs Python scripts from its folder
  • Stata is not discovered

What it does

Stata Environment Diagnose is an agent skill from brycewang-stanford/Auto-Empirical-Research-Skills. Diagnose local Stata, MCP, package, startup, graph-export, and permissions issues. Use when setup is failing, Stata is not discovered, packages are missing, logs are truncated, or a managed machine behaves differently from a normal workstation.

Its SKILL.md is about 190 tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts and reference files (for example `agents/openai.yaml`, `manifest.json` and `references/troubleshooting.md`).

It sits in Research & Science, covering Econometrics and empirical research. It works with Model Context Protocol. 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

  • Setup is failing
  • Stata is not discovered
  • Packages are missing
  • Logs are truncated

Example prompts

  • “/stata-environment-diagnose”

Requirements

  • Python 3

Workflow steps

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

  1. Verify detection with stata_manage_session(action="detect").
  2. Reproduce the smallest failing command.
  3. Use logs, package checks, and environment reporting before suggesting a fix.
  4. Separate root cause, evidence, remediation, and verification.

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

    Ships 1 file in scripts/ (Python), which the agent can run.

    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 Environment Diagnose loads about 194 tokens when it runs, and up to ~335 if it reads all its reference files. Until then it costs about 68 tokens; SKILL.md has 55 words of instructions outside code blocks.

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

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); the scripts in this folder 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 55 words (~194 tokens).

“Use this skill for setup and platform troubleshooting.”

— opening of SKILL.md by brycewang-stanford, Custom licence
name
stata-environment-diagnose

Read the full SKILL.md on GitHub

Files

SKILL.md and 4 other files (scripts, references) in skills/64-tmonk-mcp-stata/skills/stata-environment-diagnose of brycewang-stanford/Auto-Empirical-Research-Skills.

  • SKILL.md
  • agents/openai.yaml
  • manifest.json
  • references/troubleshooting.md
  • scripts/report_environment.py

Open the folder on GitHubat commit 9fa87d8

Compare with similar skills

Stata Environment Diagnose 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 Environment Diagnose compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Stata Environment Diagnose this skillbrycewang-stanford/Auto-Empirical-Research-Skills4.6k—~194Automated safety check: PassCustom licence
Stata AuditSepineTam/mcp-for-stata264—~1.2kAutomated safety check: PassAGPL-3.0
Diagnostic DofileSepineTam/mcp-for-stata264—~1.2kAutomated safety check: PassAGPL-3.0
Stata DiscoverSepineTam/mcp-for-stata264—~1.7kAutomated safety check: PassAGPL-3.0
Rfc Impl GeneratorSepineTam/mcp-for-stata264—~1.1kAutomated safety check: PassAGPL-3.0
Stata SkillSepineTam/mcp-for-stata264—~2.7kAutomated safety check: PassAGPL-3.0

Similar skills

  • Stata Audit

    SepineTam/mcp-for-stata

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

    264 GitHub stars~1.2k tokensUpdated 5 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 5 days ago
    Research & ScienceAuto-check passed
  • Stata Discover

    SepineTam/mcp-for-stata

    A skill your agent uses when you need to find Stata on the user's machine or configure stata-mcp to use it.

    264 GitHub stars~1.7k tokensUpdated 5 days ago
    Research & ScienceAuto-check passed
  • Rfc Impl Generator

    SepineTam/mcp-for-stata

    Generate RFC and IMPL documents from a user-provided feature/fix description.

    264 GitHub stars~1.1k tokensUpdated 5 days ago
    Research & ScienceAuto-check passed
  • Stata Skill

    SepineTam/mcp-for-stata

    A packaged Stata Runner skill via official MCP-for-Stata server including statado, adopackageinstall, help, readlog and getdatainfo tools.

    264 GitHub stars~2.7k tokensUpdated 5 days ago
    Research & ScienceAuto-check passed
  • Fin Data Acquisition

    csmar432/finai-research

    根据REFINEDDESIGN.md中的变量定义,自动获取所需数据并生成可执行的回归分析脚本(Python/Stata)。

    109 GitHub stars~2k tokensUpdated 5 days ago
    Research & ScienceAuto-check passed

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

All 383 skills in this repo
  • Aer Consistency

    brycewang-stanford/Auto-Empirical-Research-Skills

    A skill your agent uses when auditing a finished or near-finished AER, AER:Insights, or AEJ manuscript for internal consistency: headline numbers across abstract, introduction, results, and tables…

    4.6k GitHub starsUsed in 1 repo~2.6k tokens
    Auto-check passed
  • Latex Paper En

    brycewang-stanford/Auto-Empirical-Research-Skills

    English LaTeX academic paper assistant for existing .tex projects.

    4.6k 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.6k GitHub stars~3.5k tokensUpdated 5 days ago
    Auto-check passed
  • Daily Paper Generator

    brycewang-stanford/Auto-Empirical-Research-Skills

    A skill your agent uses when the user asks to "generate daily paper", "search arXiv for EEG papers", "find EEG decoding papers", "review brain-computer interface papers", or wants to create paper…

    4.6k GitHub stars~2.2k tokensUpdated 5 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.6k GitHub stars~1.7k tokensUpdated 5 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.6k GitHub stars~868 tokensUpdated 5 days ago
    Auto-check passed

Questions about Stata Environment Diagnose

What does Stata Environment Diagnose do?

Diagnose local Stata, MCP, package, startup, graph-export, and permissions issues. Stata Environment Diagnose is an agent skill from brycewang-stanford/Auto-Empirical-Research-Skills. Diagnose local Stata, MCP, package, startup, graph-export, and permissions issues.

When should I use Stata Environment Diagnose?

Stata Environment Diagnose fits situations like: setup is failing; stata is not discovered; packages are missing; logs are truncated.

How do I install Stata Environment Diagnose in Claude Code?

Run `npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill stata-environment-diagnose -a claude-code`. Or copy the skill folder (skills/64-tmonk-mcp-stata/skills/stata-environment-diagnose in brycewang-stanford/Auto-Empirical-Research-Skills) into .claude/skills/stata-environment-diagnose in your project. Claude Code loads it when a task matches its description.

How do I install Stata Environment Diagnose in Codex?

Run `npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill stata-environment-diagnose -a codex`. Or copy the skill folder (skills/64-tmonk-mcp-stata/skills/stata-environment-diagnose in brycewang-stanford/Auto-Empirical-Research-Skills) into .agents/skills/stata-environment-diagnose in your project. Codex loads it when a task matches its description.

Can I use Stata Environment Diagnose 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-environment-diagnose -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-environment-diagnose, .gemini/skills/stata-environment-diagnose, .github/skills/stata-environment-diagnose and .opencode/skills/stata-environment-diagnose in your project.

What does Stata Environment Diagnose need to run?

Going by SKILL.md and its folder, Stata Environment Diagnose needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Stata Environment Diagnose 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 Environment Diagnose 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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Stata Environment Diagnose use?

Stata Environment Diagnose 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 Environment Diagnose use?

About 194 tokens (SKILL.md is roughly 776 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 141 tokens, read only when the agent opens those files.

What are the alternatives to Stata Environment Diagnose?

Skills that share tags, products or a category with Stata Environment Diagnose: Stata Audit (SepineTam/mcp-for-stata, 264 stars), Diagnostic Dofile (SepineTam/mcp-for-stata, 264 stars), Stata Discover (SepineTam/mcp-for-stata, 264 stars) and Rfc Impl Generator (SepineTam/mcp-for-stata, 264 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Stata Environment Diagnose?

brycewang-stanford (a GitHub user) maintains it in brycewang-stanford/Auto-Empirical-Research-Skills, which has 4,556 GitHub stars. The repository holds 383 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.