Skip to main content

plugin-creator

Create OpenCode plugins and know where to load them.

Datos de origen

Repositorio
different-ai/openwork-hub
Última actividad en el origen
11 de febrero de 2026 a las 01:43
Idioma detectado de SKILL.md
inglés
Estrellas
34
Forks
13

Opciones de instalación

De forma predeterminada está seleccionado el prompt que primero revisa el origen. Puedes cambiar a un comando directo o descargar una copia local.

Revisa los archivos de origen

Lee SKILL.md y los archivos complementarios que muestra SkillsMP antes de decidir si quieres instalarlo.

Explorador de archivos
3 archivos

Mostrando SKILL.md

SKILL.md
Instrucciones de origen · Vista previa de solo lectura
name
plugin-creator
description
Create OpenCode plugins and know where to load them.
## Quick Usage (Already Configured) ### Where plugins live - Project plugins: `plugins/*.js` or `plugins/*.ts` - Global plugins: `~/.config/opencode/plugins/*.js` or `.ts` ### Load from npm Add npm plugin packages in `opencode.json`: ```json { "$schema": "https://opencode.ai/config.json", "plugin": ["opencode-helicone-session", "opencode-wakatime"] } ``` ## Minimal plugin template ```ts export const MyPlugin = async ({ project, client, $, directory, worktree }) => { return { // Hook implementations go here } } ``` ## Notes from OpenCode docs - Plugins are JS/TS modules exporting one or more plugin functions. - Local plugins are loaded directly from the plugin directory. - NPM plugins are installed via Bun at startup and cached in `~/.cache/opencode/node_modules/`. - Load order: global config → project config → global plugins → project plugins. ## Reference Follow the official OpenCode plugin docs: https://opencode.ai/docs/plugins/ Use the docs as the escape hatch when unsure.
Ver en GitHub