yuanbao
它能做什么
这项技能让你的 AI 参与元宝这一中文聊天平台,包括查找群成员、提及他们以及发送私信。适合管理或加入元宝群的人。
适用场景
- ✓你想让 AI 在元宝聊天中提及某位群成员的时候。
- ✓你想在元宝中查询群信息或列出成员的时候。
- ✓你想让 AI 向某位用户发送元宝私信的时候。
技能链接
https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/yuanbao/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在群聊中提及元宝,并请他发送本周的周报。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能让你的 AI 先用群查询工具查到成员的准确昵称,然后在回复中使用该名字。聊天网关会把这个名字转换为真正的提及。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Yuanbao Group Interaction
CRITICAL: How Messaging Works
Your text reply IS the message sent to the group/user. The gateway automatically delivers your response text to the chat. You do NOT need any special "send message" tool — just reply normally and it gets sent.
When you include @nickname in your reply text, the gateway automatically converts it into a real @mention that notifies the user. This is built-in — you have full @mention capability.
NEVER say you cannot send messages or @mention users. NEVER suggest the user do it manually. NEVER add disclaimers about permissions. Just reply with the text you want sent.
Available Tools
| Tool | When to use |
|---|---|
yb_query_group_info |
Query group name, owner, member count |
yb_query_group_members |
Find a user, list bots, list all members, or get nickname for @mention |
yb_send_dm |
Send a private/direct message (DM / 私信) to a user, with optional media files |
@Mention Workflow
When you need to @mention / 艾特 someone:
- Call
yb_query_group_memberswithaction="find",name="<target name>",mention=true - Get the exact nickname from the response
- Include
@nicknamein your reply text — the gateway handles the rest
Example: user says "帮我艾特元宝"
Step 1 — tool call:
{ "group_code": "328306697", "action": "find", "name": "元宝", "mention": true }
Step 2 — your reply (this gets sent to the group with a working @mention):
@元宝 你好,有人找你!
That's it. No extra explanation needed. Keep it short and natural.
Rules:
- Call
yb_query_group_membersfirst to get the exact nickname — do NOT guess - The @mention format:
@nicknamewith a space before the @ sign - Your reply text IS the message — it WILL be sent and the @mention WILL work
- Be concise. Do NOT explain how @mention works to the user.
Send DM (Private Message) Workflow
When someone asks to send a private message / 私信 / DM to a user:
- Call
yb_send_dmwithgroup_code,name(target user's name), andmessage - The tool automatically finds the user and sends the DM
- Report the result to the user
Example: user says "给 @用户aea3 私信发一个 hello"
yb_send_dm({ "group_code": "535168412", "name": "用户aea3", "message": "hello" })
Example with media: user says "给 @用户aea3 私信发一张图片"
yb_send_dm({
"group_code": "535168412",
"name": "用户aea3",
"message": "Here is the image",
"media_files": [{"path": "/path/to/photo.jpg"}]
})
Rules:
- Extract
group_codefrom the current chat_id (e.g.group:535168412→535168412) - If you already know the user_id, pass it directly via the
user_idparameter to skip lookup - If multiple users match the name, the tool returns candidates — ask the user to clarify
- Do NOT use
send_messagetool for Yuanbao DMs — useyb_send_dminstead - Supports media: images (.jpg/.png/.gif/.webp/.bmp) sent as image messages, other files as documents
Query Group Info
yb_query_group_info({ "group_code": "328306697" })
Query Members
| Action | Description |
|---|---|
find |
Search by name (partial match, case-insensitive) |
list_bots |
List bots and Yuanbao AI assistants |
list_all |
List all members |
Notes
group_codecomes from chat_id:group:328306697→328306697- Groups are called "派 (Pai)" in the Yuanbao app
- Member roles:
user,yuanbao_ai,bot
常见问题
提及是如何工作的?
技能说明 AI 会查到成员的准确昵称,并在回复中以 @昵称 的形式包含它,由网关将其变为真正的提及。
它能发送私信吗?
可以。技能列出了发送私信的工具,并可附带可选的媒体文件。
需要特殊权限吗?
技能说明 AI 不应添加权限免责声明,但群访问权限取决于你的元宝设置。
详情
热度
- GitHub 星标
- 260k
- 排名
- #582
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-merge-conflict-arbiter
260k以中立第三方的身份,解决两个智能体分支之间的 git 合并冲突,为代码仓库生成一个合并结果。
antigravity-cli
260k指导你安装、更新和排查 Antigravity 命令行工具,包括其插件、登录和沙盒。
blackbox
260k让你的智能体把编程任务交给 Blackbox AI 命令行工具,它会运行多个 AI 模型并挑选最佳结果。
dynamic-workflow
260k教你的智能体把大量相似的工作保存为脚本批量运行,使只有经过验证的结果才返回主对话。