Skip to main content

plugin-creator

Create OpenCode plugins and know where to load them.

ソース情報

リポジトリ
different-ai/openwork-hub
ソースの最終更新活動
2026年2月11日 01:43
検出された SKILL.md の言語
英語
スター
34
フォーク
13

インストール方法

デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。

ソースファイルを確認

インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。

ファイルエクスプローラー
3 ファイル

SKILL.md を表示中

SKILL.md
ソースの指示 · 読み取り専用プレビュー
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.
GitHubで見る