/magus:marketfrom magus
Publishes skill edits and manages plugins in a company plugin marketplace using magus market. Handles listing, editing, publishing, and adding skills/plugins.
Ships in magus. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
magus marketA company marketplace is the team's own Claude Code plugin marketplace on GitHub.
magus market changes it: it plans every change, binds consent to that plan, pushes (or
opens a pull request), and moves this machine's installs. Your job is to drive the verbs,
get the user's consent on the exact plan, and report the result.
Not this skill: "update my plugins", "update magus", "get the latest plugins" — that
is magus update, which installs what the project's profile declares. Teammates receive
published changes the same way.
git or gh yourself for marketplace work, and never run
claude plugin marketplace update. magus market does all of it.--json and read the one JSON object on the last line of stdout.--yes first. Apply only with --yes=<planId>, the
planId taken from the JSON of the plan the user approved. Never plain --yes: it
plans again and can apply a plan the user never saw.--force only after a conflict, no-base or base-guessed answer, and only when
the user has explicitly agreed to replace the plugin's version.Run magus --version. The market command needs magus 7.14.0 or later. Older → tell the
user to run magus upgrade, and stop.
| The user wants to | Run |
|---|---|
| see company marketplaces, plugins, skills | magus market list --json |
| find skills and plugin folders that are in no company marketplace | magus market list --json, read local[] (kind skill or plugin, name, scope project or user); offer the add row below for each |
| change a company skill | magus market skill edit <skill> --json (copies it into this project; edit that copy) |
| send edits back | magus market publish <skill> --json |
| update the plugin (several of its skills edited) | magus market publish --plugin <p@m> --json — every edited skill as one version; no-base/conflict copies are left out, each goes on its own with --force |
publish changes made to the plugin's local version (market status lists it in plugins[] as changed or conflict) | magus market publish --plugin <p@m> --from local-version --json — only the files changed locally, as one version; a file GitHub also changed fails with error.code: "conflict", and --force replaces GitHub's version of it |
| add a project or USER skill to a plugin | magus market skill add <skill> --plugin <p@m> --json (--from global for a USER skill; --create-plugin when the plugin does not exist yet) |
| add a plugin folder of the user's own | magus market plugin add <path> [--to <m>] --json (the folder holds .claude-plugin/plugin.json; it stays in place) |
| remove a skill from a plugin | magus market skill remove <skill> --plugin <p@m> --json |
| new or deleted plugin | magus market plugin create|delete <p@m> --json |
| new marketplace | magus market create <owner>/<repo> --private|--public [--company <name>] --json — ask which visibility and the company name magus shows it by (defaults to the GitHub owner) |
| use an existing repo | magus market connect <owner/repo|git-url|path> [--company <name>] --json (--company only for a repo with no marketplace yet) |
| take one off this machine | magus market remove <m> --json (the repository stays) |
<p@m> is plugin@marketplace; @m may be left out when there is one company
marketplace. magus market --help lists every flag.
The user would rather do it by hand: the same operations are on the screen
magus edit (run it in their own terminal; it needs a TTY, so never run it yourself).
There, a adds the selected skill or plugin folder, e copies a company skill here to
edit, p publishes (on a plugin row: its changed local version when it has one, else
every skill edited here as one version), ? lists every key.
Publish without a named skill: run magus market status --json and read both
skills[] and plugins[].
not-checked row in either → magus market fetch --json, then status againskills[] rows edited, no-base or conflict, and plugins[] rows
changed or conflict with at least one files[] entry (a row with only
notPublished[] shows a change that is never published). None → say there is nothing
to publish. One → publish it: a plugins[] row with
publish --plugin <p@m> --from local-version. Several → list them and ask which;
several edited rows of one plugin can go together with publish --plugin <p@m>.error.code: "base-guessed" on a local-version publish → the version it came from
could not be pinned down, so a listed file may be a teammate's GitHub change. Show
files[]; only if the user confirms they are their changes, rerun with --force.ambiguous (owners[]) → ask which plugin, then pass --plugin <p@m>plugin-newer → the plugin has a newer version of this skill; nothing to publish| Exit | JSON | Do |
|---|---|---|
| 3 | outcome: "needs-consent", planId, plan[] | Show the plan in plain words: each plan[] line, the version change, files not published (notPublished[] with reasons), and whether the local copy is removed. Ask. Yes → rerun the same command with --yes=<planId>. No → nothing changed. |
| 3 | outcome: "stale" | magus market fetch --json, then rerun without --yes. Still stale and it names a marketplace other than the target → rerun with --plugin <p@m>. |
| 3 | error.code: "plan-changed" | The marketplace moved since the user approved. Show the new plan[], ask again, apply with the new planId. |
| 1 | error.code: "conflict" or "no-base" | Show files[] and the plan[] lines. Explain: conflict = changed here and on GitHub; no-base = this copy's origin is unknown. Publishing replaces the plugin's version of the skill. Only on an explicit yes, rerun with --force (no --yes), then consent to that plan as above, applying with --force --yes=<planId>. |
| 1 | other outcome: "failed" or "partial" | Relay error.message and error.fix, plus each installs[] row with status: "failed" and its fix. partial means the push landed and an install did not move. |
| 4 | error.code: "gh-auth" | GitHub sign-in needed: relay error.fix. |
| 2 | usage, unknown or ambiguous name | Show error.message; fix the arguments or ask the user. |
| 0 | ok, unchanged, plugin-newer, pull-request | Report (below). |
From the final JSON, in plain words:
pullRequest — the PR URL when the branch was protected or a fork was used. A pull
request moves no install and keeps the local copy.version.from → version.to of the plugin.installs[] — per scope (USER, PROJECT, LOCAL): moved to which version, or why not.
An install whose local version has changes the change does not carry stays at its
version; the plan names it, and so does its row's message.localCopy — removed, kept or created, with its reason. A removed project copy is a
deletion under .claude/skills/ to commit.magus update in a project whose profile includes the plugin.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub madappgang/magus --plugin magus2 skills in this plugin
Other plugins' skills for the same job