/a2a-protocol:agent-card-templatesfrom a2a-protocol
Provides A2A agent card JSON templates with schema validation and examples for different agent types. Useful when implementing A2A protocol agent discovery, authentication, and capability definitions.
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 reusable JSON templates for creating A2A (Agent-to-Agent) protocol agent cards following the official specification.
Activation Triggers:
Key Resources:
templates/schema.json - Complete JSON schema for validationtemplates/basic-agent-card.json - Simple agent card templatetemplates/multi-capability-agent-card.json - Agent with multiple skillstemplates/authenticated-agent-card.json - Agent with auth requirementstemplates/streaming-agent-card.json - Agent with streaming supportexamples/ - Real-world agent card examplesscripts/validate-agent-card.sh - Schema validation scriptscripts/generate-agent-card.sh - Interactive card generatorscripts/test-agent-card.sh - Format and structure testingCRITICAL: When generating any configuration files or code:
❌ NEVER hardcode actual API keys or secrets ❌ NEVER include real credentials in examples ❌ NEVER commit sensitive values to git
✅ ALWAYS use placeholders: your_service_key_here
✅ ALWAYS create .env.example with placeholders only
✅ ALWAYS add .env* to .gitignore (except .env.example)
✅ ALWAYS read from environment variables in code
✅ ALWAYS document where to obtain keys
Placeholder format: {service}_{env}_your_key_here
Basic Identity:
id - Unique identifier (URI or UUID)name - Human-readable display nameprotocolVersion - A2A protocol version (e.g., "0.3")serviceEndpoint - Base URL for agent's A2A serviceprovider - Organization information (name, contactEmail, url)Security:
securitySchemes - Authentication scheme definitionssecurity - Required auth combinationsCapabilities:
capabilities - Feature flags (streaming, pushNotifications)description - Detailed agent purpose explanationlogo - URL to logo imageversion - Agent implementation versionskills - Array of agent capabilities with schemasextensions - Extension support declarationsmetadata - Custom key-value pairsUse for: Simple agents with minimal configuration
Template: templates/basic-agent-card.json
Features:
Use for: Agents with multiple skills and capabilities
Template: templates/multi-capability-agent-card.json
Features:
Use for: Agents with complex authentication requirements
Template: templates/authenticated-agent-card.json
Features:
Use for: Agents supporting real-time updates
Template: templates/streaming-agent-card.json
Features:
API Key:
{
"type": "apiKey",
"name": "X-API-Key",
"in": "header"
}
Bearer Token:
{
"type": "http",
"scheme": "bearer"
}
OAuth 2.0:
{
"type": "oauth2",
"flows": {
"authorizationCode": {
"authorizationUrl": "https://provider.example/oauth/authorize",
"tokenUrl": "https://provider.example/oauth/token",
"scopes": {
"read": "Read access",
"write": "Write access"
}
}
}
}
Basic Auth:
{
"type": "http",
"scheme": "basic"
}
Choose template based on agent requirements:
# List available templates
ls templates/
# View template content
cat templates/basic-agent-card.json
Use interactive generator:
./scripts/generate-agent-card.sh
# Or specify template directly
./scripts/generate-agent-card.sh --template basic
Generator prompts for:
Validate against schema:
# Validate structure and required fields
./scripts/validate-agent-card.sh agent-card.json
# Test format and completeness
./scripts/test-agent-card.sh agent-card.json
Validation checks:
Host at standard location:
https://<base_url>/.well-known/agent.json
Or alternative:
https://<base_url>/.well-known/agent-card.json
Each skill in the agent card includes:
{
"name": "skill-identifier",
"description": "What the skill does",
"inputSchema": {
"type": "object",
"properties": {
"param1": {"type": "string"}
},
"required": ["param1"]
},
"outputSchema": {
"type": "object",
"properties": {
"result": {"type": "string"}
}
},
"inputModes": ["text/plain", "application/json"],
"outputModes": ["application/json"],
"tags": ["category", "feature"],
"examples": [
{
"input": {"param1": "example"},
"output": {"result": "example output"}
}
]
}
Purpose: Validate agent card against JSON schema Usage:
./scripts/validate-agent-card.sh <agent-card.json>
Checks:
Purpose: Interactive agent card generator Usage:
./scripts/generate-agent-card.sh [--template TEMPLATE]
Options:
--template basic|multi|authenticated|streaming--output FILE - Output file path--interactive - Prompt for all valuesPurpose: Test agent card format and structure Usage:
./scripts/test-agent-card.sh <agent-card.json>
Tests:
examples/calculator-agent.md - Simple math calculation agent
examples/translation-agent.md - Multi-language translation service
examples/data-analysis-agent.md - Complex data processing agent
Each example includes:
✓ Use standard well-known URI - /.well-known/agent.json
✓ Include comprehensive descriptions - Help with discovery
✓ Define clear input/output schemas - Enable validation
✓ Specify authentication requirements - Security first
✓ Version your agent cards - Track changes
✓ Test card accessibility - Ensure HTTP GET works
✓ Document all skills - Include examples
✓ Use placeholder credentials - Never hardcode secrets
Issue: Agent card not discovered
Fix: Verify /.well-known/agent.json is accessible via HTTP GET
Issue: Authentication failures
Fix: Check securitySchemes and security match implementation
Issue: Schema validation errors
Fix: Run validate-agent-card.sh to identify missing/invalid fields
Issue: Skills not recognized Fix: Ensure input/output schemas are valid JSON Schema format
A2A Protocol Specification: https://a2a-protocol.org/latest/specification/ Agent Card Concepts: https://agent2agent.info/docs/concepts/agentcard/ JSON Schema Reference: https://json-schema.org/
Supported A2A Protocol Version: 0.3+ Template Version: 1.0.0 Last Updated: 2025-12-20
examples/calculator-agent.md (opens in a new tab)examples/data-analysis-agent.md (opens in a new tab)examples/translation-agent.md (opens in a new tab)scripts/generate-agent-card.sh (opens in a new tab)scripts/validate-agent-card.sh (opens in a new tab)templates/authenticated-agent-card.json (opens in a new tab)templates/basic-agent-card.json (opens in a new tab)templates/multi-capability-agent-card.json (opens in a new tab)templates/schema.json (opens in a new tab)templates/streaming-agent-card.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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./a2a-sdk-patternsSDK installation and setup patterns for Agent-to-Agent Protocol across Python, TypeScript, Java, C#, and Go. Use when implementing A2A protocol, setting up SDKs, configuring authentication, or when user mentions SDK installation, language-specific setup, or A2A integration./a2a-server-configAgent-to-Agent (A2A) server configuration patterns for HTTP, STDIO, SSE, and WebSocket transports. Use when building A2A servers, configuring MCP transports, setting up server endpoints, or when user mentions A2A configuration, server transport, MCP server setup, or agent communication protocols.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.
Other plugins' skills for the same job