·creating-opencode-plugins
>_

creating-opencode-plugins

pr-pm/prpm

在創建掛鉤命令、文件、LSP、消息、權限、服務器、會話、待辦事項、工具或 TUI 事件的 OpenCode 插件時使用 - 為 JavaScript/TypeScript 事件驅動模塊提供插件結構、事件 API 規範和實現模式

5安裝·1熱度·@pr-pm

安裝

$npx skills add https://github.com/pr-pm/prpm --skill creating-opencode-plugins

SKILL.md

OpenCode plugins are JavaScript/TypeScript modules that hook into 25+ events across the OpenCode AI assistant lifecycle. Plugins export an async function receiving context (project, client, $, directory, worktree) and return an event handler.

| command | command.executed | Track command history, notifications | | file | file.edited, file.watcher.updated | File validation, auto-formatting | | installation | installation.updated | Dependency tracking | | lsp | lsp.client.diagnostics, lsp.updated | Custom error handling | | message | message..updated/removed | Message filtering, logging |

| permission | permission.replied/updated | Permission policies | | server | server.connected | Connection monitoring | | session | session.created/deleted/error/idle/status/updated/compacted/diff | Session management | | todo | todo.updated | Todo synchronization | | tool | tool.execute.before/after | Tool interception, augmentation |

查看原文

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/pr-pm/prpm --skill creating-opencode-plugins
分類
>_效率工具
認證
收錄時間
2026-02-01
更新時間
2026-02-18

快速解答

什麼是 creating-opencode-plugins?

在創建掛鉤命令、文件、LSP、消息、權限、服務器、會話、待辦事項、工具或 TUI 事件的 OpenCode 插件時使用 - 為 JavaScript/TypeScript 事件驅動模塊提供插件結構、事件 API 規範和實現模式 來源:pr-pm/prpm。

如何安裝 creating-opencode-plugins?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/pr-pm/prpm --skill creating-opencode-plugins 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用

這個 Skill 的原始碼在哪?

https://github.com/pr-pm/prpm