Lint an A2A agent card
Lint one origin with the zero-dependency CLI in this public repository. Do not pay, sign, attach a wallet, post a task, or send telemetry. The command exit code is the result: 0 has no error, 1 has a failed check, and 2 means the arguments are not usable.
This skill is skills/a2a-card-lint in epistemedeus/x402-data-gateway-skills. npx skills add discovers skills/<name>/SKILL.md. It is not marked metadata.internal.
Run the checker
From a checkout of this repository:
python3 actions/a2a-card-lint/a2a_card_lint.py --url https://example.com --json
https://example.com is a placeholder. Pass the agent origin, or a full URL ending in /.well-known/agent-card.json. The program GETs /.well-known/agent-card.json first. If that response is not a JSON card, it GETs /.well-known/agent.json and warns that the legacy path is deprecated.
Add --units-file units.json to resolve fixes without a network fetch. The default units URL is https://neomorphic.io/commons/units.json.
A skill-only install copies this directory and does not copy actions/. Clone the repository, or use a git tree that contains actions/a2a-card-lint, before running the command.
Rules
- Fields. Require
name,version,capabilities, andskills. A v0.3 card also requires top-levelurl. A v1.0 card requiresdescription,supportedInterfaces,defaultInputModes, anddefaultOutputModes, and the interface URL satisfiesurl. Spec: https://a2a-protocol.org/latest/specification/ - HTTPS. Reject a non-https URL and any userinfo. A
GRPCinterface may usehostname:port. - Signatures. When
signaturesis present, require a detached JWS structure: base64urlprotectedandsignature,algother thannone, and no non-emptypayload. Do not treat that structure check as cryptographic verification. Spec: https://www.rfc-editor.org/rfc/rfc7515 - Header budget. Fail when the response header block or any header line is larger than 8,190 bytes. nginx documents
large_client_header_buffersas4 8k: https://nginx.org/en/docs/http/ngx_http_core_module.html#large_client_header_buffers
The legacy path warning cites commons unit ku_db1f945cd640b2906c441e6926835c70 when the loaded catalog has that id. Do not invent a unit id when it does not.
Install
Default-branch install, after this skill is on the default branch:
npx skills add epistemedeus/x402-data-gateway-skills --skill a2a-card-lint --yes
This file can also be installed from a git tree URL for the branch that contains it. Do not claim a skills.sh directory page lists this skill until a fetch of that page shows it.
Boundaries
Contact is contact@neomorphic.io. Optional handoff documents, which this command does not modify:
