§ reference · skill
research
Answers structured research questions about a codebase by formulating trace-quality questions, dispatching parallel analysis agents, and synthesizing a cited research document under `.rpiv/artifacts/research/`.
§ 01 · purpose
Purpose
Resolves ambiguities about how the existing implementation works *before* deciding how to change it. Subsequent design and planning skills read this artifact instead of re-reading the codebase, so downstream phases are grounded in evidence and start cheap.
§ 02 · when to use
When to use it
- You need depth on architecture or behavior questions before a change.
- A
discoverartifact exists and the team needs file-backed answers to its open questions. - You're about to design or plan and want a single citation source.
- Skip if the area is already well-trodden and the change is a one-line fix.
§ 03 · inputs
Inputs
| Name | Required | Source |
|---|---|---|
$ARGUMENTS | yes | Free-text research prompt OR path to a .rpiv/artifacts/discover/*.md artifact |
- $ARGUMENTS
- A
discoverartifact triggers FRD parsing — its Decisions become Developer Context.
§ 04 · outputs
Outputs
| Artifact | Path | Format |
|---|---|---|
| Research document | .rpiv/artifacts/research/ | markdown |
§ 05 · key steps
Key steps
- Trace the investigation scope Why: The
scope-traceragent reads the prompt, sweeps anchor terms, and emits 5–10 dense numbered questions. Locking scope before any deep read prevents agents from chasing a fuzzy target. - Group related questions Why: Questions that share 2+ file references are grouped into a single agent dispatch so the agent can use cross-question context for deeper, more connected analysis — fewer agents, more depth per token.
- Dispatch analysis agents in parallel Why: One
codebase-analyzerper question (or group), plus oneweb-search-researcherfor external-doc questions and oneprecedent-locatorwhen git history is available. All run concurrently; sync barrier before synthesis. - Synthesize findings into a jump table Why: Final document is
file:startLine-endLinereferences plus prose — not code blocks, not implementation recipes. Designed for the planner to look up, not re-read. - Grounded developer checkpoint Why: One question at a time, every question embeds a real
file:linereference. Pulls only NEW information from the developer; confirmatory questions are explicitly banned.
§ 06 · related skills
Related skills
upstream discover