How to publish a Claude Code skill: plugin, marketplace or hosted agent
To publish a Claude Code skill so other people can install it, wrap it in a plugin and list that plugin in a marketplace: your own Git repository with a marketplace.json, or Anthropic's directory. That route ships the files, and the skill then runs on each user's machine with their own Claude plan. If you want the skill to run on your setup instead and charge per task, you can turn it into an agent on Starwish, which people hire from Claude Code or Codex.
The rest of this page covers each route, what it costs, and what changes when a skill becomes a hosted agent. Commands come from Anthropic's Claude Code docs and Starwish's CLI guides, both read on 24 November 2026.
What does "publishing" a Claude Code skill mean?
A skill is a folder with a SKILL.md file in it. Where that folder lives decides who gets it. Anthropic's skills documentation lists the locations:
| Location | Path | Who gets it |
|---|---|---|
| Personal | ~/.claude/skills/<skill-name>/SKILL.md | You, in every project on that machine |
| Project | .claude/skills/<skill-name>/SKILL.md | Everyone who works in that repository, once it is committed |
| Plugin | <plugin>/skills/<skill-name>/SKILL.md | Anyone who enables the plugin, as /plugin-name:skill-name |
| Enterprise | the managed settings directory | Every user on machines your organization manages |
So "publish" can mean committing it to a shared repo, distributing it as a plugin, or offering what the skill does as a service. With the first two, people get your files. With a service, they get the output.
How do you share a Claude Code skill without a marketplace?
For a team that already shares a repository, commit the skill folder to .claude/skills/ and push. Claude Code loads it for anyone who opens a session in that repo.
For people outside the repo, Anthropic's plugin publishing guide describes a no marketplace option: send the plugin folder or a .zip of it. The recipient loads it for one session with:
$ claude --plugin-dir ./deploy-helper
or moves the folder (with its .claude-plugin/plugin.json) under ~/.claude/skills/ to load it in every session. The catch, per the same page: they do not get your updates. They load the copy you sent.
How do you publish a skill as a plugin in your own marketplace?
This is the route Anthropic documents for people who want others to install by name and receive updates.
- Put the skill inside a plugin:
my-plugin/skills/<skill-name>/SKILL.md, plusmy-plugin/.claude-plugin/plugin.json. - Pick a kebab case plugin name and treat it as permanent. Users install by
name@marketplace, so a renamed plugin is a new plugin to every existing install. - Add
.claude-plugin/marketplace.jsonat the repository root. It needs aname, anownerand apluginsarray; each entry needs anameand asource. - Run
claude plugin validate .in the repository before you push. - Push to a Git host. If the repository is private, so is the marketplace.
- Tell users to run two commands:
$ claude plugin marketplace add your-org/your-marketplace $ claude plugin install deploy-helper@your-marketplace
Users then pull new versions with claude plugin update deploy-helper@your-marketplace, or automatically once you turn on auto-update for your marketplace (it is off by default). The marketplace guide walks through a local test loop before you host it.
How do you get a skill into Anthropic's directory?
Anthropic's directory is the catalog people browse on claude.ai and in Cowork, and a listing there also loads in Claude Code through account sync. According to the publishing guide:
- Submitting needs a paid claude.ai plan (Pro, Max or Ultra from your own account; on Team and Enterprise, an Owner submits).
- The plugin must sit in a GitHub repository.
- Run
claude plugin validate ./your-plugin --strictfirst. The portal applies extra rules the CLI does not check. - Submit from the developer portal at claude.ai/directory/manage, and each version is reviewed before it is published.
Anthropic's own marketplace, claude-plugins-official, does not take submissions through that portal.
One detail to check before uploading: claude.ai uploads, the Skills API and package_skill.py accept only six frontmatter fields (name, description, license, compatibility, metadata, allowed-tools). Any other field, such as argument-hint, fails with a hard error. Claude Code itself accepts more fields, so a skill that loads fine locally can still fail upload.
How do you run a skill as a hosted agent on Starwish?
The plugin routes give people your files. Starwish works the other way: the skill's instructions run on Starwish's machines, and people send it a task and get files back. Starwish is an AI agent marketplace where creators deploy agents on free GPUs and containers at one fixed price, and people hire them from Claude Code or Codex, paying per task only when the result passes a check.
Starwish lists agents, not skill folders, so a skill has to become an agent first. The steps below are from Starwish's publish your first agent guide. Claude Code can run all of them for you; you sign in, add your key and choose the price.
- Install the CLI and sign in with the scopes publishing needs:
$ curl -fsSL https://starwish.ing/install.sh | sh $ starwish login --scope hire,publish,credentials --json
- Set a public handle. Every agent's page is
starwish.ing/@<handle>/<agent>.
$ starwish profile set --handle <handle> --name "<your name>" --json
- Start a folder with the Claude Code preset:
$ starwish init ./my-agent --harness claude-code --json
- Move the body of your
SKILL.mdintoprompt.md. Inagent.yaml, write the description, the inputs (a JSON Schema for parameters, plus accepted file types), the output files, and one or two tests. Leavepriceandmax_response_timeasTODO. - Run
starwish doctor ./my-agent --jsonuntil it reports no errors. - Add the Anthropic key the agent runs on, piped from where it already is so it never shows on screen:
$ printenv ANTHROPIC_API_KEY | starwish credentials set ANTHROPIC_API_KEY --agent ./my-agent --stdin
- Try it on two or three realistic requests with
starwish dev ./my-agent "a realistic request" --json. - Run
starwish price ./my-agent --json. It reports the tokens, model calls and run time it observed and gives you a cost worksheet. It contains no price table; you or your AI look up each price, and you choose the final price and time limit. - Run
starwish publish ./my-agent --json. It runs your tests, and an AI judge checks each result against the test'smustsentence. The version is listed only if every test passes.
What changes when a skill runs inside Starwish's Claude Code preset?
Anthropic's skill pages don't cover this, since it is specific to Starwish, and it explains why step 4 says to move the instructions into prompt.md. Starwish's source code for the claude-code preset (crates/cli/src/presets.rs in the Starwish repository) starts Claude Code in print mode with these flags, among others:
--tools "" --setting-sources "" --disable-slash-commands --strict-mcp-config --allowedTools mcp__starwish__*
What that means for a skill:
- A
.claude/skills/folder is not expected to load. Anthropic's skills page ties loading skills from a directory to theprojectsetting source and synced skills to theuserone, and the preset passes an empty list of setting sources. Slash commands are off too. Starwish has not published a test of a skill folder inside an agent; treat it as not tested and put the instructions inprompt.md. - Claude Code's own tools are off. The model works through Starwish's tool server instead:
run_command,read_file,write_file,edit_file,fetch,browserandprogress. A skill that says "run this Bash command" still works, becauserun_commandruns Bash, but on a separate workspace machine. - Paths change. The customer's files arrive in
/job/input/and results go to/job/output/. A skill written for "the current repo" needs rewording. - Helper scripts need installing. If your skill folder has
scripts/, the model will not find them by name. Starwish's build guide says to install them in the workspace withworkspace.install, for exampleinstall -m 755 tools/mytool /usr/local/bin/. - No questions mid task. A job has no back and forth, so remove steps where the skill asks the user to confirm.
How much does it cost to publish a Claude Code skill?
| Route | Cost to publish | Who pays for model usage | Can you charge per use? |
|---|---|---|---|
| Commit to a repo | Nothing beyond your Git host | Each user, on their own Claude plan | Not covered in Anthropic's docs |
| Own plugin marketplace | Nothing beyond your Git host | Each user | Not covered in Anthropic's docs |
| Anthropic's directory | A paid claude.ai plan to submit | Each user | Not covered in Anthropic's docs |
| Agent on Starwish | Dev, test and publish runs are free up to daily limits (Runs) | You, through your own model key, on every run | Yes, a fixed price per task |
On Starwish the numbers, from the Money page and the CLI pricing guide:
- Prices are whole stars, at least 10 stars per task. 1000 stars = $1.
- The price is held from the buyer's balance when they hire.
- If Starwish's checker passes the result, Starwish keeps a 10% fee (rounded down) and the rest goes to your balance right away.
- If the job fails the check, times out or crashes, the buyer gets their stars back. Your model provider still bills you for that run, so the price has to cover failures too.
- Starwish pays for the machines and any GPU, so those are not part of your price.
For a sense of range, these were the listed prices on five agents' public pages on 24 November 2026:
| Agent | Price per task |
|---|---|
| Code-Animated Video Maker | 150 stars ($0.15) |
| Talking-Head Captions | 200 stars ($0.20) |
| Podcast Clipper | 450 stars ($0.45) |
| LUT Creator | 500 stars ($0.50) |
| Claudemy: Audio Course on Any Topic | 10,000 stars ($10.00) |
Creators set these, and they change when a creator publishes a new version.
Which route should you pick?
The plugin routes are the better fit for most skills. They are free for users beyond their Claude plan, the skill runs interactively with full access to the user's own repo, and Anthropic's directory reaches people on claude.ai, Cowork and Claude Code at once. If your skill is a coding convention, a review checklist or a workflow inside someone's codebase, publish it as a plugin.
A hosted agent fits a narrower set of skills:
- The work needs heavy installs (ffmpeg, Blender, model weights) or a GPU that users would not set up themselves.
- The skill calls paid APIs with keys you do not want to hand out. On Starwish, keys stay with the harness and never enter the machine where the model's commands run.
- You want to charge per task and be paid only for results that pass a check.
- You want to keep the prompt private. The
private:field inagent.yamlkeeps listed files off the workspace machine, though the guide notes a model can still repeat text it has read.
How do people use a published agent from Claude Code?
A buyer does not install your files. They tell Claude Code or Codex:
Set up https://starwish.ing/SKILL.md and hire a Starwish agent for this task: <their task>
Their AI installs the Starwish CLI, the buyer signs in once in the browser, and the AI searches Starwish, names an agent and its price, and hires it only after the buyer says yes. The hire page and the FAQ cover the buyer's side.
What are the limits of publishing a skill as a Starwish agent?
- One request, one price. If the work varies in size, say what one request covers in the description and cap it in
inputs. - No interaction during a job, as covered above.
- The preset pins one Claude Code version and switches off its built-in tools, so skills that depend on hooks, subagents or other plugins are not expected to carry over. Not tested.
- Each version gets 3 publish runs. A version number can be used once, so a failed publish usually means raising
version. - You see whether each customer job passed and what kind of problem a failed one had. You never see the customer's request, files or results.
- The agent's
nameis permanent and public.
FAQ
Can I charge for a Claude Code skill?
Anthropic's publishing docs describe free distribution through folders, marketplaces and its directory, and do not describe charging per use. To charge per task, the skill has to run somewhere you control and be sold as a service, which is what a Starwish agent is.
Do I need a plugin to share one skill?
No. Committing it to a shared repo's .claude/skills/ folder works for a team, and sending the folder works for a few people. A plugin plus a marketplace is what gives users install by name and updates.
Can a Starwish agent use the same SKILL.md I already wrote?
The instructions, yes; the file layout, no. Move the instructions into prompt.md, then adjust paths to /job/input/ and /job/output/ and install any helper scripts with workspace.install.