---
description: Enhanced research with multimedia support and knowledge base integration
agent: researcher
---

## Research: $ARGUMENTS

**Query:** $ARGUMENTS

## Knowledge Base Integration

1. **Check Existing Research**

   ```bash
   rg "$ARGUMENTS" .opencode/memory/research/
   ```

2. **Create Research Document**
   - Ensure directory: `mkdir -p .opencode/memory/research/`
   - Filename: `./.opencode/memory/research/YYYY-MM-DD-[topic].md`
   - Template: Copy from `.opencode/memory/_templates/research.md`
   - Tag related projects in metadata

## Research Strategy

### 1. **Primary Sources**

- Documentation, official guides, specifications (context7)
- Web search, articles, forums (exa_web_search_exa)
- GitHub repositories, code examples (exa_get_code_context_exa)
- Documentation, official guides (context7)

### 2. **Multimedia Enhancement**

**System Check:**
`!command -v ffmpeg >/dev/null && echo "FFmpeg available" || echo "FFmpeg unavailable"`
`!command -v yt-dlp >/dev/null && echo "yt-dlp available" || echo "yt-dlp unavailable"`

- Conference talks and technical presentations
- Tutorial videos and coding sessions
- Product demos and feature walkthroughs

### 3. **Synthesis & Analysis**

- Extract key concepts and implementation patterns
- Cross-reference multiple sources for accuracy
- Identify best practices and common pitfalls
- Generate actionable insights and next steps

## Output Format

Save findings to `./.opencode/memory/research/YYYY-MM-DD-[topic].md`:

```markdown
# Research: [Topic]

**Date:** YYYY-MM-DD
**Context:** [Why researching]
**Related Projects:** [Projects that will use this]

## Question

[What needs answering]

## Findings

- [Key finding with source URL]

## Decision

[Actionable recommendation]

## References

- [Source URLs]
```

## Deliverable

Return summary with:

- Key findings (2-3 bullet points)
- Actionable recommendation
- File location: `.opencode/memory/research/YYYY-MM-DD-[topic].md`
