Stata Inspect
Documentsstata-inspectStata Inspect is an Agent Skill for documents 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.
Describe and summarize the current dataset in memory. Optionally inspect a specific variable with codebook.
QUICK START
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.
Prompt to paste
Inspect the Agent Skill at https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills/blob/HEAD/skills/64-tmonk-mcp-stata/skills/stata-inspect/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/stata-inspect, 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.
If an argument (variable name) is provided:
- Call
stata_inspect_data(action="codebook", query=<variable>)and display the codebook output.
If no argument is provided:
- Call
stata_inspect_data(action="describe")— display the dataset structure (obs, vars, types, labels). - Call
stata_inspect_data(action="summary")— display descriptive statistics (N, mean, sd, min, max). - Present both results in a clear, readable format.
If either call returns an error indicating no data in memory, tell the user to load data first (e.g., /stata-run sysuse auto, clear or stata_load_data("auto")).