Add Plugin

Use this skill when the user wants to add, refactor, or generalize a `agentpay <plugin>` integration like Bitrefill.

You say
Install this skill Read the source first Free Written by worldliberty · unverified publisher
Context cost
1.1k tokensestimated from the bundle, loaded when it triggers
Bundle
2 files · 4.3 kBtext throughout, nothing executable
Licence
MITfree to use
Last change
no release on file
Servers it uses
Noneruns standalone

What it does

Use this skill when the user wants to add, refactor, or generalize a `agentpay <plugin>` integration like Bitrefill. Follow the shared plugin registration path under `src/plugins`, keep plugin-specific API or scraping code under `src/lib/<plugin>` or `src/lib/<plugin>/`, reuse the existing Rust daemon signing and policy path through the shared CLI plugin context instead of reimplementing signing, and add focused CLI tests for the new plugin.

Installed, it changes the agent in these ways.

What this skill changes about the agent is not written down here yet. The listing was collected from its source, and the description is in its own SKILL.md.

Workflow

Runs a procedure end to end.

e-commerce

The skill itself

This is the whole product. A skill is instructions the model reads, so there is nothing behind the listing you cannot see first — the front matter loads with every session, and the body below it loads when the skill triggers.

SKILL.md3.8 kB · 59 lines
--- name: add-plugin description: Use this skill when the user wants to add, refactor, or generalize a `agentpay <plugin>` integration like Bitrefill. Follow the shared plugin registration path under `src/plugins`, keep plugin-specific API or scraping code under `src/lib/<plugin>` or `src/lib/<plugin>/`, reuse the existing Rust daemon signing and policy path through the shared CLI plugin context instead of reimplementing signing, and add focused CLI tests for the new plugin. ---
6# Add Plugin
7
8Use this skill when the task is "add another plugin like Bitrefill" or "make plugin onboarding more reusable."
9
10## Ground Truth
11
12- src/cli.ts is the main CLI entrypoint, but plugin-specific command trees should not be wired inline there.
13- src/plugins/types.ts defines the shared CliPluginContext and the generic plugin registrar shape.
14- src/plugins/index.ts is the registry for built-in plugins.
15- src/plugins/bitrefill.ts is the reference implementation for a plugin that owns its own command tree.
16- Plugin-specific HTTP or browser/bootstrap code belongs in src/lib/<plugin>.ts or src/lib/<plugin>/.
17- Signing, policy checks, manual approval handling, and raw transaction broadcast plumbing stay on the existing AgentPay path exposed through CliPluginContext.
18
19## Default Architecture
20
211. Create src/plugins/<plugin>.ts.
222. Register the plugin in src/plugins/index.ts.
233. Keep plugin-local API normalization, transports, cookies, scraping, or challenge handling in src/lib/<plugin>*.
244. Keep src/cli.ts responsible only for assembling shared dependencies and calling registerBuiltinCliPlugins(...).
255. Reuse context.agent.runJson(...) plus context.broadcast.* for any payment flow that reaches the daemon.
26
27## Implementation Rules
28
29- Do not add another large inline .command('<plugin>') block to src/cli.ts.
30- Do not reimplement signing, nonce management, or policy logic in the plugin.
31- If the plugin needs onchain payment, default to preview-first behavior and make live payment explicit with --broadcast.
32- If the plugin only needs a quote plus an optional live payment path, prefer one buy-style command over a redundant separate price command.
33- Keep plugin-specific error handling inside the plugin module when possible.
34- 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.
35- Pass only shared helpers through CliPluginContext; keep plugin business logic inside the plugin module.
36
37## Deterministic Workflow
38
391. Inspect src/plugins/bitrefill.ts to copy the current plugin structure and command style.
402. Add or extend the plugin client under src/lib/<plugin>*.
413. Add a new CliPlugin implementation under src/plugins/<plugin>.ts.
424. Register it in src/plugins/index.ts.
435. If the plugin needs signing or broadcast, use context.config, context.agent, and context.broadcast instead of shelling around the shared flow.
446. Add a focused CLI test file or extend the closest existing one under test/.
457. Run the plugin-focused tests and at least one agentpay <plugin> --help smoke check.
46
47## Testing Rule
48
49- Prefer mocked CLI/integration tests over live third-party dependencies.
50- Cover command registration, happy path output, unsupported modes, and any explicit challenge or approval state.
51- If the plugin supports --broadcast, cover both preview-only and broadcast-backed flows.
52
53## References
54
55- Read src/plugins/types.ts for the shared context contract.
56- Read src/plugins/index.ts for plugin registration.
57- Read src/plugins/bitrefill.ts for the current plugin pattern.
58- Read the matching src/lib/<plugin>* module only when implementing that plugin's remote API behavior.
59
In the file
SKILL.md513 words
Files2
LicenceMIT
Why you can read it

Nothing in a skill executes. The client loads the text and the model follows it, so a skill can be audited the way a runbook is — by reading it.

What it costs in context

Skills are not billed by the call. They are paid for in context: every token the instructions occupy is a token your code, your diff and your conversation cannot use. Here is what this one takes and when it takes it.

≈120
always loaded
The name and description, so the model knows the skill exists and when to reach for it.
955
on trigger
The instruction body and 1 supporting file, read only when the skill fires.
0.54%
of a 200k window
Ten skills this size would take about 5% of the window before you open a file.
050k100k150k200k context window

1.1k tokens, estimated from the bundle at four bytes to the token, held for the rest of the session once it triggers. Small enough to keep loaded permanently without thinking about it.

Servers bill, skills cost

A server charges by the month. A skill charges once per session, in context, and then keeps charging it for as long as the session lives.

Before and after

The same question, put to the same model twice: once as it comes, and once with these instructions loaded.

No worked example has been published for this skill yet.

Adoption
Installsnone yet
Ratingno reviews yet

The procedure it runs

The procedure has not been published here. It is in the skill’s own SKILL.md, which its author has not sent to the marketplace yet.

Prose, not code

These steps are written for a model to follow, not executed by a runtime. It can still be told to skip one, and it will say so when it does.

Servers it uses

None. This skill calls no MCP servers at all.

Everything it needs is in the instructions, so it works in a project with nothing connected — the model reads the file and changes how it works with what it can already reach.

It writes no files and reaches no network. All it changes is how the model reasons and writes.

What it asks for
Writes filesno
Network accessno

Read from the allowed-tools line of this skill’s own SKILL.md. A skill grants no permissions of its own — it can only ask for tools your client already has.

What it will not do

Every skill is narrow, and the useful ones say where they stop. These are the jobs this one is the wrong tool for.

What this skill is not for has not been published here. Nothing is implied by that: it is a section the author has not filled in.

What is in the bundle

2 files, 4.3 kB on disk. A bundle is text throughout: the instructions the model reads, plus the templates it fills in.

  • SKILL.md3.8 kB
  • agents/openai.yaml0.5 kB
What is not in it

No dependencies and nothing executable: a skill is text the agent reads, so the bundle is 2 files you can review in full before installing. The MIT licence covers the templates and examples as well as the instructions.

Install

Installing copies the bundle into your project. Nothing runs at install time — the files sit on disk until the model reads them.

# Add Plugin · 1.1k tokens when loaded npx mcprush@latest skill add worldliberty/add-plugin

Writes to .claude/skills/add-plugin/ in the current project. Add --global to put it in your home directory instead, for every project.

Which clients pick it up on their own

A skill is a folder of text. A client with a skills folder reads it without being told; everywhere else the same text works, it is just handed to the model rather than found.

Claude Code.claude/skills/
Claude Desktop
ChatGPT
Cursor.cursor/skills/
VS Code.github/skills/
Codex CLI.agents/skills/
Gemini CLI.gemini/skills/
Grok.grok/skills/
Zed.agents/skills/
Windsurf.windsurf/skills/
Agent SDK.claude/skills/
HTTP / API
This release
Versionnot versioned
Publishedno release date on file
PriceFree
Referenceworldliberty/add-plugin

Versions

Its author publishes no version number, so there is nothing here to pin to: what you install is the folder as it stands today. Instructions change more often than APIs do — a skill can be rewritten entirely without anything it depends on moving.

v
  • No earlier releases have been published to the marketplace.
Pinning

Nothing to pin to: this skill carries no version number of its own. What you install is what the folder holds on the day you install it.

Reviews

no reviews yet · no installs yet

Nobody has reviewed this skill yet. The rating is the mean of the reviews written here, so there is none until somebody writes the first.

Who can post

Only accounts that have had the skill installed for fourteen days, so a review is written after living with it rather than after reading it. Publishers may reply once.

Who wrote it

WO
worldliberty

Publishes on mcprush.

0 servers listed1 skill listednot claimed
Profile
Publisher
Servers0
Claim this skill