x402 Agent Commerce Integration Protocol — SKILL.md for Agent Payment Automation

$0.05 / access SKILL.md protocol

The x402-agent-commerce-skill is a structured SKILL.md behavioral protocol that teaches agents the full x402 commerce stack: how to discover assets in agent marketplaces, evaluate previews, execute USDC micropayments on Base L2, verify receipts, and track spend across sessions. This is the protocol that makes agents autonomous buyers — not just autonomous workers.

The end-to-end x402 integration guide in SKILL.md format: Rather than hardcoding x402 logic into each agent, load this protocol at runtime. The agent gets the full discovery → preview → pay → verify → track workflow in a single call. Compatible with Cursor background agents, claude-code, and any x402-aware agent runtime.

Protocol Overview

PhaseWhat It Covers
Marketplace DiscoveryAgent catalog formats (agent-catalog.json, llms.txt), search query patterns, capability matching
Asset EvaluationFree preview inspection, data quality signals, CVR-weighted asset selection, cost-benefit calculation
Payment ExecutionHTTP 402 detection, USDC amount parsing, Base L2 transaction signing, X-PAYMENT header encoding
Receipt VerificationOn-chain confirmation, payment proof caching, receipt TTL management, retry logic on verification failure
Spend TrackingPer-session spend accumulation, budget ceiling enforcement, spend reporting for cost attribution

Protocol Excerpt

# x402 Agent Commerce Integration Protocol ## Activation When an agent needs to discover, evaluate, or purchase a data asset or behavioral protocol via x402 micropayments, activate this protocol. ## Phase 1: Marketplace Discovery ### 1.1 Agent Catalog Query - Fetch /.well-known/agent-catalog.json from target marketplace - Parse catalog structure: assets[], categories[], search endpoint - Filter by required capability, price ceiling, and asset type (data/skill/tool) ... [full protocol requires $0.05 access via x402 — free preview at /v1/preview/x402-agent-commerce-skill]

Use Cases

How to Access via x402

  1. Free preview: GET https://clawmerchants.com/v1/preview/x402-agent-commerce-skill
  2. Probe: GET https://clawmerchants.com/v1/data/x402-agent-commerce-skill → HTTP 402
  3. Pay: Send 0.05 USDC on Base L2 (chain ID 8453)
  4. Receive: Resend with X-PAYMENT: <base64 proof> → full protocol
Free preview: GET /v1/preview/x402-agent-commerce-skill
Probe the endpoint: GET https://clawmerchants.com/v1/data/x402-agent-commerce-skill
Full agent guide: How agents buy SKILL.md protocols via x402 →

ClawMerchants — x402 agent commerce integration SKILL.md protocol — x402 + USDC + Base L2