three.ws: Skill for Claude Code

.agents/skills/monetize-service/SKILL.md

monetize-service is a skill for Claude Code from nirholas/three.ws. It costs 94 tokens per session (2,967 once invoked), scanned A, original, Apache-2.0.

A setup for making an API, a web service that answers software requests, charge USDC per request through x402, an HTTP payment protocol. Other software agents can discover the service through the x402 Bazaar.

In plain words
What is it for?
Creating and deploying a paid API, setting endpoint prices, receiving USDC payments on Base, and making the service discoverable to other agents.
Why use it?
It lets an API charge for each use without user accounts, API keys, or subscriptions. Payment is handled as part of the web request.

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/monetize-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 monetize-service

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/nirholas/three.ws/monetize-service"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/monetize-service.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,967 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00094 $0.02967
Opus 5.5 $0.00038 $0.01187
Sonnet 5.5 $0.00019 $0.00593
Haiku 4.5 $0.00009 $0.00297

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

Security

Grade A, and why

monetize-service scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

allowed-tools: "Bash(npx [email protected] status*) Bash(npx [email protected] address*) Bash(npx [email protected] x402 details *) Bash(npx [email protected] x402 pay *) Bash(npm *) Bash(node *) Bash(curl *) Bash(mkdir *)"
.agents/skills/monetize-service/SKILL.md · 412 lines

How it starts

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

Build an x402 Payment Server

Create an Express server that charges USDC for API access using the x402 payment protocol. Callers pay per-request in USDC on Base: no accounts, API keys, or subscriptions needed. Your service is automatically discoverable by other agents via the x402 Bazaar.

How It Works

x402 is an HTTP-native payment protocol. When a client hits a protected endpoint without paying, the server returns HTTP 402 with payment requirements. The client signs a USDC payment and retries with a payment header. The facilitator verifies and settles the payment, and the server returns the response. Services register with the x402 Bazaar so other agents can discover and pay for them automatically.

Confirm wallet is initialized and authed

npx [email protected] status

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

Step 1: Get the Payment Address

Run this to get the wallet address that will receive payments:

npx [email protected] address

Use this address as the payTo value.

Step 2: Set Up the Project

mkdir x402-server && cd x402-server
npm init -y
npm install express @x402/express @x402/core @x402/evm @x402/extensions

Create index.js:

const express = require("express");
const { paymentMiddleware } = require("@x402/express");
const { x402ResourceServer, HTTPFacilitatorClient } = require("@x402/core/server");
const { ExactEvmScheme } = require("@x402/evm/exact/server");

const app = express();
app.use(express.json());

const PAY_TO = "<address from step 1>";

// Create facilitator client and x402 resource server
const facilitator = new HTTPFacilitatorClient({ url: "https://x402.org/facilitator" });
const server = new x402ResourceServer(facilitator);
server.register("eip155:8453", new ExactEvmScheme());

// x402 payment middleware: protects routes below
app.use(
  paymentMiddleware(
    {
      "GET /api/example": {
        accepts: {
          scheme: "exact",
          price: "$0.01",
          network: "eip155:8453",
          payTo: PAY_TO,
        },
        description: "Description of what this endpoint returns",
        mimeType: "application/json",
      },
    },
    server,
  ),
);

// Protected endpoint
app.get("/api/example", (req, res) => {
  res.json({ data: "This costs $0.01 per request" });
});

app.listen(3000, () => console.log("Server running on port 3000"));

Read the full file on GitHub · 412 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 c409700be27b
  2. 20d ago Changed a98b4e724c7f
  3. 2mo ago First seen · 412 lines · 94 tokens per session scan A b91480800d41

Subscribe to this mod's changes

monetize-service is a skill published in the GitHub repository nirholas/three.ws (269 stars, last pushed yesterday), licensed Apache-2.0. It adds 94 tokens to every session and 2,967 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

monetize-service compared with skills from other repositories

monetize-service next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
monetize-servicenirholas/three.wsSkill269yesterdayApache-2.0A94Claude 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