Explore skills

Blog / Authors

How to Sell a Skill Without Exposing Its Source

A skill installed locally is plain files the buyer can read. To protect a Claude skill source, keep the secret on a server and call it via an API or MCP tool.

How to Sell a Skill Without Exposing Its Source

A skill that runs on a buyer's machine is a folder of plain files, and the buyer can open every one. You protect the secret part by never shipping it: keep it on a server you control and let the skill call it.

Table of contents

The short answer

If you hand someone a skill folder, you have handed them the source. There is no setting in the skill format that makes SKILL.md or a script unreadable to the person who installed it. So "protect a Claude skill's source" really means "do not put the valuable part in the folder."

The working pattern has four parts. Keep the prompts, data, scoring logic or scripts you want to protect on a server. Expose them as a tool the skill can call, through an HTTP API or an MCP server. Ship only a thin SKILL.md that tells Claude when to call the tool and what to do with the result. Charge per call, because the call is now the thing you control.

I have spent my career as a founder selling software, and the lesson carries over to skills: you can only sell what the customer cannot copy by reading it. This article comes from Anthropic's skills documentation, the MCP specification and the Ragspaces pages, all read on 2026-11-23. I did not build or benchmark a protected skill for this post, and where a detail is not documented I say so.

Why a local skill cannot hide anything

A skill is a folder with a SKILL.md file plus any scripts or reference files it needs. Claude Code reads it from your disk. The Claude Code skills docs list the personal location ~/.claude/skills/<skill-name>/SKILL.md and the project location .claude/skills/<skill-name>/SKILL.md. Both are ordinary directories on the buyer's computer.

Three facts from Anthropic's documentation make the problem concrete.

First, the docs describe how skills load: descriptions go into context so Claude knows what exists, and the full skill content loads when the skill is invoked. Whatever is in SKILL.md ends up in the model's context on the buyer's side. A prompt that is sent to the model on the buyer's machine is a prompt the buyer can read in the file before that.

Second, the docs say scripts are "executed, not loaded." That describes how tokens are spent and gives no protection. The script file still sits in the folder, and anyone can open it in an editor.

Third, Anthropic's Agent Skills overview tells users to audit skills: "Review all files bundled in the Skill: SKILL.md, scripts, images, and other resources." That is good advice for buyers, and it is also a statement of what buyers are expected to do. A careful customer reads your files. The security guidance assumes they can.

The same overview says that in Claude Code, skills have "the same network access as any other program on the user's computer." That detail works in your favor. A skill can call out to a server you run, which is the basis of the pattern below. It also means the buyer can watch exactly what leaves their machine, so design your calls as if someone is reading them.

None of this is a flaw. A skill is a text format built for sharing and auditing. It was designed to be readable. If you want a secret, you need a different place to keep it.

Options compared

Approach What the buyer receives Source exposed? Offline use Cost to you Source
Ship the skill folder All files Yes, fully Yes None Claude Code skills docs
Obfuscate or minify scripts All files, harder to read Yes, in effect Yes Low Agent Skills overview
Thin skill plus your own API A short SKILL.md and an endpoint No, the logic stays on your server No You run and secure a server Agent Skills overview
Thin skill plus your own MCP server A short SKILL.md and a tool No, if the server holds the logic No You run and secure a server MCP tools spec
Run-only skill on a hosting platform A tool to call, never the files No, per the platform's description No Platform terms apply How it works

The obfuscation row is my judgment, not a quote from any document. Scripts must run on the buyer's machine, so the buyer's computer has to be able to read them. Reverse engineering is a matter of effort, and "hard to read" is not "protected." The platform row reflects what Ragspaces says about its own paid skills (check date 2026-11-23); read the current terms before relying on it.

Step 1: decide what is actually secret

Most skills have less to hide than their authors think. Before you build any infrastructure, sort the contents of your skill folder into three piles.

The first pile is instructions that Claude needs to see to do the job: workflow steps, tone rules, output formats. Claude has to read these to follow them. Anything in this pile cannot be hidden from the person running the skill, because it is delivered to the model on their machine. If your edge is a clever instruction, a server-side call can still keep it private, but only if the instruction runs on the server and the buyer's Claude never sees it. More on that in step 3.

The second pile is data and reference material: a curated list, a dataset, scoring weights, templates. This is the easiest pile to protect, because the skill can ask your server a question and get an answer without receiving the whole dataset.

The third pile is code with real logic: a ranking algorithm, a parser tuned over months, a connector with credentials. This is also easy to move to a server, because code is already a function that takes inputs and returns outputs.

Write down which pile each file belongs to. Anything in the first pile that you decide is secret becomes a server-side prompt. Anything in the second and third piles becomes a server-side function. What is left is the thin skill.

A useful test: if a competitor had your SKILL.md and no server, could they reproduce the result you sell? If yes, your moat is not in that file and you should not charge for it as if it were. If no, the file is already thin enough.

Step 2: split the skill in two

Think of the product as two components with a contract between them.

The local part is the skill: a SKILL.md with a description that triggers it, a short list of steps, and the instruction to call a tool. It is public in effect, so write it as if it will be read.

The remote part is the service: the logic, data and prompts you protect. It takes structured input and returns a result.

The contract between them is the tool definition. The MCP specification for tools describes what such a definition contains: a name, an optional title, a description, and an inputSchema written in JSON Schema, with an optional outputSchema. A client lists tools with tools/list and calls one with tools/call, passing the tool name and its arguments. The result comes back as a content array, with an optional structuredContent field. Errors in the tool itself come back with isError: true.

Design that contract before you write the service. Two rules help.

Keep inputs minimal. Pass only what the service needs, such as a file's text, a URL or a few options. Every extra field is more of the buyer's data leaving their machine, and buyers notice.

Return finished results and keep the ingredients. If your service returns the prompt it used or intermediate scoring tables, the buyer's Claude now holds them. Return the answer in the shape the skill will present.

Step 3: put the secret part behind a call

You have two main routes, and the choice depends on who calls the tool.

An HTTP API. The skill tells Claude to call an endpoint, for example with a script or a shell command, and use the response. This is the simplest to build, and you can host it anywhere. The cost is that the skill folder now contains a script or a command that names your endpoint and perhaps an API key. The key is readable by the buyer, so issue each buyer their own key and never ship one shared secret in the folder. If the same key is in every copy, anyone can use it and you cannot tell customers apart.

An MCP server. The server exposes your logic as a tool. The MCP specification says tools "are designed to be model-controlled, meaning that the language model can discover and invoke tools automatically." That fits a skill that says "when the user asks for X, call the analyze tool." The spec also requires servers to declare the tools capability, and says servers MUST validate all tool inputs, implement access controls and rate limit calls. Those rules were written for safety, and they double as a checklist for a paid service.

Whichever route you pick, handle these on the server:

  • Authentication. Identify each caller, so you know who is using it and can cut them off.
  • Input validation. The spec requires it, and a paid endpoint will get hit by people probing it.
  • Rate limiting. Without a limit, one customer, or one script, can run up your costs.
  • Logging, within what your privacy policy allows. You need to know which calls fail.
  • Output discipline. Return the result and keep the machinery.

If your remote logic is an LLM prompt, the server sends the prompt to a model and returns the model's answer. The buyer's Claude sees the answer only. That is how a prompt stays private: it never travels to the buyer. The server has to hold your own model access and pay for it, which is a cost to price into the per-call fee.

If you already have a skill and want to turn it into a tool, the mechanics are in how to turn a skill into an MCP tool. For the layers involved, see the earlier article on skills vs MCP servers vs plugins.

Step 4: write the thin SKILL.md

The skill left on the buyer's side has one job: get Claude to call your tool at the right time and present the result well. Anthropic's docs say only description is recommended and that Claude uses it "to decide when to apply the skill." Spend your effort there. If you want a deeper treatment, see the earlier post on writing a SKILL.md description that triggers.

A thin skill has four parts:

  1. A frontmatter name and a description that says what it does and when to use it.
  2. One short paragraph on when to call the tool and what inputs to pass.
  3. Instructions for presenting the result: format, caveats, what to do if the call fails.
  4. Nothing else. No hidden rubric, no embedded dataset, no "internal notes."

A good habit is to reread the file as a stranger would, then ask: if this were posted in a public forum tomorrow, would I lose money? If so, something from pile one, two or three crept back in.

Plan for failure. A server can be down, the buyer's key can be wrong, and the buyer might be offline. Tell Claude what to say in those cases, in plain words, so the buyer gets an error they can act on instead of a model guessing at an answer.

Step 5: charge for the call

When the work happens on your server, you have something local skills never gave you: a count of how many times it ran. That makes per-run pricing natural. Other models exist, and the earlier comparison of paid skill pricing models walks through them with the published fees of each channel.

For a price, start from what is already charged. Ragspaces paid skill pages seen on 2026-11-23 show "$1.00 per run," for example chloekim11/cold-email and chloekim11/google-ads-keyword-research. That is one data point from one marketplace and not a recommendation. Ragspaces does not publish its revenue split with authors.

Work out your own floor first. Add up what a call costs you: model usage if your service calls an LLM, compute, storage and your time on support. Your per-call price has to sit above that with room left over, or every sale loses money. Then compare it with what the buyer would pay for the alternative, whether that is a free skill that does something similar, or doing the task by hand.

What this does not protect

Being honest about limits is part of selling this well.

The output. Whatever your service returns, the buyer can keep and reuse. If the result is a complete document, they have a document. Per-call pricing assumes the value is in getting a fresh result each time.

Behavior that can be probed. A buyer can call your service many times, study the answers and approximate what it does. Rate limits and per-key accounting slow this down. They do not make it impossible, and I will not claim they do.

Prompt leakage through the model. If your server runs a prompt and the model is asked to reveal it, an answer might echo part of it. Keep prompts out of returned text and filter outputs on the server. Treat the prompt as hard to extract, since nothing is unextractable.

The thin skill itself. The skill's instructions are still public to the buyer. Anything you cannot afford to expose must stay out of that file.

Offline use. A protected skill needs a network. Buyers who work offline, or in a locked-down network, cannot use it. For those buyers, a local skill with a license is the only option, and the protection is the license, not the technology.

Anthropic's guidance tells people to use skills only from trusted sources and to look for unexpected network calls. A skill that calls a remote server is exactly that. Say plainly in the skill's README what is sent to your server and what is kept. Buyers who can read that will trust you more, and the buyers who audit skills are the ones who will notice if you hide it. The earlier article on auditing a community skill before you install it describes what those buyers check.

Using Ragspaces for the hosting part

Building and operating your own API or MCP server is a legitimate choice, and it gives you full control of pricing, billing and customer data. It also means you are responsible for uptime, authentication and payments.

Ragspaces offers a different route for the hosting part. According to its how it works page, with protection on, other people call your skill as a tool from Claude Code or Codex. It runs on Ragspaces and they get the result, never your prompts or scripts. Authors can also charge per run for a skill. Visibility is set per skill: private (only you), followers, or public, which puts it in the catalog and search where anyone can install it free. Protection is separate from visibility, so a public listing can still be protected.

Two things to check before you rely on this. First, the facts above come from the product's own pages, and I did not publish and run a protected skill myself for this article. Second, the author revenue share is not listed, so confirm the terms with the platform before you plan around them.

You can read how paid skills look before deciding. Each skill page shows the price, a "Signal index" from 0 to 100, the updated date and a description. The wcag skill by @aishac is a free example of a page with a full description and README. Paid pages such as cold-email show the per-run price. If you want to see the model before building anything, open how it works on the site.

Pick a self-hosted API or MCP server when you want full control of the customer relationship, or when your service already exists as a product. Pick a platform when you would rather not run servers, authentication and billing yourself. Either way, the structure of the skill is the same: thin on the buyer's side, secret on yours.

Common mistakes

Shipping the secret in references/. Authors move a prompt into a reference file and think it is hidden because Claude only loads it when needed. The file is still in the folder.

One shared API key in every copy. The first buyer who posts the folder ends your pricing, and you cannot tell who leaked it. Issue a key per buyer.

Returning the recipe with the result. If the response includes the prompt, the rubric or the intermediate steps, the buyer has them.

Hiding what leaves the machine. Buyers who audit skills read the scripts. A call to an undocumented endpoint reads as a red flag, and Anthropic's own guidance tells people to look for exactly that.

Making the thin skill too thin. If the description is vague, Claude never calls your tool. A protected skill that never triggers earns nothing.

Skipping the failure path. When your server is down, a buyer with no error message assumes the product is broken.

Frequently asked questions

Can I encrypt or hide a SKILL.md file so buyers cannot read it?

Not in a way that survives. Claude has to read the instructions to follow them, so the text reaches the model on the buyer's machine. Scripts have to run there too. Obfuscation raises the effort to read them without removing it. To keep something private, run it on a server and let the skill call it.

What is the simplest way to keep a skill's prompt private?

Run the prompt on your own server. The skill sends inputs to an endpoint, your server calls a model with the private prompt, and only the answer returns to the buyer's Claude. The prompt never reaches the buyer's computer.

Should I use an HTTP API or an MCP server?

Either works. An HTTP API is simpler to build, and the skill calls it through a script or command. An MCP server exposes the logic as a tool that Claude can discover and call, with a defined input schema. The MCP specification also lists server duties such as input validation, access controls and rate limiting, which suit a paid service.

Does Ragspaces hide the source of a paid skill?

According to its how it works page, with protection on, others call your skill as a tool, it runs on Ragspaces, and they get the result and never your prompts or scripts. Check the current page and terms before you depend on it. Ragspaces does not publish the author revenue share.

What can a buyer still copy from a protected skill?

The results they receive, the thin SKILL.md and the tool definition. A determined buyer can also call the service many times and study its behavior. Rate limits and per-buyer keys slow that down. Treat protection as raising the cost of copying, and price the skill so the fresh result is the value.

How much should I charge per call?

Start from your cost per call, including model usage and hosting, then add margin. For reference, Ragspaces paid pages seen on 2026-11-23 show "$1.00 per run," which is a single data point and not a rule. Check the skill page for the current price.

Key takeaways

  • A skill installed locally is plain files, so shipping it means shipping its source.
  • Protect the secret part by keeping it on a server and calling it through an API or an MCP tool.
  • The thin SKILL.md should hold nothing you cannot afford to publish.
  • Give each buyer their own key, and return results rather than the recipe.
  • Server-side execution slows copying but does not stop buyers from keeping outputs or probing behavior.

The bottom line

Decide what is secret, move it behind a call, and keep the local skill thin enough to publish. Then price the call, because the call is what you now control. If you would rather not run the server yourself, see how Ragspaces runs protected skills.

Related articles

About this research

Anton Goldshtein is a two-time founder who previously bootstrapped a company to $100M in revenue. (LinkedIn)

This article is based on the Claude Code skills documentation, Anthropic's Agent Skills overview, the Model Context Protocol tools specification, and the Ragspaces how-it-works and skill pages, all read on 2026-11-23. I did not build, publish or benchmark a protected skill for this post. Content reviewed and updated: 2026-11-26

Keep reading