/marketplace-kit:marketplace-publishfrom Marketplace Toolkit
Publish one or more of this repo's plugins to its marketplace — both the Claude Code and Codex catalogs in the marketplace repo — by opening a PR there. Use to add a new plugin to the marketplace or update an already-listed plugin's catalog entry (name, description, homepage, Codex category). Not needed for ordinary content edits to a listed plugin — those reach consumers automatically.
Ships in Marketplace Toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Publish one plugin from this source repo to a marketplace catalog by opening a pull request on the marketplace repo. Works for a single plugin or a set, in one PR. Runs on your local gh credentials — no GitHub Actions, no tokens.
A marketplace repo carries two catalog files, one per platform: .claude-plugin/marketplace.json (Claude Code) and .agents/plugins/marketplace.json (Codex). A publish run updates each catalog for which the plugin has a corresponding source manifest.
Follow the procedure below with your normal tools (gh, git, jq); it's deliberately plain rather than a script so you can adapt to how many plugins are being published and to anything unusual in the catalog.
Manual-only on every harness. Claude Code enforces this via the disable-model-invocation frontmatter flag, Codex via policy.allow_implicit_invocation: false in agents/openai.yaml. On any harness with neither, apply the same rule yourself — run this skill only on the user's explicit request, never proactively.
This skill changes only the marketplace catalog (marketplace.json) — it does not ship plugin content. Content updates are gated by each plugin's version in plugin.json (Claude Code's update cache key; the git-subdir commit SHA is only the fallback when no version is set), so reaching existing installs with edited content means bumping that plugin's version, not republishing the catalog.
A marketplace's catalog only needs a change when you:
name, description, or homepage, orname or interface.category in .codex-plugin/plugin.json.If the user is only editing an already-listed plugin's instructions, tell them no publish is needed.
gh is authenticated (gh auth status) with write access to the marketplace repo..claude-plugin/plugin.json, .codex-plugin/plugin.json, or both. Validate each present manifest with its platform tooling. A deleted platform manifest means remove only that platform's catalog entry; deleting the whole plugin removes both. Preserve Claude rename and removal history as described below.npm run sync:check in the source repo to verify vendored skills before publication.Resolve this repo's owner/repo (gh repo view --json nameWithOwner -q .nameWithOwner, or a normalized git remote get-url origin) and look it up in the bundled registry references/marketplaces.md (at runtime, resolve that link relative to this skill's directory — it lives at the plugin root, two levels up from this SKILL.md). Each row supplies both the marketplace target and its user-facing Codex display name. If there's no row for this repo, ask the user for both values — and offer to add a row so the next run resolves them automatically.
The goal: one PR on the marketplace repo that reconciles the chosen plugins in the applicable catalog files.
Build each entry. If plugins/<name>/.claude-plugin/plugin.json exists, read its name, description, and homepage. Form the Claude catalog entry:
{
"name": "<plugin>",
"source": { "source": "git-subdir", "url": "https://github.com/<owner>/<this-repo>.git", "path": "plugins/<plugin>" },
"description": "<from plugin.json>",
"homepage": "<from plugin.json>"
}
The manifest is the source of truth for description and homepage. Precedence:
description — copy verbatim. If the field is missing or empty, stop and ask the user to populate it before continuing; the catalog can't ship a blank description.homepage — if the field is present in the manifest, copy verbatim. If it's absent, derive the fallback https://github.com/<owner>/<this-repo>/tree/<default-branch>/plugins/<plugin>, resolving <default-branch> the same way step 1's Codex ref does — never hardcode main.To resolve <owner>/<this-repo> for the fallback, prefer gh repo view --json nameWithOwner -q .nameWithOwner on the source repo — it returns the canonical owner/repo regardless of remote protocol. If you fall back to git remote get-url origin, normalize the output: HTTPS form https://github.com/<owner>/<repo>.git and SSH form [email protected]:<owner>/<repo>.git both reduce to <owner>/<repo> after stripping the prefix and trailing .git. Never interpolate the raw remote string into the URL — an SSH origin produces a broken link like https://github.com/[email protected]:<owner>/<repo>.git/tree/main/....
Codex catalog entry. If plugins/<name>/.codex-plugin/plugin.json exists, read its name and interface.category. Codex installs the same plugin directory and reads that authored manifest. The entry uses constant policy; resolve ref from the source repository's default branch instead of assuming main:
{
"name": "<plugin>",
"source": { "source": "git-subdir", "url": "https://github.com/<owner>/<this-repo>.git", "path": "plugins/<plugin>", "ref": "<default-branch>" },
"policy": { "installation": "AVAILABLE", "authentication": "ON_INSTALL" },
"category": "<from .codex-plugin/plugin.json interface.category>"
}
The marketplace repo's CI enforces this same entry shape mechanically: scripts/catalog-health.mjs there pins the contract as exported constants (SOURCE_REPOSITORY_URL, SOURCE_DEFAULT_BRANCH, EXPECTED_CODEX_POLICY, EXPECTED_CODEX_DISPLAY_NAME). This skill resolves the source URL, default branch, and display name dynamically; the checker verifies them — so a source-repo rename, default-branch rename, display-name change, or any change to the entry shape must update the marketplace checker in the same release, or publish PRs will fail its catalog-validation check.
Clone the marketplace shallowly to a temp dir, e.g. gh repo clone <marketplace> /tmp/mkt-publish -- --depth 1.
Merge into the catalog. Run every command in this step from the clone root (/tmp/mkt-publish) — the paths below are all clone-root-relative. In .claude-plugin/marketplace.json, add each entry to plugins[] — replacing any existing entry with the same name — and keep the array sorted by name. jq does this cleanly; for a single entry held in $ENTRY:
jq --argjson e "$ENTRY" '.plugins = (((.plugins // []) | map(select(.name != $e.name))) + [$e] | sort_by(.name))' \
.claude-plugin/marketplace.json > tmp && mv tmp .claude-plugin/marketplace.json
Apply once per plugin (or fold several into one jq pass).
Apply the same merge to the Codex catalog at .agents/plugins/marketplace.json for every Codex entry built in step 1. If that file doesn't exist yet, create it first as {"name": "<marketplace-name>", "interface": {"displayName": "<Codex-display-name>"}, "plugins": []}, where <marketplace-name> matches the name field in .claude-plugin/marketplace.json and <Codex-display-name> comes from the mapping registry. If the file already exists, verify that both top-level fields match the mapping before editing plugin entries; do not silently replace an unexpected marketplace identity.
Removals. The merge above only adds or updates. Remove an entry when its corresponding source manifest no longer exists. A plugin deleted from the source repo comes out of both files:
jq --arg n "<plugin>" '.plugins = ((.plugins // []) | map(select(.name != $n)))' \
.claude-plugin/marketplace.json > tmp && mv tmp .claude-plugin/marketplace.json
jq --arg n "<plugin>" '.plugins = ((.plugins // []) | map(select(.name != $n)))' \
.agents/plugins/marketplace.json > tmp && mv tmp .agents/plugins/marketplace.json
If only one platform manifest was removed, run only that platform's removal command; the other catalog entry remains published.
.agents/plugins/marketplace.json doesn't exist (a marketplace that has never published Codex entries), skip the Codex removal command — don't create the file just to delete from it.Claude renames and removals. A Claude plugin's name is its stable installed identity. When it changes, add an append-only top-level renames mapping from the old name to the new name. When a Claude catalog entry is removed without a replacement, map its old name to null. Preserve every earlier mapping so users on older names can still follow the full chain. This history belongs only in .claude-plugin/marketplace.json; the Codex catalog has no corresponding field. Run strict Claude validation after updating it so broken or cyclic chains fail before publication.
Confirm both files still parse (jq empty).
If the marketplace generates its Plugins table from the catalog — the table is wrapped in <!-- BEGIN/END:PLUGINS-TABLE --> markers and the repo ships scripts/sync-readme-table.mjs — regenerate it now so the README reflects the new entries: (cd /tmp/mkt-publish && node scripts/sync-readme-table.mjs). Skip this for catalogs without that script. The staged commit in step 6 picks up the regenerated README.md alongside the catalog files.
Validate the marketplace manifest. Run (cd /tmp/mkt-publish && npm ci && npm run validate:claude) to install and execute the marketplace's lockfile-pinned strict Claude validator. Do not substitute a globally installed claude command or a JSON parse check. (The Codex catalog has no stable local validation command — the jq empty parse check in step 3 is its repository gate; codex plugin marketplace add on the merged repo is the runtime proof.)
Show the diff and confirm. Stage the publish's files explicitly, then review the staged diff — a first Codex publish creates .agents/plugins/marketplace.json as an untracked file, which plain git diff (and commit -am) silently skip:
git -C /tmp/mkt-publish status --short # confirm nothing unexpected changed in the clone
git -C /tmp/mkt-publish add .claude-plugin/marketplace.json .agents/plugins/marketplace.json README.md
git -C /tmp/mkt-publish diff --staged
Stage exactly what this publish touched — drop from the add any path that doesn't apply (a Claude-only change with no Codex catalog; a README that wasn't regenerated). Never stage blindly (add -A/add .): the clone may hold stray files from validation or table generation. Show the user the staged diff before anything is pushed. If there's no staged change, say so and stop.
Open the PR on the marketplace repo using local creds (committing the staged changes from step 5):
git -C /tmp/mkt-publish switch -c publish/<slug>-<timestamp> # e.g. publish/webgl-kit-20260713220541
git -C /tmp/mkt-publish commit -m "➕ Publish <plugins> to the marketplace catalog"
git -C /tmp/mkt-publish push -u origin HEAD
gh pr create --repo <marketplace> --head publish/<slug>-<timestamp> --title "➕ Publish <plugins>" \
--body "Adds/updates the listed plugin entries in the marketplace catalogs, sourced from this repo via git-subdir."
The explicit --head keeps gh pr create independent of your current directory — without it, gh infers the head branch from whatever git repo the shell happens to sit in (usually the source repo, which aborts the command).
Report the PR URL and clean up the temp clone.
Re-running for an already-listed plugin just updates its entry — the operation is idempotent.
Review and merge the PR on the marketplace repo; once merged, /plugin install <name>@<marketplace> (Claude Code) and codex plugin add <name>@<marketplace> (Codex, after codex plugin marketplace add <owner>/<marketplace-repo>) resolve the entries. To see what's listed vs. what's local at any point, use the marketplace-sync-check skill.
What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/catalog-refreshRegenerate docs/CATALOG.md's plugin table deterministically from the plugin manifests, fixing missing, stale, or mis-counted rows. Use when the user asks to refresh the local catalog, or after a plugin's name, description, or component count changes. The write-capable counterpart to marketplace-sync-check; touches only the local catalog table — never the published marketplace, never commits./marketplace-publish-checkRead-only check of whether the current branch changes fields stored in a Claude or Codex marketplace catalog. Use when opening a source PR to decide whether to apply the marketplace-publish label. Version-only and plugin-card-only changes do not count./Other plugins' skills for the same job
marketplace-kit@cypherpoet-toolchest is listed by cypherpoet/cypherpoet-toolchest — review the source before installing
npx claudepluginhub cypherpoet/cypherpoet-toolchest --plugin marketplace-kit