refresh-pipeline
Skill17 starsChanged 4 months agoMITView on GitHub
Use when running a multi-stage empirical pipeline (Stata + Python) to refresh tables/figures end-to-end. Performs pre-flight checks (Dropbox sync, column schemas, username path branches), executes scripts in order, verifies log files were produced, then summarizes key outputs and flags anomalies.
In this repository14 other files it gives its agents.
- codex-bridgeSkill
- codex-review-planSkill
- overleafSkill
- plan-debateSkill
- power-firstSkill
- referee-panelSkill
- review-codex-planSkill
- robustness-batterySkill
- spec-curve-sweepSkill
- stata-preflightSkill
- sync-overleafSkill
- tableSkill
- verify-claimsSkill
- verify-numbers-pipelineSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
If any STUB results, stop and ask the user to sync them locally before continuing.
- Very specific: line 28
Run scripts in declared DAG order.
- Distinctive: line 30
If no log appeared, stop — the script failed silently.
- Distinctive: line 32
After each Python stage:
- Distinctive: line 33
Check that the declared output file exists and has > 0 rows.
- Very specific: line 45
Do NOT paste full regression tables into chat.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Refresh Pipeline
A standard recipe to run a multi-stage empirical pipeline without losing time to recurring failures (Dropbox placeholders, missing columns, silent Stata crashes).
Pre-flight checklist (run BEFORE any script)
- Dropbox sync check — for every input file the next script needs, verify it is not an online-only placeholder. Placeholders show as 0 bytes or have a
.icloud/.dropboxcompanion. Use:
If any STUB results, stop and ask the user to sync them locally before continuing.for f in <input_files>; do test -s "$f" && echo "OK $f" || echo "STUB $f" done - Column schema check — for each script that consumes a CSV/Parquet produced by an upstream stage, grep the script for the column names it reads and confirm they exist in the upstream output. Especially check for:
seniority_c, topic columns, any*_quintile/*_decilebins. - Stata path branch check —
grep -L "<your-stata-username>" *.doin the pipeline directory. Any do-file missing a<your-stata-username>username branch in its path-setting block will fail silently. Add the branch before running. - No
caparound esttab —grep -n "cap.*esttab\|capture.*esttab" *.do. Any hit must be unwrapped or it will silently drop in-memory estimates.
Execution
Run scripts in declared DAG order. After each Stata .do:
- Confirm a log file was actually produced (
ls -la *.logand check mtime). - If no log appeared, stop — the script failed silently. Diagnose before continuing.
After each Python stage:
- Check that the declared output file exists and has > 0 rows.
- Report row counts and any NaN warnings.
Post-run summary (≤10 lines)
Report:
- Which stages ran green vs. failed.
- Headline coefficients (point estimate, SE, N) for any regression run.
- KP F-stat for any IV.
- Any binning sanity issues (e.g., a quintile that contains < 10% or > 30% of obs — flags share-weighted binning bugs).
- Path to updated tables/figures.
Do NOT paste full regression tables into chat. Write them to results/ and link the path.
Common failure modes (check these first when something breaks)
panel_seniority_quintile.csvmissingseniority_c→ re-run upstream stage that builds it.- Quintiles forced to uniform 20% shares → binning by worker-share instead of rank position; fix to use
pd.qcuton rank. - Empty Stata log → missing
<your-stata-username>path branch, orcapswallowing the error. - Zero-observation merge → check key types (string vs int) and trim/upper case on join keys.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

