/research
/research
Section titled “/research”Research a technology, library, or approach with comprehensive analysis, comparisons, and recommendations.
Purpose
Section titled “Purpose”The /research command helps you make informed technology decisions by gathering information, analyzing trade-offs, comparing alternatives, and providing clear recommendations.
/research [topic or technology]Arguments
Section titled “Arguments”- topic: The technology, library, pattern, or approach you want to research
How It Works
Section titled “How It Works”1. Gather Information
Section titled “1. Gather Information”The assistant collects information from:
- Official documentation
- Community resources and discussions
- Best practices and patterns
- Known issues and gotchas
2. Analyze
Section titled “2. Analyze”Thorough analysis includes:
- Pros and cons
- Performance characteristics
- Learning curve and complexity
- Ecosystem and community support
- Maintenance and longevity
- Best practices
3. Recommend
Section titled “3. Recommend”Clear recommendations with:
- Summary of findings
- Specific recommendation
- Rationale for recommendation
- Next steps for implementation
- Alternatives if recommendation doesn’t fit
Output Format
Section titled “Output Format”Research results are presented in a structured format:
## Research: [Topic]
### Summary[High-level overview of the technology]
### Pros- [Advantage 1]- [Advantage 2]- [Advantage 3]
### Cons- [Limitation 1]- [Limitation 2]
### Use Cases- Best for: [Scenarios]- Avoid when: [Scenarios]
### Alternatives[Comparison table with alternatives]
### Best Practices- [Practice 1]- [Practice 2]
### Recommendation[Clear recommendation with rationale]
### Next Steps1. [Action item 1]2. [Action item 2]| Flag | Description | Example |
|---|---|---|
--mode=[mode] | Use specific behavioral mode | --mode=deep-research |
--depth=[1-5] | Research thoroughness level | --depth=5 |
--format=[fmt] | Output format (concise/detailed/json) | --format=detailed |
--save=[path] | Save research to file | --save=docs/research.md |
--compare | Focus on comparing alternatives | --compare |
--sequential | Use sequential thinking methodology | --sequential |
Depth Levels
Section titled “Depth Levels”| Level | Behavior | Best For |
|---|---|---|
| 1 | Quick overview, key points only | Quick validation |
| 2 | Standard analysis | General research |
| 3 | Thorough with examples | Technology evaluation |
| 4 | Comprehensive with trade-offs | Important decisions |
| 5 | Exhaustive with citations | Critical architecture choices |
Examples
Section titled “Examples”Basic Technology Research
Section titled “Basic Technology Research”/research "Redis for session storage"Standard research on using Redis for sessions.
Deep Technology Comparison
Section titled “Deep Technology Comparison”/research --compare "React vs Vue vs Svelte"Comprehensive comparison of frontend frameworks with trade-off analysis.
Thorough Investigation
Section titled “Thorough Investigation”/research --depth=5 "authentication libraries for Node.js"Exhaustive research with detailed analysis and citations.
Sequential Problem Solving
Section titled “Sequential Problem Solving”/research --sequential "root cause of memory leak"Uses step-by-step sequential thinking for complex debugging.
Save Research Results
Section titled “Save Research Results”/research --save=docs/orm-research.md "TypeORM vs Prisma vs Drizzle"Researches ORM options and saves results to file.
Quick Overview
Section titled “Quick Overview”/research --depth=1 "GraphQL subscriptions"Quick overview for validation without deep analysis.
Deep Research Mode
Section titled “Deep Research Mode”/research --mode=deep-research "distributed tracing approaches"Uses deep-research mode for thorough analysis with citations.
Research Types
Section titled “Research Types”Technology Selection
Section titled “Technology Selection”Compare libraries, frameworks, or tools:
/research --compare "state management libraries for React"Pattern Exploration
Section titled “Pattern Exploration”Research design patterns and architectures:
/research "event sourcing patterns"Best Practices
Section titled “Best Practices”Investigate recommended approaches:
/research "API versioning strategies"Problem Investigation
Section titled “Problem Investigation”Debug or understand complex issues:
/research --sequential "solving N+1 query problems"Integration Research
Section titled “Integration Research”Research how to integrate technologies:
/research "integrating Next.js with Strapi CMS"Workflow Integration
Section titled “Workflow Integration”Research → Brainstorm → Plan
Section titled “Research → Brainstorm → Plan”-
Research options:
Terminal window /research --compare "authentication approaches" -
Design solution:
Terminal window /brainstorm "authentication system design" -
Plan implementation:
Terminal window /plan --detailed "implement chosen auth approach"
Research → Direct Implementation
Section titled “Research → Direct Implementation”For simple integrations:
# Research the library/research "Stripe payment integration"
# Implement directly/feature "integrate Stripe payments"Pre-Planning Research
Section titled “Pre-Planning Research”Before creating detailed plans:
# Research unfamiliar technology/research --depth=4 "WebSocket scaling strategies"
# Plan with research insights/plan "implement scalable WebSocket server"Best Practices
Section titled “Best Practices”Be Specific
Section titled “Be Specific”# Too vague/research "databases"
# Better/research "time-series databases for IoT data"
# Even better/research --compare "InfluxDB vs TimescaleDB vs QuestDB for IoT sensor data"Include Context
Section titled “Include Context”/research "caching strategies for a high-traffic API with 100k+ requests/minute"State Constraints
Section titled “State Constraints”/research "frontend frameworks compatible with SSR and supporting TypeScript"Save Important Research
Section titled “Save Important Research”/research --save=docs/decisions/cache-strategy.md --depth=5 "caching architecture"Use Appropriate Depth
Section titled “Use Appropriate Depth”- Depth 1-2: Validation, quick checks
- Depth 3: Standard technology evaluation
- Depth 4-5: Critical architecture decisions
When to Use
Section titled “When to Use”Good use cases:
- Evaluating technology options
- Understanding new libraries or frameworks
- Investigating architectural patterns
- Comparing competing solutions
- Debugging complex issues
- Learning best practices
Less useful for:
- Technologies you’re already familiar with
- Simple implementation questions
- Project-specific code (use
/reviewinstead)
Tips for Better Research
Section titled “Tips for Better Research”- Be specific about your use case and constraints
- Include scale if performance matters (users, requests, data size)
- Mention existing stack for compatibility analysis
- State priorities (speed vs reliability vs cost)
- Ask for comparisons when evaluating options
- Use —sequential for complex debugging or investigations
- Save research for future reference and team sharing
Related Commands
Section titled “Related Commands”- /brainstorm - Design solutions after research
- /plan - Plan implementation after research
- /review - Review existing code or implementations
- /compare - Side-by-side comparison (alternative)
Customization
Section titled “Customization”Research behavior can be customized via CLAUDE.md:
- Default depth level
- Output format preferences
- Comparison criteria
- Citation requirements
See the Configuration Guide for details.