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.
npx skills add ntygod/ZhiWei --skill a2uigit clone --depth 1 https://github.com/ntygod/ZhiWeiWrote 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.
[](https://agentmods.dev/skills/ntygod/zhiwei/a2ui)<a href="https://agentmods.dev/skills/ntygod/zhiwei/a2ui"><img src="https://agentmods.dev/badge/skills/ntygod/zhiwei/a2ui/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/ntygod/zhiwei/a2ui"><img src="https://agentmods.dev/badge/skills/ntygod/zhiwei/a2ui.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00042 | $0.00509 |
| Opus 5.5 | $0.00017 | $0.00204 |
| Sonnet 5.5 | $0.00008 | $0.00102 |
| Haiku 4.5 | $0.00004 | $0.00051 |
Grade A, and why
a2ui scanned grade A with 0 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 3mo 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
A2UI 组件输出指南
通过 ui_render 向前端提交组件树。用户点击组件触发 signal 回到后端继续 Agent 流程。判断依据:组件不需要 signal 就用 Markdown,不强行套 A2UI。
适用场景
- 待办列表(点击完成)→ ListItem + signal
- 操作按钮(触发动作)→ Button + signal
- 表单输入(提交数据)→ TextField + signal
- 选项切换(筛选 Chip)→ Chip + signal
- 可点选列表(用户从中挑一个继续流程)
不适用场景
- 纯展示表格 → Markdown 表格
- 步骤路线图 / 有序列表 → Markdown 列表
- 代码 → Markdown 代码块
- 标题层级 → Markdown 标题
- 数学公式 → KaTeX
- 图片仅展示 → Markdown 图片
工作流
- 先判:要回调后端的内容用 A2UI;纯展示用 Markdown
- 选组件:从注册组件目录选(Button / TextField / Chip / ListItem / Card 等,详见参考)
- 先文字铺垫:调
ui_render前先用一句话说"这里给你 X 个选项"等上下文 - 提交组件树:每次最多 50 个组件;signal 放组件顶层,不进 properties
- id 唯一:同一调用内组件 id 不能重复
- 多步流程:点击 signal → 后端处理 → 必要时再
ui_render给下一步
详细参考
- 注册组件完整目录 + 调用样例 + Markdown vs A2UI 选择矩阵:
{skill_dir}/references/component-catalog.md
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 3mo ago First seen · 50 lines · 42 tokens per session scan A f967bb47fac8
a2ui is a skill published in the GitHub repository ntygod/ZhiWei (137 stars, last pushed 3mo ago), licensed MIT. It adds 42 tokens to every session and 509 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
a2ui compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| a2uintygod/ZhiWei | Skill | 137 | 3mo ago | MIT | A | 42 | Claude Code, Codex |
| inbox-triagendunl075/alfred-pennyworth | Skill | 0 | 3mo ago | Apache-2.0 | A | 37 | Claude Code, Codex |
| morning-briefndunl075/alfred-pennyworth | Skill | 0 | 3mo ago | Apache-2.0 | A | 33 | Claude Code, Codex |
| weekly-reviewndunl075/alfred-pennyworth | Skill | 0 | 3mo ago | Apache-2.0 | A | 27 | Claude Code, Codex |
| utekecodecoradev/uteke | Skill | 294 | today | Apache-2.0 | A | 35 | Claude Code, Codex |
| holon-runtime-opsholon-run/holon | Skill | 206 | today | Apache-2.0 | A | 28 | Claude Code, Codex |
| github-reviewholon-run/holon | Skill | 206 | today | Apache-2.0 | A | 27 | Claude Code, Codex |