/a2a-protocol:a2a-sdk-patternsfrom a2a-protocol
Provides installation, configuration, and authentication patterns for A2A Protocol SDKs across Python, TypeScript, Java, C#, and Go. Includes setup scripts and templates.
Ships in a2a-protocol. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Purpose: Provide installation, configuration, and usage patterns for A2A Protocol SDKs across multiple programming languages.
Activation Triggers:
Supported Languages:
# Install SDK
./scripts/install-python.sh
# Verify installation
./scripts/validate-python.sh
# Install SDK
./scripts/install-typescript.sh
# Verify installation
./scripts/validate-typescript.sh
# Install SDK
./scripts/install-java.sh
# Verify installation
./scripts/validate-java.sh
# Install SDK
./scripts/install-csharp.sh
# Verify installation
./scripts/validate-csharp.sh
# Install SDK
./scripts/install-go.sh
# Verify installation
./scripts/validate-go.sh
All installation scripts are in scripts/ directory:
install-python.sh - Install Python SDK via pipinstall-typescript.sh - Install TypeScript SDK via npm/yarninstall-java.sh - Install Java SDK via Maven/Gradleinstall-csharp.sh - Install C# SDK via NuGetinstall-go.sh - Install Go SDK via go getValidation scripts verify installation and dependencies:
validate-python.sh - Check Python SDK installationvalidate-typescript.sh - Check TypeScript SDK installationvalidate-java.sh - Check Java SDK installationvalidate-csharp.sh - Check C# SDK installationvalidate-go.sh - Check Go SDK installationTemplates are in templates/ directory:
Environment Setup:
env-template.txt - Environment variable template (all languages)python-config.py - Python configuration exampletypescript-config.ts - TypeScript configuration examplejava-config.xml - Java Maven configurationcsharp-config.csproj - C# project configurationgo-mod.txt - Go module configurationAuthentication:
auth-api-key-template.txt - API key authenticationauth-oauth-template.txt - OAuth authenticationauth-jwt-template.txt - JWT authenticationAll SDKs use environment variables for configuration:
# Required
A2A_API_KEY=your_api_key_here
A2A_BASE_URL=https://api.a2a.example.com
# Optional
A2A_TIMEOUT=30
A2A_RETRY_ATTEMPTS=3
A2A_LOG_LEVEL=info
CRITICAL: Always use placeholders in committed files. Create .env.example with placeholder values only.
All SDKs support three authentication methods:
See templates/auth-*-template.txt for implementation patterns.
All SDKs provide consistent error handling:
A2AConnectionError - Network/connectivity issuesA2AAuthenticationError - Invalid credentialsA2ARateLimitError - Rate limit exceededA2AValidationError - Invalid request dataSee examples/error-handling-*.md for language-specific patterns.
pip install a2a-protocolexamples/python-basic.pynpm install @a2a/protocolexamples/typescript-basic.tsexamples/java-basic.javadotnet add package A2A.Protocolexamples/csharp-basic.csgo get github.com/a2a/protocol-goexamples/go-basic.goPackage not found:
# Python
pip install --upgrade pip
pip install a2a-protocol
# TypeScript
npm cache clean --force
npm install @a2a/protocol
# Java
mvn clean install -U
# C#
dotnet restore --force
# Go
go clean -modcache
go get -u github.com/a2a/protocol-go
Version conflicts: Run the appropriate validation script to check dependencies:
./scripts/validate-<language>.sh
Environment Variables:
.env files (add to .gitignore).env.example with placeholdersAPI Keys:
Network Security:
Complete examples for each language:
examples/python-basic.py - Basic Python usageexamples/python-async.py - Async Python usageexamples/typescript-basic.ts - Basic TypeScript usageexamples/java-basic.java - Basic Java usageexamples/csharp-basic.cs - Basic C# usageexamples/go-basic.go - Basic Go usageexamples/error-handling-python.md - Python error handlingexamples/error-handling-typescript.md - TypeScript error handlingexamples/error-handling-java.md - Java error handlingOfficial Documentation:
GitHub Repositories:
Version: 1.0.0 Protocol Compatibility: A2A Protocol 1.0+
README.md (opens in a new tab)examples/csharp-basic.cs (opens in a new tab)examples/error-handling-java.md (opens in a new tab)examples/error-handling-python.md (opens in a new tab)examples/error-handling-typescript.md (opens in a new tab)examples/go-basic.go (opens in a new tab)examples/java-basic.java (opens in a new tab)examples/python-async.py (opens in a new tab)examples/python-basic.py (opens in a new tab)examples/typescript-basic.ts (opens in a new tab)scripts/install-csharp.sh (opens in a new tab)scripts/install-go.sh (opens in a new tab)scripts/install-java.sh (opens in a new tab)scripts/install-python.sh (opens in a new tab)scripts/install-typescript.sh (opens in a new tab)scripts/validate-csharp.sh (opens in a new tab)scripts/validate-go.sh (opens in a new tab)scripts/validate-java.sh (opens in a new tab)scripts/validate-python.sh (opens in a new tab)scripts/validate-skill.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Python, TypeScript, Java, C#, Go
Claude Code installs this plugin but refuses to load it
hooks/hooks.json: hooks: must be an object mapping event names to matcher arrays — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
hooks/hooks.json: hooks: must be an object mapping event names to matcher arrays — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
Checked against Claude Code 2.1.332. The listing below is what the repository ships; Claude Code doesn't load it as published.
5 skills in this plugin
/a2a-executor-patternsAgent-to-Agent (A2A) executor implementation patterns for task handling, execution management, and agent coordination. Use when building A2A executors, implementing task handlers, creating agent execution flows, or when user mentions A2A protocol, task execution, agent executors, task handlers, or agent coordination./a2a-mcp-integrationIntegration patterns for combining Agent-to-Agent (A2A) Protocol with Model Context Protocol (MCP) for hybrid agent communication. Use when building systems that need both agent-to-agent communication and agent-to-tool integration, implementing composite architectures, or when user mentions A2A+MCP integration, hybrid protocols, or multi-agent tool access./Other plugins' skills for the same job