add-plugin

add-plugin is a skill for Claude Code, Codex from worldliberty/agentpay-sdk. It costs 97 tokens per session (817 once invoked), scanned A, original, MIT.

A development guide for adding integrations, called plugins, to the AgentPay command-line tool. It defines where shared registration, plugin commands, and plugin-specific network code belong.

In plain words
What is it for?
Use it when adding or restructuring an integration such as Bitrefill. It covers registering the plugin, handling its API or browser code, and reusing the existing signing, policy, approval, and transaction paths.
Why use it?
It prevents each integration from wiring commands and payment logic differently, reducing duplicated code and misplaced responsibilities.

Skill for Claude CodeCodex

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/worldliberty/agentpay-sdk/add-plugin
Any agent
npx skills add worldliberty/agentpay-sdk --skill add-plugin
Clone the repo
git clone --depth 1 https://github.com/worldliberty/agentpay-sdk

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 add-plugin

README.md
[![agentmods](https://agentmods.dev/badge/skills/worldliberty/agentpay-sdk/add-plugin.svg)](https://agentmods.dev/skills/worldliberty/agentpay-sdk/add-plugin)
Your own site
<a href="https://agentmods.dev/skills/worldliberty/agentpay-sdk/add-plugin"><img src="https://agentmods.dev/badge/skills/worldliberty/agentpay-sdk/add-plugin.svg" alt="Measured on agentmods" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 817 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 $0.00097 $0.00817
Opus 5 $0.00048 $0.00409
Sonnet 5 $0.00019 $0.00163
Haiku 4.5 $0.00010 $0.00082

Measured 4d ago against content hash a4032ca348b1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

add-plugin 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 4d 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.

skills/add-plugin/SKILL.md · 59 lines

How it starts

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

Add Plugin

Use this skill when the task is "add another plugin like Bitrefill" or "make plugin onboarding more reusable."

Ground Truth

  • src/cli.ts is the main CLI entrypoint, but plugin-specific command trees should not be wired inline there.
  • src/plugins/types.ts defines the shared CliPluginContext and the generic plugin registrar shape.
  • src/plugins/index.ts is the registry for built-in plugins.
  • src/plugins/bitrefill.ts is the reference implementation for a plugin that owns its own command tree.
  • Plugin-specific HTTP or browser/bootstrap code belongs in src/lib/<plugin>.ts or src/lib/<plugin>/.
  • Signing, policy checks, manual approval handling, and raw transaction broadcast plumbing stay on the existing AgentPay path exposed through CliPluginContext.

Default Architecture

  1. Create src/plugins/<plugin>.ts.
  2. Register the plugin in src/plugins/index.ts.
  3. Keep plugin-local API normalization, transports, cookies, scraping, or challenge handling in src/lib/<plugin>*.
  4. Keep src/cli.ts responsible only for assembling shared dependencies and calling registerBuiltinCliPlugins(...).
  5. Reuse context.agent.runJson(...) plus context.broadcast.* for any payment flow that reaches the daemon.

Implementation Rules

  • Do not add another large inline .command('<plugin>') block to src/cli.ts.
  • Do not reimplement signing, nonce management, or policy logic in the plugin.
  • If the plugin needs onchain payment, default to preview-first behavior and make live payment explicit with --broadcast.
  • If the plugin only needs a quote plus an optional live payment path, prefer one buy-style command over a redundant separate price command.
  • Keep plugin-specific error handling inside the plugin module when possible.
  • If a remote API needs browser bootstrap, Cloudflare handling, or cookies, isolate that behind the plugin's transport/client layer instead of leaking it into the shared CLI.
  • Pass only shared helpers through CliPluginContext; keep plugin business logic inside the plugin module.

Read the full file on GitHub · 59 lines

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. 4d ago First seen · 59 lines · 97 tokens per session scan A a4032ca348b1

Subscribe to this mod's changes

add-plugin is a skill published in the GitHub repository worldliberty/agentpay-sdk (460 stars, last pushed 2mo ago), licensed MIT. It adds 97 tokens to every session and 817 once invoked, about $0.0005 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-30.

Related

Other skills, from other repositories

agent-payment-stats

Cross-protocol agent-economy payment metrics from Barker's index. x402 (Base) volume is on-chain verifiable; ACP / AP2 / MPP / AP4M figures are self-reported claims. Separates real vs nominal volume by filtering wash/noise sellers. Use when users ask about x402 volume, agent payment stats, agent economy metrics, or…

barkermoney/barker-mcp · 134 tokens

z-zero-payments

Pay for things from your agent — gasless USDC on Base plus JIT single-use virtual cards via the Z-Zero MCP server. Card data never enters the model context, and the manual card flow carries a signed purpose-and-outcome record.

Dempty-glitch/Z-Zero-mcp · 55 tokens

USDD / JUST Protocol

USDD stablecoin operations — PSM swaps (buyGem/sellGem), vault position queries, and balance checks via the JUST Protocol on TRON.

BofAI/skills · 37 tokens

stellar-forge

Eval-driven coding harness for building production Stellar dApps. Routes tasks to 6 specialist agents, verifies output with structured evals, steers on failure, e2e-tests with Stellar Agentic Kit hooks, and knowledge-graphs every project. Use when building any Stellar app — tokens, DeFi, NFTs, payment APIs, or full…

rylsherdamz-rgb/stellar-forge · 82 tokens

agentpay

Use this skill when the user wants to monetize an MCP server, accept payments from AI agents, set up x402 micropayments on Solana, work with the agentpay TypeScript stack, or build "agent pays for tools" flows. Triggers include phrases like "monetize my tool", "paid MCP server", "agent payments", "x402", "agentpay"…

agenticpay-dev/agenticpay · 100 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