create-opencode-plugin

Create OpenCode plugins with the @opencode-ai/plugin SDK for custom tools and hooks.

7|2|Updated Jan 18, 2026
One-click install
npx skills add https://github.com/justinlevinedotme/jalco-opencode --skill create-opencode-plugin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-opencode-plugin
Source: https://github.com/justinlevinedotme/jalco-opencode/tree/main/opencode/.config/opencode/skills/create-opencode-plugin
Command: npx skills add https://github.com/justinlevinedotme/jalco-opencode --skill create-opencode-plugin

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Create OpenCode plugins using the @opencode-ai/plugin SDK for building custom tools, event hooks, and authentication providers.

Core Features & Use Cases

  • Modular scaffolding for plugin index.ts, hooks, and tools
  • Quick design guidance for event hooks, tool execution, and auth flows
  • Reusable templates and documentation references to accelerate development

Quick Start

Provide a simple, direct prompt to generate a plugin scaffold in your repository with an index.ts and a basic Hooks interface.

Frequently Asked Questions about create-opencode-plugin

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

FAQPage Schema
How do I scaffold an OpenCode plugin with the official SDK?

To scaffold an OpenCode plugin, use the SDK to generate a modular TypeScript structure with an index.ts, a basic Hooks interface, and a SKILL.md frontmatter. This provides the foundational template for building custom tools and event hooks.

Can I build custom authentication providers for OpenCode?

Yes, you can build custom authentication providers for OpenCode. The SDK supports creating auth flows alongside custom tools and event hooks within a modular plugin scaffold, handling both project-specific and global authentication requirements.

How do OpenCode event hooks work in a TypeScript plugin?

OpenCode event hooks work by defining a Hooks interface in your TypeScript plugin. The SDK allows you to implement specific event hook logic that executes during runtime, enabling modular and reusable interactions within the OpenCode environment.

Does the OpenCode plugin SDK support project-specific and global plugin roots?

Yes, the OpenCode plugin SDK supports both project-specific and global plugin roots. This allows developers to apply modular scaffolds, tool definitions, and hook implementations at either a localized project level or globally across the environment.

What structure is required for an OpenCode plugin?

An OpenCode plugin requires a modular TypeScript structure including a SKILL.md frontmatter, a Hooks interface, and an index.ts file. You can also include optional scripts, references, or assets for runtime tasks and documentation.