yuanbao — скилл для Claude Code: что делает и как установить
Скилл для взаимодействия с группами в Yuanbao: ищет участников, отправляет упоминания через @nickname и доставляет личные сообщения с файлами.
npx skills add NousResearch/hermes-agent --skill yuanbao -a claude-codeЧто делает yuanbao
Скилл подключает агента к группам Yuanbao (в приложении они называются «派»). Отдельного инструмента для отправки обычного текста здесь нет: шлюз платформы сам транслирует ответ агента в чат. Если вставить в текст имя через знак @, шлюз преобразует его в рабочее упоминание.
Для работы доступны три инструмента. yb_query_group_info возвращает название, владельца и число участников. Через yb_query_group_members агент ищет пользователей по части имени, выводит список ботов или всех участников. Для отправки приватных сообщений служит yb_send_dm. Он умеет прикреплять файлы: картинки в форматах .jpg, .png, .gif, .webp, .bmp уходят как изображения, остальные форматы — как документы.
Угадывать никнеймы нельзя. Перед упоминанием агент обязан вызвать yb_query_group_members с флагом mention=true, чтобы получить точное имя пользователя. Идентификатор group_code скилл извлекает из chat_id.
Какие задачи решает
- найти точный никнейм участника группы Yuanbao по части имени
- тегнуть пользователя через @mention прямо в тексте ответа
- отправить личное сообщение участнику группы с прикреплёнными файлами
- проверить число участников, владельца и свойства группы
Примеры запросов агенту
- Найди участника с именем aea3 в группе 535168412 и тегни его в ответе
- Отправь личное сообщение пользователю aea3 с файлом /path/to/photo.jpg через группу 535168412
- Покажи информацию и список участников группы 328306697
Как установить yuanbao
1Через Skills CLI (Vercel)
npx skills add NousResearch/hermes-agent --skill yuanbao -a claude-code2Вручную: положить файлы
~/.claude/skills/yuanbao/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/yuanbao/
1Через Skills CLI (Vercel)
npx skills add NousResearch/hermes-agent --skill yuanbao -a codex2Вручную: положить файлы
.agents/skills/yuanbao/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add NousResearch/hermes-agent --skill yuanbao -a cursor2Вручную: положить файлы
.cursor/skills/yuanbao/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install NousResearch/hermes-agent yuanbao2Вручную: положить файлы
.github/skills/yuanbao/SKILL.md1Через Skills CLI (Vercel)
npx skills add NousResearch/hermes-agent --skill yuanbao -a gemini-cli2Командой платформы
gemini skills install https://github.com/NousResearch/hermes-agent --path optional-skills/yuanbaoВручную: положить файлы
.devin/skills/yuanbao/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add NousResearch/hermes-agent --skill yuanbao -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора42
Весь набор →Похожие
Вопросы о yuanbao
Как установить yuanbao в Claude Code?
Выполните команду npx skills add NousResearch/hermes-agent --skill yuanbao -a claude-code.
Что делает скилл yuanbao?
Он даёт агенту доступ к группам Yuanbao: позволяет искать пользователей, отправлять упоминания через @nickname, читать данные о группе и отправлять личные сообщения.
Как в yuanbao отправляются личные сообщения?
Для этого используется инструмент yb_send_dm с параметрами group_code, name и message. Картинки форматов .jpg, .png, .gif, .webp и .bmp передаются как изображения, а прочие файлы — как документы.
Исходный текст
SKILL.md · MIT
---
name: yuanbao
description: "Yuanbao (元宝) groups: @mention users, query info/members."
version: 1.0.0
author: Teknium (teknium1), Hermes Agent
license: MIT
platforms: [linux, macos, windows]
metadata:
hermes:
tags: [yuanbao, mention, at, group, members, 元宝, 派, 艾特]
related_skills: []
---
# 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:
1. Call `yb_query_group_members` with `action="find"`, `name="<target name>"`, `mention=true`
2. Get the exact nickname from the response
3. Include `@nickname` in your reply text — the gateway handles the rest
Example: user says "帮我艾特元宝"
Step 1 — tool call:
```json
{ "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_members` first to get the exact nickname — do NOT guess
- The @mention format: `@nickname` with 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:
1. Call `yb_send_dm` with `group_code`, `name` (target user's name), and `message`
2. The tool automatically finds the user and sends the DM
3. Report the result to the user
Example: user says "给 @用户aea3 私信发一个 hello"
```json
yb_send_dm({ "group_code": "535168412", "name": "用户aea3", "message": "hello" })
```
Example with media: user says "给 @用户aea3 私信发一张图片"
```json
yb_send_dm({
"group_code": "535168412",
"name": "用户aea3",
"message": "Here is the image",
"media_files": [{"path": "/path/to/photo.jpg"}]
})
```
**Rules:**
- Extract `group_code` from the current chat_id (e.g. `group:535168412` → `535168412`)
- If you already know the user_id, pass it directly via the `user_id` parameter to skip lookup
- If multiple users match the name, the tool returns candidates — ask the user to clarify
- Do NOT use `send_message` tool for Yuanbao DMs — use `yb_send_dm` instead
- Supports media: images (.jpg/.png/.gif/.webp/.bmp) sent as image messages, other files as documents
## Query Group Info
```json
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_code` comes from chat_id: `group:328306697` → `328306697`
- Groups are called "派 (Pai)" in the Yuanbao app
- Member roles: `user`, `yuanbao_ai`, `bot`
© Teknium (teknium1), Hermes Agent · MIT · NousResearch/hermes-agent