agentleFS
GoogleKnown publishergoogle/A2UI/skills/a2ui/SKILL.md

a2ui

Skill17k starsChanged 7 days agoApache-2.0View on GitHub

Build agent-generated / AI-generated UI with A2UI (Agent-to-User Interface), the open protocol where an agent streams declarative JSON 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".

  • Installs packages

2 other projects use a version of this; 1 new project in the last 4 weeks, against 0 the 4 before.

Adopted by

Surging: 1 new project took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Sep 13: 0 new projectsWeek of Sep 20: 0 new projectsWeek of Sep 27: 0 new projectsWeek of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 1 new project
Sep 2026Oct 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 1 in all, so this is a hint, not a trend.

Most recently taken up by

Who's talking about google/A2UI

The biggest 5 of 73 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 73

Talked about on GitHub, YouTube, Bluesky and Hacker News (73 times).

On GitHub · 50

45 more on GitHub

On YouTube · 17

12 more on YouTube

On Bluesky · 5

On Hacker News · 1

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Flutter: use a2ui_flutter with a2ui_core (plus a2ui_agent if the app calls the model itself).

    line 33
  2. Very specific:

    Read the installed package's README and docs (e.g.

    line 44
  3. Very specific:

    Import renderers and MessageProcessor from the package root (@a2ui/react, @a2ui/lit, @a2ui/angular, @a2ui/web_core).

    line 46
  4. Distinctive:

    If something isn't in the docs, say so.

    line 51
  5. Very specific:

    Do not use flutter_genui or genui_a2ui: both are discontinued.

    line 66

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

What A2UI is

A2UI is an open, Apache-2.0 protocol plus renderer libraries for agent-generated UI. The agent sends declarative JSON (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.

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)

PlatformInstall
Reactnpm install @a2ui/react @a2ui/web_core
Angularnpm install @a2ui/angular @a2ui/web_core
Lit / Web Componentsnpm install @a2ui/lit @a2ui/web_core
Flutterflutter 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, Pythonpip install a2ui-agent-sdk
Agent, TypeScriptnpm 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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.