opencode-plugin-creator
OpenCode Plugin Creator
Use opencode-agent-creator for agent definitions, permissions, and task delegation. Keep plugin mechanics here.
Match the host before coding
Record opencode --version and the installed @opencode-ai/plugin version. This skill's template targets OpenCode 1.18.35, tag commit 53d1eabb61e21162157817bf677da0a4ad3332e3.
Choose the API from the target package's exports and types. The released root import uses a Plugin function returning Hooks; its V2 Promise/Effect exports are different APIs. Current V2 documentation can describe fields absent from 1.18.35. Do not mix its examples into a V1 hook object.
For terminal UI behavior, load the official CLI-plugin guide and the target host's @opencode-ai/plugin/tui types. Use its distinct TUI entrypoint/API and package ./tui export; match the guide's imports to the installed version rather than using server hooks for UI work.