← LeaderboardThe Skill Leaderboard

stata-inspect

Describe and summarize the current dataset in memory. Optionally inspect a specific variable with codebook.

Published by brycewang-stanford ↗brycewang-stanford/Auto-Empirical-Research-Skills

Try your first task

stata-inspect

Start a fresh conversation. Replace the highlighted placeholders.

Use stata-inspect to Inspect [variable name] in the current dataset and return its codebook output.

Required inputs

  • [variable name]

User-approved starter prompt based on a pinned source version; check current skill requirements before running. Task evidence ↗

SKILL.md

name: stata-inspectdescription: Describe and summarize the current dataset in memory. Optionally inspect a specific variable with codebook.

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")).

stata-inspect by brycewang-stanford · The Skill Leaderboard