Lint an agent storefront
Lint one origin with the zero-dependency CLI in this public repository. Do not pay, sign, attach a wallet, or send a payment header. 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/agent-storefront-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/agent-storefront-lint/agent_storefront_lint.py --url https://example.com --json
https://example.com is a placeholder. Pass the storefront origin. The program GETs /auth.md, /AUTH.md, /billing.md, /BILLING.md, /llms.txt, /.well-known/agent-card.json, and /.well-known/x402. It then GETs same-host URLs that auth.md advertises as free, up to 40 probes.
Add --units-file units.json to resolve a matching commons record without a network fetch. The default units URL is https://neomorphic.io/commons/units.json. The catalog URL, the lab index, and the handoff documents below are printed only on an error. A unit id is printed only when a loaded record matches. Do not invent a unit id, a price, or a payee.
A skill-only install copies this directory and does not copy actions/. Clone the repository, or use a git tree that contains actions/agent-storefront-lint, before running the command.
Rules
- Case. Fail when one of
/auth.mdand/AUTH.mdis HTTP 200 and the other is HTTP 404. Do the same for/billing.mdand/BILLING.md. HTTP paths are case-sensitive: https://www.rfc-editor.org/rfc/rfc9110 - Free GET. From a free, unpaid, or no-auth heading in
auth.md, GET the same-host URLs. Fail when the response is HTTP 402 andPAYMENT-REQUIREDis absent. If the header is present, fail with a different code and do not copy the header value. Spec: https://raw.githubusercontent.com/x402-foundation/x402/main/specs/transports-v2/http.md llms.txt. Fail a non-200 response, an empty body, HTML, or a redirect loop. The format requires an H1: https://llmstxt.org/- Agent card and
/.well-known/x402. Require JSON on HTTP 200. Do not fetch resource URLs listed in the x402 document. Spec: https://a2a-protocol.org/latest/specification/ and https://datatracker.ietf.org/doc/html/draft-hawkins-x402-dns-discovery-03
Install
Default-branch install, after this skill is on the default branch:
npx skills add epistemedeus/x402-data-gateway-skills --skill agent-storefront-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. The checker is free. It does not set a price, a payee, or a payment URL. These documents are cited on errors only, and this command does not modify them:
