xrk-tasker
Skill140 starsChanged 8 months agoMITView on GitHub
当你需要理解或编写新的 Tasker(OneBotv11/GSUIDCORE/QBQBot/stdin/device 等协议入站层)时使用。
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-pluginsSkill
- xrk-project-overviewSkill
- xrk-rendererSkill
- xrk-runtime-utilSkill
- xrk-subserverSkill
- xrk-system-coreSkill
- xrk-v3-apiSkill
- xrk-www-compatSkill
The file
Files
文档与代码
docs/tasker-loader.md、docs/tasker-base-spec.md、docs/事件系统标准化文档.md、core/system-Core/tasker/*.js、core/system-Core/events/*.js
职责
协议入站 → 统一事件 e → core/*/events/ Listener → PluginLoader.deal(e)。
现行契约(必遵)
- 派发名:
AgentRuntime.em('{短名}.{post_type}', e)(或TaskerBase.emitEvent(短名, e, bot))。
例:onebot.message/device.message/stdin.message/opqbot.message/gsuidcore.message。
禁止对业务入站裸em('message')/em('message.group')(无对应 Listener 则插件链不跑)。 e.tasker:字符串短名(onebot/device/stdin/ …)。禁止把 Tasker 实例挂到事件上(bot.tasker = this仅挂 bot)。- Listener:
core/<core>/events/<短名>.js继承ListenerBase,bot.on('{短名}.message|notice|request', …)→markTasker→plugins.deal。 - Enhancer(可选):
event: '{短名}.*'+tasker: '{短名}',只增强本通道。 - 插件匹配:
#utils/event-keys.js→matchPluginEvent;定 Tasker 订阅(如onebot.message)不命中其它 tasker。
别名:api→stdin,qq→opqbot(见 coerceTaskerId)。
Node 26
- 消息二进制:
Buffer#toBase64(),勿toString('base64')。 - 错误与网络:skill
xrk-node-runtime。
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.

