Purpose: Troubleshooting and common questions about ExternalScout
ALWAYS when working with external packages.
Triggers:
import/require statementsRule: If it's not in .opencode/context/, use ExternalScout.
DON'T rely on training data - it's outdated.
Example: You think "I know Next.js, I'll use pages/"
Reality: Next.js 15 uses app/
Result: Broken code ❌
Always fetch current docs, even if you "know" the library.
External: npm/pip/gem/cargo packages | Third-party frameworks | ORMs | Auth libraries | UI libraries
NOT external: Your project's code | Project utilities | Internal modules
Check: Is it in package.json dependencies? → External → Use ExternalScout
YES! Use both for most features.
// 1. ContextScout: Project standards
task(subagent_type="ContextScout", ...)
// 2. ExternalScout: Library docs
task(subagent_type="ExternalScout", ...)
// 3. Combine: Implement using both
ExternalScout has two sources:
If library not in Context7: Auto-fallback to official docs via webfetch.
Template:
task(
subagent_type="ExternalScout",
description="Fetch [Library] docs for [specific topic]",
prompt="Fetch current documentation for [Library]: [specific question]
Focus on:
- [What you need - be specific]
- [Related features/APIs]
Context: [What you're building]"
)
Good: ✅ Specific | ✅ Focused (3-5 things) | ✅ Contextual Bad: ❌ Vague | ❌ Too broad | ❌ No context
Process:
javascript
task(
subagent_type="ExternalScout",
description="Fetch docs for error resolution",
prompt="Fetch [Library] docs: [error message]
Error: [paste actual error]
Focus on: Common causes | Solutions"
)
NO - ExternalScout is read-only, no approval required.
Approval required: ❌ Write code | ❌ Run commands | ❌ Install packages No approval: ✅ ContextScout | ✅ ExternalScout | ✅ Read files
| Aspect | ContextScout | ExternalScout |
|---|---|---|
| Searches | Internal project files | External documentation |
| Location | .opencode/context/ |
Internet (Context7, docs) |
| Returns | Project standards | Library APIs |
| Use for | "How we do things here" | "How this library works" |
| Speed | Fast (local) | Slower (network) |
Use both together for best results.
Before implementing with external libraries:
All checked? → You're doing it right! ✅
See: .opencode/skills/context7/library-registry.md
Categories: Database/ORM | Auth | Frontend | Infrastructure | UI | State | Validation | Testing
Not listed? ExternalScout can still fetch from official docs.
external-libraries-workflow.md - Core workflowexternal-libraries-scenarios.md - Common scenarios.opencode/agent/subagents/core/externalscout.md - ExternalScout agent