juicesharp/rpiv-mono/research
Claude Code and agent skill by juicesharp/rpiv-mono
- community
Checking that the SKILL.md file is still in the repository.
Answer structured research questions about a codebase using targeted parallel analysis agents, then synthesize findings into a research document in .rpiv/artifacts/research/. Internally dispatches the scope-tracer agent to formulate trace-quality research questions, then answers them. Use when the user wants in-depth research on a codebase area, asks to "research X", or needs answers to architecture or behavior questions before designing changes.
Install
npx vskill@latest install juicesharp/rpiv-mono/researchSKILL.md
The same SKILL.md was published earlier as juicesharp/rpiv-mono/research.
Research
You are tasked with answering structured research questions by spawning targeted analysis agents and synthesizing their findings into a comprehensive research document. This skill internally dispatches the scope-tracer agent to formulate trace-quality research questions, then answers them.
Input
$ARGUMENTS — free-text research prompt, or a .rpiv/artifacts/discover/*.md path to chain from discover.
Metadata
Copy values verbatim — do not reformat the timezone offset.
Flow
- Input → 2. Dispatch agents → 3. Synthesize & checkpoint → 4. Write doc → 5. Present & chain → 6. Follow-ups
The final artifact feeds design or blueprint.
Steps
Step 1: Input Handling
- Argument is empty:
`` Please provide a free-text research prompt. `` Then wait for input.
- Detect chained discover artifact: If the input includes a path matching
.rpiv/artifacts/discover/.*\.md, read it FULLY using the Read tool (no limit/offset) before scope-tracer dispatch:
- Translate each
### [Decision title]block in the FRD's## Decisionssection into a Developer Context entry:**Q (discover: <Decision title>): <Question text>**followed byA: <Chosen text>. Hold these entries in main context — they're recorded in the research artifact's Developer Context section in Step 4 (write document). - Use the FRD's
## Recommended Approachtext (1-2 sentences naming the architectural shape) as the topic body for the next sub-step's scope-tracer prompt. The full discover artifact path stays in the input so scope-tracer's "read mentioned files first" rule picks up the file naturally for additional context. - Carry the FRD's Open Questions forward verbatim into the research artifact's Open Questions section in Step 4.
- If the input is plain free-text or includes a non-discover path, skip this sub-step and proceed directly to scope-tracer dispatch with the input as the topic.
- Dispatch the scope-tracer agent to formulate trace-quality research questions for the user's topic:
`` Agent({ subagent_type: "scope-tracer", description: "trace scope", prompt: "$ARGUMENTS" }) `` The agent reads any mentioned files, sweeps anchor terms via grep/find/ls, reads 5-10 key files for depth, then emits a Discovery Summary + 5-10 dense numbered questions inline in its final message. Nothing is written to disk.
- Parse the agent's final message as the questions artifact body. Extract: Discovery Summary (3-5 sentence file-landscape overview), Questions (numbered dense 3-6 sentence paragraphs).
Questions formulated — emit:
`` [Questions]: {N} research questions formulated. Reading shared files and grouping before dispatch. ``
- Read key shared files referenced across multiple questions into main context — especially shared utilities, type definitions, and integration points that multiple questions mention.
- Analyze question overlap for grouping:
- Parse all question paragraphs and extract file references from each
- Identify questions that share 2+ file references — these are candidates for grouping
- Group related questions together (2-3 questions per group max)
- Questions with no significant file overlap remain standalone
- Target: 3-6 agent dispatches total (grouped + standalone)
- Report scoped status:
`` [Scoped]: ran scope-tracer. {N} questions in {G} groups, {M} shared files. ``
Step 2: Dispatch Analysis Agents
Spawn analysis agents using the Agent tool — all in a single assistant message with multiple Agent calls (concurrent, synchronous). Never `run_in_background`: its completion can't re-drive a workflow session, so the skill ends its turn before writing the document and the stage fails with no artifact.
Launch marker — in that SAME assistant message, as its text block (it adds no turn, so the one-message parallel dispatch shape stays intact), emit:
N counts every dispatched agent, including the git-gated precedent-locator when it joins; the + precedent sweep suffix appears only when it does.
Default agent: codebase-analyzer for all codebase questions. This agent has Read, Grep, Glob, LS — it can trace code paths, find patterns, and analyze integration points.
Exception: External surfaces — third-party APIs, SDKs, libraries, services, protocols, or wire formats — that the codebase doesn't already use → web-search-researcher. Trigger on the surface itself, not on whether the question text literally names "docs" or "API".
Agent prompt — question-as-prompt:
Each agent receives the dense question paragraph(s) directly as its prompt. The question IS the instruction.
For standalone questions (no grouping):
For grouped questions:
Precedent sweep (git-gated):
When commit is available (not no-commit), spawn one precedent-locator agent alongside the question agents with prompt: "Find similar past changes involving {list key files from Discovery Summary}. Search git log for commits that touched these files, similar commit messages, and follow-up fixes. Research topic: {original query}."
Findings go into Precedents & Lessons. Otherwise skip and note "git history unavailable" there.
Wait for ALL agents to complete before proceeding.
Once every agent has returned, emit:
Step 3: Synthesize and Checkpoint
Before compiling, emit:
- Compile findings:
- Match each agent's response to the question(s) it answered
- Cross-reference findings across questions — look for patterns, conflicts, and connections
- Prioritize live codebase findings as primary source of truth
- Use
.rpiv/artifacts/findings as supplementary historical context - Include specific file paths and line numbers
- Cite what you actually read. Every
file:linecomes from a file you opened in this session — never a remembered or guessed range; if you're unsure of the line, cite the path alone and omit the:line. Write paths relative to the repo root (packages/billing/src/invoice.ts:NN— not the subdirectory-relativesrc/invoice.ts:NN, nor the bareinvoice.ts:NN) — downstream artifacts inherit your citation form. No separate verification pass: citations are compressed addresses for the next stage, and a consumer that finds one drifted locates the symbol itself. - Build Code References as jump-table entries for the planner, not narrative (file:startLine-endLine format)
- No multi-line code blocks (>3 lines) — use file:line refs + prose. No implementation recipes — facts only.
- No artifact summaries — link plans/designs in Historical Context, don't summarize their contents. Research describes current codebase state.
- Developer checkpoint — grounded questions one at a time:
- Every ambiguity checkpoint MUST be self-contained: state observed behavior, at least one
file:lineevidence reference, why the decision matters, and 2-4 concrete decision options in the question or option descriptions.
Start with grounded questions referencing real findings with file:line evidence. Ask ONE question at a time, waiting for the answer before the next. Use a ❓ Question: prefix. Each question must pull NEW information from the developer — not confirm what you already found:
Every question MUST embed at least one file:line reference in the question text — not just in surrounding context. Examples:
- "❓ Question:
src/events/orders.ts:NN-NNhas 3 event hooks but no error recovery path. Is there a retry mechanism elsewhere I'm not seeing?" - "❓ Question: Pattern-finder found manual mapping at
src/services/OrderService.ts:NN(8 uses) vs AutoMapper atsrc/services/UserService.ts:NN(2 uses). Which should new code follow?" - "❓ Question: Precedent commit
abc123required a follow-up fix atsrc/handlers/key.ts:NNfor connection leak. Should we account for that pattern in this design?"
Anti-patterns — NEVER ask these:
- "Is this research to understand X or prepare for Y?" — confirmatory, pulls zero new information
- "Does this look correct?" / "Should I continue?" — asks developer to validate YOUR work instead of providing NEW context
- Questions without
file:line— if you can't ground it in code, it's not a research question
Question patterns by finding type:
- Pattern conflict: "Found 2 implementations of {X} — which is canonical?" with options citing
file:line+ occurrence count - Scope boundary: "Question {N} references files {A,B,C} but analysis shows {D} is the real integration point. Extend scope?" with yes/no + "describe what I missed"
- Priority override: "Questions Q1 and Q2 have competing implications for {area}. Which is load-bearing?" with options
- Integration ambiguity: "Found no connection between {X} and {Y} at
file:line. This leaves {impact}. Should the feature wire through {A} or {B}?" — useask_user_question; the automatically appendedType something.row captures unexpected custom input.
Choosing question format:
- `ask_user_question` tool — when your question has 2-4 concrete options from code analysis (pattern conflicts, integration choices, scope boundaries, priority overrides). The automatically appended
Type something.row captures custom input. Example:
> Header is capped at ≤16 characters (MAX_HEADER_LENGTH = 16 — longer values are rejected). > Use the ask_user_question tool with the following question: "Found 2 patterns for retry logic — which is canonical?". Header: "Pattern". Options: "Event-sourced retry (Recommended)" (src/events/orders.ts:NN-NN — 3 hooks, matches precedent commit abc123); "Direct retry loop" (src/services/OrderService.ts:NN — single use, no event traceability).
- Open-ended (discovery, "what am I missing?", corrections) — still use
ask_user_question; supply 2-4 concrete hypotheses with behavior,file:lineevidence, impact, and decision context, then let the automaticType something.row capture unanticipated detail.
Anti-pattern — do NOT dump a verbose paragraph mixing analysis with a trailing question:
❌ "The premise inversion is load-bearing for prioritization — it means Site A is a no-op, and the real bloat only hits general-purpose dispatches. Given this, where is the bloat actually landing? Do your skills dispatch named bundled agents — in which case append-mode is irrelevant — or general-purpose — in which case it IS the dominant source?"
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/rpiv-pi/skills/research/SKILL.md
Popularity
- Repository stars
- 658
- Repository forks
- 121
- 7-day trend score
- 32
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/juicesharp/rpiv-mono/research)