stata-code

Create Stata do-files with project templates and naming conventions.

Updated Feb 26, 2026
One-click install
npx skills add https://github.com/naj2r/claude-econ-paper-template --skill stata-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stata-code
Source: https://github.com/naj2r/claude-econ-paper-template/tree/main/.claude/skills/stata-code
Command: npx skills add https://github.com/naj2r/claude-econ-paper-template --skill stata-code

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Write production-ready Stata do-files following this project's established conventions and templates, ensuring consistency and reproducibility across analyses.

Core Features & Use Cases

  • Do-file Template: provides a standard skeleton for filenames, headers, bootstrap blocks, and logging.
  • Naming & Global Conventions: enforces consistent variable naming, path globals, and integration with code/master/paths.do and code/master/globals.do.
  • Quality Checklist: a built-in checklist to validate structure, outputs, and documentation before execution.

Quick Start

Create a new Stata do-file following the template and conventions, then run it to reproduce a clean, well-documented analysis.

Frequently Asked Questions about stata-code

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

FAQPage Schema
How do I create reproducible Stata do-files for econometric pipelines?

To create reproducible Stata do-files for econometric pipelines, use a standardized template that enforces naming conventions, path variables, and a quality checklist to ensure consistent, well-documented analyses.

What is the best way to standardize Stata do-file headers and path globals?

The best way to standardize Stata do-file headers and path globals is to apply a project template that integrates with code/master/paths.do and code/master/globals.do, enforcing consistent structure across replication studies.

Does this Stata do-file template work for data cleaning and replication studies?

Yes, this Stata do-file template works for data cleaning and replication studies by providing a standard skeleton for filenames, bootstrap blocks, and logging, alongside a built-in checklist to validate outputs before execution.

How do I validate Stata do-file structure and outputs before execution?

To validate Stata do-file structure and outputs before execution, follow a built-in quality checklist that checks documentation, file structure, and analysis outputs, ensuring your reproducible analyses meet project conventions.

When do I need a standardized template for Stata do-files?

You need a standardized template for Stata do-files when production-ready, reproducible analyses are required, particularly in econometric pipelines and data cleaning tasks where consistency across multiple analyses is critical.

Can I automate Stata do-file creation with project naming and path conventions?

Yes, you can automate Stata do-file creation to follow established project naming conventions and path variables, automatically generating a skeleton with headers, logging, and bootstrap blocks for immediate use.