a2ui
Skill by a2ui-project
Guides an assistant to build agent-generated UI with the A2UI protocol, where an agent sends layout data and the app renders it with its own native components. Built for developers on Flutter, Angular, native mobile or multiple platforms.
Install a2ui
Built from the published package, never by AI.
git clone --depth 1 https://github.com/a2ui-project/a2ui /tmp/a2ui && mkdir -p ~/.claude/skills && cp -r /tmp/a2ui/skills/a2ui ~/.claude/skills/a2uiRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/a2ui-project/a2ui /tmp/a2ui && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/a2ui/skills/a2ui ~/.gemini/antigravity-cli/skills/a2uiAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives an AI assistant guidance for building agent-generated UI with A2UI (Agent-to-User Interface), an open Apache-2.0 protocol with renderer libraries. The agent sends layout data made of surfaces, catalog components and a data model, and the client renders it with its own trusted components. No code is executed, and the host app keeps its design system.
The skill covers when to choose A2UI, which packages to install for React, Angular, Lit, Flutter, SwiftUI, Jetpack Compose and Python or TypeScript agents, and a minimal React render example. It tells the assistant to check current docs instead of relying on memory, because the protocol has several versions. It suits developers building generative UI on Flutter, Angular, native mobile or across platforms, or where a remote agent must not send executable code.
Written from the project's SKILL.md and checked against it.
What it can do
- Platform decision rulesExplains when A2UI fits Flutter, Angular, native mobile, multi-platform or remote agent setups.
- Package installationLists current package names for React, Angular, Lit, Flutter, SwiftUI, Jetpack Compose and agent SDKs.
- React render exampleShows a minimal MessageProcessor and A2uiSurface setup for protocol v0.9.
- Integration pathsPoints to guides for AG-UI, CopilotKit, A2A and MCP integration with A2UI.
- Version-aware guidanceDirects the assistant to package docs or a2ui.org/llms.txt instead of guessing message names.
What you need
- npm for the React, Angular, Lit and TypeScript packages
- Flutter for the a2ui_flutter package
- Python and pip for the a2ui-agent-sdk package
Try asking
- Build a Flutter screen where my agent generates forms at runtime with A2UI
- Set up A2UI rendering in my React app using a MessageProcessor
- Which A2UI packages do I install for an Angular and SwiftUI app?
Good to know
- v0.8 is deprecated and the protocol has several versions with different message names.
- SwiftUI and Jetpack Compose support is marked alpha.
- The TypeScript agent package is early 0.x with known gaps.
- flutter_genui and genui_a2ui are discontinued and should not be used.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/a2ui/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB
Alternatives to a2ui
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
a2ui: common questions
Does A2UI let the agent run code on the client?
No. The agent sends layout data and the client renders it with its own trusted components, so no code is executed.
Which platforms does A2UI support?
The source lists React, Angular, Lit, Flutter, SwiftUI and Jetpack Compose. SwiftUI and Jetpack Compose are marked alpha.
Is A2UI open source?
The source describes A2UI as an open, Apache-2.0 protocol plus renderer libraries for agent-generated UI.
How do I install a2ui?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is a2ui free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is a2ui safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to a2ui?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
