Разработка плагинов для OpenCode

★ 8.0 · vibe-coding

creating-opencode-plugins is a Claude Code skill that guides you through building OpenCode plugins — JavaScript/TypeScript modules that hook into 25+ events across the AI assistant lifecycle. Each plugin exports an async function receiving a context object (project, client, $, directory, worktree) and returns an event handler with a switch over typed event names. Eleven event categories are covered — file, command, lsp, message, permission, session, tool, tui, todo, server, and installation — enabling use cases like blocking reads of .env files, auto-approving trusted permissions, logging slow tool executions, registering custom tools via client.registerTool, and customizing TUI prompts. The skill supplies plugin manifest format, full Event API specifications, and complete working examples. It targets developers who need real-time, event-driven extensibility rather than static OpenCode configuration.