Decompose a research question into cook-it-ready epic beads with methodology specifications
phase
architect
Research Architect Skill
Overview
Take a research question and decompose it into naturally-scoped research epic beads that the infinity loop can process via cook-it. Each output epic represents a coherent unit of research work (a paper section, an analysis pipeline, a robustness battery, etc.).
This skill organizes work around research domain boundaries: literature review, data collection, analysis, robustness, and synthesis.
Input
Beads epic ID: read epic description as input
Research question: provided directly or via AskUserQuestion
Literature context: search indexed papers via drl knowledge
Phase 1: Socratic (Research Question Refinement)
Goal: Understand the research domain and refine the question before decomposing.
If a /drl:flavor configuration exists, load it first -- different fields have different norms for what constitutes a publishable paper, and the decomposition should respect those norms.
Search memory: drl search for past research decisions, constraints, methodology patterns
Search knowledge: drl knowledge "relevant terms" for indexed literature and project docs
Literature sufficiency gate (see below)
Ask "why does this matter?" before "how do we test it?" -- understand the contribution
Build a domain glossary: key variables, constructs, and their operational definitions
Produce a research mindmap (Mermaid mindmap) exposing:
Central research question
Key theoretical constructs
Potential data sources
Methodological approaches
Expected contributions
Hypothesis generation: Help the researcher articulate testable hypotheses from the research question
Power analysis (soft check): If the researcher has a target dataset or sample size in mind, run a quick power assessment: is the expected effect size detectable with the available sample? This is not a hard gate -- many projects proceed without power calculations at this stage -- but flagging power concerns early prevents wasted effort. Reference: docs/research/social_science/econometrics-fundamentals.md (Method Selection Decision Tree).
Use AskUserQuestion to clarify scope, field conventions, and methodological preferences
Literature Sufficiency Gate
After steps 1-2, evaluate whether the literature base is adequate:
Collect results: Gather hits from drl knowledge and any PDFs in literature/pdfs/
Evaluate coverage: Score each result for relevance to the research question
Apply threshold: If fewer than 3 relevant sources cover the research question's domain:
Insufficient: Recommend adding more literature to literature/pdfs/ and re-indexing with drl index. Use AskUserQuestion to confirm.
Sufficient: Note the evidence and proceed.
Time budget: Literature review is capped at 3 search rounds.
Gate 1: Use AskUserQuestion to confirm the research question, hypotheses, and scope.
Phase 2: Research Specification
Goal: Produce a research-level specification.
Write research EARS requirements adapted for social science:
Ubiquitous: "The analysis SHALL control for X"
Event: "WHEN data shows outliers, the pipeline SHALL flag them"
State: "WHILE running robustness checks, the system SHALL log each specification"
Unwanted: "IF a key variable has >20% missing data, THEN the analysis SHALL not proceed without imputation justification"
Variable operationalization table
2b. Theory-data alignment check: Before writing the spec, verify that the theoretical model's testable predictions can actually be tested with available or obtainable data. Ask:
Can the key theoretical constructs be measured with available data?
Does the data vary enough along the relevant dimensions?
Are the required control variables available?
If alignment is weak, flag it for the researcher before investing in a full spec.
Write the spec to docs/specs/<research-topic>.md
3b. Pre-analysis plan (optional): For experimental or quasi-experimental designs, produce a structured pre-analysis plan using the templates in docs/research/social_science/causal-inference-strategies.md (Pre-Analysis Plan Requirements section). This is optional for observational studies but strongly recommended for DiD, RDD, and IV designs where specification searching is a concern.
Create a meta-epic bead for the research project
Gate 2: Use AskUserQuestion to get human approval of the research specification.
Phase 3: Decompose (Research Subagent Convoy)
Goal: Break the research project into naturally-scoped epics.
Spawn 6 parallel subagents via the Agent tool. Each subagent is an inline role description passed as the Agent tool prompt -- these are NOT references to pre-defined agent files in .claude/agents/drl/. Write a focused prompt for each role describing the task and expected output.
Why inline prompts here? These are temporary decomposition roles used only during architecture. Unlike the methodology-review phase -- which spawns persistent, reusable agents defined in .claude/agents/drl/ (e.g., methodology-reviewer.md, robustness-checker.md) -- these roles are single-use analytical lenses that do not need persistent definitions. If a decomposition role proves repeatedly useful, promote it to a dedicated agent file.
Literature mapper: Survey the indexed literature to identify:
Key prior studies and their methodological approaches
Theoretical frameworks that inform the hypotheses
Gaps that the research question addresses
Conflicting findings that need reconciliation
Methodology analyst: Evaluate and recommend:
Appropriate statistical methods for the research question
Identification strategy for causal claims (if applicable)
Each epic created in Phase 4 MUST use this structured format in its beads description. This ensures consistent handoff to cook-it:
## Scope
What is in scope and what is explicitly out of scope for this epic.
## EARS
Research EARS requirements (ubiquitous, event, state, unwanted) from the spec.
## Contracts
Interface contracts: data format, variable naming, output format, file paths.
How this epic's outputs connect to other epics' inputs.
## Assumptions
Assumptions that must hold for this epic to succeed.
Data availability, methodological feasibility, sample size adequacy.
## Roles
Which DRL agent roles are involved (analyst, methodology-reviewer, etc.).
## Decisions
Decision points that require ADR logging during execution.
Known methodological choices that will need to be made.
This format allows cook-it to parse the epic description and route information to the correct phase.
Advisory Fleet Integration
WHERE external model CLIs are available (gemini, codex), include them in review:
Detect available advisor CLIs with health-check Bash calls
Assign review lenses:
Identification Credibility: Is the causal strategy convincing?
External Validity: Does the study generalize beyond the sample?
Contribution Significance: Does it clear the publication bar?
Feasibility: Can this be executed with available data and timeline?
Synthesize advisory feedback before presenting to the human
If no advisor CLIs are available, skip. The advisory fleet is non-blocking.
Memory Integration
drl search before starting each phase
drl knowledge for indexed literature and project docs
drl learn after corrections or discoveries
Common Pitfalls
Jumping to methodology without understanding the research question (skip Socratic)
Proposing methods that exceed the data's capacity to support
Not checking the indexed literature for contradictory findings