Generates comprehensive Stata do-files for cleaning messy economic data with a strong emphasis on reproducibility. It walks you through understanding your data source and unit of observation, then outputs a full pipeline with proper logging, assertions, and documentation. The template handles the usual suspects: missing value codes, duplicates, outliers, variable labeling. What I like here is the opinionated structure with globals for paths, extensive comments explaining transformations, and validation checks using assert statements. Built by the Awesome Econ AI Community, so it reflects actual empirical workflow practices rather than just syntax examples. If you're tired of writing the same data cleaning boilerplate for every new dataset, this gives you a solid starting point.

skills.sh installs
357
GitHub stars
668
last updated
Aug 21, 2026

Install

$ npx -y skills add meleantonio/awesome-econ-ai-stuff --skill stata-data-cleaning --agent claude-code

Installs into .claude/skills of the current project.

Files

Stata Data Cleaning

Purpose

This skill helps economists clean, transform, and prepare datasets for analysis in Stata. It emphasizes reproducibility, proper documentation, and handling common data quality issues found in economic research.

When to Use

  • Cleaning raw survey or administrative data
  • Merging multiple data sources
  • Handling missing values, duplicates, and outliers
  • Creating analysis-ready panel datasets
  • Documenting data transformations for replication

Instructions

Step 1: Understand the Data

Before generating code, ask the user:

  1. What is the data source? (survey, administrative, API, etc.)
  2. What is the unit of observation?
  3. What are the key variables needed for analysis?
  4. Are there known data quality issues to address?

Step 2: Generate Cleaning Pipeline

Create a Stata do-file that:

  1. Has a clear header with project info and date
  2. Sets up the environment (clear all, set memory, log)
  3. Loads and inspects raw data
  4. Documents each transformation with comments
  5. Creates a codebook for the final dataset

Step 3: Follow Best Practices

Sponsors

Details

Repository
github.com/meleantonio/awesome-econ-ai-stuff
Category
AI & Agent Building
First seen
Jun 3, 2026

More from meleantonio/awesome-econ-ai-stuff

All 9
1arpitg1304 avatarros2-developmentarpitg1304/robotics-agent-skillsComprehensive best practices, design patterns, and common pitfalls for ROS2 (Robot Operating System 2) development. Use this skill when building ROS2 nodes, pac353skills.sh installs
2siviter-xyz avatarpythonsiviter-xyz/dot-agentPython development guidelines and best practices. Use when working with Python code.353skills.sh installs
3anthropics avatarexecutive-briefinganthropics/claude-agent-sdk-demosTransforms research findings into executive-ready briefings. Automatically activated when user mentions 'executive', 'briefing', 'C-suite', 'board', 'leadership352skills.sh installs
4schalkneethling avatarsemantic-htmlschalkneethling/webdev-agent-skillssemantic html351skills.sh installs
5gohypergiant avataraccelint-ts-testinggohypergiant/agent-skillsComprehensive vitest testing guidance for TypeScript projects. Use when (1) Writing new tests with AAA pattern, parameterized tests, or async/await, (2) Reviewi350skills.sh installs
6thedivergentai avatargodot-save-load-systemsthedivergentai/gd-agentic-skillsExpert blueprint for save/load systems using JSON/binary serialization, PERSIST group pattern, versioning, and migration. Covers player progress, settings, game350skills.sh installs