a2a-protocol
Was er macht
Dieser Skill erklärt, wie sich Agent-Native-Apps über das A2A-Protokoll registrieren und gegenseitig authentifizieren. Er behandelt das Verbinden einer App mit einer anderen und die Fehlersuche bei einem entfernten Agenten, der sich nicht anmeldet. Er richtet sich an Entwickler, die Apps miteinander verbinden.
Wann du ihn nutzt
- ✓Wenn ein Agent einer Agent-Native-App den Agenten einer anderen App aufrufen soll.
- ✓Wenn sich ein entfernter Agent nicht authentifizieren lässt und du den Grund finden musst.
- ✓Wenn du die Skills einer App einer Partner-App zugänglich machen willst.
Link zum Skill
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/a2a-protocol/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Kannst du meine Berichts-App mit meiner Datenapp verbinden, damit der Berichts-Agent dort Zahlen abfragen kann?”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Skill beschreibt zwei Schritte: die andere App als entfernten Agenten registrieren und ein gemeinsames Geheimnis teilen, damit die signierten Tokens geprüft werden können. Beide Schritte müssen stehen, damit der Aufruf funktioniert.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
A2A Protocol (Agent-to-Agent)
Rule
Agents call other agents over A2A, a JSON-RPC protocol for discovery and delegation. Use it only when the user explicitly asks to involve a peer, or the requested outcome requires data, credentials, or a capability owned by that peer and unavailable through the local app's actions. The local app's actions are the default; a peer's availability or ability to enrich a result is not enough. When a peer supplies input, keep authoring and editing artifacts native to the local app here.
When a handoff qualifies under the rule above, preserve the peer boundary: do not have app A generate and execute raw SQL against app B's database, or expose B's internal tools directly to A as a substitute for delegation. The receiving agent has context, skills, and guardrails the caller doesn't. If a justified A2A call is unreliable, fix the delegation path (timeouts, retries, or typed terminal states) instead of bypassing it app by app.
Connecting app A to an Agent-Native app B is two independent things, and both must be true:
- B is registered on A as a
remote-agents/<id>.jsonresource. - A and B share a secret, so A's signed JWT verifies on B.
Neither is a code change, and neither is symmetric. Registering B on A does not let B call A. A hosted peer uses provider-specific endpoint and credential metadata in place of the shared Agent-Native secret, but it still does not make the provider's model or SDK an A2A endpoint.
A2A is already mounted
createAgentChatPlugin calls mountA2A for every app, so a generated app
already serves:
GET /.well-known/agent-card.json— public discovery, with a larger authenticated capability view for verified sibling callersPOST /_agent-native/a2a— JSON-RPC, authenticated
Do not add a mountA2A server plugin to enable A2A; it is on. Hand-mounting is
only for a bespoke card or a custom handler (see Custom mount below).
The client falls back to POST /a2a for external peers that only expose that
path. New agent-native apps should call /_agent-native/a2a.
Registering a remote agent
A remote agent is a row in the resources table, not a file on disk. Path
remote-agents/<id>.json, owner SHARED_OWNER, content:
{
"id": "analytics",
"name": "Analytics",
"description": "Queries analytics data across providers",
"url": "https://analytics.example.com",
"color": "#6B7280",
"cardUrl": "https://analytics.example.com/.well-known/agent-card.json",
"auth": {
"type": "bearer",
"credentialRef": "ANALYTICS_A2A_TOKEN"
}
}
url is the only required endpoint field. cardUrl is the optional discovery
URL for providers that do not serve /.well-known/agent-card.json. The client
reads the protocol version from the agent card. Pass protocolVersion directly
to A2AClient when a provider's card omits it. The optional auth descriptor is
non-secret connection metadata. Use
{ "type": "bearer", "credentialRef": "..." } for a vault-backed bearer
credential, or { "type": "oauth-client-credentials", "tokenUrl": "...", "clientId": "...", "clientSecretRef": "...", "scope": "..." } when the
peer issues OAuth client-credentials tokens. credentialRef and
clientSecretRef are references, never secret values.
Do not add apiKey, env, skills, or token values to a manifest. Resolve
credentials server-side from the workspace connection or vault. A direct
A2AClient call can pass cardUrl and protocolVersion while a provider
adapter is being used, but browser code must never receive the credential.
Four ways to create it, all writing the same row:
| Surface | Where |
|---|---|
| Settings → Agent → Sub-agents → Connect agent (owners and admins) | any app with the Settings shell |
| Agent page → Connections | apps mounting AgentTabsPage |
| Dispatch → Agents → Add external agent | workspace dispatch |
| The agent itself | resources tool, action: "write", --scope shared |
The last one matters for template apps with no Code tab: "connect me to
https://analytics.example.com" is a complete instruction. remote-agents/ is
whitelisted as a durable control path, so the write is workspace-scoped, and it
takes effect on the next discoverAgents() call with no restart.
First-party templates are seeded automatically and overlaid on top of manifests,
so Mail, Calendar, and friends appear without registration. In dev they
resolve to http://localhost:<devPort>; a manifest pointing at l
Häufige Fragen
Kann die andere App nach der Registrierung auch zurückrufen?
Nein. Die Verbindung funktioniert nur in eine Richtung, daher muss jede Seite einzeln eingerichtet werden.
Wann sollte eine App eine Partner-App aufrufen?
Der Skill sagt, nur wenn der Nutzer es verlangt oder die Partner-App Daten oder eine Fähigkeit hat, die der lokalen App fehlt.
Was ist A2A?
Es ist ein JSON-RPC-Protokoll, mit dem sich Agenten gegenseitig finden und Aufgaben übergeben können.
Details
Originalbeschreibung des Autors
How agent-native apps discover, authenticate with, and call each other over A2A. Use when connecting one app to another, debugging a remote agent that won't authenticate, exposing skills to peers, or calling agents from scripts.
repo: BuilderIO/agent-native
Beliebtheit
- GitHub-Sterne
- 7.6k
- Platz im Ranking
- #13128
- Lizenz
- MIT
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
design-exploration
7.6kHilft deinem Agenten, mehrere UI-Design-Richtungen nebeneinander zu erkunden, dich eine auswählen zu lassen und das gewählte Design danach zu verfeinern.
visual-edit
7.6kHilft deinem Agenten, eine laufende lokale App in einem visuellen Editor zu öffnen, damit du ihre echten Bildschirme gemeinsam prüfen und bearbeiten kannst.
turn-into-app
7.6kVerwandelt einen Arbeitsablauf, eine Tabelle oder ein Projekt in eine ausgearbeitete visuelle App mit gefüllten Bildschirmen und einem Agenten im Hintergrund.
visual-plan
7.6kVerwandelt einen einfachen Textplan in einen interaktiven visuellen Plan mit Diagrammen, Dateiübersichten, Code-Ausschnitten und offenen Fragen.
Ähnliche Skills
api-connector-builder
280kLässt deinen Agenten neue API-Anbindungen nach dem bestehenden Muster bauen. Nutze es, wenn du eine weitere Integration ergänzen willst, ohne neue Wege einzuführen.
api-design
280kHilft deinem Agenten, REST-APIs nach Best Practices zu entwerfen. Nützlich für die Kommunikation, die Fehlerausgabe und die Organisation von Daten.
backend-patterns
280kHilft deinem Agenten bei Architekturmustern für die Serverseite und bei der Datenbankoptimierung. Nützlich zum Bauen und Prüfen von Server-Code.