three.ws: Skill for Claude Code

.agents/skills/pay-for-service/SKILL.md

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

A tool for calling paid web APIs that accept automatic USDC payments through the x402 payment system. An API is a way for software to request a service from another program.

In plain words
What is it for?
Use it to make paid GET or POST requests to x402 services, including requests with data, parameters, headers, and a spending limit.
Why use it?
It handles the payment step needed to use a paid API, so you do not have to arrange the request and payment separately.

Skill for Claude Code

Written for Claude Code: allowed-tools 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/pay-for-service/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 pay-for-service

README.md
[![agentmods](https://agentmods.dev/badge/skills/nirholas/three.ws/pay-for-service/github.svg)](https://agentmods.dev/skills/nirholas/three.ws/pay-for-service)
Your own site
<a href="https://agentmods.dev/skills/nirholas/three.ws/pay-for-service"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/pay-for-service/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 pay-for-service

Your own site · 80×15
<a href="https://agentmods.dev/skills/nirholas/three.ws/pay-for-service"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/pay-for-service.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 132 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,444 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.00132 $0.01444
Opus 5.5 $0.00053 $0.00578
Sonnet 5.5 $0.00026 $0.00289
Haiku 4.5 $0.00013 $0.00144

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

Security

Grade A, and why

pay-for-service 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/pay-for-service/SKILL.md · 116 lines

How it starts

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

Making Paid x402 Requests

Use the npx [email protected] x402 pay command to call paid API endpoints with automatic USDC payment 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 for a plain x402 402 that settles 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.

Confirm wallet is initialized and authed

npx [email protected] status

If the wallet is not authenticated, refer to the authenticate-wallet skill.

Command Syntax

npx [email protected] x402 pay <url> [-X <method>] [-d <json>] [-q <params>] [-h <json>] [--max-amount <n>] [--json]

Options

Option Description
-X, --method <method> HTTP method (default: GET)
-d, --data <json> Request body as JSON string
-q, --query <params> Query parameters as JSON string
-h, --headers <json> Custom HTTP headers as JSON string
--max-amount <amount> Max payment in USDC atomic units (1000000 = $1.00)
--correlation-id <id> Group related operations
--json Output as JSON

USDC Amounts

X402 uses USDC atomic units (6 decimals):

Atomic Units USD
1000000 $1.00
100000 $0.10
50000 $0.05
10000 $0.01

Read the full file on GitHub · 116 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 4cdc38b560a5
  2. 20d ago Changed 7a8fd1d3c11d
  3. 2mo ago First seen · 116 lines · 132 tokens per session scan A 557fc7d950c6

Subscribe to this mod's changes

pay-for-service is a skill published in the GitHub repository nirholas/three.ws (269 stars, last pushed yesterday), licensed Apache-2.0. It adds 132 tokens to every session and 1,444 once invoked, about $0.0005 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

pay-for-service compared with skills from other repositories

pay-for-service next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pay-for-servicenirholas/three.wsSkill269yesterdayApache-2.0A132Claude Code
evmNousResearch/hermes-agentSkill261kyesterdayMITA19Claude Code, Codex
hyperliquidNousResearch/hermes-agentSkill261kyesterdayMITA16Claude Code, Codex
solanaNousResearch/hermes-agentSkill261kyesterdayMITA18Claude Code, Codex
crypto-dataBlockRunAI/blockrun-mcpSkill389yesterdayMITA194Claude Code, Codex
polymarket-tradingBlockRunAI/blockrun-mcpSkill389yesterdayMITA72Claude Code, Codex
surfBlockRunAI/blockrun-mcpSkill389yesterdayMITA110Claude Code, Codex