i2y/castella/castella-a2a
Claude Code and agent skill by i2y/castella
- community
Checking that the SKILL.md file is still in the repository.
Connect to A2A protocol agents from Castella. Communicate with agents, display agent cards, send messages, handle responses, and stream results.
Install
npx vskill@latest install i2y/castella/castella-a2aSKILL.md
Castella A2A Protocol Integration
A2A (Agent-to-Agent) is an open protocol for AI agent communication and discovery. Castella provides a client for connecting to A2A agents and displaying their information.
When to use: "connect to A2A agent", "A2AClient", "agent card", "send message to agent", "list agent skills", "A2A protocol", "stream agent response"
Quick Start
Connect to an A2A agent:
Installation
A2AClient
The main class for A2A communication:
Properties
| Property | Type | Description | |
|---|---|---|---|
name | str | Agent name | |
description | str | Agent description | |
version | str | Agent version | |
skills | list[AgentSkill] | Available skills | |
is_connected | bool | Connection status | |
supports_streaming | bool | Streaming capability | |
agent_card | AgentCard | Full agent metadata |
Methods
Agent Card
Access agent metadata via the agent card:
AgentSkill
Skills define agent capabilities:
Error Handling
Streaming Responses
For long-running responses:
AgentCardView Widget
Display agent card in Castella UI:
Integration with AgentChat
Use A2AClient with high-level chat components:
See the castella-agent-ui skill for more chat options.
Creating A2A Servers
For creating A2A servers, use python-a2a directly:
Best Practices
- Check capabilities before using features:
``python if client.supports_streaming: async for chunk in client.ask_stream(msg): ... ``
- Handle errors gracefully:
``python try: response = client.ask(msg) except A2AConnectionError: # Retry or show offline message ``
- Use async for UI responsiveness:
``python response = await client.ask_async(msg) ``
- Inspect skills for routing:
``python if client.has_skill("search"): # Route search queries to this agent ``
Reference
references/types.md- AgentCard, AgentSkill, Message typesreferences/streaming.md- Streaming response handlingscripts/- Executable examples (a2a_connect.py, a2a_async.py)- A2A Protocol: https://a2a-protocol.org/
- python-a2a: https://github.com/themanojdesai/python-a2a
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 repositoryCheckingskills/castella-a2a/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/i2y/castella/castella-a2a)