pipeline
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy +…
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 -
Claude Code
$ npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill c5 --agent claude-code
Codex
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill c5 -a codex -y
Cursor
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill c5 -a cursor -y
Gemini CLI
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill c5 -a gemini-cli -y
GitHub Copilot
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill c5 -a github-copilot -y
OpenCode
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill c5 -a opencode -y
Windsurf
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill c5 -a windsurf -y
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## 🔥 力荐 · StatsPAI — Stata 与 R 的 Python 平替,为 AI Agent 而生 🔁 Stata / R 平替:reghdfe、csdid、rdrobust、synth、fixest、did 等常用命令在 Python 中一站式替代,一个 import statspai as sp 搞定 DID / RD / IV / SCM / DML / matching 🤖 面向 Agent 设计:结构化结果对象 + 内置 MCP Server,Claude / Codex
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy +…
Use when the user asks to run a full empirical / causal analysis in Python — by default in the style of an applied economics…
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy +…
Classical end-to-end empirical analysis workflow in the traditional Stata ecosystem — native Stata + reghdfe + ivreg2 + csdid +…
Classical end-to-end empirical analysis workflow in the modern tidyverse + econometrics R ecosystem — dplyr + tidyr + haven +…
Systematic writing framework for philosophy and interdisciplinary academic papers from optimized outline to submission-ready…
Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work. Also covers…
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling…