pipeline
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack โ pandas + numpy + scipy +โฆ
Universal Meta-Analysis Codebook v2.2 - AI-Human collaboration for meta-analysis data extraction. 4-layer design: Identifiers, Statistics, AI Provenance, Human Verification. Integrates with C5/C6/C7 agents and Category I systematic review pipeline. Triggers: meta-analysis,
Claude Code
$ npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill universal-ma-codebook --agent claude-code
Codex
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill universal-ma-codebook -a codex -y
Cursor
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill universal-ma-codebook -a cursor -y
Gemini CLI
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill universal-ma-codebook -a gemini-cli -y
GitHub Copilot
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill universal-ma-codebook -a github-copilot -y
OpenCode
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill universal-ma-codebook -a opencode -y
Windsurf
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill universal-ma-codebook -a windsurf -y
name: universal-ma-codebook description: | Universal Meta-Analysis Codebook v2.2 - AI-Human collaboration for meta-analysis data extraction. 4-layer design: Identifiers, Statistics, AI Provenance, Human Verification. Integrates with C5/C6/C7 agents and Category I systematic review pipeline. Triggers: meta-analysis, codebook, data extraction, Hedges g, effect size version: "12.0.1"
**Version**: 2.2 **Status**: Production **Codex Review**: APPROVE WITH MINOR CHANGES (2026-01-26) **Update**: Context-specific extensions (2026-01-26)
A **universal, AI-Human collaboration codebook** for meta-analysis that enables: 1. AI extraction from PDFs (RAG/OCR) with confidence tracking 2. Human verification of AI-extracted values 3. 100% human-verified data through structured workflow 4. Integration with Diverga C5/C6/C7 agents and Category I pipeline 5. **Context-specific extensions** for domain-specific moderator variables
The Universal Codebook supports **project-specific moderator layers** that extend the base 4-layer structure. Each meta-analysis context may have unique moderator variables.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ UNIVERSAL CODEBOOK WITH CONTEXT EXTENSION โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค โ โ โ LAYER 1: IDENTIFIERS + METADATA (10 fields) โ Universal โ โ LAYER 2: CORE STATISTICAL VALUES (18 fields) โ Universal โ โ LAYER 3: CONTEXT-SPECIFIC MODERATORS โ Project Extension โ โ LAYER 4: AI EXTRACTION PROVENANCE โ Universal โ โ LAYER 5: HUMAN VERIFICATION (8 fields) โ Universal โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
| Context | Extension File | Moderator Count | |---------|----------------|-----------------| | GenAI-HE | `GENAI_HE_CODEBOOK.md` | 15 moderators | | Clinical Trials | `CLINICAL_CODEBOOK.md` | TBD | | Educational Tech | `EDTECH_CODEBOOK.md` | TBD |
1. **Define moderator variables** specific to your research domain 2. **Create classification rules** for categorical moderators 3. **Write AI extraction prompts** for each moderator 4. **Configure C6 agent** with the extension schema
# Example: Configure C6 for GenAI-HE context
c6.configure_extension(
context="genai_he",
moderators=[
{"name": "genai_tool", "type": "categorical", "values": ["ChatGPT", "Claude", ...]},
{"name": "blooms_level", "type": "ordinal", "values": ["remember", "understand", ...]},
{"name": "study_design", "type": "categorical", "values": ["RCT", "quasi", ...]},
],
extraction_prompts=GENAI_HE_PROMPTS
)**Layer 3: GenAI-HE Moderator Variables (15 fields)**
| Category | Fields | |----------|--------| | GenAI Tool | genai_tool, genai_tool_version, genai_access_type | | Educational Outcome | blooms_level, outcome_dimension, learning_domain | | Study Design | study_design, intervention_duration, intervention_type, control_condition | | Context | education_level, discipline, country, sample_size_total, publication_type |
See: `GenAI-HE-Review-AIMC/docs/GENAI_HE_CODEBOOK.md` for full specification
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ UNIVERSAL META-ANALYSIS CODEBOOK v2.1 โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค โ โ โ LAYER 1: IDENTIFIERS + METADATA (10 fields) โ โ study_id, es_id, citation, doi, year, design_type, โ โ timepoint, arm_label_treat, arm_label_control, unit_of_analysis โ โ โ โ LAYER 2: CORE STATISTICAL VALUES (18 fields) โ โ Primary: outcome_name โ se_g (12) โ โ Change-score: pre_mean_treat, pre_sd_treat, pre_post_corr (3) โ โ Cluster: cluster_size, icc, n_clusters (3) โ โ โ โ LAYER 3: AI EXTRACTION PROVENANCE โ โ Per-value: ai_value, source, method, confidence, derived_from โ โ Stored as: ai_extraction_json โ โ โ โ LAYER 4: HUMAN VERIFICATION (8 fields) โ โ verified_status, verified_by, verified_date, corrections_json, โ โ disagreement_resolved, final_values_json, verification_notes, โ โ sign_off โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
**Triggered by**: I3 RAG building completion or manual PDF upload
**Agent**: C6-DataIntegrityGuard
# C6 extracts statistical values from PDFs
extraction_result = c6.extract_with_provenance(
pdf_folder="./pdfs",
methods=["rag", "ocr"],
reconciliation="hierarchy",
log_all_candidates=True
)**Actions**: 1. I3 builds RAG from PDFs 2. C6 queries for statistical values (M, SD, n) 3. Multiple extraction methods run in parallel 4. Conflict resolution applied (hierarchy + tolerance) 5. Provenance recorded for all extractions 6. Hedges' g calculated where inputs complete
**Output**: All rows โ `verified_status = PENDING`
## ๐ฅ ๅ่ ยท 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โฆ