Skip to content
Skills Library
Design & UX · Building & coding

a2ui

/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",

Repository
a2ui ↗
Licence
MIT
Last repository change
13.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
10
Deprecation

No signals detected. Repository changed on 13.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

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",

Triggers from the description

generative UIGenUIagent-generated UIAI renders widgets/forms/cardsserver-driven UI from an LLMA2UI
Original author description

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",

How it works

  1. What A2UI is
  2. When to use A2UI (decision rules)
  3. Critical: do not write A2UI code from memory
  4. Install (current package names)
  5. Minimal React render (v0.9)
  6. Integration paths
Original SKILL.md headings · 75 lines, 509 words
SKILL.md preview
---
name: a2ui
description: >-
  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".
---

## 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_flutter` with `a2ui_core` (plus `a2ui_agent` if the app
  calls the model itself). These replace the `genui` package.
- **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.

1. Read the installed package's README and docs (e.g. `node_modules/@a2ui/react/README.md`).
2. Otherwise read https://a2ui.org/llms.txt and the linked page for your framework.
3. Import renderers and `MessageProcessor` from 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: `BasicCatalog` from `@a2ui/angular/v0_9` (v0.9) or `@a2ui/angular` (v1.0); the `@a2ui/web_core` catalogs don't type-check with Angular.
   - Lit: `basicCatalog` from `@a2ui/lit/v0_9`, as in the Lit README.
   - `v0_8` paths are for legacy v0.8 only.
4. 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](https://github.com/a2ui-project/a2ui/tree/main/dart/a2ui_flutter))                      |
| SwiftUI (alpha)         | see [swift/swiftui](https://github.com/a2ui-project/a2ui/tree/main/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](https://github.com/a2ui-project/a2ui/blob/main/typescript/agents/a2ui_agent/KNOWN_GAPS.md)) |

Do **not** use `flutter_genui` or `genui_a2ui`: both are discontinued.

## Minimal React render (v0.9)

```tsx
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.

Versions

RepositoryScoreLicence
This page · a2ui-project/a2ui100MIT
TerminalSkills/skills100Apache-2.0

Database snapshot: 13.11.2026 · package version 52f379510138 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100unslopovich
    Find and fix AI-generated, vibe-coded, or website-looking UI and UX in mobile apps on any stack, including SwiftUI, UIKit, Jetpack Compose, React Native, Expo, Flutter, Ionic, Capacitor, Angular Native, and NativeScript. Use when a mobile app looks generic or AI-made, feels like…
  • 100design-code
    Generate production-ready, accessible, token-driven component code for ANY framework (React+Tailwind, Next.js, SwiftUI, Vue, Svelte, Angular, Solid, Web Components/Lit, React Native, Flutter, Jetpack Compose, vanilla CSS, or CSS-in-JS). Use when the user wants working UI code…
  • 100handfeel
    Audits and fixes the "AI look" in mobile apps built with Expo/React Native, Flutter, SwiftUI or Jetpack Compose, using sourced Apple, Android and framework rules. Use when the user asks to unslop, polish, de-AI, audit, review or score a mobile app, to "make it feel native", or…
  • 95mobile-app-design
    Design, implement, redesign, or review native mobile app screens and flows for iOS and Android, including SwiftUI, UIKit, Jetpack Compose, and React Native. Use when a mobile interface feels generic, when adapting an existing app, or when a task needs platform-aware interaction…
  • 100mobile-interface-craft
    Design, implement, review, and refine native mobile screens and task flows for iOS and Android, with focused guidance for React Native, Expo, SwiftUI, Flutter, and Jetpack Compose. Use for mobile navigation, forms, keyboard and safe-area behavior, adaptive text, native controls,…
  • 80ck:mobile-development
    Build mobile apps with React Native, Flutter, Swift/SwiftUI, Kotlin/Jetpack Compose. Use for iOS/Android, mobile UX, performance optimization, offline-first, app store deployment.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.