Agent skill: x402 testing
A skill is a short instruction file a coding agent loads when a task matches. This one tells the agent how to use the test endpoints, the checker, the error reference and the decoder on this site, so it tests x402 code properly without being told how.
Install
Claude Code, for one project:
mkdir -p .claude/skills/x402-testing
curl -s https://x402testendpoint.com/skill.md -o .claude/skills/x402-testing/SKILL.md
To use it in every project, put it under the .claude/skills folder in your home directory instead. Other agents that read SKILL.md files work the same way.
What the agent will do with it
- Run a payment client against the baseline endpoint, then against six hostile sellers it must refuse to pay.
- Turn those scenarios into assertions in your test suite.
- Check a paid endpoint you are building and fix what the checker flags.
- Look up x402 error codes and decode headers while debugging.
Read it first
The skill is plain Markdown at /skill.md. Read any skill before installing it; this one only describes HTTP calls to this site.
Prefer tools to instructions? The MCP server exposes the same functions.