Individual skill
generate-codebook
Use when a tabular dataset (CSV, Excel, Parquet, Stata, SAS) needs a data dictionary. Profiles every variable (type, levels, range, missingness) into codebook.md and codebook.json and flags coded values of unknown meaning as [NEEDS DICTIONARY] instead of guessing.
skills/generate-codebook/SKILL.md
Source commit cc462bc2069064b557c2fea12a1f83ed1fe67f66
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 7, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 376
- Repository last updated
- Nov 10, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- biostatistics Repository topic
- claude-code Repository topic
- claude-skills Repository topic
- clinical-research Repository topic
- diagnostic-accuracy Repository topic
- literature-review Repository topic
- manuscript Repository topic
- medical-ai Repository topic
- medical-research Repository topic
- meta-analysis Repository topic
- data Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 4,455 bytesSKILL.mdcore · 4,455 bytesSKILL.mdcore · 4,455 bytesreferences/codebook_schema.mddoc · 3,977 bytesscripts/generate_codebook.pyruns · 12,971 bytesskill.ymlasset · 1,237 bytestests/test_generate_codebook.shruns · 7,056 bytes
Read excerpt
# Generate Codebook Skill
Turn a raw tabular dataset into a structured, **citable** data dictionary (codebook). This is the
*generator* side of the dictionary-first workflow: it produces the artifact that `/define-variables`
and dictionary-first QC later consume. Distributions, types, and missingness are observable and the
bundled script profiles them; the **meaning** of a coded value (`fatty_liver_grade = 0`) is not
observable from the data and lives only in the authoritative data dictionary. You generate code and
review output — you do **not** invent the meaning of coded values.
## Deterministic Script
Run the bundled profiler rather than describing columns from memory:
```bash