OpenParable
Skip to content
← Back to skills

Stata Inspect

Documents
stata-inspect

Stata 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.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. 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:

  1. Call stata_inspect_data(action="codebook", query=<variable>) and display the codebook output.

If no argument is provided:

  1. Call stata_inspect_data(action="describe") — display the dataset structure (obs, vars, types, labels).
  2. Call stata_inspect_data(action="summary") — display descriptive statistics (N, mean, sd, min, max).
  3. 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")).