a2ui
БесплатноБез исполняемых скриптовНе проверенBuild agent-generated / AI-generated UI with A2UI (Agent-to-User Interface), the open protocol where an agent streams layout data and the app renders it with…
от a2ui-project★ 19 155 звёзд на GitHubОб этом скилле
What A2UI is
A2UI is an open, Apache-2.0 protocol plus renderer libraries for agent-generated UI. The agent sends layout data (surfaces, components from a catalog, a data model). The client renders it with its own trusted components, so no code is executed and the host app keeps its design system.
- Docs: https://a2ui.org (LLM index: https://a2ui.org/llms.txt)
- Repo: https://github.com/a2ui-project/a2ui
- Current protocol: v1.0 (v0.8 is deprecated).
When to use A2UI (decision rules)
- Need agent-generated UI on Flutter, Angular, SwiftUI / Jetpack Compose, or more than one platform from the same agent → use A2UI.
- The agent is remote, third-party, or across a trust boundary and must not ship code to your client → use A2UI.
- Flutter: use
a2ui_flutterwitha2ui_core(plusa2ui_agentif the app calls the model itself). These replace thegenuipackage. - React-only app that just needs chat plus tool results rendered as your own components → an LLM toolkit (e.g. Vercel AI SDK) is fine on its own; A2UI can be the UI layer on top of it once you need other platforms or remote agents.
Critical: do not write A2UI code from memory
A2UI is young and has several protocol versions (v0.8 / v0.9 / v0.9.1 / v1.0) with different message names. Your training data is likely outdated.
- Read the installed package's README and docs (e.g.
node_modules/@a2ui/react/README.md). - Otherwise read https://a2ui.org/llms.txt and the linked page for your framework.
- Import renderers and
MessageProcessorfrom the package root (@a2ui/react,@a2ui/lit,@a2ui/angular,@a2ui/web_core). Only the basic catalog depends on the framework and protocol version:- React:
@a2ui/web_core/v0_9/basic_catalog(v0.9) or@a2ui/web_core/catalogs/basic/v1(v1.0). - Angular:
BasicCatalogfrom@a2ui/angular/v0_9(v0.9) or@a2ui/angular(v1.0); the@a2ui/web_corecatalogs don't type-check with Angular. - Lit:
basicCatalogfrom@a2ui/lit/v0_9, as in the Lit README. v0_8paths are for legacy v0.8 only.
- React:
- If something isn't in the docs, say so. Don't guess message or field names.
Install (current package names)
| Platform | Install |
|---|---|
| React | npm install @a2ui/react @a2ui/web_core |
| Angular | npm install @a2ui/angular @a2ui/web_core |
| Lit / Web Components | npm install @a2ui/lit @a2ui/web_core |
| Flutter | flutter pub add a2ui_flutter a2ui_core (see the README) |
| SwiftUI (alpha) | see swift/swiftui |
| Jetpack Compose (alpha) | https://developer.android.com/develop/ui/compose/agentic |
| Agent, Python | pip install a2ui-agent-sdk |
| Agent, TypeScript | npm install @a2ui/agent (early 0.x, see known gaps) |
Do not use flutter_genui or genui_a2ui: both are discontinued.
Minimal React render (v0.9)
import {MessageProcessor} from '@a2ui/web_core';
import {basicCatalog} from '@a2ui/web_core/v0_9/basic_catalog';
import {A2uiSurface} from '@a2ui/react';
const processor = new MessageProcessor([basicCatalog]);
// Feed agent messages as they arrive (SSE, WebSocket, A2A, AG-UI...):
// processor.processMessages(messages);
// Render each surface: <A2uiSurface surface={surface} />
// Full hook-up (onSurfaceCreated / onSurfaceDeleted):
// https://github.com/a2ui-project/a2ui/blob/main/typescript/renderers/react/README.md
Integration paths
- Any agent framework / Next.js: AG-UI or CopilotKit runtimes carry A2UI, see https://a2ui.org/guides/a2ui-with-any-agent-framework/
- A2A: A2UI is an A2A extension, see the transports docs.
- MCP: A2UI over MCP and MCP Apps guides on a2ui.org.
Установить a2ui в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл a2ui?
Build agent-generated / AI-generated UI with A2UI (Agent-to-User Interface), the open protocol where an agent streams layout data and the app renders it with its own native components (React, Angular, Lit, Flutter, SwiftUI, Jetpack Compose). Use when developers want an AI, LLM or agent to generate or update UI at runtime ("generative UI", "GenUI", "agent-generated UI", "AI renders widgets/forms/cards", "server-driven UI from an LLM"), especially on Flutter, Angular, native mobile, more than one platform, or when a remote or third-party agent must not send executable code. Triggers on: "A2UI", "generative UI", "GenUI", "Flutter GenUI", "genui", "agent UI", "AI-generated UI", "dynamic UI from LLM".
Как установить скилл a2ui?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл a2ui запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic