subscription

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

A subscription feature that lets a viewer approve recurring USDC payments to an agent once, with charges continuing weekly until revoked or expired.

In plain words
What is it for?
Use it to charge viewers 5 USDC per week through server-side subscription jobs.
Why use it?
It removes repeated wallet approvals for an ongoing paid service and records failures or cancellations instead of retrying silently.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/nirholas/three.ws/subscription
Any agent
npx skills add nirholas/three.ws --skill subscription
Clone the repo
git clone --depth 1 https://github.com/nirholas/three.ws

Made for: Claude Code, Codex.

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 subscription

README.md
[![agentmods](https://agentmods.dev/badge/skills/nirholas/three.ws/subscription.svg)](https://agentmods.dev/skills/nirholas/three.ws/subscription)
Your own site
<a href="https://agentmods.dev/skills/nirholas/three.ws/subscription"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/subscription.svg" alt="Measured on agentmods" height="20"></a>
Per session 1 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 337 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00001 $0.00337
Opus 5 $0.00000 $0.00169
Sonnet 5 $0.00000 $0.00067
Haiku 4.5 $0.00000 $0.00034

Measured 2d ago against content hash c2532f58d874, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

subscription 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 2d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (skill.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

public/skills/subscription/SKILL.md · 37 lines

What it actually says

Subscription

Allow a viewer to subscribe to this agent for recurring USDC payments. The agent charges 5 USDC per week automatically — no re-signing needed — until the viewer revokes or the delegation expires (90 days).

Flow

  1. Viewer clicks Subscribe · 5 USDC / week.
  2. MetaMask opens pre-filled with the scope (5 USDC / week cap, 90-day expiry).
  3. Viewer approves once. No further wallet prompts.
  4. The server cron fires every hour; weekly charges are applied automatically via the ERC-7710 relayer.
  5. Viewer can revoke at any time from the Manage panel — this pauses the subscription.

onPeriod

onPeriod is server-side only. The cron at /api/cron/run-subscriptions imports it via dynamic import() and calls it once per subscription per period. It builds a single ERC-20 transfer call for amountPerPeriod and redeems it through the relayer endpoint.

Never call onPeriod from the browser.

Error behaviour

  • Revoked delegation → subscription status flips to paused, visible in the Manage panel.
  • Expired delegation → same.
  • Failed redemption → paused + last_error stored; no silent retry.
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 37 lines · 1 tokens per session scan A c2532f58d874

Subscribe to this mod's changes

subscription is a skill published in the GitHub repository nirholas/three.ws (111 stars, last pushed today), licensed Apache-2.0. It adds 1 tokens to every session and 337 once invoked, about $0.0000 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-09-03.

Related

Other skills, from other repositories

blockchain-defi

Use this skill when asked about decentralized finance, DeFi protocols, AMM mechanics, lending and borrowing protocols, perpetual futures, yield farming, liquidity mining, liquid staking, restaking, yield optimization, DeFi security, MEV, and protocol composability. Covers AMM design (Uniswap, Curve, Balancer), lending…

j4flmao/agent-skills · 154 tokens

apex-copilot

Use this skill when the user is working on a Web3 project and needs Apex Foundation diligence tools: scoring a crypto/Web3 project for investment readiness, matching against the Apex portfolio of 200+ projects, finding relevant Web3 hackathons, matching against Web3 VC funds and investors, smart contract code review…

Apex-Foundation/copilot-mcp · 245 tokens

stablecoin-chain-explorer

Explore stablecoin TVL distribution and yield opportunities by blockchain. Query which chains have the most stablecoins, compare cross-chain yields, and find the best opportunities on Ethereum, BSC, Arbitrum, Base, Polygon, and more. Also for protocols and issuers researching where stablecoin TVL and liquidity…

barkermoney/barker-mcp · 102 tokens

gstd-sovereign

Full agent autonomy — self-sustaining economic entity that earns GSTD, manages finances, shares intelligence, recruits agents, and promotes financial independence.

gstdcoin/A2A · 35 tokens

crypto-report

Analyze cryptocurrency projects with tokenomics, on-chain metrics, and market analysis. Generate comprehensive crypto research reports.

claude-office-skills/skills · 24 tokens

agent-wallet

Operate a non-custodial blockchain wallet on-chain (EVM and Bitcoin), no exchange or MetaMask. Create or import a wallet, balances, send native/ERC-20/BTC, swap tokens, compile/deploy/call Solidity. Trigger on wallet, crypto, ETH, BTC, ERC-20, token, send, transfer, swap, trade, Solidity, contract, on-chain, testnet…

hec-ovi/blockchain-skill · 93 tokens