writing-opencode-plugins
CommunityEnd-to-end guide for OpenCode plugin development.
Software Engineering#typescript#testing#publishing#packaging#opencode#plugin-development#shim-pattern
Authortianhuil
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Guides developers through the full lifecycle of OpenCode plugin creation, resolving common ambiguity around project layout, testing practices, and publishing workflows.
Core Features & Use Cases
- Shim-based development vs runtime loading to keep plugin code isolated
- Clear plugin project skeleton (src/, .opencode/, test/, and root package.json)
- Established testing patterns with unit and integration tests (Bun)
- Publishing guidance to distribute plugins via npm and OpenCode tooling
- Best practices for packaging, configuration, and maintainability
Quick Start
Create a new plugin directory following the shown structure and implement your plugin using the shim pattern.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: writing-opencode-plugins Download link: https://github.com/tianhuil/dotfiles/archive/main.zip#writing-opencode-plugins Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.