create-opencode-plugin

Guide users through creating OpenCode plugins with the official SDK.

124|12|Updated Nov 17, 2025
One-click install
npx skills add https://github.com/IgorWarzocha/Opencode-Workflows --skill create-opencode-plugin-igorwarzocha
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-opencode-plugin
Source: https://github.com/IgorWarzocha/Opencode-Workflows/tree/main/agents/create-opencode-plugin/.opencode/skill/create-opencode-plugin
Command: npx skills add https://github.com/IgorWarzocha/Opencode-Workflows --skill create-opencode-plugin-igorwarzocha

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of developing custom plugins for OpenCode, guiding users through design, implementation, and testing.

Core Features & Use Cases

  • Plugin Scaffolding: Generates the basic structure for new plugins.
  • SDK Integration: Provides guidance on using the @opencode-ai/plugin SDK.
  • Hook Implementation: Details on how to implement various plugin hooks (events, tools, permissions, etc.).
  • Testing & Publishing: Instructions for testing and preparing plugins for distribution.
  • Use Case: You want to create a plugin that intercepts file edits to perform automatic linting before saving. This Skill will help you set up the plugin structure, implement the file.edited hook, and test it.

Quick Start

Use the create-opencode-plugin skill to build a new plugin that adds a custom tool for counting words in a file.

Frequently Asked Questions about create-opencode-plugin

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a custom OpenCode plugin using the official SDK?

To create an OpenCode plugin, this Skill scaffolds the basic structure and guides you through using the @opencode-ai/plugin SDK to implement custom tools, event hooks, and permission handlers.

How do I implement event hooks to intercept file edits in an OpenCode plugin?

Implementing event hooks in an OpenCode plugin involves using the SDK to register handlers for specific events like file.edited, enabling you to intercept actions and execute custom logic such as automatic linting.

Can I use TypeScript to build and publish custom tools for OpenCode?

Yes, you can use TypeScript to build custom OpenCode tools. This Skill provides structured workflows and reference materials for designing, testing, and preparing your TypeScript plugin for publishing to npm.

What is the best way to test and distribute an OpenCode plugin?

The best way to test and distribute an OpenCode plugin is by following the provided instructions for testing your implementation and preparing the package for publishing to npm.

Do I need any specific dependencies to start OpenCode plugin development?

No external dependencies are required to start OpenCode plugin development. This Skill provides the necessary scripts and reference materials to guide you through using the official SDK.

What types of handlers can I build when I develop an OpenCode plugin?

When you develop an OpenCode plugin, you can build custom tools, event hooks, and permission handlers using the official SDK to extend the platform's core functionality.