Skip to main content

plugin-creator

Create OpenCode plugins and know where to load them.

Quellinformationen

Repository
different-ai/the-factory
Letzte Quellaktivität
27. Januar 2026 um 01:15
Erkannte Sprache von SKILL.md
Englisch
Sterne
73
Forks
10

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

Datei-Explorer
3 Dateien

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
name
plugin-creator
description
Create OpenCode plugins and know where to load them.
## Quick Usage (Already Configured) ### Where plugins live - Project plugins: `.opencode/plugins/*.js` or `.opencode/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.
Auf GitHub ansehen