CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

trysac/a2a-agent-card

Validate and build A2A protocol Agent Cards (v1.0.0 field rules) with JSON-path issues, media type and URL checks, and the well-known discovery URL. Use when the user writes, reviews or debugs an agent-card.json.

Quality

100%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Overview
Quality
Evals
Security
Files
name:
a2a-agent-card
description:
Validate and build A2A protocol Agent Cards (v1.0.0 field rules) with JSON-path issues, media type and URL checks, and the well-known discovery URL. Use when the user writes, reviews or debugs an agent-card.json.

a2a-agent-card

Validate an A2A Agent Card against the v1.0.0 field rules, build a card from a small JSON spec, and compute the well-known discovery URL. It runs locally with Python 3.10+ (standard library only); no package install and no network access are needed (the discovery URL is only computed, never fetched).

When to use

  • The user writes or edits an agent-card.json and wants it checked.
  • The user wants a new Agent Card generated from a description of their agent.
  • The user asks where an agent card must be published for discovery.

Workflow

  1. Validate: python3 scripts/a2a_agent_card.py validate agent-card.json Output is ok, or one line per issue: severity path code (for example error skills[0].tags missing). Exit 1 if any error exists; warnings alone exit 0.
  2. Fix each issue at its JSON path, then validate again. Do not silence warnings without telling the user what they mean (unknown_field, unknown_binding).
  3. To create a card, write a spec as described in references/card-spec.md and run python3 scripts/a2a_agent_card.py build spec.json --output agent-card.json. The result is validated; issues are printed to stderr.
  4. Discovery URL: python3 scripts/a2a_agent_card.py well-known https://agent.example.com/base/ prints https://agent.example.com/.well-known/agent-card.json (origin only).
  5. Never put secrets (tokens, keys) in a card; it is meant to be public.

What is checked

Required strings (name, description, version), supportedInterfaces (url, protocolBinding, protocolVersion), capabilities, defaultInputModes and defaultOutputModes (media types), skills (id, name, description, tags, unique ids, optional examples and modes), provider, the URL fields, and the shape of securitySchemes, securityRequirements and signatures. URLs must be https, or http only for localhost. The full rule list is in references/validation-rules.md.

Limits

  • Field rules only: it does not contact the agent, verify signatures or check that the advertised endpoints work.
  • Card files over 1 MiB are rejected.
  • Rules follow A2A v1.0.0; other protocol versions may differ.

Project source: https://github.com/Trysac/u124-a2a-agent-card

Workspace
trysac
Visibility
Public
Created
Last updated
Source
CLI
Repository
No repository linked. Set repository in the plugin manifest, or publish from a GitHub Action to verify it.
Badge
trysac/a2a-agent-card badge