yuanbao

yuanbao is a skill for Claude Code, Codex from humanerd-drew/opencode-drewgent. It costs 21 tokens per session (1,024 once invoked), scanned D, a copy of yuanbao, MIT.

A group-messaging helper for Yuanbao that can look up group details and members and notify people through @mentions.

In plain words
What is it for?
It helps users query group information, find members, list bots, obtain exact nicknames for mentions, and send private messages.
Why use it?
It reduces the effort needed to find group members and address the right person in a shared chat.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps users query group information, find members, list bots, obtain exact nicknames for mentions, and send private messages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/humanerd-drew/opencode-drewgent/yuanbao
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add humanerd-drew/opencode-drewgent --skill yuanbao
Clone the repo
git clone --depth 1 https://github.com/humanerd-drew/opencode-drewgent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for yuanbao

README.md
[![agentmods](https://agentmods.dev/badge/skills/humanerd-drew/opencode-drewgent/yuanbao.svg)](https://agentmods.dev/skills/humanerd-drew/opencode-drewgent/yuanbao)
Your own site
<a href="https://agentmods.dev/skills/humanerd-drew/opencode-drewgent/yuanbao"><img src="https://agentmods.dev/badge/skills/humanerd-drew/opencode-drewgent/yuanbao.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,024 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 3 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 94% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00021 $0.01024
Opus 5 $0.00010 $0.00512
Sonnet 5 $0.00004 $0.00205
Haiku 4.5 $0.00002 $0.00102

Measured 4d ago against content hash d736988c2500, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade D, and why

yuanbao scanned grade D with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Subtle steeringmediumPrompt injection

Instructions that bias recommendations or shape behaviour without the user noticing.

**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.**

Tells the agent never to refusehighAnti-refusal

Suppressing the ability to decline removes a core safety control; a later harmful request then succeeds.

**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.**

Strips warnings and disclaimersmediumAnti-refusal

Omitting safety caveats hides risk from the user and is a common jailbreak preamble.

**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.**
Origin

This is a copy

94% identical to yuanbao — 4 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/yuanbao/SKILL.md · 111 lines

How it starts

The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on 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:

  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:

{ "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

Read the full file on GitHub · 111 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 111 lines · 21 tokens per session scan D d736988c2500

Subscribe to this mod's changes

yuanbao is a skill published in the GitHub repository humanerd-drew/opencode-drewgent (2 stars, last pushed 1mo ago), licensed MIT. It adds 21 tokens to every session and 1,024 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it D with 3 findings (subtle steering, tells the agent never to refuse, strips warnings and disclaimers). It is 94% identical to yuanbao, differing in 4 lines, and is treated as a copy.