a2ui-compose

a2ui-compose is a skill for Claude Code, Codex from a2uicatalog/a2ui. It costs 102 tokens per session (1,110 once invoked), scanned A, original, MIT.

A composer for assembling predefined interactive interface components into a payload that renders as HTML, such as a chart, dashboard, status board, or decision tree.

In plain words
What is it for?
Use it to arrange interface blocks, set a theme, bind data, and render the result inline, through a preview link, or on your own renderer.
Why use it?
It provides a defined format for turning structured data into a visible interface rather than only describing the result in text.

Skill for Claude CodeCodex

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

Good fit Use it to arrange interface blocks, set a theme, bind data, and render the result inline, through a preview link, or on your own renderer.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/a2uicatalog/a2ui/a2ui-compose
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 a2uicatalog/a2ui --skill a2ui-compose
Clone the repo
git clone --depth 1 https://github.com/a2uicatalog/a2ui

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 a2ui-compose

README.md
[![agentmods](https://agentmods.dev/badge/skills/a2uicatalog/a2ui/a2ui-compose/github.svg)](https://agentmods.dev/skills/a2uicatalog/a2ui/a2ui-compose)
Your own site
<a href="https://agentmods.dev/skills/a2uicatalog/a2ui/a2ui-compose"><img src="https://agentmods.dev/badge/skills/a2uicatalog/a2ui/a2ui-compose/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.

agentmods 80×15 button for a2ui-compose

Your own site · 80×15
<a href="https://agentmods.dev/skills/a2uicatalog/a2ui/a2ui-compose"><img src="https://agentmods.dev/badge/skills/a2uicatalog/a2ui/a2ui-compose.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,110 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found 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.00102 $0.01110
Opus 5.5 $0.00041 $0.00444
Sonnet 5.5 $0.00020 $0.00222
Haiku 4.5 $0.00010 $0.00111

Measured 7d ago against content hash 92074016c7fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

a2ui-compose 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 7d 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.

skills/a2ui-compose/SKILL.md · 86 lines

How it starts

The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Composing and rendering an A2UI payload

The payload shape

{
  "title": "Weekly numbers",
  "theme": "light",
  "blocks": [
    { "type": "heading", "text": "This week" },
    { "type": "stat_card", "value": "1,234", "label": "Daily users", "delta": "+12%" }
  ]
}

blocks is an ordered array of atoms (the "blocks dialect"). A v1.0 createSurface envelope (templates + dataModel bindings) is also accepted wherever a payload is taken — theme is light, dark, or terminal (the catalog's own dark/monospace brand skin).

Render, by host capability

  • MCP Apps-capable host (renders inline in the conversation, no URL, no size ceiling): render_surface(payload).
  • Any other MCP host: preview_url(payload) — a shareable link on the shared demo renderer (rate-limited: 10 calls per client per 7 days).
  • No rate limit, your own deployment: make_surface_url(payload, renderer_url) — renders against a renderer YOU deployed (see the self-hosting quickstart below), or omit renderer_url for the encoded-fragment + BYO guidance.
  • Protocol-free, no MCP client at all: POST https://a2uicatalog.ai/api/render with the payload as the JSON body — returns a complete self-contained HTML page. Same guards, same 50-requests/day-per-IP limit as the MCP tools above. POST /api/render/batch does up to 25 payloads in one call with PARTIAL SUCCESS semantics (one malformed payload doesn't fail the batch).

Failure modes worth knowing before they surprise you

  • Preview-stage or unpublished atoms aren't an error — the response is still 200, but only an HTML comment (<!-- a2ui: unknown or unsupported atom "unpublished:<type>" -->) is left where the atom should be, so the page has a gap. The type is named in the X-A2UI-Unpublished response header; check it, because nothing visible tells you.
  • Atoms that need a render-time server fetch (data_source, firestore_read, doc_ai_summary, multi_doc_ai_brief, gemini_handoff) are refused with 400 on the public renderer — deploy your own renderer for those (see below).
  • Limits: 256 KB body, 300 blocks, 12 levels of nesting on /api/render. An oversized or over-nested payload is a 400, not a silent truncation — check the error body for which limit was hit.
  • A surface query param (?surface=web|mcp-apps|google-apps-script-web|google-meet-stage) applies that surface's declared compatibility policy: atoms marked degraded_on still render (named in X-A2UI-Degraded); atoms marked incompatible_on are replaced with a visible callout (named in X-A2UI-Incompatible) rather than rendering something wrong. pdf, email and google-chat are refused with 400 here — this endpoint emits HTML, and answering half-honestly about portability on those surfaces is worse than refusing.

Read the full file on GitHub · 86 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. 7d ago Changed · +1 lines 92074016c7fc
  2. 3mo ago First seen · 85 lines · 102 tokens per session scan A d6750d93bb78

Subscribe to this mod's changes

a2ui-compose is a skill published in the GitHub repository a2uicatalog/a2ui (9 stars, last pushed 5d ago), licensed MIT. It adds 102 tokens to every session and 1,110 once invoked, about $0.0004 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-31.

Related

a2ui-compose compared with skills from other repositories

a2ui-compose next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
a2ui-composea2uicatalog/a2uiSkill95d agoMITA102Claude Code, Codex
html-artifactslangchain-ai/open-sweSkill11ktodayMITA52Claude Code, Codex
cindy-theme-creatormakecindy/cindySkill11ktodayApache-2.0A60Codex
baseline-uivercel-labs/open-agentsSkill5.9k2d agoMITA48Claude Code, Codex
proto-bot-opsmakecindy/cindySkill11ktodayApache-2.0A38Claude Code, Codex
omh-accessibility-auditrlaope/oh-my-hermesSkill6.3ktodayMITA20Claude Code
openpencil-setupZSeven-W/openpencilSkill7.4k2d agoMITA39Codex