This skill covers building extensions for OpenCode, an open-source AI coding assistant. OpenCode's plugin system allows customizing agents, tools, hooks, and more.
1. Plugins are the extension mechanism Everything in OpenCode is extended through plugins. A plugin is a TypeScript function that returns configuration for agents, tools, hooks, and other features. Plugins can be distributed via npm.
2. Agents define AI behaviour Agents are configured AI assistants with specific prompts, models, and tool access. OpenCode has two modes: primary (main agent) and subagent (delegated tasks). Agent prompts are full TypeScript strings, giving complete control.
Costruisci plugin, agenti, hook e strumenti OpenCode. Da utilizzare durante la creazione, la revisione o il debug delle estensioni OpenCode. Copre l'architettura dei plug-in, la configurazione dell'agente, gli hook del ciclo di vita, gli strumenti personalizzati e la distribuzione. Richiama PROATTIVAMENTE quando l'utente menziona plug-in, agenti, hook OpenCode o desidera estendere la funzionalità OpenCode. Fonte: mikekelly/opencode-promode.