scaledockhq/scaledock-skills/a2a

Claude Code and agent skill by scaledockhq/scaledock-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

A2A protocol: publish Agent Cards and talk agent to agent over the Agent2Agent (A2A) 1.0 specification from the Linux Foundation, upgrade 0.3 and 0.2 agents to 1.0, and track the A2A 1.1 preview (task generation and timeline). Use when building or reviewing an A2A server (remote agent) or client: the Agent Card at /.well-known/agent-card.json, skills, supportedInterfaces, securitySchemes and securityRequirements, signed Agent Cards (JWS over RFC 8785 JCS), the authenticated extended Agent Card, the JSON-RPC, gRPC and HTTP+JSON bindings, SendMessage, SendStreamingMessage, GetTask, ListTasks, CancelTask, SubscribeToTask, task states such as TASK_STATE_INPUT_REQUIRED and TASK_STATE_AUTH_REQUIRED, messages, parts and artifacts, Server-Sent Events streaming, push notification webhooks, the A2A-Version header, application/a2a+json, a2a.proto and the A2A JSON Schema. Triggers: a2a, agent2agent, agent card, agent-to-agent, multi-agent interop, remote agent, A2A SDK.

Install

npx vskill@latest install scaledockhq/scaledock-skills/a2a

SKILL.md

The same SKILL.md was published earlier as scaledockhq/scaledock-skills/a2a.

A2A (Agent2Agent) protocol

The Agent2Agent (A2A) protocol is an open standard for communication between independent AI agents, originally developed by Google and maintained under the Linux Foundation. With this skill the agent publishes an Agent Card, implements A2A operations on one or more protocol bindings, and calls remote A2A agents, following protocol version 1.0.

Follow the workflow below step by step. Every rule here comes from a source in Sources, with the section it cites (§ numbers refer to the A2A specification). When a rule and the pinned source disagree, the source wins; when the source has a newer revision than the pin, follow the refresh steps.

Inputs (fill in, or ask before starting)

  • Role: A2A server (remote agent), A2A client, or both (an agent that is a client of other agents).
  • Bindings: which of JSONRPC, GRPC and HTTP+JSON to expose or call (§ 5, § 9 to § 11).
  • Authentication: the security schemes the server accepts (API key, HTTP auth, OAuth 2.0, OpenID Connect, mutual TLS) and the scopes per skill (§ 4.5, § 7).
  • Target version: A2A 1.0 (current, the default), protocol version 1.0, specification release v1.0.1. A2A 0.3 and A2A 0.2 are legacy: read them and upgrade from them, and keep a 0.3 interface only while clients still need it. A2A 1.1 is a preview on the dev-1.1 branch (posture: track): never emit its fields. See `references/versions.md`.
  • Sources: when refreshing this skill or when a rule looks out of date, re-read every URL in Sources, check the A2A GitHub releases and the "Latest Released Version" banner on the specification page, and update the pins.

Invariants

  1. The proto is normative. a2a.proto is the single authoritative definition of all data objects and request and response messages; JSON Schema and SDK types are derived and must be regenerated, never hand-edited (§ 1.4). Where prose or an example disagrees with the proto, follow the proto.
  2. Publish an Agent Card (§ 8.1). The well-known location is https://{server_domain}/.well-known/agent-card.json (§ 8.2, § 14.3).
  3. Declare every supported interface in supportedInterfaces, in preference order, each with a correct url, protocolBinding and protocolVersion (§ 5.2, § 8.3.1). All bindings an agent supports must offer the same operations, behavior, errors and authentication (§ 5.1).
  4. JSON uses camelCase field names and ProtoJSON enum names such as TASK_STATE_COMPLETED and ROLE_USER (§ 5.5). Timestamps are ISO 8601 strings in UTC (§ 5.6.1).
  5. Authenticate every request and authorize every operation (§ 7.4, § 13.1). Scope GetTask, ListTasks and task-related operations to the caller, and do not reveal resources the caller may not access (§ 3.3.2, § 13.1).
  6. Version every request. Clients send A2A-Version (Major.Minor, such as 1.0); servers treat an empty value as 0.3 and return VersionNotSupportedError for unsupported versions (§ 3.6).
  7. Honor declared capabilities. Streaming, push notifications, the extended Agent Card and required extensions each have a mandated error when not supported (§ 3.3.4).
  8. Use TLS in production (§ 7.1, § 13.4). Webhook URLs are validated against SSRF (§ 13.2).
  9. Signed cards are JWS over the RFC 8785 canonical card, with the signatures field excluded and default values removed (§ 8.4).

Workflow

  1. Pick the version. Target 1.0. If the agent or client in front of you uses kind discriminators, lowercase states or a card-level protocolVersion, it is 0.3 or older and needs an upgrade.

-> `references/versions.md` ✓ Every supportedInterfaces entry names its protocolVersion, and nothing from the 1.1 preview is emitted.

  1. Write the Agent Card. Fill the required fields, the capabilities, the skills and supportedInterfaces; serve it at the well-known URI with caching headers.

-> `references/agent-card.md` ✓ The card has every REQUIRED proto field, validates against the A2A JSON Schema, and is reachable at /.well-known/agent-card.json with Cache-Control and ETag (§ 8.6.1).

  1. Declare security. Add securitySchemes and card-level and per-skill securityRequirements; decide what the authenticated extended card adds.

-> `references/agent-card.md`, `references/security.md` ✓ Each scheme uses one of the five proto scheme types; OAuth flows are authorizationCode, clientCredentials or deviceCode, not the deprecated implicit or password (§ 4.5.7).

  1. Implement the operations on each binding. Map the eleven operations to JSON-RPC methods, gRPC RPCs or REST endpoints, with the service parameters and error mappings of that binding.

-> `references/operations-and-bindings.md` ✓ Every A2A error maps to the code in § 5.4, and HTTP+JSON errors carry a google.rpc.ErrorInfo with domain: "a2a-protocol.org" (§ 11.6).

  1. Model tasks, messages and artifacts. Return a Task or a direct Message from SendMessage, drive task states, put outputs in artifacts, and handle multi-turn contextId and taskId rules.

-> `references/tasks-messages-streaming.md` ✓ Terminal states reject further messages with UnsupportedOperationError (§ 3.1.1), and task outputs are artifacts, not messages (§ 3.7).

  1. Add streaming and push notifications if the card declares them.

-> `references/tasks-messages-streaming.md` ✓ Streams start with a Task or a single Message, keep event order, and close on a terminal state (§ 3.1.2, § 3.5.2); webhooks receive StreamResponse payloads with the configured credentials (§ 4.3.3).

  1. Sign the card and review security if cards are signed or extended cards are offered.

-> `references/security.md` ✓ A client can rebuild the canonical payload and verify at least one signature (§ 8.4.3); the extended card requires authentication (§ 13.3).

  1. Upgrade (only when asked). Follow the 0.2 to 0.3 and 0.3 to 1.0 checklists in order.

-> `references/versions.md` ✓ The upgraded card and messages validate against the 1.0 JSON Schema, and the same tasks reach the same states with the same artifacts.

Verify before done

  • [ ] The Agent Card validates against the published A2A JSON Schema and uses securityRequirements (proto field 9), not the older security name that still appears in some prose and examples.
  • [ ] supportedInterfaces[0] is the preferred interface, and clients set tenant exactly as declared (§ 8.3.2).
  • [ ] Each operation returns the § 5.4 error code on every binding the card declares.
  • [ ] ListTasks returns only the caller's tasks, sorted by last update descending, and always includes nextPageToken (§ 3.1.4).
  • [ ] Requests without A2A-Version are treated as 0.3 (§ 3.6.2).
  • [ ] Push notification webhook URLs reject private, loopback and link-local addresses (§ 13.2).
  • [ ] Card signatures use a protected header with alg, kid and typ: "JOSE" (§ 8.4.2).

Reference index

  • `references/versions.md`: A2A 1.1 (preview), 1.0, 0.3 and 0.2, what changed in each, the upgrade checklists, and the 1.1 preview's posture. Load for steps 1 and 8.
  • `references/agent-card.md`: every Agent Card field, interfaces, skills, security schemes and requirements in JSON, extensions, caching, and a full example. Load for steps 2 and 3.
  • `references/operations-and-bindings.md`: the eleven operations, the JSON-RPC, gRPC and HTTP+JSON mappings, service parameters, versioning and error codes. Load for step 4.
  • `references/tasks-messages-streaming.md`: task states, messages, parts, artifacts, multi-turn rules, streaming, push notifications and in-task authorization. Load for steps 5 and 6.
  • `references/security.md`: authentication, authorization scoping, extended card access, Agent Card signing and verification, push notification security. Load for steps 3 and 7.

Related skills

  • ap2 for agent payments carried over A2A (intent, cart and payment mandates): npx skills add ScaleDockHQ/scaledock-skills --skill ap2.
  • owasp-agentic for reviewing inter-agent communication and delegated identity against the OWASP Top 10 for Agentic Applications: npx skills add ScaleDockHQ/scaledock-skills --skill owasp-agentic.
  • ag-ui for the agent-to-user-interface event stream that complements A2A: npx skills add ScaleDockHQ/scaledock-skills --skill ag-ui.
  • json-rpc, when the work also follows that specification: npx skills add ScaleDockHQ/scaledock-skills --skill json-rpc
  • server-sent-events, when the work also follows that specification: npx skills add ScaleDockHQ/scaledock-skills --skill server-sent-events
  • dns-aid for discovering agents through DNS records: npx skills add ScaleDockHQ/scaledock-skills --skill dns-aid.
  • agent-network-protocol for the Agent Network Protocol, an alternative agent-to-agent protocol with DID-based identity: npx skills add ScaleDockHQ/scaledock-skills --skill agent-network-protocol.

Sources

Status uses the publishing body's own maturity term. Checked is the date the source was last read.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/scaledockhq/scaledock-skills/a2a/badge)](https://verified-skill.com/skills/scaledockhq/scaledock-skills/a2a)

Something wrong with this skill or its page? Tell us.