review-stata

Review Stata .do files for reproducibility and coding conventions.

1|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/AndreaMentasti/tweet-election --skill review-stata
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: review-stata
Source: https://github.com/AndreaMentasti/tweet-election/tree/main/.claude/skills/review-stata
Command: npx skills add https://github.com/AndreaMentasti/tweet-election --skill review-stata

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of reviewing Stata scripts (.do files) to ensure they adhere to best practices for reproducibility, variable management, regression specifications, and output conventions, without modifying the original code.

Core Features & Use Cases

  • Automated Code Auditing: Applies a comprehensive review protocol to Stata scripts.
  • Reproducibility Checks: Verifies that scripts are written in a way that ensures consistent results.
  • Convention Enforcement: Checks for adherence to established coding standards.
  • Report Generation: Produces detailed reports on identified issues without altering source files.
  • Use Case: A research team can use this Skill to ensure all new Stata analysis scripts meet the lab's quality standards before they are merged into the main project repository.

Quick Start

Use the review-stata skill to run the full code review protocol on all .do files in the code/stata/ directory.

Frequently Asked Questions about review-stata

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

FAQPage Schema
How do I automate Stata code review for .do files?

You can automate Stata code review for .do files by applying a comprehensive protocol that checks reproducibility, variable management, regression specifications, and output conventions, generating a quality report without editing the original source scripts.

What is script auditing for reproducibility in Stata?

Script auditing for reproducibility in Stata verifies that .do files are written to ensure consistent results by checking variable management and regression specifications against established coding conventions without altering the source code.

How do I check Stata scripts for coding convention adherence?

You check Stata scripts for coding convention adherence by running an automated auditing protocol on your .do files that reviews output conventions and variable management, producing a detailed quality report of any identified issues.

Can I review all Stata scripts in a specific directory at once?

Yes, you can review all Stata scripts in a specific directory at once by running the automated code review protocol on the entire folder, which audits all .do files and generates a comprehensive quality report.

Does the Stata code review process modify the original .do files?

No, the Stata code review process does not modify the original .do files; it strictly analyzes the scripts for reproducibility and convention issues, generating a separate quality report to ensure source code integrity.