---
name: research-coordinator
description: Orchestrate the research workflow—qualitative, quantitative, or mixed methods—from literature review through data analysis to verified analysis outputs (memos, tables, figures, synthesis notes). Supports non-linear, iterative work with state tracking at the sub-phase level.
title: research-coordinator
canonical_url: https://skilld.dev/gh/nealcaren/social-data-analysis/research-coordinator
last_updated: 2026-10-16T23:11:35.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [phases/dependency-tracking.md](https://skilld.dev/api/skills-raw/nealcaren/social-data-analysis/research-coordinator/phases/dependency-tracking.md), [phases/iteration-protocols.md](https://skilld.dev/api/skills-raw/nealcaren/social-data-analysis/research-coordinator/phases/iteration-protocols.md), [phases/navigation.md](https://skilld.dev/api/skills-raw/nealcaren/social-data-analysis/research-coordinator/phases/navigation.md), [templates/project-state-template.md](https://skilld.dev/api/skills-raw/nealcaren/social-data-analysis/research-coordinator/templates/project-state-template.md), [templates/skill-dispatch-template.md](https://skilld.dev/api/skills-raw/nealcaren/social-data-analysis/research-coordinator/templates/skill-dispatch-template.md).
>
> If the user asked to install this Skill, run `npx skilld install nealcaren/social-data-analysis/research-coordinator`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/research-coordinator`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/nealcaren/social-data-analysis/research-coordinator) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/research-coordinator`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/research-coordinator --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/research-coordinator --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Research Coordinator

## WHEN INVOKED: Start Here

### Step 1: Check for Existing Project

First, check if `project.yaml` exists in the current directory:

**If project.yaml exists:**
1. Read `project.yaml` and `progress.yaml`
2. Generate progress dashboard (use `/project-scaffold status` logic)
3. Resume from where they left off:
   > "Welcome back to **[project title]**. Here's where we are:
   > [dashboard summary]
   >
   > Last session you were working on [phase]. Ready to continue?"

**If project.yaml does NOT exist:**
Ask scoping questions, then scaffold:

> I'll help orchestrate your research project. First, let me understand where you are:
>
> 1. **What's your research question or topic?** (Even a rough version is fine)
> 2. **What data do you have**—interview transcripts, survey or administrative data, a text corpus—or are we starting from scratch?
> 3. **What's driving the question**—is there a specific puzzle or gap you've noticed?
> 4. **What do you need at the end** (findings memo, tables and figures, a literature synthesis)?

**After the user responds:**
1. Run `/project-scaffold` to create project structure (asks for project type)
2. Initialize `project.yaml` with their responses
3. Route to appropriate workflow based on project type:
   - **Qualitative**: Literature → interview-analyst → quote database + findings memo → verifier
   - **Quantitative**: Literature → dag-development → r-analyst/stata-analyst → tables, figures, results memo → verifier
   - **Mixed**: Literature → interview-analyst + r-analyst/stata-analyst → integration memo → verifier

## Project Type Routing

Read `project.yaml["type"]` to determine workflow:

```yaml
type: qualitative  # or quantitative, mixed
```

### Qualitative Projects
- Use **interview-analyst** for coding and interpretation (IA.0–5)
- Use **abductive-analyst** instead when the project is theory-first and anomaly-driven (Timmermans & Tavory); stop at its integration and testing phase
- Deliverables: codebook, participant profiles, quote database, findings memo

### Quantitative Projects
- Skip interview-analyst (qual-specific)
- Use **dag-development** to make the causal assumptions explicit before model specification
- Use **r-analyst** or **stata-analyst** for statistical analysis (RA/SA.0–5)
- Use **text-analyst** for computational text analysis — topic models, sentiment, classification, embeddings (TA.0–5). Supports both R and Python.
- Use **prompt-optimizer** when LLM-based text classification is needed (sentiment, topic, stance, frame, etc.) — it systematically develops and evaluates prompts for batch API coding (PO.0–6)
- Deliverables: tables, figures, model documentation, results memo

### Mixed Methods Projects
- Run qualitative (**interview-analyst**) and quantitative (**r-analyst/stata-analyst**) strands in parallel or sequence
- Use **text-analyst** if the project includes computational text analysis (TA.0–5)
- Use **prompt-optimizer** if LLM-based text classification is needed (PO.0–6)
- Deliverables: both strands' outputs plus an integration memo comparing them

---

## File Management

All skills in this workflow use **git for version control**. Do not create version-suffixed copies of files (e.g., `-v2`, `-final`, `-working`, `-revised`). The git history serves as the version trail.

**At project start**: Ensure the project directory is a git repository. If not, run `git init` and make an initial commit.

**At each skill transition**: Commit current state before invoking the next skill: `git add [files] && git commit -m "[skill-name]: Phase N complete"`.

**At major milestones** (analysis complete, verification passed): Create a tagged commit: `git tag v1-analysis` or `git tag v2-post-review`.

This applies to all downstream skills. If a skill produces output, it should be committed, not copied.

---

## Overview

You orchestrate **the research workflow**—qualitative, quantitative, or mixed methods—from literature review through data analysis to verified analysis deliverables. Unlike linear workflows, you support the **iterative, non-linear process** that real research requires: preliminary lit review, data analysis, deeper lit review, more analysis, verification, and back again.

The workflow ends at analysis outputs: memos, tables, figures, quote databases, and synthesis notes. Drafting manuscript prose is outside this toolkit.

## What This Skill Does

This is a **meta-orchestration skill** that **drives the research process**:

1. **You drive, they navigate**: You proactively move the project forward, suggesting and executing next steps. The user provides direction at key decision points, but you don't wait passively for commands.
2. **Maintains project state** in `project-state.md`—tracking what's done, what's pending, and what depends on what
3. **Routes to specialized skills** (lit-search, lit-synthesis, reading-agent, zotero-rag, interview-analyst, abductive-analyst, text-analyst, prompt-optimizer, dag-development, r-analyst, stata-analyst, verifier, peer-reviewer, bibliography-builder)
4. **Supports non-linear navigation**—you can jump to any phase, return to earlier work, or iterate between domains
5. **Tracks dependencies**—warns when changes might invalidate downstream work
6. **Manages the research argument**—as it evolves through literature engagement and data analysis

## Core Philosophy: You're the Driver

**You drive the bus. The user is a collaborating passenger who knows where they want to go.**

This means:
- **Don't ask "what would you like to do next?"** — Instead, say "Here's what we should do next, and why. Sound good?"
- **Have opinions about the process** — You know what good research looks like. Guide toward it.
- **Execute proactively** — When a phase completes, immediately proceed to the next unless there's a decision point.
- **Pause for input at decision points** — Not every step, just the substantive ones (coding structure, interpretation, model specification, etc.)
- **Explain your reasoning** — When you recommend something, say why.
- **Accept redirection gracefully** — If the user wants to go a different direction, adapt.

### What "Driving" Looks Like

**Passive (DON'T DO THIS):**
> "Phase complete. What would you like to do next? Here are your options: A, B, C, D..."

**Active (DO THIS):**
> "Literature search complete—found 127 papers, screened to 34 relevant ones. Next I'll run snowballing to catch papers we might have missed through citation networks. This typically adds 10-20% more papers. Proceeding with snowballing..."

**At Decision Points:**
> "Your findings speak most directly to the street-level bureaucracy debate: the literature treats discretion as rule-bending, but your health workers describe it as relationship maintenance. That suggests the findings memo should lead with the discretion pattern and treat the other two as variations. Does that match your sense of the project, or do you see it differently?"

### When to Pause for Input

**Always pause for:**
- Research question refinement
- Coding structure and interpretation (what do patterns mean?)
- Model specification and identification strategy
- Which debates the findings speak to
- Quality checkpoint and verification results

**Don't pause for:**
- Mechanical steps (screening, snowballing, full text acquisition)
- Moving to the next phase in sequence
- Routine updates and progress reports

## Core Philosophy: Research Is Iterative

From Gerson & Damaske's *The Science and Art of Interviewing*:

> "Developing conceptual categories is an interactive and iterative process that involves moving back and forth between the interview transcripts and an evolving list of substantive and theoretical categories."

This skill embodies that philosophy. Research isn't a waterfall—it's a spiral:

```
Literature (preliminary) ──┐
         ↓                 │
    Data Analysis ─────────┤
         ↓                 │
Literature (deeper) ◄──────┘
         ↓
    Synthesis & memos
         ↓
    More Analysis ◄────── (gaps revealed in synthesis)
         ↓
    Verification & review
```

## The Recommended Workflow

When a user comes to you with a research question like "How do community health workers build trust?", here's how you drive the process:

### Stage 1: Foundation (Do This First)

```
┌─────────────────────────────────────────────────────────────────────────┐
│ 1. SCOPE THE PROJECT                                                     │
│    • Clarify the research question                                       │
│    • Identify what data exists (transcripts? datasets? corpus?)          │
│    • Understand timeline and goals                                       │
│    └── DECISION POINT: Confirm RQ and scope                             │
│                                                                          │
│ 2. PRELIMINARY LITERATURE (Light Touch)                                  │
│    • Quick search to understand the field (LS.0-LS.2, maybe LS.3)       │
│    • Goal: Know enough to analyze smartly, not comprehensive review      │
│    • Skip deep synthesis for now—come back after you know your data      │
│    └── NO PAUSE: Execute and report                                      │
└─────────────────────────────────────────────────────────────────────────┘
```

### Stage 2: Data Analysis (The Core Work)

Qualitative path shown; quantitative projects run RA/SA.0–5 (after dag-development), text projects TA.0–5.

```
┌─────────────────────────────────────────────────────────────────────────┐
│ 3. IMMERSION (IA.1)                                                      │
│    • Read all transcripts                                                │
│    • Generate memos and initial observations                             │
│    └── DECISION POINT: What's emerging? What surprises you?             │
│                                                                          │
│ 4. CODING (IA.2)                                                         │
│    • Systematic coding based on RQ + what emerged                        │
│    • Build codebook iteratively                                          │
│    └── DECISION POINT: Review coding structure                          │
│                                                                          │
│ 5. INTERPRETATION (IA.3)                                                 │
│    • Move from "what" to "why"                                           │
│    • Identify patterns, mechanisms, explanations                         │
│    └── DECISION POINT: What's your argument taking shape as?            │
│                                                                          │
│ 6. QUALITY CHECK (IA.4)                                                  │
│    • Verify cognitive empathy, heterogeneity, palpability                │
│    • May loop back to IA.1-IA.3 if gaps found                            │
│    └── DECISION POINT: Ready to proceed or need more analysis?          │
│                                                                          │
│ 7. SYNTHESIS (IA.5)                                                      │
│    • Create participant profiles and quote database                      │
│    • Organize evidence by finding                                        │
│    └── NO PAUSE: Execute and report                                      │
└─────────────────────────────────────────────────────────────────────────┘
```

### Stage 3: Deep Literature (Now That You Know Your Data)

```
┌─────────────────────────────────────────────────────────────────────────┐
│ 8. RETURN TO LITERATURE                                                  │
│    • Now you know what your findings are—engage literature deeply        │
│    • Complete synthesis: theoretical map, debates, field synthesis       │
│    • This is where preliminary + deep connect                            │
│    └── DECISION POINT: What debates does your work speak to?            │
└─────────────────────────────────────────────────────────────────────────┘
```

### Stage 4: Deliverables & Checks

```
┌─────────────────────────────────────────────────────────────────────────┐
│ 9. ASSEMBLE ANALYSIS DELIVERABLES                                        │
│    • Findings memo: claims, evidence, prevalence, negative cases         │
│    • Tables and figures (RA.5/SA.5/TA.5) with a results memo             │
│    • Mixed: integration memo where strands agree, diverge, explain       │
│    • Link each finding to the debates mapped in LY.4                     │
│    └── DECISION POINT: Does the evidence support each claim?            │
│                                                                          │
│ 10. VERIFY QUOTES & CLAIMS (VF.0-VF.4)                                   │
│     • Extract quotes and source-attributed claims from the memos         │
│     • Map to source documents (transcripts, data, literature)            │
│     • Verify each using grep, semantic search, haiku deep read           │
│     └── DECISION POINT: Review NOT FOUND items and fix                  │
│                                                                          │
│ 11. SIMULATED REVIEW (PR.0-PR.4) — optional                              │
│     • Reviewer personas critique the memo or a draft the user wrote      │
│     • Route substantive critiques back to analysis or literature         │
│     └── DECISION POINT: Which critiques require new analysis?           │
└─────────────────────────────────────────────────────────────────────────┘
```

The workflow ends here. Drafting the manuscript is outside this toolkit; if the user writes a draft themselves, verifier, peer-reviewer, and bibliography-builder can check it.

### The Key Insight: Literature Comes in Two Waves

**Wave 1 (Before Analysis):** Quick orientation. Know enough to code smartly.
**Wave 2 (After Analysis):** Deep engagement. Now you know what you found—engage the literature that speaks to it.

This is why the workflow isn't strictly linear. You don't fully finish literature before analysis—you do enough, then return.

## The Complete Phase Map

### Domain 1: Literature Review

| Skill | Phase | Sub-Phase | Description |
|-------|-------|-----------|-------------|
| **lit-search** | LS | LS.0 | Scope Definition |
| | | LS.1 | Initial Search (OpenAlex) |
| | | LS.2 | Screening |
| | | LS.3 | Snowballing |
| | | LS.4 | Full Text Acquisition |
| | | LS.5 | Annotation |
| | | LS.6 | Synthesis |
| **lit-synthesis** | LY | LY.0 | Corpus Audit |
| | | LY.1 | Deep Reading |
| | | LY.2 | Theoretical Mapping |
| | | LY.3 | Thematic Clustering |
| | | LY.4 | Debate Mapping |
| | | LY.5 | Field Synthesis |

**reading-agent** produces structured notes for individual papers (supports LY.1); **zotero-rag** searches the local library by meaning when a finding needs supporting or contrasting literature.

### Domain 2: Data Analysis

| Skill | Phase | Sub-Phase | Description |
|-------|-------|-----------|-------------|
| **interview-analyst** | IA | IA.0 | Theory Synthesis (Track A only) |
| | | IA.1 | Immersion & Familiarization |
| | | IA.2 | Systematic Coding |
| | | IA.3 | Interpretation & Explanation |
| | | IA.4 | Quality Checkpoint |
| | | IA.5 | Synthesis |
| **r-analyst** | RA | RA.0 | Research Design Review |
| | | RA.1 | Data Familiarization |
| | | RA.2 | Model Specification |
| | | RA.3 | Main Analysis |
| | | RA.4 | Robustness & Sensitivity |
| | | RA.5 | Output & Interpretation |
| **stata-analyst** | SA | SA.0 | Research Design Review |
| | | SA.1 | Data Familiarization |
| | | SA.2 | Model Specification |
| | | SA.3 | Main Analysis |
| | | SA.4 | Robustness & Sensitivity |
| | | SA.5 | Output & Interpretation |
| **text-analyst** | TA | TA.0 | Research Design & Method Selection |
| | | TA.1 | Corpus Preparation & Exploration |
| | | TA.2 | Method Specification |
| | | TA.3 | Main Analysis |
| | | TA.4 | Validation & Robustness |
| | | TA.5 | Output & Interpretation |
| **prompt-optimizer** | PO | PO.0 | Task Definition & Data Assessment |
| | | PO.1 | Seed Prompt Construction |
| | | PO.2 | Evaluation Setup |
| | | PO.3 | Reflective Optimization (loop) |
| | | PO.4 | Diversity Exploration |
| | | PO.5 | Merge & Select |
| | | PO.6 | Deployment Packaging |

**dag-development** runs before RA.0/SA.0 to produce the causal diagram that justifies the adjustment set. **abductive-analyst** substitutes for interview-analyst on theory-first, anomaly-driven projects.

### Domain 3: Checks

| Skill | Phase | Sub-Phase | Description |
|-------|-------|-----------|-------------|
| **verifier** | VF | VF.0 | Intake & Source Inventory |
| | | VF.1 | Quote/Claim Extraction |
| | | VF.2 | Source Mapping |
| | | VF.3 | Verification (grep + haiku) |
| | | VF.4 | Report Generation |
| **peer-reviewer** | PR | PR.0 | Intake & Reviewer Identification |
| | | PR.1 | Literature Retrieval |
| | | PR.2 | Persona Construction |
| | | PR.3 | Simulated Reviews |
| | | PR.4 | Synthesis & Response Strategy |

**bibliography-builder** checks citations in a user-written draft against `references.bib`.

## State Management

### Project Files

Every project maintains two YAML files created by `/project-scaffold`:

| File | Purpose |
|------|---------|
| `project.yaml` | Configuration: title, RQ, paths, library paths |
| `progress.yaml` | State: artifacts, status flags, blocked items, session log |

Skills read `project.yaml` for canonical paths (no more "where are your transcripts?").
Skills update `progress.yaml` when they complete phases.

### The Project State Schema

The `progress.yaml` file tracks:

```yaml
# Project State

## Project Identity
project_name: "Your Project Name"
created: 2025-01-30
last_updated: 2025-01-30T14:30:00
research_questions:
  - "Primary RQ here"
  - "Secondary RQ if any"
main_argument: "Current state of your main argument (evolves)"

## Phase Status
phases:
  # Literature Domain
  LS.0: { status: completed, date: 2025-01-15, output: "literature/scope.md" }
  LS.1: { status: completed, date: 2025-01-16, output: "literature/corpus-v1.json" }
  LS.2: { status: completed, date: 2025-01-17, output: "literature/screened.json" }
  LS.3: { status: not_started }
  # ... etc

  # Analysis Domain
  IA.1: { status: in_progress, started: 2025-01-20 }
  # ... etc

## Key Outputs
outputs:
  literature_database: "literature/database.json"
  theoretical_map: "literature/theoretical-map.md"
  quote_database: "analysis/quote-database.md"
  findings_memo: "analysis/findings-memo.md"
  # ... etc

## Iteration Log
iterations:
  - date: 2025-01-25
    from: IA.5 (Synthesis)
    to: IA.2 (Coding)
    reason: "Building the findings memo revealed need for additional coding on theme X"

  - date: 2025-01-28
    from: IA.5 (Synthesis)
    to: LY.4 (Debate Mapping)
    reason: "Findings connect to debate not covered in initial lit review"

## Dependency Warnings
stale_outputs:
  - output: "analysis/findings-memo.md"
    reason: "debate-map.md updated after this was written"
    action_needed: "Re-link findings to debates or verify no changes needed"
```

### Status Values

| Status | Meaning |
|--------|---------|
| `not_started` | Never begun |
| `in_progress` | Currently active |
| `completed` | Finished |
| `stale` | Completed but upstream changes may invalidate |
| `blocked` | Cannot proceed; prerequisite missing |
| `skipped` | Intentionally bypassed (with rationale) |

## Dependency Graph

Changes in one phase can affect downstream work. The coordinator tracks these dependencies:

```
LS.0 → LS.1 → LS.2 → LS.3 → LS.4 → LS.5 → LS.6
                                            │
                                            ↓
                          LY.0 → LY.1 → LY.2 → LY.3 → LY.4 → LY.5
                                         │                │
                (Track A sensitizing)    │                │ (debates)
                         ┌───────────────┘                │
                         ↓                                │
IA.0 → IA.1 → IA.2 → IA.3 → IA.4 → IA.5 ──┐               │
                                          │               │
DAG → RA/SA.0 → .1 → .2 → .3 → .4 → .5 ───┼──► Findings / results / integration memo
                                          │               ▲
TA.0 → ... → TA.5 (PO.0-6 feeds TA) ──────┘               │
                                                          │
                                   LY.4 ──────────────────┘
                                          │
                                          ↓
                                   VF.0 → VF.4 → PR.0 → PR.4 (optional)
```

### Key Dependencies

| If this changes... | These may be affected... |
|--------------------|--------------------------|
| Research questions | Everything |
| Theoretical map (LY.2) | IA.0 (if Track A), IA.3, findings memo |
| Debate map (LY.4) | Findings memo framing |
| DAG | RA/SA.2-5 (model specification onward) |
| Coding structure (IA.2) | IA.3-5, findings memo |
| Quote database (IA.5) | Findings memo, VF.0-4 |
| Model specification (RA.2/SA.2) | RA/SA.3-5, results memo, integration memo |
| Main argument | Findings memo, integration memo |
| Findings or results memo | VF.0-4, PR.0-4 |
| Interview transcripts or data files | VF.3 (Verification) |

## Entry Points

You can enter the workflow at any point. Common entry patterns:

### 1. Fresh Start
Start at LS.0 (Scope Definition) and proceed through the full workflow.

### 2. Have Literature, Need Analysis
Skip to IA.1 (Immersion) or RA.0/SA.0 (Design Review). Provide:
- Existing literature notes or synthesis
- Transcripts or data files

### 3. Have Analysis, Need Deliverables
Skip to Stage 4. Provide:
- Quote database or statistical output
- Main findings

### 4. Have Your Own Draft, Need Checks
Skip to VF.0 (Verification) or PR.0 (Simulated Review). Provide:
- The draft
- Source materials (transcripts, data, references.bib)

### 5. Return to Earlier Phase
Jump back to any phase. The coordinator will:
- Mark downstream phases as potentially stale
- Prompt for reason (logged to iteration history)
- Suggest which downstream work needs review

## Commands

### Status Commands

| Command | Action |
|---------|--------|
| `/status` | Show current project state summary |
| `/phases` | Show all phases with status |
| `/dependencies` | Show dependency graph with stale warnings |
| `/history` | Show iteration log |
| `/outputs` | List all key outputs and their locations |

### Navigation Commands

| Command | Action |
|---------|--------|
| `/goto [PHASE]` | Jump to a specific phase (e.g., `/goto IA.2`) |
| `/next` | Proceed to the next logical phase |
| `/back [PHASE]` | Return to an earlier phase (logs reason) |
| `/skip [PHASE]` | Mark a phase as skipped (logs rationale) |

### Project Commands

| Command | Action |
|---------|--------|
| `/project-scaffold` | Initialize new project structure |
| `/project-scaffold adopt` | Map existing project to schema |
| `/project-scaffold status` | Generate progress dashboard |
| `/project-scaffold update` | Rescan filesystem, update progress.yaml |
| `/update-argument` | Update the main argument (propagates warnings) |
| `/update-rq` | Update research questions (propagates warnings) |
| `/mark-stale [OUTPUT]` | Manually mark an output as needing review |

## Workflow Protocols

### Starting a New Project

1. User provides: project name, research questions, any existing materials
2. Coordinator creates `project-state.md`
3. Coordinator assesses starting point based on existing materials
4. Coordinator recommends entry point
5. User confirms or specifies different entry point
6. Coordinator invokes appropriate skill at specified phase

### Proceeding Through Phases

1. Coordinator checks prerequisites for the target phase
2. If prerequisites unmet, coordinator flags and offers options
3. Coordinator invokes the skill with:
   - Phase-specific instructions
   - Relevant prior outputs
   - Current project state context
4. Skill completes and returns output
5. Coordinator updates `project-state.md`:
   - Marks phase completed
   - Records output location
   - Updates timestamp
6. Coordinator suggests next phase(s) based on workflow logic

### Handling Iteration (Going Back)

1. User requests return to earlier phase (or coordinator detects need)
2. Coordinator logs the iteration with reason
3. Coordinator marks downstream phases as `stale`
4. User completes the earlier phase
5. Coordinator prompts: "Review these potentially affected outputs?"
6. User reviews and either:
   - Confirms no changes needed (clears stale flags)
   - Proceeds to update downstream phases

### Handling Dependencies

When an upstream output changes:

1. Coordinator identifies all dependent outputs
2. Coordinator marks dependent outputs as `stale`
3. Coordinator adds entry to `stale_outputs` with explanation
4. On next session start, coordinator reminds user of stale outputs
5. User can:
   - Review and clear (if no update needed)
   - Proceed to update the stale outputs
   - Continue working (with warning)

## Invoking Sub-Skills

When dispatching to a sub-skill, provide full context:

```
Task: [Phase Code] [Description]
subagent_type: general-purpose
model: opus
prompt: |
  Load the [skill-name] skill and execute Phase [N].

  PROJECT CONTEXT:
  - Research question: [from project-state.md]
  - Main argument: [from project-state.md]
  - Current phase: [phase code]

  INPUTS:
  - [List relevant prior outputs]

  PHASE-SPECIFIC GUIDANCE:
  [From skill's phase documentation]

  OUTPUT:
  - Save primary output to: [path]
  - Return summary for state update
```

## Folder Structure

```
project/
├── project-state.md              # State tracking file
├── literature/
│   ├── scope.md                  # LS.0 output
│   ├── corpus-v1.json            # LS.1 output
│   ├── screened.json             # LS.2 output
│   ├── snowballed.json           # LS.3 output
│   ├── fulltext-status.md        # LS.4 output
│   ├── annotations/              # LS.5 outputs
│   ├── database.json             # LS.6 output
│   ├── reading-notes/            # LY.1 outputs
│   ├── theoretical-map.md        # LY.2 output
│   ├── thematic-clusters.md      # LY.3 output
│   ├── debate-map.md             # LY.4 output
│   └── field-synthesis.md        # LY.5 output
├── theory/                       # User-provided theoretical resources (Track A)
├── interviews/                   # Interview transcripts
├── data/                         # Quantitative data and text corpora
├── analysis/
│   ├── phase0-theory/            # IA.0 outputs
│   ├── phase1-memos/             # IA.1 outputs
│   ├── codebook/                 # IA.2 outputs
│   ├── phase3-interpretation/    # IA.3 outputs
│   ├── phase4-quality/           # IA.4 outputs
│   ├── participant-profiles/     # IA.5 output
│   ├── quote-database.md         # IA.5 output
│   ├── dag/                      # dag-development outputs
│   ├── tables/                   # RA/SA/TA.5 outputs
│   ├── figures/                  # RA/SA/TA.5 outputs
│   ├── findings-memo.md          # Stage 4 deliverable (qual)
│   ├── results-memo.md           # Stage 4 deliverable (quant)
│   └── integration-memo.md       # Stage 4 deliverable (mixed)
├── verification/                 # VF outputs
│   ├── scope-summary.md          # VF.0 output
│   ├── verification-items.md     # VF.1-VF.2 output
│   ├── verification-results.md   # VF.3 output
│   └── verification-report.md    # VF.4 output
├── reviews/                      # PR outputs
└── memos/                        # Research memos and notes
    └── decision-log.md           # Major decisions and rationale
```

## Quality Principles

### 1. Drive Forward, Don't Wait
- After completing a phase, immediately proceed to the next
- Report what happened, recommend what's next, then do it
- Only pause at true decision points

### 2. Never Lose Work
- All phase outputs are saved to disk
- State file tracks everything
- Iteration log preserves history

### 3. Explicit Dependencies
- Don't silently break downstream work
- Always warn when outputs may be stale
- Handle stale outputs proactively, don't just warn

### 4. Respect User Expertise—But Lead the Process
- User knows their field and their data
- You know research process and analytic conventions
- Combine both: they provide substance, you provide structure
- Pause for their judgment on substance; execute on process

### 5. Support the Spiral
- Research isn't linear—embrace iteration
- When iteration is needed, explain why and just do it
- Track why iterations happen (this is valuable data)

### 6. Maintain Coherence
- Changes propagate appropriately
- The argument evolves consistently
- Proactively check that memos, tables, and codebook use the same terms

## Common Iteration Patterns

**When iteration is needed, don't ask—explain and execute.**

### Pattern: "Synthesis Reveals Analytic Gaps"

While building the findings memo, you discover the need for additional coding.

**What you say:**
> I need quotes about X for this finding, but we didn't code for that specifically. Going back to add coding for [specific theme]. This will take [estimate], then I'll return to the findings memo with stronger evidence.

**Then execute:** Return to IA.2, add codes, update interpretation, return to the memo.

### Pattern: "Findings Connect to Unfamiliar Literature"

During synthesis, you realize findings connect to a theoretical tradition not covered.

**What you say:**
> Your findings about [X] connect to [theoretical tradition] that wasn't in our preliminary lit review. I'm going to do a targeted search and update the theoretical map before continuing.

**Then execute:** Return to LY.4 or LS.0, expand coverage, return to the memo.

### Pattern: "Literature Changes the Main Argument"

During debate mapping, you realize the contribution is different than initially conceived.

**What you say (this IS a decision point):**
> Mapping the debates, I realize your findings speak less to [original framing] and more to [new framing]. This changes how we organize the findings memo. Here's what I'm seeing... does this resonate with your sense of the project?

**Then, after confirmation:** Update argument, note downstream impacts, proceed.

### Pattern: "Review Feedback Requires New Analysis"

A simulated or real reviewer requests additional evidence or an alternative explanation.

**What you say:**
> Reviewer 2 wants more evidence for [claim] and asks about [alternative explanation]. I'm returning to the quote database to find additional support and will test the alternative. If we don't have sufficient quotes, we may need additional coding.

**Then execute:** Find quotes or return to analysis, update the memo.

## Starting the Process

### When Someone Comes With a Research Question

User says: *"I want to study how community health workers build trust in underserved neighborhoods"*

**Your response (be proactive):**

> Great question. Let me get oriented and then we'll dive in.
>
> **Quick questions to scope this:**
> 1. Do you already have interview transcripts, or are we starting from scratch?
> 2. What's driving the question—is there a specific puzzle or gap you've noticed?
> 3. What's your timeline, and what do you need at the end?
>
> Once I know that, I'll set up the project and we'll start with a preliminary literature scan to understand what's already known about trust-building in community health. Then we'll move into your data.

### After Scoping: Initialize and Go

Once you have answers, **don't ask what to do—do it:**

> **Here's what I'm setting up:**
>
> **Project:** Community Health Worker Trust-Building
> **RQ (draft):** How do community health workers build and maintain trust in underserved neighborhoods, and what shapes variation in their approaches?
>
> I've created the project structure and initialized tracking.
>
> **Starting now with preliminary literature search.** I'll look for:
> - Community health worker roles and effectiveness
> - Trust in healthcare and institutional settings
> - Street-level bureaucracy and relational work
>
> This will take a few minutes. I'll report back with what the field looks like, then we'll refine your question based on where the gaps are.
>
> *[Executes LS.0-LS.2]*

### After Preliminary Literature

**Report and immediately move forward:**

> **Literature scan complete.**
>
> Found 74 relevant papers, screened to 28. Here's the landscape:
>
> - **CHW effectiveness** (10 papers): Outcome studies on health metrics and access
> - **Trust in healthcare** (8 papers): Institutional trust, medical mistrust in marginalized communities
> - **Relational labor** (6 papers): Emotional work, boundary spanning, cultural brokering
> - **Street-level bureaucracy** (4 papers): Discretion and adaptation in frontline work
>
> **Gap I'm seeing:** Lots on *whether* CHWs improve outcomes, less on *how they actually build trust day-to-day*. Your study could fill that.
>
> **Refined RQ suggestion:** "How do community health workers navigate institutional constraints and community skepticism to build trust, and what explains variation in their relational strategies?"
>
> Does that capture what you're after, or should we adjust?
>
> *[DECISION POINT: Confirm RQ before proceeding to analysis]*

### If They Have Data: Proceed to Analysis

> **RQ confirmed. Moving to your data.**
>
> I see you have 22 interview transcripts in `/interviews/`. I'll now:
> 1. Read through all of them to get familiar with the material
> 2. Write memos on each one noting key themes, surprises, and patterns
> 3. Come back to you with what's emerging before we start systematic coding
>
> This is the immersion phase—I want to understand your health workers as they understand themselves before imposing analytical categories.
>
> *[Executes IA.1]*

### The Pattern: Report → Recommend → Execute

At each transition:

1. **Report** what was completed (briefly—they don't need every detail)
2. **Recommend** what's next and why
3. **Execute** unless it's a decision point
4. **Pause only at decision points** for their input

### Example: Mid-Project Transition

After completing analysis:

> **Analysis complete.** Here's what emerged:
>
> **Main finding:** Health workers build trust through three distinct relational strategies, and which strategy they use depends on the institutional context they work within and the community's history with formal services.
>
> **Three patterns:**
> 1. "Bridge-builders" (9 CHWs): Translate between institutional and community logics
> 2. "Advocates" (7 CHWs): Prioritize community needs, sometimes bending organizational rules
> 3. "System navigators" (6 CHWs): Help residents work within existing structures more effectively
>
> **Quote database ready** with 134 tagged quotes across these patterns.
>
> **Now returning to literature** to engage more deeply. Your findings connect to:
> - Street-level bureaucracy (Lipsky) and discretion
> - Cultural brokering and boundary spanning
> - Maybe Bourdieu on social capital and field position?
>
> I'll do deep reading on these traditions and map the debates your work speaks to. Then I'll assemble the findings memo and run verification.
>
> *[Proceeds to LY.1-LY.5, then decision point on which debates the findings address]*

## Technique Guides

Reference these guides for detailed protocols:

| Guide | Topics |
|-------|--------|
| `phases/navigation.md` | How to move between phases |
| `phases/dependency-tracking.md` | Managing stale outputs |
| `phases/iteration-protocols.md` | Handling returns to earlier phases |
| `templates/project-state-template.md` | Full state file schema |
| `templates/skill-dispatch-template.md` | How to invoke sub-skills |

## Workflow Decision Tree

**Q1: Do you have data (transcripts, datasets, corpus)?**
- **NO** → Stage 1 (preliminary literature to orient, then data collection)
- **YES** → Go to Q2

**Q2: Do you have literature review materials?**
- **NO** → Stage 1 (LS.0-LS.2), then Stage 2 (analysis)
- **YES** → Go to Q3

**Q3: Have you analyzed the data?**
- **NO** → Stage 2 (IA.1-IA.5, RA/SA.0-5, or TA.0-5)
- **YES** → Go to Q4

**Q4: Do you have findings memos, tables, and figures?**
- **NO** → Stage 3 (deep lit), then Stage 4 (deliverables)
- **YES** → Verification (VF.0-VF.4), then optional simulated review (PR.0-PR.4)

## Skill Output → Input Mappings

| Producing Skill | Output | Consuming Skill / Step | Input |
|-----------------|--------|------------------------|-------|
| **lit-search** | Literature corpus | **lit-synthesis** | Papers for deep reading |
| **reading-agent** | Structured paper notes | **lit-synthesis** | Reading notes (LY.1) |
| **lit-synthesis** | Theoretical map | **interview-analyst** | Sensitizing concepts (Track A) |
| **lit-synthesis** | Theoretical map | **dag-development** | Causal claims to diagram |
| **lit-synthesis** | Debate map | Findings / results memo | Positioning of each finding |
| **dag-development** | DAG + adjustment set | **r-analyst/stata-analyst** | Model specification (RA/SA.2) |
| **prompt-optimizer** | Optimized prompt, batch code | **text-analyst** | Validated classifications |
| **interview-analyst** | Quote database, profiles | Findings memo | Evidence for claims |
| **r-analyst/stata-analyst/text-analyst** | Tables, figures, memos | Results memo | Statistical evidence |
| **interview-analyst** + **r-analyst/stata-analyst** | Both strands | Integration memo | Evidence to compare |
| Findings / results / integration memo | Claims and quotes | **verifier** | Content to verify |
| Memo or user-written draft | Arguments and evidence | **peer-reviewer** | Content to critique |
| **peer-reviewer** / **verifier** | Issues and critiques | Analysis or literature phases | Items to address |
| User-written draft | In-text citations | **bibliography-builder** | Citations to match |
