Skip to main content

gscore-adapter-development

当用户要求"帮我写一个 GsCore 适配器"、"把 XXX 平台接入早柚核心 / gsuid-core"、 "怎么连接 core 的 WebSocket"、"MessageReceive / MessageSend 怎么填"、 "上报消息怎么写"、"core 发回来的消息怎么解析"、"base64:// 和 link:// 有什么区别"、 "按钮 / Markdown 怎么适配到我的平台"、"node 合并转发怎么处理"、"双 ID 平台 group_id 怎么拼"、 "QQ 官方 msg_id / msg_seq 时序问题"、"为什么我的命令前缀被吞了 / 没被识别"、 "适配器 token 鉴权 / 断线重连怎么写"、"log_ 日志包是什么"、 "进退群 / 戳一戳元事件怎么上报"、"wait_recall 回执 / unsend 撤回 / ban 禁言怎么在适配器实现"、 "reply 和 reply_id 有什么区别"、"引用正文怎么上报"、"合并转发 / node 怎么上报给 core"、 "旧适配器怎么改 reply / node"时触发此 SKILL。 凡是"把某个聊天平台接入 GsCore"或"调试 core 与适配器之间通信"的任务都应优先读取此 SKILL。 为 GsCore(早柚核心 / gsuid-core)机器人框架编写**平台适配器**的完整指南。适配器是运行在 Bot 平台一侧、通过 WebSocket 与 core 通信的连接器(区别于运行在 core 内部的"插件")。 涵盖:早柚协议总览与二进制帧、三类数据结构(Message / MessageReceive / MessageSend / Button)、 bot_id 的三层语义(路由 ID / 平台 ID / bot_self_id)、连接生命周期(token 鉴权 / 心跳 / 断线重连 / 收发双协程骨架)、上报消息(平台→core,每种 content 类型如何构造、user_pm 映射、is_tome 机制、 命令前缀处理)、发送消息(core→平台,recv 循环按 bot_id 路由、每种 type 的落地处理)、 base64:// 与 link:// 双形态图片处理、按钮与 Markdown 跨平台映射、node 合并转发、双 ID 平台 (villa / heybox)、QQ 官方时序、回调按钮上报

Jump to install

Source facts

Repository
Genshin-bots/gsuid_core
Last source activity
August 18, 2026 at 13:57
Detected SKILL.md language
Chinese
Stars
351
Forks
53

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.