Discover
Launch the Discovery phase of research. Routes to the appropriate agents based on the mode specified.
Input: $ARGUMENTS — a mode keyword followed by a topic or query.
Modes
Default (no mode specified)
If no mode keyword is given, start with an interactive interview to build the research specification.
/discover interview [topic] — Research Interview
Conduct a structured conversational interview to formalize a research idea.
This is conversational. Ask questions directly in your text responses, one or two at a time. Wait for the user to respond before continuing. Do NOT use AskUserQuestion.
Agents: Direct conversation (no agent dispatch)
Output: Research specification + domain profile
Interview structure:
- Big Picture (1-2 questions): "What phenomenon are you trying to understand?" "Why does this matter?"
- Theoretical Motivation (1-2 questions): "What's your intuition for why X happens?" "What would standard theory predict?"
- Data and Setting (1-2 questions): "What data do you have access to?" "Is there a specific institutional setting?"
- Identification (1-2 questions): "Is there a natural experiment or policy change you can exploit?" "What's the biggest threat to causal interpretation?"
- Expected Results (1-2 questions): "What would you expect to find?" "What would surprise you?"
- Contribution (1 question): "How does this differ from what's been done? What gap are you filling?"
Interview style:
- Be curious, not prescriptive. Draw out the researcher's thinking, don't impose your own ideas.
- Probe weak spots gently. "What would a skeptic say about...?" not "This won't work because..."
- Build on answers. Each question should follow from the previous response.
- Know when to stop. If the researcher has a clear vision after 4-5 exchanges, move to the specification.
After interview (5-8 exchanges), produce:
Output 1: Research Specification → quality_reports/research_spec_[topic].md
# Research Specification: [Title]
## Research Question — [one sentence]
## Motivation — [why this matters, theoretical context, policy relevance]
## Hypothesis — [testable prediction with expected direction]
## Empirical Strategy — [method, treatment, control, identifying assumption, robustness]
## Data — [primary dataset, key variables, sample, unit of observation]
## Expected Results — [what the researcher expects and why]
## Contribution — [how this advances the literature]
## Open Questions — [issues needing further thought]
Output 2: Domain Profile → .claude/references/domain-profile.md (if still template)
Fill in field, target journals, common data sources, identification strategies, field conventions, seminal references, and referee concerns based on the interview.
/discover lit [topic] — Literature Review
Search and synthesize academic literature.
Agents: Librarian (collector) → librarian-critic (reviewer)
Output: Annotated bibliography + BibTeX entries + frontier map
Workflow:
- Read
.claude/references/domain-profile.md for field journals and seminal references
- Check
master_supporting_docs/ for uploaded papers
- Read
bibliography_base.bib for papers already in the project
- Dispatch Librarian to search:
- Top-5 journals (AER, Econometrica, QJE, JPE, REStud)
- Field journals from domain-profile.md
- NBER/SSRN/IZA working papers
- Citation chains — forward and backward citation tracking from key papers. Follow: (a) backward citations (what do the key papers cite?), and (b) forward citations (who cites the key papers?). This is often the most productive search vector.
- Assign proximity scores to each paper:
- 1 — Directly competes (same question, similar method)
- 2 — Closely related (same question, different method or setting)
- 3 — Related (overlapping topic, different angle)
- 4 — Background (provides theory, method, or context)
- 5 — Tangentially related (useful framing only)
- Dispatch librarian-critic to check coverage, gaps, recency, scope
- If gaps found, re-dispatch Librarian for targeted search (max 1 round)
- Save to
quality_reports/lit_review_[topic].md
Unverified citations: If you cannot verify a citation, mark the BibTeX entry with % UNVERIFIED. Do NOT fabricate or guess citation details. Note when working papers have been published — cite the published version.
Output format for each paper:
### [Author (Year)] — [Short Title]
- **Journal:** [venue]
- **Proximity:** [1-5 score]
- **Main contribution:** [1-2 sentences]
- **Identification strategy:** [DiD / IV / RDD / SC / descriptive]
- **Key finding:** [result with effect size]
- **Relevance:** [why it matters for our research]
/discover data [requirements] — Data Discovery
Find and assess datasets for the research question.
Agents: Explorer (finder) → explorer-critic (assessor)
Output: Ranked data sources with feasibility grades
Workflow:
- Read research spec and strategy memo if they exist
- Read
.claude/references/domain-profile.md for common data sources in the field
- Understand what variables are needed: treatment, outcome, controls, time period, geography
- Dispatch Explorer to search across source categories:
- Public microdata (CPS, ACS, NHIS, MEPS, etc.)
- Administrative data (Medicare claims, tax records, court records)
- Survey data (RAND HRS, PSID, Add Health, NLSY)
- International (World Bank, OECD, Eurostat)
- Novel/alternative (satellite imagery, web scraping, proprietary)
- For each dataset found, report:
- Name, provider, access level (public/restricted)
- Key variables available
- Coverage (time period, geography, sample size)
- Feasibility grade:
- A — Ready to use (public download, documented, standard format)
- B — Accessible with effort (application required, moderate cost, needs cleaning)
- C — Restricted but obtainable (FSRDC, data use agreement, IRB approval)
- D — Very difficult (proprietary, requires partnership, rare access)
- Strengths and limitations
- Dispatch explorer-critic to critique each proposed dataset using the 5-point assessment:
- Measurement validity — Does the variable actually measure what we need?
- Sample selection — Who is in the data? Who is missing?
- External validity — Can we generalize from this sample?
- Identification compatibility — Does this data support the proposed design?
- Known issues — Documented problems with this dataset in the literature
- Save exploration to
quality_reports/data_exploration_[topic].md
Rejected datasets: Include a rejection table:
| Dataset |
Reason for Rejection |
Deal-breaker? |
| [Name] |
[explorer-critic's finding] |
[Yes/No] |
/discover ideate [topic] — Research Ideation
Generate structured research questions and hypotheses from a topic or dataset.
Agents: Direct generation (no agent dispatch)
Output: Research questions with empirical strategies
Generate:
- 3-5 research questions with clear hypotheses
- For each: potential identification strategy, data requirements, expected contribution
- Rank by feasibility and novelty
- Save to
quality_reports/research_ideas_[topic].md
Principles
- Interview style: Be curious, not prescriptive. Draw out the researcher's thinking.
- Literature honesty: Never fabricate citations. Mark unverified as
% UNVERIFIED.
- Proximity scoring: Always assign 1-5 proximity scores to papers found.
- Citation chains: Forward and backward citation tracking is an explicit search vector — do not skip it.
- Effect sizes matter: Report magnitudes, not just signs. Note identification strategy for every paper.
- Data feasibility matters: A perfect dataset you can't access is useless. Always assign A/B/C/D grades.
- 5-point data critique: Measurement validity, sample selection, external validity, identification compatibility, known issues. Never skip this.
- Domain-profile aware: Always read
.claude/references/domain-profile.md first for field calibration.
- Worker-critic pairing: Librarian + librarian-critic, Explorer + explorer-critic. Never skip the critic.
1---2name: discover3description: Discovery phase combining research interviews, literature search, data discovery, and ideation. Routes to appropriate agents based on arguments. Replaces /interview-me, /lit-review, /find-data, /research-ideation.4---56# Discover78Launch the Discovery phase of research. Routes to the appropriate agents based on the mode specified.910**Input:** `$ARGUMENTS` — a mode keyword followed by a topic or query.1112---1314## Modes1516### Default (no mode specified)17If no mode keyword is given, start with an interactive interview to build the research specification.1819### `/discover interview [topic]` — Research Interview20Conduct a structured conversational interview to formalize a research idea.2122**This is conversational.** Ask questions directly in your text responses, one or two at a time. Wait for the user to respond before continuing. Do NOT use AskUserQuestion.2324**Agents:** Direct conversation (no agent dispatch)25**Output:** Research specification + domain profile2627Interview structure:281. **Big Picture** (1-2 questions): "What phenomenon are you trying to understand?" "Why does this matter?"292. **Theoretical Motivation** (1-2 questions): "What's your intuition for why X happens?" "What would standard theory predict?"303. **Data and Setting** (1-2 questions): "What data do you have access to?" "Is there a specific institutional setting?"314. **Identification** (1-2 questions): "Is there a natural experiment or policy change you can exploit?" "What's the biggest threat to causal interpretation?"325. **Expected Results** (1-2 questions): "What would you expect to find?" "What would surprise you?"336. **Contribution** (1 question): "How does this differ from what's been done? What gap are you filling?"3435Interview style:36- **Be curious, not prescriptive.** Draw out the researcher's thinking, don't impose your own ideas.37- **Probe weak spots gently.** "What would a skeptic say about...?" not "This won't work because..."38- **Build on answers.** Each question should follow from the previous response.39- **Know when to stop.** If the researcher has a clear vision after 4-5 exchanges, move to the specification.4041After interview (5-8 exchanges), produce:4243**Output 1: Research Specification** → `quality_reports/research_spec_[topic].md`44```markdown45# Research Specification: [Title]46## Research Question — [one sentence]47## Motivation — [why this matters, theoretical context, policy relevance]48## Hypothesis — [testable prediction with expected direction]49## Empirical Strategy — [method, treatment, control, identifying assumption, robustness]50## Data — [primary dataset, key variables, sample, unit of observation]51## Expected Results — [what the researcher expects and why]52## Contribution — [how this advances the literature]53## Open Questions — [issues needing further thought]54```5556**Output 2: Domain Profile** → `.claude/references/domain-profile.md` (if still template)57Fill in field, target journals, common data sources, identification strategies, field conventions, seminal references, and referee concerns based on the interview.5859### `/discover lit [topic]` — Literature Review60Search and synthesize academic literature.6162**Agents:** Librarian (collector) → librarian-critic (reviewer)63**Output:** Annotated bibliography + BibTeX entries + frontier map6465Workflow:661. Read `.claude/references/domain-profile.md` for field journals and seminal references672. Check `master_supporting_docs/` for uploaded papers683. Read `bibliography_base.bib` for papers already in the project694. Dispatch Librarian to search:70 - Top-5 journals (AER, Econometrica, QJE, JPE, REStud)71 - Field journals from domain-profile.md72 - NBER/SSRN/IZA working papers73 - **Citation chains** — forward and backward citation tracking from key papers. Follow: (a) backward citations (what do the key papers cite?), and (b) forward citations (who cites the key papers?). This is often the most productive search vector.745. Assign **proximity scores** to each paper:75 - **1** — Directly competes (same question, similar method)76 - **2** — Closely related (same question, different method or setting)77 - **3** — Related (overlapping topic, different angle)78 - **4** — Background (provides theory, method, or context)79 - **5** — Tangentially related (useful framing only)806. Dispatch librarian-critic to check coverage, gaps, recency, scope817. If gaps found, re-dispatch Librarian for targeted search (max 1 round)828. Save to `quality_reports/lit_review_[topic].md`8384**Unverified citations:** If you cannot verify a citation, mark the BibTeX entry with `% UNVERIFIED`. Do NOT fabricate or guess citation details. Note when working papers have been published — cite the published version.8586Output format for each paper:8788```markdown89### [Author (Year)] — [Short Title]90- **Journal:** [venue]91- **Proximity:** [1-5 score]92- **Main contribution:** [1-2 sentences]93- **Identification strategy:** [DiD / IV / RDD / SC / descriptive]94- **Key finding:** [result with effect size]95- **Relevance:** [why it matters for our research]96```9798### `/discover data [requirements]` — Data Discovery99Find and assess datasets for the research question.100101**Agents:** Explorer (finder) → explorer-critic (assessor)102**Output:** Ranked data sources with feasibility grades103104Workflow:1051. Read research spec and strategy memo if they exist1062. Read `.claude/references/domain-profile.md` for common data sources in the field1073. Understand what variables are needed: treatment, outcome, controls, time period, geography1084. Dispatch Explorer to search across source categories:109 - Public microdata (CPS, ACS, NHIS, MEPS, etc.)110 - Administrative data (Medicare claims, tax records, court records)111 - Survey data (RAND HRS, PSID, Add Health, NLSY)112 - International (World Bank, OECD, Eurostat)113 - Novel/alternative (satellite imagery, web scraping, proprietary)1145. For each dataset found, report:115 - Name, provider, access level (public/restricted)116 - Key variables available117 - Coverage (time period, geography, sample size)118 - **Feasibility grade:**119 - **A** — Ready to use (public download, documented, standard format)120 - **B** — Accessible with effort (application required, moderate cost, needs cleaning)121 - **C** — Restricted but obtainable (FSRDC, data use agreement, IRB approval)122 - **D** — Very difficult (proprietary, requires partnership, rare access)123 - Strengths and limitations1246. Dispatch explorer-critic to critique each proposed dataset using the **5-point assessment:**125 1. **Measurement validity** — Does the variable actually measure what we need?126 2. **Sample selection** — Who is in the data? Who is missing?127 3. **External validity** — Can we generalize from this sample?128 4. **Identification compatibility** — Does this data support the proposed design?129 5. **Known issues** — Documented problems with this dataset in the literature1307. Save exploration to `quality_reports/data_exploration_[topic].md`131132**Rejected datasets:** Include a rejection table:133134| Dataset | Reason for Rejection | Deal-breaker? |135|---------|---------------------|---------------|136| [Name] | [explorer-critic's finding] | [Yes/No] |137138### `/discover ideate [topic]` — Research Ideation139Generate structured research questions and hypotheses from a topic or dataset.140141**Agents:** Direct generation (no agent dispatch)142**Output:** Research questions with empirical strategies143144Generate:1451. 3-5 research questions with clear hypotheses1462. For each: potential identification strategy, data requirements, expected contribution1473. Rank by feasibility and novelty1484. Save to `quality_reports/research_ideas_[topic].md`149150---151152## Principles153154- **Interview style:** Be curious, not prescriptive. Draw out the researcher's thinking.155- **Literature honesty:** Never fabricate citations. Mark unverified as `% UNVERIFIED`.156- **Proximity scoring:** Always assign 1-5 proximity scores to papers found.157- **Citation chains:** Forward and backward citation tracking is an explicit search vector — do not skip it.158- **Effect sizes matter:** Report magnitudes, not just signs. Note identification strategy for every paper.159- **Data feasibility matters:** A perfect dataset you can't access is useless. Always assign A/B/C/D grades.160- **5-point data critique:** Measurement validity, sample selection, external validity, identification compatibility, known issues. Never skip this.161- **Domain-profile aware:** Always read `.claude/references/domain-profile.md` first for field calibration.162- **Worker-critic pairing:** Librarian + librarian-critic, Explorer + explorer-critic. Never skip the critic.