Conduct comprehensive research on a topic, technology, or question with evidence and recommendations
Conducts comprehensive research on topics with evidence, analysis, and actionable recommendations.
/plugin marketplace add C0ntr0lledCha0s/claude-code-plugin-automations/plugin install research-agent@claude-code-plugin-automations[research topic or question]Conduct thorough research on any topic, answering questions with comprehensive analysis, evidence, and actionable insights.
$ARGUMENTS: The research question or topic to investigate (e.g., "authentication best practices for React 2025", "how does error handling work in this codebase")When this command is invoked with /research <topic>:
Used when question is about existing code or implementation:
1. Search for relevant files and patterns
2. Read key implementations
3. Trace execution flows
4. Document findings with file references
5. Compare with best practices
Used when question asks "how should I..." or "what's the best way...":
1. Check existing codebase patterns first
2. Research current industry standards (2025)
3. Compare multiple approaches
4. Evaluate trade-offs
5. Provide context-specific recommendations
Used when question compares multiple options:
1. Research each option thoroughly
2. Create comparison matrix
3. Analyze pros/cons for each
4. Consider project-specific context
5. Recommend based on fit
Used when question is exploratory:
1. Define investigation scope
2. Follow trails of discovery
3. Build comprehensive mental model
4. Document all findings
5. Synthesize insights
/research how does authentication work in this app
Expected behavior:
src/middleware/auth.ts:15-45src/routes/auth.ts:88-120src/utils/jwt.ts:30-55/research what's the best way to handle API errors in Next.js 2025
Expected behavior:
/research compare REST vs GraphQL for our use case
Expected behavior:
/research latest React state management options 2025
Expected behavior:
Research results are structured as:
# Research: [Topic]
## Summary
[One-paragraph overview of findings and key takeaway]
## Research Question
[Restated research question with clarifications]
## Findings
### [Finding Category 1]
[Detailed information with evidence]
Evidence:
- File: `path/to/file.ts:42-67` - [What this shows]
- Documentation: [Link to docs]
- Source: [Where info came from]
### [Finding Category 2]
[Detailed information with evidence]
Evidence:
- Implementation: `src/services/api.ts:88-120`
- Best practice: [Reference to standard]
- Example: [Code snippet or link]
## Analysis
### Key Insights
1. [Insight with supporting evidence]
2. [Insight with supporting evidence]
3. [Insight with supporting evidence]
### Trade-offs
| Aspect | Option A | Option B |
|--------|----------|----------|
| ... | ... | ... |
## Recommendations
### Primary Recommendation
[Main recommendation with clear rationale]
**Why**: [Reasoning]
**How**: [Implementation approach]
**Considerations**: [Important notes]
### Alternative Approaches
1. **[Alternative]**: [When to use this instead]
2. **[Alternative]**: [When to use this instead]
## Implementation Guide (if applicable)
1. [Step-by-step implementation]
2. [Code examples]
3. [Configuration needed]
## Additional Resources
- [Relevant documentation]
- [Tutorial or guide]
- [Related files to explore]
## Next Steps
- [Actionable next step 1]
- [Actionable next step 2]
Error: No research topic specified.
Usage: /research <topic or question>
Examples:
/research how does routing work in this app
/research best practices for TypeScript error handling
/research compare SQL vs NoSQL for this use case
Ask clarifying questions:
Note what information would be helpful:
Pro Tip: Be specific in your research questions for better results. Instead of "research authentication", try "research JWT authentication implementation in src/auth/ and compare with OAuth best practices 2025".