| name | wb-do-file-reader |
| description | World Bank-style Stata do-file and analysis-script reader. Use when inspecting `.do`, Python, or R scripts to understand generated tables, figures, samples, indicator definitions, merge logic, hardcoded numbers, and the provenance of claims before updating a deck or briefing.
|
| workflow_stage | code-review |
| version | 1.0.0 |
| tags | ["stata","do-files","provenance","reproducibility","slide-updates"] |
WB Do-file Reader
Use this skill before editing presentations or summaries derived from analysis code.
Inspection Workflow
- Identify the master script and execution order.
- List raw inputs, intermediate files, processed outputs, tables, figures, and logs.
- Extract the unit of analysis for each script.
- Trace indicator definitions and sample restrictions.
- Find ID checks, duplicate handling, merge cardinality checks, and unresolved warnings.
- Flag hardcoded numbers in prose, slides, or scripts.
- Summarize which outputs support each deck claim.
Red Flags
merge m:m in Stata or many-to-many joins without aggregation;
drop if without logged counts;
use or save, replace touching raw data;
- manual edits to generated tables;
- before/after welfare language presented as causal impact;
- slide numbers that do not match generated tables.
Use: