validate-log

Community

Catch Stata log failures before they ship.

Authormaxwell2732
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It prevents silent Stata run failures by scanning logs for errors, warnings, suspicious patterns, and missing indications that results were actually produced.

Core Features & Use Cases

  • Mode A — Log Scan: Greps a Stata log for known error codes and common failure patterns such as invalid syntax, missing files, no observations, undefined variables, and suspicious merge outcomes.
  • Sample-size funnel checks: Detects whether the log reports sample sizes at restriction steps (e.g., before/after restrictions) to support econometric best practices.
  • Last estimation sanity check: Pulls the most recent estimation output so you can spot implausible magnitudes/signs or problematic SE plausibility.
  • Use Case: Verify that a do-file truly ran end-to-end (including merges and restrictions) and that the reported coefficients exist in the log rather than being accidentally fabricated or produced from an incomplete run.

Quick Start

Ask Codex to validate a completed regression run by scanning a specific log file at logs/03_analysis_main_regression.log for errors, warnings, merge issues, sample-size funnel reporting, and the latest estimation summary.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: validate-log
Download link: https://github.com/maxwell2732/codex-stata-for-economists/archive/main.zip#validate-log

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.