The first time I tried to make a Skill something people would pay for, I added a paragraph to the top of SKILL.md: check the licence key before doing anything else. Then I loaded it into Claude Code to test it. Claude read the whole file back to me, licence check included, and helpfully explained the two easiest ways around it.
That evening settled something for me. A Skill is not a product you can sell by hiding what's inside. SKILL.md, the reference files and the scripts are plain text the moment they reach someone's machine. Rather than building ever more elaborate locks around that, it is much faster to decide up front what you actually can protect, and design the product around that.
This piece is for indie developers who want to charge for a Skill or a Claude Code plugin. It walks through what each distribution route can and cannot protect, a concrete setup that gives access only to buyers (a private repository, a Stripe webhook and a Cloudflare Worker), and how I think about pricing and stopping. The spec details follow the official documentation as it stands in November 2026, but this area moves quickly, so please check each official page before relying on a step in production.
The short version: you sell "it keeps working", not the files
Anything delivered as text can be copied once it has been delivered. What cannot be copied out of a repository is this:
- the patterns and prohibitions keep being updated as the work they support changes
- buyers keep receiving those updates through a channel only they can reach (a private repo or marketplace)
- when they get stuck, they can ask the person who built it
I keep one line in front of me whenever a design decision gets murky:
Hand over the contents. Charge for the promise that it will still be right next month.
Once you accept that, you stop leaning on mechanisms that drop to zero value the moment someone bypasses them, and start building value out of the delivery channel and the update rhythm instead.
Skills vs. plugins: what each one is, and which to sell
A Skill is the knowledge; a plugin is the box it ships in
A Skill is a folder centred on SKILL.md (YAML frontmatter with name and description, plus a body), with reference files and scripts alongside. Under the Agent Skills specification, only each Skill's name and description are loaded at startup; the body and reference files are read only when the Skill is judged relevant to the task. The spec caps name at 64 characters and description at 1,024.
A Claude Code plugin bundles Skills together with slash commands, subagents, hooks and MCP server configuration into one distributable unit. The plugin root holds .claude-plugin/plugin.json, with Skills under skills/, commands under commands/, agents under agents/, and so on. Plugins are distributed through a marketplace: a git repository with a .claude-plugin/marketplace.json.
So they are less competing options than layers. The Skill is the substance; the plugin is the packaging and the delivery route. For Claude Code users, "put the Skill in a plugin and ship it through a marketplace" is the most natural shape for a product.
What each distribution route can protect
| Route | Who it reaches | Can buyers read the contents? | How updates arrive | Can you limit it to buyers? |
|---|---|---|---|---|
| A zip uploaded to claude.ai | claude.ai and desktop users with code execution enabled | Yes | They re-upload a new zip | You control the hand-off, not what happens to the zip afterwards |
| Claude Code plugin in a private marketplace repo | Claude Code users | Yes | Marketplace updates | Yes, via repository access, which you can revoke on cancellation |
| Claude Code plugin in a public repo or official directory listing | Anyone | Yes | Marketplace updates | No (good as a free entry point or sampler) |
| Keep the logic on your server and expose it as an MCP server | Users who can configure MCP | No, the logic stays server-side | Instantly, when you deploy | Yes, via API keys, at the cost of running a service |
If you want a single rule: Claude Code developers get a private marketplace, claude.ai business users get a zip plus update notices, and if the logic itself is the value, run an MCP server. When in doubt, start your first product as a private marketplace. It has the best balance between operational burden and what it actually protects.
Three misconceptions worth clearing up
- "The whole Skill is loaded every time it's called." Only
nameanddescriptionare loaded up front; the body is read when needed. That is exactly why thedescriptiondecides whether a paid Skill ever gets used. A vague description means a Skill someone paid for and Claude never reaches for. - "I can protect a Skill by validating a licence inside it." The validation code and the instruction that calls it are both sitting in plain text on the buyer's machine. As I found out, Claude can read them too. On top of that, network access from claude.ai's code execution environment can be restricted, so the check may fail for legitimate buyers.
- "Getting listed in the official directory means I can charge through it." Anthropic's marketplaces and directory are about distribution and discovery. I could not find anything in the November 2026 documentation describing a way to collect payment through them, so plan on running billing yourself.
Designing a Skill narrow enough to be worth paying for
General-purpose writing or code review Skills get compared head-to-head with free official Skills and public repos. The room to charge opens up when you narrow to one role and one task.
- Pick one role and one task. "E-commerce operator × product titles and descriptions" is narrow enough that you can say where the output goes. "Marketer × content" is not.
- Watch the current workflow. Which screen are they looking at, which template, which spreadsheet? A Skill hands that desk over to Claude, so you need to know the files involved before you can encode a pattern.
- Fix the output format. A Skill that returns a different shape each time loses trust the more it's used. Fix the heading order, the length, the required fields.
- Write down what a professional would never do. Show a draft to someone who does the work and note every "we'd never write that". Collected in something like
banned_phrases.md, that list is the part of the Skill nobody else has.
Here is where I went wrong first. My early prototype put all of the knowledge directly in the SKILL.md body. It didn't go well: every product category triggered the same long body, and the category-specific patterns that actually mattered got buried. These days SKILL.md only says when to use the Skill and what to read in what order, and the category patterns live in separate files that the body names explicitly.
A product-shaped file layout: a Skill inside a plugin
Here is a layout for shipping an e-commerce copywriting Skill as a plugin.
ec-copy-marketplace/ # private repository (the marketplace)
├── .claude-plugin/
│ └── marketplace.json
└── plugins/
└── ec-product-copy/
├── .claude-plugin/
│ └── plugin.json
├── skills/
│ └── ec-product-copy/
│ ├── SKILL.md
│ ├── style_guide.md
│ ├── banned_phrases.md
│ ├── categories/
│ │ ├── fashion.md
│ │ ├── cosmetics.md
│ │ └── home_appliance.md
│ ├── examples/
│ │ ├── input_001.json
│ │ └── output_001.md
│ └── scripts/
│ └── check_output.py
├── commands/
│ └── copy-check.md
├── CHANGELOG.md
└── LICENSEThe marketplace's marketplace.json names the marketplace, its owner, and the plugins it contains:
{
"name": "ec-copy-marketplace",
"owner": { "name": "YOUR_NAME" },
"plugins": [
{
"name": "ec-product-copy",
"source": "./plugins/ec-product-copy",
"description": "Writes e-commerce product titles and descriptions using per-category patterns and a banned-phrase list"
}
]
}The plugin's plugin.json carries the name, version and description. Bump the version with every update and record what changed in CHANGELOG.md. For a buyer, that changelog is the visible proof that the thing is alive.
{
"name": "ec-product-copy",
"version": "1.4.0",
"description": "A Skill that writes product copy from per-category patterns, plus a command that checks the output",
"author": { "name": "YOUR_NAME" }
}The SKILL.md description is the sentence that decides whether the Skill gets called. Say what it does and also which requests it is for:
---
name: ec-product-copy
description: Use when writing or revising e-commerce product titles and descriptions. Detects the product category (fashion, cosmetics, home appliances), follows the matching file in categories/ and banned_phrases.md, and returns a fixed heading structure.
---
# Steps
1. Detect the product category from the input and read only the matching file in categories/.
2. Draft using the heading structure in style_guide.md.
3. Check that nothing from banned_phrases.md remains.
4. Run scripts/check_output.py for length and required fields; fix any violations before returning.On the buyer's side, installation is two lines inside Claude Code (for a private repo, the buyer's own GitHub authentication needs to work):
/plugin marketplace add YOUR_ORG/ec-copy-marketplace
/plugin install ec-product-copy@ec-copy-marketplaceBilling: gate on access, not on validation
Before: checking a token from inside the Skill
My first design issued a token at purchase and had a script inside the Skill check it against a Cloudflare Worker:
// Before: validation endpoint, called from a script inside the Skill
export default {
async fetch(request, env) {
const { token } = await request.json();
const record = await env.TOKENS.get(token, { type: 'json' });
if (!record || record.expires_at < Date.now()) {
return new Response(JSON.stringify({ valid: false }), { status: 403 });
}
return new Response(JSON.stringify({ valid: true, plan: record.plan }));
}
};It works as code. As protection it has two holes. Deleting one line from SKILL.md removes the check entirely. And when a paying customer's check fails, it is hard to tell whether the fault is mine or a network restriction in their environment. A system that starts from suspicion of the people who paid you comes back to you as support work.
After: invite to the repo on purchase, remove on cancellation
What I recommend now is granting and revoking access to a private repository in step with purchases and cancellations. Add a "GitHub username" field to Stripe Checkout (custom_fields), and have a Cloudflare Worker receive the webhook and invite that user as a read-only collaborator through the GitHub API. When the subscription ends, the same Worker removes them.
// After: src/index.ts — a Worker that grants and revokes read access to a private repo from Stripe webhooks
import Stripe from "stripe";
export interface Env {
STRIPE_SECRET_KEY: string; // set with wrangler secret put (YOUR_STRIPE_SECRET_KEY)
STRIPE_WEBHOOK_SECRET: string; // the whsec_ signing secret
GITHUB_TOKEN: string; // fine-grained token with Administration: Read and write on the target repo
GITHUB_REPO: string; // e.g. "YOUR_ORG/ec-copy-marketplace"
BUYERS: KVNamespace; // customer_id -> GitHub username
EVENTS: KVNamespace; // processed event IDs (dedupe redeliveries)
}
const GH = "https://api.github.com";
async function github(env: Env, method: string, username: string) {
const res = await fetch(`${GH}/repos/${env.GITHUB_REPO}/collaborators/${encodeURIComponent(username)}`, {
method,
headers: {
Authorization: `Bearer ${env.GITHUB_TOKEN}`,
Accept: "application/vnd.github+json",
"User-Agent": "plugin-access-worker",
"Content-Type": "application/json",
},
body: method === "PUT" ? JSON.stringify({ permission: "pull" }) : undefined,
});
// PUT succeeds with 201 (invitation created) or 204 (already a collaborator); DELETE with 204
if (![201, 204].includes(res.status)) {
throw new Error(`GitHub ${method} ${res.status}: ${await res.text()}`);
}
}
export default {
async fetch(request: Request, env: Env): Promise<Response> {
if (request.method !== "POST") return new Response("Method Not Allowed", { status: 405 });
const stripe = new Stripe(env.STRIPE_SECRET_KEY);
const signature = request.headers.get("stripe-signature") ?? "";
const body = await request.text(); // signature verification needs the raw body; don't JSON.parse first
let event: Stripe.Event;
try {
event = await stripe.webhooks.constructEventAsync(
body, signature, env.STRIPE_WEBHOOK_SECRET, undefined, Stripe.createSubtleCryptoProvider()
);
} catch (e) {
return new Response(`Signature verification failed: ${(e as Error).message}`, { status: 400 });
}
if (await env.EVENTS.get(event.id)) return new Response("duplicate", { status: 200 });
try {
if (event.type === "checkout.session.completed") {
const session = event.data.object as Stripe.Checkout.Session;
const field = session.custom_fields?.find((f) => f.key === "github_username");
const username = field?.text?.value?.trim();
if (!username || !session.customer) throw new Error("github_username or customer missing");
await env.BUYERS.put(String(session.customer), username);
await github(env, "PUT", username);
}
if (event.type === "customer.subscription.deleted") {
const sub = event.data.object as Stripe.Subscription;
const username = await env.BUYERS.get(String(sub.customer));
if (username) await github(env, "DELETE", username);
}
} catch (e) {
// Returning 500 makes Stripe retry; don't mark the event as processed yet
return new Response((e as Error).message, { status: 500 });
}
await env.EVENTS.put(event.id, "1", { expirationTtl: 60 * 60 * 24 * 30 });
return new Response("ok", { status: 200 });
},
};Why it's written this way, in the order of the code:
constructEventAsyncwithcreateSubtleCryptoProvider(). The synchronousconstructEventfrom the Stripe SDK doesn't work on Workers, so you use the async version backed by Web Crypto. The body is read raw withrequest.text()because the signature is computed over those exact bytes.- Record the event ID only after the work succeeds. Record it first, and a GitHub failure would cause Stripe's retry to be thrown away as a duplicate.
pullpermission. Buyers only need to read. Write access would let one buyer change what every other buyer receives.- KV only for the lookup table and dedupe. Workers KV is eventually consistent; Cloudflare's docs note that writes can take time to become visible in other locations. Two near-simultaneous deliveries of the same event could both get processed, but a second PUT just returns 204, so no harm done. That is also why nothing involving money lives here.
Adding a collaborator on GitHub sends an invitation; the repository stays invisible until the buyer accepts it by email or notification. One line on the success page and in the receipt ("please accept the GitHub invitation") prevents most support emails. If you sell to individuals in Japan, you will also need the legally required seller disclosure page before checkout.
Testing it before going live
# Forward Stripe webhooks to a local wrangler dev with the Stripe CLI
npx wrangler dev # listens on http://localhost:8787
stripe listen --forward-to localhost:8787 # put the printed whsec_ into STRIPE_WEBHOOK_SECRET in .dev.vars
stripe trigger checkout.session.completed # custom_fields is empty here, so a 500 is the correct resultThe test session created by stripe trigger has no github_username, so a 500 with github_username or customer missing tells you signature verification and routing both work. To exercise the actual invitation, open a test-mode Checkout and enter the username of a spare GitHub account.
Sorting out where it breaks
| Symptom | Likely cause | How to check | Fix |
|---|---|---|---|
Webhook returns 400 with No signatures found matching the expected signature for payload | Body was parsed before verification, or the wrong endpoint's signing secret is in use | Confirm you pass request.text() as-is and that the whsec_ matches this endpoint | Pass the raw body; don't mix up the stripe listen secret with the dashboard one |
GitHub returns 403 Resource not accessible by personal access token | The fine-grained token doesn't include the repo, or lacks Administration permission | Check Repository access and Permissions on the token | Select the repo and set Administration to Read and write |
| GitHub returns 404 | Typo in GITHUB_REPO, or the token can't see the repo | Call GET /repos/{owner}/{repo} with the same token | Fix owner/repo; include the repo in the token's scope |
Buyer's /plugin marketplace add fails | Invitation not yet accepted, or their local git can't authenticate to the private repo | Ask them to run git ls-remote against the repo | Point them to the invitation; have them authenticate git, for example with gh auth login |
| Installed, but the Skill never gets used | The description doesn't match how people phrase requests, or the name collides with a built-in or another Skill | Rephrase the request and watch; check the loaded list with /skills or similar | Write in the description which requests it's for; give it a distinctive name |
| claude.ai rejects the upload | No folder containing SKILL.md at the top of the zip, or malformed frontmatter | Unzip and inspect the layout and the name/description | Zip the Skill folder itself; keep name to lowercase letters, digits and hyphens, 64 characters max |
Pricing: by the time they save, not the time you spent
Pricing something by "my hourly rate times hours spent" almost always comes out too low. For an information product, price by what the buyer gets back. Here is the rough calculation I start from (the numbers only illustrate the shape):
- Estimate time saved per use (say, 30 minutes).
- Estimate what that time is worth to them (say, $20 an hour, so $10 per use).
- Estimate uses per month (say, 20, so $200 of value).
- Set the monthly price at 10–20% of that value ($20–$40).
The form of the offer follows the update rhythm:
| Form | Fits | Watch out for |
|---|---|---|
| Monthly | Skills whose patterns and prohibitions keep changing with the work | Stopping updates becomes a reason to cancel; leave a changelog entry every month |
| One-off plus a year of updates | Plugins with a stable procedure (release chores, fixed reports) | The version they have keeps working; decide up front whether access ends with the update period |
| Annual per team | Teams standardising one pattern internally (first-pass contract checks, for example) | Have invoicing and a way to swap seats ready |
If you can't decide: monthly if you can see yourself adding something every month, one-off if you can't. A monthly product that stops changing slowly wears away the trust of the people paying for it.
Find your first buyers before you build
The most expensive mistake is finishing the product and only then looking for people to buy it. Reverse the order:
- Pick three places where people in your target role gather (industry communities, meetups, hashtags).
- Ask about a specific moment of friction: "which file do you open, and what takes the longest?" The answer is often the Skill's pattern, almost word for word.
- Show a single sample output and ask whether they would use a Skill that returns exactly this.
- Give early access to those who say yes, and watch them use it.
The sample matters because there is a wide gap between "that sounds handy" and actually opening it every day. Reactions to a concrete output reflect that gap far more honestly than reactions to a description.
Reducing churn: make updates visible
For a monthly product, the number to watch is churn, not sign-ups. People rarely cancel because something broke; they cancel because they haven't used it lately. So keep giving them a reason through updates:
- Every two weeks, fold buyers' "this output doesn't work for us" feedback into
banned_phrases.mdor the category patterns. - Bump
versioninplugin.jsoneach time and add a line toCHANGELOG.md. - In the update notice, say briefly what changed and which requests it helps with.
If you're tempted to collect usage data, don't build telemetry into the Skill. The moment a buyer worries that their files or business details might leave their machine, the Skill becomes unusable at work. A short survey asks the same questions more honestly.
Decide your exit line before you launch
Hanging on to a product that isn't selling, "just a little longer", drains the energy you'd need for the next one. Before launch I write down lines like these (I set the numbers per product):
- If it hasn't reached ten buyers three months after launch, stop selling and move it to a public repo.
- If two months pass with nothing worth shipping as an update, switch from monthly to one-off.
- If I can't keep up with Claude Code or Skill spec changes for six months, stop new sales.
I don't see stopping as an admission of failure. It is part of being straight with the people who paid. Continuing to bill monthly for something I can no longer update would sit far worse with me.
What tends to trip you up next
Once sales start, the problems that show up are mostly about managing what you've shipped. "I installed the same version as everyone else but it behaves differently" usually traces back to how the package was built or to a name collision.
- When the number of Skills grows and buyers want to switch groups of them on and off, One plugin.json turns a shelf of skills into something you can switch off as a group is a good starting point for designing plugins as removable units.
- If you ship zips and identical contents produce different hashes, Same Content, Different SHA-256: Making Pinned Plugin Archives Reproducible helps isolate the cause.
- When a buyer says "I called it and nothing happened", check for name collisions first with The Skill Call That Returned Nothing — Pinning Down Name Resolution Before an Unattended Run.
- If reference files pile up and loading gets heavy, The Biggest Section in Your SKILL.md Is Usually the One to Keep helps decide what to cut.
If you do one thing after reading this, rewrite the description of the Skill you want to sell, then ask someone who didn't build it to read that one sentence and tell you when they'd expect it to be used. In my experience, whether something can become a product usually shows up right there.