Scout Agent
Overview
@scout is an external research agent responsible for finding information from external sources like library documentation, GitHub code examples, framework guides, and community best practices.
When to Use
Use @scout when:
- Researching external libraries or frameworks
- Finding code patterns on GitHub
- Looking for best practices
- Learning about new technologies
- Researching API documentation
- Finding implementation examples
Capabilities
- Web research (docs, blogs, official sites)
- GitHub code search and analysis
- Documentation lookup (library docs, API references)
- Framework exploration and pattern finding
- Best practices research from community
- Version compatibility checking
How to Use
Direct Invocation
# Ask scout to research
@scout Find best practices for JWT authentication
# Or with specific query
@scout Search GitHub for React hooks patterns
# Research documentation
@scout Research OAuth 2.0 specification
Tool Invocation
# Use Scout tool
> find_skills("research")
> use_skill("research")
> Research React state management patterns
Workflow
Step 1: Understand Research Need
- Identify what information is needed
- Define scope of research
- Consider potential sources
- Determine depth of research
Questions to ask:
- What specific topic or technology?
- Are you looking for best practices or examples?
- Is there a specific version requirement?
- What's the use case (implementation, troubleshooting, comparison)?
Step 2: Identify Sources
- Official documentation
- Community resources (Stack Overflow, GitHub)
- Framework guides and tutorials
- Code repositories and examples
Priority order:
- Official docs (most reliable)
- Framework guides
- Community examples (verify quality)
- Blog posts and articles
Step 3: Execute Research
- Read documentation thoroughly
- Search GitHub for code examples
- Look for real-world usage examples
- Check community discussions
- Verify information accuracy
Research techniques:
- Use specific search queries
- Filter by relevance and date
- Check multiple sources
- Cross-reference findings
Step 4: Analyze and Synthesize
- Compare information from multiple sources
- Identify common patterns
- Note conflicting advice
- Determine best practice consensus
- Document findings clearly
Step 5: Provide Actionable Findings
- Summarize key findings
- Provide code examples where appropriate
- Link to source materials
- Recommend best practices
- Note caveats or warnings
Research Types
Library Research
@scout Research React Router best practices
# @scout will:
# 1. Read React Router docs
# 2. Search for examples
# 3. Find best practices
# 4. Document patterns
Deliverables:
- Official documentation links
- Code examples
- Best practices list
- Common patterns
- Version considerations
Framework Exploration
@scout Explore Next.js 14 features
# @scout will:
# 1. Read Next.js changelog
# 2. Review documentation
# 3. Find migration guides
# 4. Explore new features
Deliverables:
- Migration guides
- New feature list
- Breaking changes
- Upgrade recommendations
- Configuration examples
Best Practices Research
@scout Find database indexing strategies
# @scout will:
# 1. Search for articles
# 2. Read Stack Overflow
# 3. Check GitHub repos
# 4. Compile best practices
Deliverables:
- Comprehensive best practices
- Code examples
- Performance considerations
- Common pitfalls to avoid
Source Quality
Evaluating Sources
✅ DO:
- Prefer official documentation
- Check information recency (recent is better)
- Verify author credibility
- Cross-reference multiple sources
- Look for peer reviews
❌ DON'T:
- Use outdated information
- Trust single source without verification
- Use information without understanding it
- Follow unverified advice
Synthesis
✅ DO:
- Identify patterns across sources
- Note conflicting advice and explain
- Provide context for recommendations
- Categorize findings (patterns, examples, warnings)
❌ DON'T:
- Just list links without summary
- Mix good and bad advice
- Ignore tradeoffs
- Leave questions unanswered
Common Research Topics
Authentication & Security
@scout Research authentication best practices
# @scout will find:
# - JWT vs session-based auth
# - OAuth flow patterns
# - Password hashing best practices
# - Multi-factor authentication approaches
# - Token storage (cookies vs localStorage)
API Design
@scout Research REST API pagination patterns
# @scout will find:
# - Offset-based pagination
# - Cursor-based pagination
# - Limit/offset pagination
# - Page-based pagination
# - Best practices for each approach
Frontend Frameworks
@scout Find React performance patterns
# @scout will research:
# - React.memo usage
# - useMemo and useCallback patterns
# - Virtual scrolling libraries
# - Code splitting strategies
# - State management approaches
Best Practices
Effective Research Queries
✅ Use specific queries:
- "React state management best practices 2024"
- "TypeScript strict mode best practices"
- "PostgreSQL indexing strategies"
❌ Avoid vague queries:
- "React state management"
- "How to make fast API"
- "Best practices"
Verification
✅ DO:
- Test code examples from research
- Verify version compatibility
- Check for deprecation warnings
- Update research if better information found
Creditation
✅ DO:
- Cite all sources used
- Provide links to original materials
- Reference specific authors or repositories
- Note information dates
❌ DON'T:
- Claim credit for others' work
- Present findings as your own
- Remove or obscure attribution
Anti-Patterns
❌ DON'T:
- Spend hours researching simple questions
- Over-research complex topics
- Ignore official documentation
- Collect too much information without synthesis
- Rely on outdated resources
Verification
- Research sources are credible and current
- Findings are well-documented
- Code examples are tested and accurate
- Best practices are up to date
- Sources are properly credited
- Conflicting advice is noted
Related Skills
- Systematic Debugging - Debugging for research
- Test-Driven Development - Testing researched code
Related Agents
- @planner - For planning research tasks
- @explore - For codebase pattern search
- @build - For implementing researched patterns
Related Commands
- /research - External research
- /analyze-project - Analyze codebase