headyai/heady-staging/heady-a2a-protocol
Claude Code and agent skill by headyai/heady-staging
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Use when implementing Agent-to-Agent (A2A) or Agent-to-UI (A2UI) communication protocols, inter-agent messaging, agent handoffs, or UI integration patterns in the Heady™ ecosystem. Keywords include A2A, A2UI, agent protocol, inter-agent, messaging, handoff, agent communication, protocol, and agent-to-agent.
Install
npx vskill@latest install headyai/heady-staging/heady-a2a-protocolSKILL.md
The same SKILL.md was published earlier as headyai/heady-staging/heady-a2a-protocol.
Heady™ A2A & A2UI Protocols
When to Use This Skill
Use this skill when the user needs to:
- Implement agent-to-agent communication
- Set up agent-to-UI message passing
- Design inter-agent handoff protocols
- Debug message routing between agents
- Integrate agents with frontend micro-frontends
Module Map
| Module | Path | Role | |
|---|---|---|---|
| a2a | src/protocols/a2a.js | Agent-to-Agent messaging protocol | |
| a2ui | src/protocols/a2ui.js | Agent-to-UI communication bridge |
Instructions
A2A Protocol (Agent-to-Agent)
- Messages use JSON-RPC 2.0 format with Heady™ extensions.
- Each agent has a unique agent_id and capability manifest.
- Discovery: Agents register capabilities in the agent registry.
- Routing: Messages route through the Conductor based on capability matching.
- Handoff: Structured context transfer using context capsules.
Message Format
Handoff Protocol
- Source agent serializes context capsule.
- Conductor validates target agent capability.
- Context capsule transferred with phi-weighted priority.
- Target agent acknowledges receipt and begins execution.
- Source agent receives completion notification.
A2UI Protocol (Agent-to-UI)
- Uses Server-Sent Events (SSE) for agent -> UI streaming.
- Uses WebSocket for bidirectional UI <-> agent communication.
- UI events map to agent actions through the action registry.
- Streaming tokens use SSE with chunked transfer encoding.
- UI state sync uses optimistic updates with reconciliation.
Event Types
| Event | Direction | Purpose | |
|---|---|---|---|
| agent.thinking | Agent -> UI | Show reasoning progress | |
| agent.response | Agent -> UI | Stream response tokens | |
| agent.tool_call | Agent -> UI | Display tool execution | |
| user.input | UI -> Agent | User message/action | |
| user.interrupt | UI -> Agent | Cancel current operation | |
| state.sync | Bidirectional | Synchronize shared state |
Security
- All A2A messages signed with agent keypair.
- A2UI messages authenticated via session token.
- Rate limiting per agent pair (phi-scaled: 89, 144, 233 msg/s).
- Context capsules encrypted in transit.
Output Format
- Protocol Configuration
- Message Flow Diagram
- Agent Capability Manifest
- Handoff Sequence
- Security Verification
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingheady-a2a-protocol/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/headyai/heady-staging/heady-a2a-protocol)