igorwarzocha avatar

Create Opencode Plugin

This is a comprehensive workflow guide for building OpenCode plugins using their SDK. It walks you through the full lifecycle: verifying API references, validating feasibility (what's possible vs. what requires core changes), designing hooks, implementing with modular TypeScript patterns, adding UI feedback, testing, and publishing. The structure is opinionated about code organization, insisting you split complex plugins into multiple focused files instead of dumping everything in index.ts. Most valuable for the feasibility check, it explicitly lists what you can't do with plugins (modify TUI, add keybinds, change core prompts) so you don't waste time on impossible approaches. The hook patterns and examples cover the common use cases: intercepting tool calls, reacting to file edits, adding custom tools, building auth providers.

skills.sh installs
349
GitHub stars
122
last updated
Jun 3, 2026

Install

$ npx -y skills add igorwarzocha/opencode-workflows --skill create-opencode-plugin --agent claude-code

Installs into .claude/skills of the current project.

Files

Creating OpenCode Plugins

Re-read this file periodically during plugin development to refresh context and ensure you're following the correct procedure.

Procedure Overview

Sponsors

Details

Repository
github.com/igorwarzocha/opencode-workflows
First seen
Jun 3, 2026

More from igorwarzocha/opencode-workflows

All 7

Recommended

1juliusbrussee avatarcavemanjuliusbrussee/cavemanUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels618.3Kskills.sh installs
2mattpocock avatargrill-memattpocock/skillsA relentless interview to sharpen a plan or design.1.5Mskills.sh installs
3shadcn avatarimproveshadcn/improveSurvey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on s40Kskills.sh installs
4obra avatarsystematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes326.7Kskills.sh installs
5forrestchang avatarkarpathy-guidelinesforrestchang/andrej-karpathy-skillsBehavioral guidelines to reduce common LLM coding mistakes through explicit assumptions, simplicity, and verifiable success criteria.17.9Kskills.sh installs
6vercel-labs avatarfind-skillsvercel-labs/skillsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express int4.3Mskills.sh installs