OpenCode Mastery
I have direct access to OpenCode documentation via tools.
When to Use Me
Use me for:
- Questions about OpenCode CLI commands and options
- How to create/use skills, plugins, tools, agents
- SDK documentation and API reference
- Configuration and setup questions
- Best practices and patterns
Do not use me for:
- General programming questions
- Framework-specific questions (Svelte, React, etc.)
- Debugging your application code
Available Tools
| Tool |
Purpose |
searchDocs |
Search OpenCode documentation |
downloadDocs |
Download/update local documentation |
memoryStatus |
Check project memory status |
memoryRemember |
Store info for future sessions |
memoryCompact |
Compact large memory files |
Workflow
When asked about OpenCode:
Search documentation automatically
searchDocs({ query: "skills", source: "both", maxResults: 5 })
Return accurate information
- Cite sources (Context7 or local)
- Provide code examples from docs
- Link to relevant documentation
Remember important context
memoryRemember({ content: "User prefers TypeScript", category: "preference" })
Documentation Sources
Context7 (Primary) - Live docs from /anomalyco/opencode
- Always up-to-date
- Semantic search
- API-based access
Local (Fallback) - Cached docs in ~/.ai_docs/opencode/
- Updated via
downloadDocs tool
- 7-day cache TTL
- Fuzzy search
Memory Management
Project memory is stored in .memory.md:
- Check status:
memoryStatus()
- Store info:
memoryRemember({ content: "...", category: "preference" })
- Compact:
memoryCompact() when over 50KB
Categories: preference, pattern, correction, context, decision
Examples
Search for Skills Documentation
searchDocs({ query: "skills SKILL.md frontmatter", maxResults: 3 })
Search for Plugin Tools
searchDocs({ query: "plugin tool zod schema", maxResults: 5 })
Remember a Preference
memoryRemember({
content: "User prefers Bun over npm for JavaScript",
category: "preference",
priority: "high"
})
References
references/registry.json - Reference index
examples/plugins/ - Plugin templates (minimal, intermediate, advanced)
examples/tools/ - Tool templates (minimal, intermediate, advanced)
examples/skills/ - Skill templates (minimal, intermediate, advanced)
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: opencode-mastery3description: Complete OpenCode knowledge base with live documentation access. Use for questions about OpenCode CLI, skills, plugins, tools, agents, SDK, or configuration. Automatically searches official docs via Context7 API with local fallback. Use when this capability is needed.4---56# OpenCode Mastery78I have direct access to OpenCode documentation via tools.910## When to Use Me1112Use me for:1314- Questions about OpenCode CLI commands and options15- How to create/use skills, plugins, tools, agents16- SDK documentation and API reference17- Configuration and setup questions18- Best practices and patterns1920Do not use me for:2122- General programming questions23- Framework-specific questions (Svelte, React, etc.)24- Debugging your application code2526## Available Tools2728| Tool | Purpose |29| ---------------- | ----------------------------------- |30| `searchDocs` | Search OpenCode documentation |31| `downloadDocs` | Download/update local documentation |32| `memoryStatus` | Check project memory status |33| `memoryRemember` | Store info for future sessions |34| `memoryCompact` | Compact large memory files |3536## Workflow3738When asked about OpenCode:39401. **Search documentation automatically**4142 ```43 searchDocs({ query: "skills", source: "both", maxResults: 5 })44 ```45462. **Return accurate information**47 - Cite sources (Context7 or local)48 - Provide code examples from docs49 - Link to relevant documentation50513. **Remember important context**52 ```53 memoryRemember({ content: "User prefers TypeScript", category: "preference" })54 ```5556## Documentation Sources57581. **Context7 (Primary)** - Live docs from `/anomalyco/opencode`59 - Always up-to-date60 - Semantic search61 - API-based access62632. **Local (Fallback)** - Cached docs in `~/.ai_docs/opencode/`64 - Updated via `downloadDocs` tool65 - 7-day cache TTL66 - Fuzzy search6768## Memory Management6970Project memory is stored in `.memory.md`:7172- **Check status**: `memoryStatus()`73- **Store info**: `memoryRemember({ content: "...", category: "preference" })`74- **Compact**: `memoryCompact()` when over 50KB7576Categories: `preference`, `pattern`, `correction`, `context`, `decision`7778## Examples7980### Search for Skills Documentation8182```83searchDocs({ query: "skills SKILL.md frontmatter", maxResults: 3 })84```8586### Search for Plugin Tools8788```89searchDocs({ query: "plugin tool zod schema", maxResults: 5 })90```9192### Remember a Preference9394```95memoryRemember({96 content: "User prefers Bun over npm for JavaScript",97 category: "preference",98 priority: "high"99})100```101102## References103104- `references/registry.json` - Reference index105- `examples/plugins/` - Plugin templates (minimal, intermediate, advanced)106- `examples/tools/` - Tool templates (minimal, intermediate, advanced)107- `examples/skills/` - Skill templates (minimal, intermediate, advanced)108109---110> Converted and distributed by [TomeVault](https://tomevault.io/claim/digi4care) — claim your Tome and manage your conversions.111<!-- tomevault:4.0:skill_md:2026-04-15 -->