Skip to content

/research

Research a technology, library, or approach with comprehensive analysis, comparisons, and recommendations.

The /research command helps you make informed technology decisions by gathering information, analyzing trade-offs, comparing alternatives, and providing clear recommendations.

Terminal window
/research [topic or technology]
  • topic: The technology, library, pattern, or approach you want to research

The assistant collects information from:

  • Official documentation
  • Community resources and discussions
  • Best practices and patterns
  • Known issues and gotchas

Thorough analysis includes:

  • Pros and cons
  • Performance characteristics
  • Learning curve and complexity
  • Ecosystem and community support
  • Maintenance and longevity
  • Best practices

Clear recommendations with:

  • Summary of findings
  • Specific recommendation
  • Rationale for recommendation
  • Next steps for implementation
  • Alternatives if recommendation doesn’t fit

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 Steps
1. [Action item 1]
2. [Action item 2]
FlagDescriptionExample
--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
--compareFocus on comparing alternatives--compare
--sequentialUse sequential thinking methodology--sequential
LevelBehaviorBest For
1Quick overview, key points onlyQuick validation
2Standard analysisGeneral research
3Thorough with examplesTechnology evaluation
4Comprehensive with trade-offsImportant decisions
5Exhaustive with citationsCritical architecture choices
Terminal window
/research "Redis for session storage"

Standard research on using Redis for sessions.

Terminal window
/research --compare "React vs Vue vs Svelte"

Comprehensive comparison of frontend frameworks with trade-off analysis.

Terminal window
/research --depth=5 "authentication libraries for Node.js"

Exhaustive research with detailed analysis and citations.

Terminal window
/research --sequential "root cause of memory leak"

Uses step-by-step sequential thinking for complex debugging.

Terminal window
/research --save=docs/orm-research.md "TypeORM vs Prisma vs Drizzle"

Researches ORM options and saves results to file.

Terminal window
/research --depth=1 "GraphQL subscriptions"

Quick overview for validation without deep analysis.

Terminal window
/research --mode=deep-research "distributed tracing approaches"

Uses deep-research mode for thorough analysis with citations.

Compare libraries, frameworks, or tools:

Terminal window
/research --compare "state management libraries for React"

Research design patterns and architectures:

Terminal window
/research "event sourcing patterns"

Investigate recommended approaches:

Terminal window
/research "API versioning strategies"

Debug or understand complex issues:

Terminal window
/research --sequential "solving N+1 query problems"

Research how to integrate technologies:

Terminal window
/research "integrating Next.js with Strapi CMS"
  1. Research options:

    Terminal window
    /research --compare "authentication approaches"
  2. Design solution:

    Terminal window
    /brainstorm "authentication system design"
  3. Plan implementation:

    Terminal window
    /plan --detailed "implement chosen auth approach"

For simple integrations:

Terminal window
# Research the library
/research "Stripe payment integration"
# Implement directly
/feature "integrate Stripe payments"

Before creating detailed plans:

Terminal window
# Research unfamiliar technology
/research --depth=4 "WebSocket scaling strategies"
# Plan with research insights
/plan "implement scalable WebSocket server"
Terminal window
# 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"
Terminal window
/research "caching strategies for a high-traffic API with 100k+ requests/minute"
Terminal window
/research "frontend frameworks compatible with SSR and supporting TypeScript"
Terminal window
/research --save=docs/decisions/cache-strategy.md --depth=5 "caching architecture"
  • Depth 1-2: Validation, quick checks
  • Depth 3: Standard technology evaluation
  • Depth 4-5: Critical architecture decisions

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 /review instead)
  1. Be specific about your use case and constraints
  2. Include scale if performance matters (users, requests, data size)
  3. Mention existing stack for compatibility analysis
  4. State priorities (speed vs reliability vs cost)
  5. Ask for comparisons when evaluating options
  6. Use —sequential for complex debugging or investigations
  7. Save research for future reference and team sharing
  • /brainstorm - Design solutions after research
  • /plan - Plan implementation after research
  • /review - Review existing code or implementations
  • /compare - Side-by-side comparison (alternative)

Research behavior can be customized via CLAUDE.md:

  • Default depth level
  • Output format preferences
  • Comparison criteria
  • Citation requirements

See the Configuration Guide for details.