pipeline
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy + statsmodels + linearmodels + pyfixest +…
Deep consistency audit of the entire repository — launches 4 parallel specialist agents to find factual errors, code bugs, broken references, count mismatches, and cross-document inconsistencies, then fixes all issues and loops until clean. Make sure to use this skill whenever
$ npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill deep-audit --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/deep-auditContext preview
The summary Claude sees to decide when to auto-load this skill.
Deep consistency audit of the entire repository — launches 4 parallel specialist agents to find factual errors, code bugs, broken references, count mismatches, and cross-document inconsistencies, then fixes all issues and loops until clean. Make sure to use this skill whenever
name: deep-audit description: >- Deep consistency audit of the entire repository — launches 4 parallel specialist agents to find factual errors, code bugs, broken references, count mismatches, and cross-document inconsistencies, then fixes all issues and loops until clean. Make sure to use this skill whenever the user wants a comprehensive repository-wide check — not a targeted review of a single file. Triggers include: "audit", "deep audit", "find inconsistencies", "check everything", "run a full audit", "are there any broken references", "check the whole repo", "something feels off", "run the audit loop", or after making broad changes across multiple files. argument-hint: "(no arguments needed)" allowed-tools: ["Read", "Write", "Edit", "Bash", "Glob", "Grep", "Task"]
Run a comprehensive consistency audit across the entire repository, fix all issues found, and loop until clean.
Launch these 4 agents simultaneously using `Task` with `subagent_type=general-purpose`:
Focus: `README.md`, `CLAUDE.md`, `rules/workflow-overview.md`
Focus: `hooks/*.py` and `hooks/*.sh`
Focus: `skills/*/SKILL.md` and `rules/*.md`
Focus: `README.md`, `CLAUDE.md`
Categorize each finding:
Common false alarms to watch for:
Apply fixes in parallel where possible. For each fix: 1. Read the file first (required by Edit tool) 2. Apply the fix 3. Verify the fix (grep for stale values, check syntax)
This plugin does not maintain a Quarto source file. If `README.md` or `CLAUDE.md` were modified, verify they are consistent with each other — no render step is needed.
After fixing, launch a fresh set of 4 agents to verify.
**Max loops: 5** (to prevent infinite cycling)
These are real bugs found across 7 rounds — check for these specifically:
| Bug Pattern | Where to Check | What Went Wrong | |-------------|---------------|-----------------| | Stale counts ("19 skills" → "21") | Guide, README, landing page | Added skills but didn't update all mentions | | Hook exit codes | All Python hooks | Exit 2 in PreCompact silently discards stdout | | Hook field names | post-compact-restore.py | SessionStart uses `source`, not `type` | | State in /tmp/ | All Python hooks | Should use `~/.claude/sessions/<hash>/` | | Hash length mismatch | All Python hooks | Some used `[:12]`, others `[:8]` | | Missing fail-open | Python hooks `__main__` | Unhandled exception → exit 1 → confusing behavior | | Python 3.10+ syntax | Type hints like `dict | None` | Need `from __future__ import annotations` | | Missing directories | quality_reports/specs/ | Referenced in rules but never created | | Always-on rule listing | Guide + README | meta-governance omitted from listings | | macOS-only commands | Skills, rules | `open` without `xdg-open` fallback | | Protected file blocking | settings.json edits | protect-files.sh blocks Edit/Write |
After each round, report:
## Round N Audit Results ### Issues Found: X genuine, Y false alarms | # | Severity | File | Issue | Status | |---|----------|------|-------|--------| | 1 | Critical | file.py:42 | Description | Fixed | | 2 | Medium | file.qmd:100 | Description | Fixed | ### Verification - [ ] No stale counts (grep confirms) - [ ] All hooks have fail-open + future annotations - [ ] Guide renders successfully - [ ] docs/ updated ### Result: [CLEAN | N issues remaining]
📌 文档结构(2026-07-22 起): 本文件是中文默认入口 —— banner + badges + 信任面 + 9 阶段流水线速览 + 76 行合集总表。 每个合集的完整描述、按用途分组、精确数字、验证方法在 docs/CONTENT_ZH.md(扩展正文,总表行内的 → 直接跳转到对应锚点)。 English version: README-en.md · 中文扩展正文:docs/CONTENT_ZH.md · README-zh-CN.md 已弃用(重定向占位) 🌐 语言: English |
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy + statsmodels + linearmodels + pyfixest +…
Use when the user asks to run a full empirical / causal analysis in Python — by default in the style of an applied economics paper (AER / QJE / JPE / ReStud /…
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy + statsmodels + linearmodels + pyfixest +…
Classical end-to-end empirical analysis workflow in the traditional Stata ecosystem — native Stata + reghdfe + ivreg2 + csdid + did_imputation +…
Classical end-to-end empirical analysis workflow in the modern tidyverse + econometrics R ecosystem — dplyr + tidyr + haven + fixest + sandwich + lmtest +…
Systematic writing framework for philosophy and interdisciplinary academic papers from optimized outline to submission-ready manuscript. Use when users want…