Create Opencode Plugin

Create OpenCode plugins using the @opencode-ai/plugin SDK. Use for building custom tools, event hooks, auth providers, or tool execution interception. Use proactively when developing new plugins in .opencode/plugin/ or ~/.config/opencode/plugin/. Examples: - user: "Create a plugin to block dangerous commands" → implement tool execution before hook with blocking logic - user: "Add a custom tool for jira" → design tool schema and implementation using SDK context - user: "Show toast on file edit" → react to file edit events and display status message - user: "Build a custom auth provider" → implement auth flow for new model provider - user: "Intercept git commits" → add hook to validate commit messages before execution

jal-co 60b9f25 13 files · 79.0 KB Updated

File contents

jal-co/jalco-opencode/tree/main/opencode/.config/opencode/skills/create-opencode-plugin commit 60b9f252e0

Frequently asked questions

npx skillmds@latest add jal-co/create-opencode-plugin