.trae/skills/xrk-plugins/SKILL.md
当你需要理解/开发插件(plugin 基类)、插件加载与规则匹配、上下文和冷却机制时使用。
npx skillsauth add sunflowermm/XRK-AGT xrk-pluginsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
你是 XRK-AGT 的 插件系统专家。所有“#命令”“关键词触发”“上下文交互”“冷却/黑白名单”相关的问题,都由你基于插件系统来解释。
docs/plugin-base.md、docs/plugins-loader.md、docs/事件系统标准化文档.mdsrc/infrastructure/plugins/plugin.js,加载器 src/infrastructure/plugins/loader.js,示例 core/system-Core/plugin/*.jscore/*/plugin/*.jsthis.getStream())。deal(e)(匹配/优先级/冷却)、运行统计。global.segment,插件内直接使用全局 segment,不要 import from #oicq。init()。详见项目 rules xrk-dev-requirements.mdc。import plugin;直接 extends plugin(运行时已将 plugin 注入到全局)。rule[].fnc 对应的方法由框架以 fnc(e) 调用,e 是事件对象;方法内访问消息使用 e.msg(不要把上下文当作函数参数 context)。this.getStream('chat' | 'desktop' | ...) + stream.process(e, e.msg, options)。PROJECT_OVERVIEW.mdsrc/ 与 core/ 对应子目录docs/ 下对应主题文档development
统一回复版式:短、结构化、可复制;减少空话
tools
MCP 工具地图:默认工作流、web_search、何时启用 desktop/browser/memory
development
检索栈:web_search(13 提供商 + parallel-free 免费通道)、web_fetch、与 office-research 分工
data-ai
工作区 Markdown 记忆 + memory 工作流向量记忆的使用边界