run-pipeline

Execute Stata dofiles/00_master.do and validate generated logs and outputs.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

It solves the problem of getting a complex Stata project fully rebuilt end-to-end and verified, without manually running each stage and missing dependencies or stale outputs.

Core Features & Use Cases

  • End-to-end pipeline execution: Runs dofiles/00_master.do through all dependent stages in order, stopping immediately on the first failure.
  • Operational guardrails and validation: Performs pre-flight checks (master do-file existence, non-empty data/raw/, Stata availability) and then validates logs and expected outputs.
  • Reproducibility-focused reporting: Captures stage timing and checks for error signatures in logs/*.log, helping you trust that results match the current inputs.

Use case: After you refresh raw .dta files in data/raw/, use this Skill to rebuild all cleaned datasets, regenerate tables/figures, and ensure the Quarto report inputs exist and are fresh.

Quick Start

Run the pipeline rebuild by executing the command: bash scripts/run_pipeline.sh

Frequently Asked Questions about run-pipeline

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

FAQPage Schema
How do I rebuild a Stata pipeline after updating raw data files?

Running a Stata pipeline deterministically after refreshing raw data involves executing the master do-file through all stages in dependency order, aborting on the first error, and validating that all expected output artifacts in tables and figures are generated.

What is a Stata master do-file and how does it control batch execution?

A Stata master do-file orchestrates batch execution by running dependent stages in strict dependency order. It enforces reproducibility by aborting on the first error, performing pre-flight checks on raw data, and recording stage timings during the run.

How do I validate Stata logs and outputs after a batch run?

To validate Stata logs and outputs after a batch run, check for error signatures in the generated log files and confirm that expected artifacts exist in the output directories. This validation confirms the pipeline executed successfully without manual inspection.

Does Stata pipeline reproducibility require pre-flight checks on raw data?

Yes, Stata pipeline reproducibility requires pre-flight checks to verify the master do-file existence, non-empty raw data directories, and Stata availability. These checks prevent stale outputs and ensure the environment is ready for deterministic execution.

What should I do when a Stata do-file pipeline fails on a partial stage?

When a Stata do-file pipeline fails on a partial stage, the execution aborts immediately on the first error to prevent dependent stages from running with invalid inputs. You can recover by fixing the failing script and triggering a full rebuild to restore all outputs.