pipeline
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy +…
Agent E2 - Qualitative Coding Specialist - Systematic coding and theme development. Covers codebook development, coding strategies, saturation assessment, and CAQDAS guidance.
Claude Code
$ npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill e2 --agent claude-code
Codex
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill e2 -a codex -y
Cursor
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill e2 -a cursor -y
Gemini CLI
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill e2 -a gemini-cli -y
GitHub Copilot
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill e2 -a github-copilot -y
OpenCode
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill e2 -a opencode -y
Windsurf
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill e2 -a windsurf -y
name: e2 description: | Agent E2 - Qualitative Coding Specialist - Systematic coding and theme development. Covers codebook development, coding strategies, saturation assessment, and CAQDAS guidance. version: "12.0.1"
`diverga_check_prerequisites("e2")` → 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.
---
Expert in systematic qualitative data coding, codebook development, theme identification, and saturation assessment. Guides researchers through rigorous coding processes for thematic analysis, grounded theory, and content analysis.
**When to Use:**
**Process:**
deductive_coding:
step_1_literature_review:
action: "Extract key constructs from theoretical framework"
output: "Initial code list with definitions"
step_2_operationalization:
action: "Define codes with inclusion/exclusion criteria"
output: "Structured codebook"
step_3_pilot_coding:
action: "Test codebook on 10-20% of data"
output: "Refined codebook"
step_4_reliability_check:
action: "Calculate inter-rater reliability (Kappa)"
output: "Reliability metrics, codebook adjustments"**Example Deductive Codebook (Self-Determination Theory):**
code: "autonomy_support" definition: "Teacher actions that support student self-direction and choice" when_to_use: - "Teacher offers choices" - "Teacher solicits student input" - "Teacher acknowledges feelings" when_not_to_use: - "Teacher gives commands without rationale" - "Generic praise without choice element" example_quotes: - "The teacher said 'you can choose to work alone or in pairs'" - "She asked us what topics we wanted to explore" related_codes: ["autonomy_thwarting", "intrinsic_motivation"] parent_theme: "motivational_climate"
**When to Use:**
**Process:**
inductive_coding:
phase_1_open_coding:
approach: "Line-by-line, no preconceptions"
output: "100-200 initial codes"
phase_2_axial_coding:
approach: "Group codes by similarity, identify patterns"
output: "30-50 focused codes"
phase_3_selective_coding:
approach: "Identify core categories and relationships"
output: "8-15 themes with subthemes"**Example Inductive Code Evolution:**
evolution:
open_codes:
- "student_mentions_chatbot_patience"
- "student_appreciates_no_judgment"
- "student_feels_safe_making_errors"
focused_code: "psychological_safety"
theme: "non-judgmental_learning_environment"
definition: "Learners perceive AI chatbot as safe space for practice without fear of negative evaluation"**Best Practice for Social Science:**
hybrid_approach:
step_1: "Start with literature-derived codes (deductive)"
step_2: "Remain open to emergent codes (inductive)"
step_3: "Track code sources (deductive vs. emergent)"
step_4: "Report both a priori and emergent themes"
example:
deductive_codes: ["engagement", "motivation", "self-efficacy"]
emergent_codes: ["technical_frustration", "privacy_concern", "gamification_appeal"]**Six-Phase Process:**
phase_1_familiarization:
activities:
- "Read and re-read entire dataset"
- "Note initial ideas and patterns"
- "Highlight interesting passages"
tools: ["Annotation software", "Memo writing"]
output: "Annotated transcripts, research journal notes"
time_estimate: "20-30% of total coding time"
phase_2_initial_coding:
activities:
- "Systematic line-by-line coding"
- "Create code labels"
- "Organize data extracts by code"
tools: ["CAQDAS", "Excel", "Index cards"]
output: "Initial codebook (50-150 codes typical)"
quality_check:
- "Every data item coded"
- "Data extracts retain context"
- "Codes are specific enough to be meaningful"
phase_3_theme_searching:
activities:
- "Collate codes into potential themes"
- "Mind mapping of relationships"
- "Create theme tables"
techniques:
- "Post-it note sorting"
- "Mind maps"
- "Thematic tables"
output: "Candidate themes (8-15 typical)"
phase_4_theme_review:
level_1_review:
action: "Check themes against coded data extracts"
criteria: "Internal homogeneity (coherence within theme)"
level_2_review:
action: "Check themes against entire dataset"
criteria: "External heterogeneity (distinction between themes)"
output: "Refined themes, thematic map"
phase_5_theme_defining:
activities:
- "Name each theme"
- "Write theme descriptions (2-3 paragraphs)"
- "Identify essence of each theme"
- "Define subthemes if needed"
output:
- "Final theme definitions"
- "Thematic structure"
quality_criteria:
- "Theme names are concise and informative"
- "Definitions capture unique contribution"
- "No significant overlap between themes"
phase_6_report_writing:
activities:
- "Select vivid quotations"
- "Write analytic narrative"
- "Link themes to research question"
- "Situate findings in literature"
output: "Fi## 🔥 力荐 · 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…