Run SAS programs locally (batch mode) or remotely on WRDS. Covers execution, WRDS connection, log reading, common empirical finance patterns, and debugging. Triggers - "run SAS", ".sas", "WRDS", "rsubmit", "libname", "proc sql", SAS errors.
Scaffold a new pipeline step. Creates script file, updates pipeline.md, 00_run.do, and run_all.sh. Use when adding new analysis steps.
Execute a pipeline step via run_all.sh or MCP Stata. Reads the log and summarizes results. Use to run analysis scripts.
Run the adversarial code quality loop on a script. Code-reviewer finds issues, code-fixer applies mechanical fixes, re-reviews until APPROVED or max 5 rounds.
Run the adversarial proofreading loop on a manuscript file. Proofreader finds issues, manuscript-fixer applies approved fixes, re-reviews until APPROVED or max 5 rounds.
Run the adversarial output formatting loop. Output-critic checks tables/figures against AEA style, output-fixer applies formatting fixes, re-checks until APPROVED or max 5 rounds.
Quick project overview showing pipeline status, recent logs, and current state. Run silently at session start.
Use when executing Stata .do files on Windows. Covers batch execution, MCP Stata tool, common syntax pitfalls, and debugging. Triggers - "run Stata", "do file", ".do", "reghdfe", "esttab", Stata errors.