360 Secure SkillHub
360 安全技能中心

A2A Card Lint

对指定源站的 /.well-known/agent-card.json(含旧版 agent.json 回退)执行只读 HTTPS 探测,检查 v0.3 与 v1.0 必填字段、HTTPS URL 规范、分离式 JWS 签名结构与 8190 字节响应头预算,以退出码和 JSON 报告呈现结果;不做签名验证、支付、钱包或遥测。

分类:开发
epistemedeus
epistemedeus
热度 36.64
最近更新 2026-12-04 22:51:09

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add epistemedeus/a2a-card-lint
兼容性
通用兼容
联网要求
需要联网
数据出网
数据不出本机
Metadata
name
a2a-card-lint
description
Run an unpaid read-only lint of an A2A agent card at /.well-known/agent-card.json, including the legacy agent.json fallback, required v0.3 and v1.0 fields, HTTPS URL hygiene, detached JWS signature structure, and the 8190 byte response header budget. Use before publishing a card.
license
MIT
compatibility
Requires Python 3. Probes are unpaid HTTPS GET only. No wallet, payment, task post, or telemetry.
metadata
{"author":"neomorphic","version":"0.1.0"}

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

  1. Fields. Require name, version, capabilities, and skills. A v0.3 card also requires top-level url. A v1.0 card requires description, supportedInterfaces, defaultInputModes, and defaultOutputModes, and the interface URL satisfies url. Spec: https://a2a-protocol.org/latest/specification/
  2. HTTPS. Reject a non-https URL and any userinfo. A GRPC interface may use hostname:port.
  3. Signatures. When signatures is present, require a detached JWS structure: base64url protected and signature, alg other than none, and no non-empty payload. Do not treat that structure check as cryptographic verification. Spec: https://www.rfc-editor.org/rfc/rfc7515
  4. Header budget. Fail when the response header block or any header line is larger than 8,190 bytes. nginx documents large_client_header_buffers as 4 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: