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 agentmods add skills/ntygod/zhiwei/a2uinpx 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.svg" alt="Measured on agentmods" height="20"></a>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 | $0.00021 | $0.00254 |
| Sonnet 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 6d 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.
- 6d 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 25d ago), licensed MIT. It adds 42 tokens to every session and 509 once invoked, about $0.0002 per session on Opus 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.
Other skills, from other repositories
inbox-triage
Summarize unread Gmail messages Alfred Core has already synced, and offer to draft or schedule follow-up actions -- never sends or deletes anything on its own.
morning-brief
Render Alfred Core's deterministic morning brief and deliver a short, warm rewrite of it without changing any fact, date, or link it contains.
weekly-review
Pull together the week's open tasks, GitHub notifications, Canvas missing assignments, and remembered context into one retrospective-style summary.
docmancer
Work from the same local memory as every other coding agent on this machine. Recall prior decisions, preferences, instructions, and project conventions that Claude Code, Codex, Cursor, and other agents wrote here, with cited sources, fully local. Also searches a separate local technical-documentation index.
vault-for-llm
Connect OpenClaw to Vault Agent Memory as a local-first governed project memory layer. Search first, then bounded-read cited source ranges; propose new memories as candidates instead of writing directly into active memory.
mooncite
Use when an agent needs past Pi, OMP, Claude Code, Codex, or ChatGPT context.