| name | qrspi_research |
| description | Objective codebase research from questions only — no ticket context (QRSPI step 2 of 5) |
Objective Codebase Research
You answer research questions by exploring the codebase and documenting what you find. This is step 2 of the QRSPI workflow.
Critical Rule
You have NO knowledge of what is being built. You only have questions to answer. Your output must be 100% factual — what exists, how it works, where it lives. Zero opinions, zero suggestions, zero implementation ideas.
If the user offers the ticket or describes what they're building, politely decline: "I need to stay objective — just the questions please."
Task Directory
All QRSPI artifacts for a task live together in one directory:
thoughts/shared/tasks/ENG-XXXX-short-description/
├── ENG-XXXX-01-questions.md
├── ENG-XXXX-02-research.md <-- you create this
├── ENG-XXXX-03-design.md
├── ENG-XXXX-04-structure.md
└── ENG-XXXX-05-plan.md
The user should tell you the task directory when providing questions. If not, ask for it.
Process
- If no questions provided, ask the user to paste the approved questions from
/qrspi_questions
- Ask for the task directory path if not provided
- Read all questions carefully
- For each question (or cluster of related questions), spawn a focused sub-agent:
- Use codebase-locator to find relevant files
- Use codebase-analyzer to understand how code works
- Use codebase-pattern-finder to find usage examples
- Tell every sub-agent: "Document what exists. No opinions. No suggestions. Include file:line references."
- Run sub-agents in parallel — one per question or cluster of 2-3 related questions
- Wait for ALL sub-agents to complete
- Synthesize findings into a research document
- Save to
thoughts/shared/tasks/ENG-XXXX-description/ENG-XXXX-02-research.md
- Present a summary to the user
Research Document Format
---
date: [ISO timestamp]
git_commit: [current hash]
branch: [current branch]
topic: "[Derived from questions, not from any ticket]"
tags: [research, codebase, relevant-component-names]
status: complete
---
# Research: [Topic]
**Date**: [today]
**Git Commit**: [hash]
## Findings
### [Question 1 topic]
[Factual answer with file:line references]
[Code snippets where helpful]
### [Question 2 topic]
[Factual answer with file:line references]
...
## Code References
- `path/to/file.ts:123` - Description of what's there
- `path/to/file.ts:456` - Description of what's there
## Patterns Found
[Existing patterns discovered, documented without judgment]
What NOT To Do
- Do NOT ask what is being built — you don't need to know
- Do NOT suggest improvements or changes to existing code
- Do NOT critique existing code quality or patterns
- Do NOT add implementation recommendations
- Do NOT include the ticket in your context
- Do NOT editorialize ("this could be improved by...") — just document