·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