octodamus-core: Skill for Claude Code

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

pay-for-service is a skill for Claude Code from Octodamus/octodamus-core. It costs 61 tokens per session (908 once invoked), scanned A, original, MIT.

A procedure for calling an x402 paid API endpoint and automatically paying for the request in USDC on the Base network. USDC is a digital token designed to track the US dollar.

In plain words
What is it for?
Use it to make paid API calls with a chosen HTTP method, data, query parameters, headers, maximum payment, or correlation ID.
Why use it?
It removes the manual steps for checking the wallet, setting a payment limit, and sending a paid API 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 Octodamus/octodamus-core's own configuration. It tells Claude Code how to work on octodamus-core 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 octodamus-core configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Octodamus/octodamus-core. 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/Octodamus/octodamus-core/main/.agents/skills/pay-for-service/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Octodamus/octodamus-core

Made for: Claude Code.

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/octodamus/octodamus-core/pay-for-service/github.svg)](https://agentmods.dev/skills/octodamus/octodamus-core/pay-for-service)
Your own site
<a href="https://agentmods.dev/skills/octodamus/octodamus-core/pay-for-service"><img src="https://agentmods.dev/badge/skills/octodamus/octodamus-core/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/octodamus/octodamus-core/pay-for-service"><img src="https://agentmods.dev/badge/skills/octodamus/octodamus-core/pay-for-service.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 908 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.
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.00061 $0.00908
Opus 5 $0.00030 $0.00454
Sonnet 5 $0.00012 $0.00182
Haiku 4.5 $0.00006 $0.00091

Measured 12d ago against content hash 4c5f5b5a59ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 12d 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 · 86 lines

How it starts

The opening of the file, as written. The whole thing — 86 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.

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

IMPORTANT: Always single-quote amounts that use $ to prevent bash variable expansion (e.g. '$1.00' not $1.00).

Input Validation

Before constructing the command, validate all user-provided values to prevent shell injection:

  • url: Must be a valid URL starting with https:// or http://. Reject if it contains spaces, semicolons, pipes, backticks, or shell metacharacters.
  • data (-d): Must be valid JSON. Always wrap in single quotes to prevent shell expansion.
  • max-amount: Must be a positive integer (^\d+$).

Do not pass unvalidated user input into the command.

Examples

Read the full file on GitHub · 86 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. 12d ago First seen · 86 lines · 61 tokens per session scan A 4c5f5b5a59ee

Subscribe to this mod's changes

pay-for-service is a skill published in the GitHub repository Octodamus/octodamus-core (1 stars, last pushed today), licensed MIT. It adds 61 tokens to every session and 908 once invoked, about $0.0003 per session on Opus 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-31.