Review Stata Scripts
Run the comprehensive Stata code review protocol.
Steps
Identify scripts to review:
- If
$ARGUMENTSis a specific.dofilename or path: review that file only - If
$ARGUMENTSisall: review all.doscripts incode/stata/
- If
For each script, launch the
stata-revieweragent with instructions to:- Follow the full protocol in
.claude/agents/stata-reviewer.md - Read
.claude/rules/stata-code-conventions.mdfor current standards - Save report to
quality_reports/[script_name]_stata_review.md
- Follow the full protocol in
After all reviews complete, present a summary:
- Total issues found per script
- Breakdown by severity (Critical / High / Medium / Low)
- Top 3 most critical issues across all scripts
IMPORTANT: Do NOT edit any Stata source files. Only produce reports. Fixes are applied after user review.