Index of every page on this site: llms.txt
All skills
ag-ui-protocol avatar

/ag-ui-a2ui-integration

@c31e1e8
by ag-ui-protocolag-ui-protocol/ag-ui21k stars
2,167
Run it yourself

Use when adding A2UI rendering to any AG-UI-supported framework or custom AG-UI application, scaffolding an AG-UI app that should render A2UI, adapting an AG-UI integration to emit A2UI surfaces, or wiring the AG-UI A2UI middleware/toolkit with a compatible renderer.

Use this Skill: https://skilld.dev/gh/ag-ui-protocol/ag-ui/ag-ui-a2ui-integration

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesverification.md

≈1k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Verification

Use this checklist before calling an AG-UI + A2UI integration complete.

Static Checks

  • Install dependencies with the app's existing package manager.
  • Run the app's typecheck, lint, and unit tests when available.
  • Run the AG-UI package or integration tests touched by the change.
  • Confirm no invented package names, CLI flags, or import paths were added.

Runtime Checks

  • Start the AG-UI backend or runtime route.
  • Start the frontend app.
  • Trigger a user prompt that should produce A2UI.
  • Confirm the stream begins with a valid AG-UI run and ends with RUN_FINISHED or RUN_ERROR.
  • For dynamic schema, confirm generate_a2ui leads to streamed render_a2ui tool-call args and ACTIVITY_SNAPSHOT events with activityType: "a2ui-surface".
  • For fixed schema, confirm the backend tool result contains an a2ui_operations envelope.
  • Confirm an A2UI surface renders, not just a text explanation.
  • Confirm a user interaction in the rendered surface flows back to the agent.
  • Check the browser console and backend logs for schema, hydration, stream, or action bridge errors.

Common Failure Modes

Symptom Likely cause Fix
No A2UI surface appears A2UI is enabled only on the client or only on the runtime Enable renderer/catalog plus A2UIMiddleware or runtime A2UI config
Agent describes UI in prose Agent lacks generate_a2ui or fixed-schema backend tools Use the framework A2UI tool factory/auto-injection or return a2ui_operations
Custom component never renders Catalog id or component keys differ between server and client Register the catalog and align defaultCatalogId, catalogId, and names
Dynamic surface appears only at end Nested render_a2ui args are not streaming to the AG-UI wire Use the adapter's streaming A2UI tool path, not a non-streaming sub-agent invoke
Action clicks do nothing The action bridge is not reaching forwardedProps.a2uiAction Verify the TypeScript middleware passes A2UI user action: plus the complete action JSON as user context to the agent
Skeletons duplicate or flicker Middleware is applied twice or catalog/tool names are misconfigured Use either runtime-level or per-agent middleware for each agent, not both
Catalog not found in the renderer Model or server stamped a catalog id the client did not register Forward the catalog to the provider (a2ui={{ catalog }}, CopilotKit >= 1.61.2) so its id is auto-derived; otherwise set defaultCatalogId to the renderer catalog id
Invalid component tree keeps retrying Components fail toolkit validation against the inline/client catalog Fix required props, child refs, root layout, and component names

A runtime smoke test should show the AG-UI stream in logs or devtools, an a2ui-surface activity or a2ui_operations result, a rendered A2UI surface in the page, and one user interaction returning through AG-UI.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts6d3 checks · Risk SAFE
  • Gen Agent Trust Hub7d

    The skill provides architectural patterns and implementation guidance for integrating the AG-UI protocol with A2UI rendering frameworks. It follows standard developer integration practices, using vendor-owned packages and well-known services. Security considerations for dynamic UI generation and user action feedback loops are addressed via schema validation and context separation.

  • Socket6d

    No alerts

  • Snyk7d

    Risk: LOW · No issues

Signed by skilld at c31e1e8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated 2 weeks ago
version
1.1.1

README badge

README badge for ag-ui-protocol/ag-ui/ag-ui-a2ui-integration