pipeline
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy + statsmodels + linearmodels + pyfixest +…
Meta-Analysis Master with Data Integrity, Effect Size, Error Prevention & Sensitivity Multi-gate validation and workflow orchestration for meta-analysis. Absorbed C6 (Data Integrity Guard), C7 (Error Prevention Engine), B3 (Effect Size Extractor), E5 (Sensitivity Analysis -
$ npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill c5 --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/c5Context preview
The summary Claude sees to decide when to auto-load this skill.
Meta-Analysis Master with Data Integrity, Effect Size, Error Prevention & Sensitivity Multi-gate validation and workflow orchestration for meta-analysis. Absorbed C6 (Data Integrity Guard), C7 (Error Prevention Engine), B3 (Effect Size Extractor), E5 (Sensitivity Analysis -
name: c5 description: | Meta-Analysis Master with Data Integrity, Effect Size, Error Prevention & Sensitivity Multi-gate validation and workflow orchestration for meta-analysis. Absorbed C6 (Data Integrity Guard), C7 (Error Prevention Engine), B3 (Effect Size Extractor), E5 (Sensitivity Analysis - Meta) capabilities Triggers: meta-analysis, pooled effect, heterogeneity, forest plot, funnel plot, Hedges g, data integrity, effect size extraction, sensitivity analysis version: "12.0.1"
`diverga_check_prerequisites("c5")` → must return `approved: true` If not approved → AskUserQuestion for each missing checkpoint (see `.claude/references/checkpoint-templates.md`)
Read `.research/decision-log.yaml` directly to verify prerequisites. Conversation history is last resort.
---
Orchestrate complete meta-analysis workflows with multi-gate validation. This agent owns **gate progression decisions** and coordinates other agents (B2, B3, C6, C7) throughout the meta-analysis pipeline.
C5 is the **decision authority** for meta-analysis workflows:
Activate C5-MetaAnalysisMaster when user mentions:
┌─────────────────────────────────────────────────────────────┐ │ GATE VALIDATION PIPELINE │ ├─────────────────────────────────────────────────────────────┤ │ Gate 1: EXTRACTION VALIDATION │ │ - Required fields present (Study_ID, ES_ID, Outcome_Name) │ │ - Data completeness score ≥ Tier 2 threshold (40%) │ │ - No duplicate ES_IDs │ ├─────────────────────────────────────────────────────────────┤ │ Gate 2: CLASSIFICATION VALIDATION │ │ - ES type classified (post-test, ANCOVA, change, pre-post)│ │ - ES hierarchy enforced (post-test > ANCOVA > change) │ │ - Multiple ES from same study: use highest priority │ ├─────────────────────────────────────────────────────────────┤ │ Gate 3: STATISTICAL VALIDATION │ │ - Hedges' g calculated or calculable │ │ - SE_g available or calculable │ │ - Values within reasonable range (|g| ≤ 3.0) │ ├─────────────────────────────────────────────────────────────┤ │ Gate 4: INDEPENDENCE VALIDATION │ │ - 4a: Temporal Classification (NO pre-test outcomes) │ │ - 4b: Study Independence (no double-counting) │ │ - 4c: Effect Independence (handle dependent ES) │ └─────────────────────────────────────────────────────────────┘
| Phase | Name | Entry Criteria | Exit Criteria | Calls | |-------|------|----------------|---------------|-------| | 1 | Study Selection | Search terms defined | Eligible studies identified | B1 | | 2 | Data Extraction | PDFs available | All ES extracted | B3, C6 | | 3 | Effect Size Calc | Raw data available | Hedges' g computed | C6 | | 4 | Quality Assessment | ES computed | Risk of bias rated | B2, C7 | | 5 | Analysis Execution | Data validated | Model results | - | | 6 | Sensitivity | Primary analysis done | Robustness checked | - | | 7 | Reporting | All analyses done | PRISMA diagram | - |
When multiple effect sizes are available from the same study-outcome:
| Priority | ES Type | Use When | Code | |----------|---------|----------|------| | 1 (Best) | Post-test between-groups | Control group exists | `POST_BETWEEN` | | 2 | ANCOVA-adjusted | Pre-test as covariate | `ANCOVA` | | 3 | Change score | No between-group post | `CHANGE` | | 4 (Last) | Single-group pre-post | No control group | `PRE_POST` | | NEVER | Pre-test as outcome | - | `PRE_TEST` → **REJECT** |
| Parameter | Threshold | Action | |-----------|-----------|--------| | \|g\| > 3.0 | Anomaly | Flag for human review | | \|g\| > 5.0 | Extreme outlier | Auto-exclude with log | | Data completeness < 40% | Tier 3 | STOP: Human review required | | Missing Hedges' g > 30% | High | Trigger C6 SD recovery | | Pre-test pattern detected | - | Auto-REJECT |
effect_size_record: Study_ID: str # Required ES_ID: str # Required Outcome_Name: str # Required M_Treatment: float # Optional SD_Treatment: float # Optional n_Treatment: int # Optional M_Control: float # Optional SD_Control: float # Optional n_Control: int # Optional
validated_effect_size: Study_ID: str ES_ID: str Outcome_Name: str ES_Type: str # POST_BETWEEN, ANCOVA, CHANGE, PRE_POST Hedges_g: float SE_g: float Data_Tier: int # 1, 2, or 3 Gates_Passed: list[str] Validation_Notes: str
def handle_gate_failure(gate_id, record, reason):
if gate_id == "4a": # Pre-test
action = "REJECT" # Always reject pre-test
elif record.Data_Tier == 3:
action = "HUMAN_REVIEW"
elif anoma📌 文档结构(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…