three.ws: Skill for Claude Code

.agents/skills/x402/SKILL.md

x402 is a skill for Claude Code from nirholas/three.ws. It costs 140 tokens per session (1,868 once invoked), scanned A, original, Apache-2.0.

A guide for finding paid web services and calling their APIs through x402, a payment protocol that lets a request pay in USDC, a dollar-linked cryptocurrency, on Base.

In plain words
What is it for?
Use it to search the service bazaar, check an endpoint's payment requirements, and call paid APIs using the x402 workflow.
Why use it?
It explains how to discover a suitable service, inspect its price and required inputs, and make the payment-backed request with the correct payment method.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: positional $N argument; installed under .agents/ (shared by several agents).

This is nirholas/three.ws's own configuration. It tells Claude Code how to work on three.ws itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything three.ws configures →

Part of the three-ws-core plugin — 49 skills shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to nirholas/three.ws. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/nirholas/three.ws/main/.agents/skills/x402/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/nirholas/three.ws

Made for: Claude Code.

Or install three-ws-core, the plugin that ships this one along with the rest of its 49 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for x402

README.md
[![agentmods](https://agentmods.dev/badge/skills/nirholas/three.ws/x402/github.svg)](https://agentmods.dev/skills/nirholas/three.ws/x402)
Your own site
<a href="https://agentmods.dev/skills/nirholas/three.ws/x402"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/x402/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for x402

Your own site · 80×15
<a href="https://agentmods.dev/skills/nirholas/three.ws/x402"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/x402.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 140 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,868 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00140 $0.01868
Opus 5.5 $0.00056 $0.00747
Sonnet 5.5 $0.00028 $0.00374
Haiku 4.5 $0.00014 $0.00187

Measured 14d ago against content hash d5d6139d39eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

x402 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/x402/SKILL.md · 161 lines

How it starts

The opening of the file, as written. The whole thing — 161 lines — stays where its author put it; the contents beside it link to each section on GitHub.

x402 Payment Protocol

Use the npx [email protected] x402 commands to discover, inspect, and call paid API endpoints using the X402 payment protocol. Payments are made in USDC on Base.

Which payment stack (arbitration)

three.ws runs two x402/payment stacks. Pick one deterministically: never settle a payment through a signing path the user didn't ask for.

  • This stack (awal / three.ws-native): the default. Use it to browse the bazaar and settle a plain x402 402 with a one-shot USDC-on-Base payment.
  • OKX onchainos stack (okx-agent-payments-protocol): use only when the user names OKX/OnchainOS, or the 402 is one OKX handles specifically: a payment channel / voucher / session, permit2, upto/metered billing, MPP charge, or an a2a-pay paymentId. Hand off there and do not pay from here.

Workflow

The typical x402 workflow is:

  1. Find a service - Search the bazaar or get details for a known endpoint
  2. Check requirements - Inspect price, method, and input schema
  3. Make the request - Call the endpoint with automatic USDC payment

Commands

Search the Bazaar

Find paid services by keyword using CDP's vector search:

npx [email protected] x402 bazaar search <query> [-k <n>] [--network <network>] [--scheme <scheme>] [--max-price <price>] [--json]
Option Description
-k, --top <n> Number of results, 1 to 20 (default: 20)
--network <name> Filter by chain (base, base-sepolia, polygon, solana, solana-devnet)
--scheme <scheme> Filter by payment scheme: exact or upto
--max-price <price> Maximum price in USD (e.g. 0.01)
--asset <address> Filter by payment asset address
--pay-to <address> Filter by recipient wallet address
--extensions <type> Filter by extension type (e.g. outputSchema, bazaar)
--json Output as JSON

Read the full file on GitHub · 161 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 14d ago Changed d5d6139d39eb
  2. 20d ago Changed a9806cd3186e
  3. 2mo ago First seen · 161 lines · 140 tokens per session scan A 564d8fa89aff

Subscribe to this mod's changes

x402 is a skill published in the GitHub repository nirholas/three.ws (269 stars, last pushed yesterday), licensed Apache-2.0. It adds 140 tokens to every session and 1,868 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

x402 compared with skills from other repositories

x402 next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
x402nirholas/three.wsSkill269yesterdayApache-2.0A140Claude Code
fastapi-patternsaffaan-m/ECCSkill298k4d agoMITA35Claude Code, Kiro
webappkortix-ai/sunaSkill20k4d agononeA28Claude Code, Codex
file-upload-media-expertroedyrustam/vibes-plugSkill121yesterdayMITA46Cursor
openapi-expertRightNow-AI/openfangSkill18k4mo agoApache-2.0A20Claude Code, Codex
magicbasedtyq/magicSkill5.1k13d agononeA63Claude Code, Codex
openai-django-webhooksbtfranklin/skillsSkill68d agoMITA65Codex