Stata Environment Diagnose
Testing & Qualitystata-environment-diagnoseStata Environment Diagnose is an Agent Skill for testing & quality published in the brycewang-stanford/Auto-Empirical-Research-Skills repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
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.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills/blob/HEAD/skills/64-tmonk-mcp-stata/skills/stata-environment-diagnose/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/stata-environment-diagnose, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Environment Diagnose
Use this skill for setup and platform troubleshooting.
- Verify detection with
stata_manage_session(action="detect"). - Reproduce the smallest failing command.
- Use logs, package checks, and environment reporting before suggesting a fix.
- Separate root cause, evidence, remediation, and verification.
Read references/troubleshooting.md for the diagnosis flow and use scripts/report_environment.py for a deterministic environment summary.