xrk-plugins
Skill140 starsChanged 8 months agoMITView on GitHub
当你需要理解/开发插件(plugin 基类)、插件加载与规则匹配、上下文和冷却机制时使用。
In this repository43 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- .cursor/rules/vibe-learn-craft.mdcCursor rule
- .cursor/rules/xrk-core-code.mdcCursor rule
- .cursor/rules/xrk-dev-requirements.mdcCursor rule
- .cursor/rules/xrk-infrastructure.mdcCursor rule
- .cursor/rules/xrk-project.mdcCursor rule
- .cursor/rules/xrk-third-party-plugins.mdcCursor rule
- accessibility-complianceSkill
- design-system-patternsSkill
- fronted-designSkill
- immersive-short-videoSkill
- interaction-designSkill
- mobile-android-designSkill
- mobile-ios-designSkill
- react-native-designSkill
- responsive-designSkill
- ui-ux-pro-maxSkill
- visual-design-foundationsSkill
- web-component-designSkill
- xrk-agent-runtimeSkill
- xrk-ai-workflowSkill
- xrk-app-devSkill
- xrk-authSkill
- xrk-coding-styleSkill
- xrk-configSkill
- xrk-crawlSkill
- xrk-dockerSkill
- xrk-docsSkill
- xrk-github-researchSkill
- xrk-http-apiSkill
- xrk-infrastructureSkill
- xrk-llmSkill
- xrk-mcpSkill
- xrk-node-runtimeSkill
- xrk-project-overviewSkill
- xrk-rendererSkill
- xrk-runtime-utilSkill
- xrk-subserverSkill
- xrk-system-coreSkill
- xrk-taskerSkill
- xrk-v3-apiSkill
- xrk-www-compatSkill
The file
Files
文档与代码
docs/plugin-base.md、docs/runtime-surface.md、docs/plugins-loader.md、docs/事件系统标准化文档.mdsrc/infrastructure/plugins/plugin-base.js、plugins/loader.js、#utils/event-keys.js- 示例:
core/system-Core/plugin/*.js
约定
- 路径:
core/*/plugin/*.js(含办事工作区data/ai-workspace/*/core/*/plugin);入口PluginLoader.deal(e)。 - 基类:
import PluginBase from '#infrastructure/plugins/plugin-base.js';extends PluginBase。 - 裸名
msgSegment、AgentRuntime;勿global.msgSegment/global.AgentRuntime。 - constructor 不建缓存/Map;
rule[].fnc(e)用e.msg。 event匹配(matchPluginEvent):- 跨 Tasker:
message/message.group/notice.*.poke - 定 Tasker:
onebot.message/device.*(首段非通用 post_type 时必须与e.tasker一致,否则不命中) - 可选
tasker/taskers白名单(别名经coerceTaskerId,如api→stdin)
- 跨 Tasker:
- 戳一戳等 notice:
event: 'notice.*.poke';逻辑放accept()。勿为业务去改 Tasker。 - 调 AI:
this.getWorkflow('chat'|...)+stream.process(e, e.msg, options)。 - 错误:
Error.isError/normalizeError(skillxrk-node-runtime)。 - 产品 / 办事助手写工作区 Core:导航 skill
agent-core-dev(配方优先,只读本 skill)。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

