review-stata

Review Stata do-files for reproducibility, logging, naming, and output-quality issues.

220|358|Updated Apr 29, 2026
One-click install
npx skills add https://github.com/maxwell2732/codex-stata-for-economists --skill review-stata-maxwell2732
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: review-stata
Source: https://github.com/maxwell2732/codex-stata-for-economists/tree/main/.claude/skills/review-stata
Command: npx skills add https://github.com/maxwell2732/codex-stata-for-economists --skill review-stata-maxwell2732

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents fragile or non-reproducible Stata do-files from slipping into your workflow by turning them into a structured quality review.

Core Features & Use Cases

  • Automated do-file review: Delegates to the stata-reviewer agent to assess reproducibility, logging, naming, magic numbers, and table/figure quality against project conventions.
  • Issue severity triage: Summarizes findings into a quality score, counts by severity, and the top critical/high issues with line references.
  • Optional fix application: Offers to apply targeted, high-confidence single-line fixes using a propose-then-apply pattern.
  • Use case: Review a main analysis do-file before committing changes, ensuring it follows logging and conventions and that outputs (tables/figures) are ready for reports.

Quick Start

Run the review on your do-file by asking the agent to review dofiles/03_analysis/main_regression.do.

Frequently Asked Questions about review-stata

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check my Stata do-file for reproducibility issues before submission?

Reviewing a Stata do-file for reproducibility involves evaluating logging, naming, magic-number, and output-quality issues against project conventions. This generates a structured markdown quality report with a verdict, quality score, severity counts, and an actionable issue list with line references.

What is a Stata code review and how does it work?

A Stata code review is an automated assessment of do-files that checks reproducibility, logging, naming, magic numbers, and output quality. It delegates to a reviewer agent to evaluate scripts against project conventions and can optionally apply targeted single-line fixes.

Can I automatically fix issues found during a Stata do-file review?

Yes, you can automatically fix issues found during a Stata do-file review. The process offers to apply targeted, high-confidence single-line fixes using a propose-then-apply pattern after generating the quality report with its actionable issue list.

Does the Stata review work with existing log files?

Yes, the Stata review works with existing log files by locating the most recent stage log when available. It uses this optional log context alongside your do-file to assess reproducibility and output quality, producing a structured quality report.

What is the best way to validate an econometrics workflow in Stata?

The best way to validate an econometrics workflow in Stata is to run an automated do-file review that checks reproducibility, logging, naming, and output quality against project conventions. This produces a structured quality report with a verdict and severity counts for your analysis scripts.

When should I run a pre-commit check on my Stata do-files?

You should run a pre-commit check on your Stata do-files when you have a project-stage analysis script ready for submission. The review identifies reproducibility and output-quality issues, ensuring your tables, figures, and logging follow conventions before committing changes.