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.
Создавайте плагины, агенты, перехватчики и инструменты OpenCode. Используйте при создании, просмотре или отладке расширений OpenCode. Охватывает архитектуру плагинов, конфигурацию агента, перехватчики жизненного цикла, специальные инструменты и распространение. Вызывайте ПРОАКТИВНО, когда пользователь упоминает плагины, агенты, перехватчики OpenCode или хочет расширить функциональность OpenCode. Источник: mikekelly/opencode-promode.