opencode-mastery

Centralizes OpenCode knowledge with lazy-loaded docs, fuzzy search, memory persistence, and GitHub-based research via Python scripts.

Updated Jan 23, 2026
One-click install
npx skills add https://github.com/digi4care/opencode-mastery --skill opencode-mastery
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opencode-mastery
Source: https://github.com/digi4care/opencode-mastery/tree/main/src/skill/opencode-mastery
Command: npx skills add https://github.com/digi4care/opencode-mastery --skill opencode-mastery

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill centralizes OpenCode knowledge by providing a lazily loaded local knowledge base along with cross-session memory and automatic GitHub lookups, reducing time spent hunting for docs.

Core Features & Use Cases

  • Lazy-loaded documentation: Loads only relevant sections from the cached OpenCode docs.
  • Fuzzy search and memory: Quickly locate topics and remember context across sessions.
  • GitHub-driven research: Fetches latest information when docs are insufficient and cites sources.

Use Case: A developer needs the latest OpenCode plugin templates; the skill fetches cached docs and, if needed, pulls from GitHub to provide up-to-date guidance with sources.

Quick Start

Typical interaction: "Explain how to add a new OpenCode skill." Commands to try:

  • Download docs: python ~/.ai_docs/opencode/scripts/download-docs.py --verbose
  • Build index: python ~/.ai_docs/opencode/scripts/index-builder.py --rebuild
  • Check memory: python ~/.ai_docs/opencode/scripts/memory-manager.py --history

Frequently Asked Questions about opencode-mastery

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search and access OpenCode documentation offline?

You can access OpenCode documentation offline by running Python scripts to download docs and build a local search index, enabling lazy-loaded topic retrieval and fast lookups without a continuous internet connection.

What is lazy loading for documentation and how does it work here?

Lazy loading for documentation means the skill loads only relevant sections from cached OpenCode docs rather than the entire dataset, optimizing local memory usage and accelerating topic retrieval.

How do I build and rebuild a local search index for OpenCode docs?

You build a local search index for OpenCode docs by executing the index-builder Python script, which creates a searchable local database to enable fuzzy search across the downloaded documentation.

Can I use GitHub to fetch missing OpenCode information when local docs are insufficient?

Yes, you can fetch missing OpenCode information from GitHub. When cached documentation is insufficient, the skill automatically pulls the latest data from GitHub repositories and cites its sources.

Does this skill support cross-session memory for OpenCode inquiries?

Yes, this skill supports cross-session memory for OpenCode inquiries by using a memory-manager Python script to persist context and track history across multiple separate interactions.

Why do I need Python scripts to manage a local OpenCode knowledge base?

You need Python scripts to manage a local OpenCode knowledge base because they handle downloading docs, building deterministic search indexes, and managing session data for offline access and memory persistence.