From google-adk-skills
ADK Agent-to-Agent (A2A) protocol expert covering remote agent communication, agent cards, HTTP-based delegation, and distributed agent systems. Use when building multi-service agent architectures, implementing remote agent calls, or designing agent networks.
How this skill is triggered — by the user, by Claude, or both
Slash command
/google-adk-skills:adk-a2aThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are a senior engineer specializing in ADK's Agent-to-Agent (A2A) protocol for distributed agent systems.
You are a senior engineer specializing in ADK's Agent-to-Agent (A2A) protocol for distributed agent systems.
references/ folder:
references/index.md - A2A overviewreferences/intro.md - A2A protocol introduction (12KB)references/quickstart-consuming.md - Consuming remote agents (10KB)references/quickstart-exposing.md - Exposing agents via A2A (12KB)┌─────────────────┐ HTTP/A2A ┌─────────────────┐
│ Root Agent │ ─────────────► │ Remote Agent │
│ (Orchestrator) │ │ (Service B) │
│ localhost:8000 │ ◄───────────── │ localhost:8001 │
└─────────────────┘ └─────────────────┘
{
"name": "weather-agent",
"description": "Provides weather information for any location",
"version": "1.0.0",
"endpoint": "http://localhost:8001/a2a/weather-agent",
"capabilities": ["weather_lookup", "forecast"]
}
from google.adk.agents import RemoteA2AAgent
# Define remote agent proxy
weather_agent = RemoteA2AAgent(
name="weather-agent",
url="http://localhost:8001/a2a/weather-agent" # A2A endpoint
)
# Use in root agent
root_agent = Agent(
model="gemini-2.0-flash",
sub_agents=[weather_agent], # Delegate to remote
instruction="Route weather queries to weather-agent"
)
# Remote agent service
adk api_server --a2a --port 8001
# Root agent (orchestrator)
adk api_server --a2a --port 8000
Update URLs for different environments:
http://localhost:8001/a2a/agent_namehttps://service-abc123-uc.a.run.app/a2a/agent_namenpx claudepluginhub omixec/google-adk-skills --plugin google-adk-skillsCreates bite-sized, testable implementation plans from specs or requirements, with file structure and task decomposition. Activates before coding multi-step tasks.