design-a2a-agent-card
Design an A2A Agent Card (.well-known/agent.json) manifest describing agent capabilities, skills, authentication requirements, and supported content types. Use when building an agent that must be discoverable by other A2A-compliant agents, exposing capabilities for multi-agent orchestration, migrating an existing agent to the A2A protocol, defining the public contract for an agent before implementation, or integrating with agent registries that consume Agent Cards.
Best use case
design-a2a-agent-card is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Design an A2A Agent Card (.well-known/agent.json) manifest describing agent capabilities, skills, authentication requirements, and supported content types. Use when building an agent that must be discoverable by other A2A-compliant agents, exposing capabilities for multi-agent orchestration, migrating an existing agent to the A2A protocol, defining the public contract for an agent before implementation, or integrating with agent registries that consume Agent Cards.
Teams using design-a2a-agent-card should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/design-a2a-agent-card/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How design-a2a-agent-card Compares
| Feature / Agent | design-a2a-agent-card | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Design an A2A Agent Card (.well-known/agent.json) manifest describing agent capabilities, skills, authentication requirements, and supported content types. Use when building an agent that must be discoverable by other A2A-compliant agents, exposing capabilities for multi-agent orchestration, migrating an existing agent to the A2A protocol, defining the public contract for an agent before implementation, or integrating with agent registries that consume Agent Cards.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Design A2A Agent Card
Create a standards-compliant A2A Agent Card that advertises an agent's identity, skills, authentication requirements, and capabilities for discovery by other agents.
## When to Use
- Building an agent that must be discoverable by other A2A-compliant agents
- Exposing agent capabilities for multi-agent orchestration
- Migrating an existing agent to the A2A (Agent-to-Agent) protocol
- Defining the public contract for an agent before implementation
- Integrating with agent registries or directories that consume Agent Cards
## Inputs
- **Required**: Agent name and description
- **Required**: List of skills the agent can perform (name, description, input/output schemas)
- **Required**: Base URL where the agent will be hosted
- **Optional**: Authentication method (`none`, `oauth2`, `oidc`, `api-key`)
- **Optional**: Supported content types beyond `text/plain` (e.g., `image/png`, `application/json`)
- **Optional**: Capability flags (streaming, push notifications, state transition history)
- **Optional**: Provider organization name and URL
## Procedure
### Step 1: Define Agent Identity and Description
1.1. Choose the agent identity fields:
```json
{
"name": "data-analysis-agent",
"description": "Performs statistical analysis, data visualization, and report generation on tabular datasets.",
"url": "https://agent.example.com",
"provider": {
"organization": "Example Corp",
"url": "https://example.com"
},
"version": "1.0.0"
}
```
1.2. Write a clear, actionable description that answers:
- What domains does this agent cover?
- What kinds of tasks can it handle?
- What are its limitations?
1.3. Set the canonical URL where the Agent Card will be served at `/.well-known/agent.json`.
**Got:** A complete identity block with name, description, URL, provider, and version.
**If fail:** If the agent serves multiple domains, consider whether it should be one agent with many skills or multiple agents with focused scopes. A2A favors focused agents with clear boundaries.
### Step 2: Enumerate Skills with Input/Output Schemas
2.1. Define each skill the agent can perform:
```json
{
"skills": [
{
"id": "analyze-dataset",
"name": "Analyze Dataset",
"description": "Run descriptive statistics, correlation analysis, or hypothesis tests on a CSV dataset.",
"tags": ["statistics", "data-analysis", "csv"],
"examples": [
"Analyze the correlation between columns A and B in my dataset",
"Run a t-test comparing group 1 and group 2"
],
"inputModes": ["text/plain", "application/json"],
"outputModes": ["text/plain", "application/json", "image/png"]
},
{
"id": "generate-chart",
"name": "Generate Chart",
"description": "Create bar, line, scatter, or histogram charts from tabular data.",
"tags": ["visualization", "charts"],
"examples": [
"Create a scatter plot of height vs weight",
"Generate a histogram of the age column"
],
"inputModes": ["text/plain", "application/json"],
"outputModes": ["image/png", "image/svg+xml"]
}
]
}
```
2.2. For each skill, provide:
- **id**: Unique identifier (kebab-case)
- **name**: Human-readable display name
- **description**: What the skill does, in one to two sentences
- **tags**: Searchable keywords for discovery
- **examples**: Natural language task examples that trigger this skill
- **inputModes**: MIME types the skill accepts
- **outputModes**: MIME types the skill can produce
2.3. Ensure skill boundaries are clear and non-overlapping. Each task should map to exactly one skill.
**Got:** A skills array where each entry has id, name, description, tags, examples, and I/O modes.
**If fail:** If skills overlap significantly, merge them into a single broader skill with more examples. If a skill is too broad, split it into focused sub-skills.
### Step 3: Configure Authentication
3.1. Define the authentication scheme based on deployment context:
**No authentication (local/trusted network):**
```json
{
"authentication": {
"schemes": []
}
}
```
**OAuth 2.0 (recommended for production):**
```json
{
"authentication": {
"schemes": ["oauth2"],
"credentials": {
"oauth2": {
"authorizationUrl": "https://auth.example.com/authorize",
"tokenUrl": "https://auth.example.com/token",
"scopes": {
"agent:invoke": "Invoke agent skills",
"agent:read": "Read task status"
}
}
}
}
}
```
**API Key (simple shared-secret):**
```json
{
"authentication": {
"schemes": ["apiKey"],
"credentials": {
"apiKey": {
"headerName": "X-API-Key"
}
}
}
}
```
3.2. Choose the minimum viable authentication for the deployment environment:
- Local development: `none`
- Internal services: `apiKey`
- Public-facing agents: `oauth2` or `oidc`
3.3. Document the token/key provisioning process in the Agent Card's provider section or external documentation.
**Got:** An authentication block matching the deployment security requirements.
**If fail:** If OAuth 2.0 infrastructure is not available, start with API key authentication and plan migration. Never deploy a public agent with `none` authentication.
### Step 4: Specify Capabilities
4.1. Declare what protocol features the agent supports:
```json
{
"capabilities": {
"streaming": true,
"pushNotifications": false,
"stateTransitionHistory": true
}
}
```
4.2. Set each capability flag based on implementation readiness:
- **streaming**: `true` if the agent supports SSE streaming via `tasks/sendSubscribe`. Enables real-time progress updates for long-running tasks.
- **pushNotifications**: `true` if the agent can send webhook callbacks when task state changes. Requires the agent to store and call back webhook URLs.
- **stateTransitionHistory**: `true` if the agent maintains a full history of task state transitions (submitted, working, completed, etc.). Useful for audit trails.
4.3. Only set capabilities to `true` if the implementation fully supports them. Advertising unsupported capabilities breaks interoperability.
**Got:** A capabilities object with boolean flags matching actual implementation.
**If fail:** If unsure whether a capability will be implemented, set it to `false`. Capabilities can be added in future versions. Removing a capability is a breaking change.
### Step 5: Validate and Publish Agent Card
5.1. Assemble the complete Agent Card:
```json
{
"name": "data-analysis-agent",
"description": "Performs statistical analysis and visualization on tabular datasets.",
"url": "https://agent.example.com",
"version": "1.0.0",
"provider": {
"organization": "Example Corp",
"url": "https://example.com"
},
"authentication": {
"schemes": ["oauth2"],
"credentials": { ... }
},
"capabilities": {
"streaming": true,
"pushNotifications": false,
"stateTransitionHistory": true
},
"skills": [ ... ],
"defaultInputModes": ["text/plain"],
"defaultOutputModes": ["text/plain"]
}
```
5.2. Validate the Agent Card:
- Parse as JSON and verify no syntax errors
- Verify all required fields are present (name, description, url, skills)
- Verify each skill has id, name, description, and at least one input/output mode
- Verify the URL is reachable and serves the card at `/.well-known/agent.json`
5.3. Publish the Agent Card:
- Serve at `https://<agent-url>/.well-known/agent.json`
- Set `Content-Type: application/json`
- Enable CORS headers if cross-origin discovery is needed
- Register with any relevant agent directories or registries
5.4. Test discovery by fetching the card:
```bash
curl -s https://agent.example.com/.well-known/agent.json | python3 -m json.tool
```
**Got:** A valid JSON Agent Card served at the well-known URL, parseable by any A2A client.
**If fail:** If JSON validation fails, use a JSON linter to identify syntax errors. If the URL is not reachable, check DNS, SSL certificates, and web server configuration. If CORS is needed, add `Access-Control-Allow-Origin` headers.
## Validation
- [ ] Agent Card is valid JSON with no syntax errors
- [ ] All required fields are present: name, description, url, skills
- [ ] Each skill has id, name, description, inputModes, and outputModes
- [ ] Authentication scheme matches deployment security requirements
- [ ] Capability flags accurately reflect implementation status
- [ ] Agent Card is served at `/.well-known/agent.json` with correct Content-Type
- [ ] A2A clients can fetch and parse the card successfully
- [ ] Examples in skills are realistic and trigger the correct skill
## Pitfalls
- **Overpromising capabilities**: Setting `streaming: true` or `pushNotifications: true` without implementation causes client failures when those features are used. Be conservative.
- **Vague skill descriptions**: Descriptions like "does data stuff" prevent accurate skill matching. Be specific about inputs, outputs, and domains.
- **Missing CORS headers**: Browser-based A2A clients cannot fetch the Agent Card without proper CORS configuration.
- **Skill overlap**: If two skills could handle the same task, client agents cannot determine which to invoke. Ensure clear boundaries.
- **Forgetting default modes**: If `defaultInputModes` and `defaultOutputModes` are omitted, clients may not know what content types to send.
- **Version stagnation**: Update the Agent Card version when skills or capabilities change. Clients may cache old versions.
- **Publishing before implementation**: The Agent Card is a contract. Publishing skills that are not yet implemented leads to runtime failures.
## Related Skills
- `implement-a2a-server` - implement the server behind the Agent Card
- `test-a2a-interop` - validate Agent Card conformance and interoperability
- `build-custom-mcp-server` - MCP server as alternative/complement to A2A
- `configure-mcp-server` - MCP configuration patterns applicable to A2A setupRelated Skills
review-web-design
Review web design for layout, typography, colour, spacing, responsive behaviour, brand consistency, and visual hierarchy. Covers design principles and improvement recommendations. Use for mockup review before development, implemented site assessment, design review feedback, brand consistency check, or responsive behaviour at breakpoints.
grade-tcg-card
Grade a trading card using PSA, BGS, or CGC standards. Covers observation-first assessment (adapted from meditate's unbiased observation), centering measurement, surface analysis, edge and corner evaluation, and final grade assignment with confidence interval. Supports Pokemon, MTG, Flesh and Blood, and Kayou cards. Use when evaluating a card before professional grading submission, pre-screening a collection for high-grade candidates, settling condition disputes between buyers and sellers, or estimating the grade-dependent value spread for a card.
design-training-program
Design a GxP training programme covering training needs analysis by role, curriculum design (regulatory awareness, system-specific, data integrity), competency assessment criteria, training record retention, and retraining triggers for SOP revisions and incidents. Use when a new validated system requires user training before go-live, an audit finding cites inadequate training, organisational changes introduce new roles, a periodic programme review is due, or inspection preparation requires demonstrating training adequacy.
design-shiny-ui
Design Shiny application UIs using bslib for theming, layout_columns for responsive grids, value boxes, cards, and custom CSS/SCSS. Covers page layouts, accessibility, and brand consistency. Use when building a new Shiny app UI from scratch, modernizing an existing app from fluidPage to bslib, applying brand theming, making a Shiny app responsive across screen sizes, or improving accessibility of a Shiny application.
design-serialization-schema
Design serialization schemas using JSON Schema, Protocol Buffer definitions, or Apache Avro. Covers schema versioning, backwards compatibility, validation rules, and evolution strategies for long-lived data formats. Use when defining a new API contract or data interchange format, adding fields to an existing schema without breaking consumers, migrating between schema versions, choosing between schema systems, or documenting data validation rules for automated enforcement.
design-on-call-rotation
Design sustainable on-call rotations with balanced schedules, clear escalation policies, fatigue management, and handoff procedures. Minimize burnout while maintaining incident response coverage. Use when setting up on-call for the first time, scaling a team from 2-3 to 5+ engineers, addressing on-call burnout or alert fatigue, improving incident response times, or after a post-mortem identifies handoff issues.
design-logic-circuit
Design combinational logic circuits from a functional specification through gate-level implementation. Covers AND, OR, NOT, XOR, NAND, NOR gates; NAND/NOR universality conversions; and standard building blocks including multiplexers, decoders, half/full adders, and ripple-carry adders. Use when translating a Boolean function or truth table into a hardware-realizable gate network and verifying it by exhaustive simulation.
design-electromagnetic-device
Design practical electromagnetic devices including electromagnets, DC and brushless motors, generators, and transformers by bridging theory to application. Use when sizing a solenoid or toroidal electromagnet for a target field or force, selecting motor topology and computing torque and efficiency, designing a transformer for a given voltage ratio and power rating, or analyzing losses from copper resistance, core hysteresis, and eddy currents.
design-compliance-architecture
Design a compliance architecture that maps applicable regulations to computerized systems. Covers system inventory, criticality classification (GxP-critical, GxP-supporting, non-GxP), GAMP 5 category assignment, regulatory requirements traceability, and governance structure definition. Use when establishing a new regulated facility, formalising compliance across multiple systems, addressing a regulatory gap analysis, harmonising compliance after mergers or reorganisations, or preparing a site master file that references computerized systems.
design-cli-output
Design terminal output for a CLI tool with chalk colors, Unicode glyphs, multiple verbosity levels (human, verbose, quiet, JSON), and consistent voice rules. Covers color palette selection, status indicator design, reporter function architecture, ceremony/narrative output variants, and cross-terminal compatibility. Use when building a new CLI reporter module, adding warm narrative output to an existing tool, standardizing output across multiple commands, or designing machine-readable JSON alongside human-readable text.
design-acoustic-levitation
Design an acoustic levitation system that uses standing waves to trap and suspend small objects at pressure nodes. Covers ultrasonic transducer selection, standing wave formation between a transducer and reflector, node spacing and trapping position calculation, acoustic radiation pressure analysis, and phased array configurations for multi-axis manipulation. Use when designing contactless sample handling for chemistry, biology, materials science, or demonstration purposes.
skill-name-here
One to three sentences describing what this skill accomplishes, followed by key activation triggers. This field is the primary mechanism agents use to decide whether to activate the skill — it is read during discovery before the full body is loaded. Start with a verb. Include the most important "when to use" conditions inline. Max 1024 characters.