Codebook

From brycewang-stanford/Auto-Empirical-Research-Skills · View interactive version

Codebook is an AI agent skill from the GitHub repository brycewang-stanford/Auto-Empirical-Research-Skills. Auto-generates a Markdown codebook from a dataset (CSV, DTA, Excel, Parquet) with types and summary statistics. Use when documenting variables.

How to use this skill

Skill file

Generate Variable Codebook

Auto-generate a Markdown codebook documenting all variables in a dataset.

Arguments

Steps

  1. Determine the file format from the extension:
  1. Load the dataset using uv run python and extract metadata for each variable:
  1. Generate a Markdown codebook with:
  1. Derive the output filename from the dataset name:
  1. Save to references/<dataset-name>-codebook.md
  1. Report the file path and the number of variables documented.

Error handling

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.