/marketplace-admin:marketplace-managerfrom marketplace-admin
Administers a private skills marketplace repo shared between Claude Code and Codex CLI. Handles init, import, scaffolding, publishing, and status reporting with dual-runtime manifest management.
Ships in marketplace-admin. 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.
You administer a private skills marketplace repository on behalf of its owner. The repository serves both Claude Code and Codex CLI from the same files. Five flows: init, import, add-plugin, publish, status. Pick the flow that matches the user's intent, then follow its procedure.
Every change touches two manifest sets in lockstep:
| Layer | Claude Code path | Codex path |
|---|---|---|
| Marketplace registry (repo root) | .claude-plugin/marketplace.json | .agents/plugins/marketplace.json |
| Plugin manifest (per plugin) | plugins/<name>/.claude-plugin/plugin.json | plugins/<name>/.codex-plugin/plugin.json |
| Skills tree (per plugin) | plugins/<name>/skills/ (shared — both runtimes read it) | same |
Whenever a flow writes to one manifest, it must also write the parallel file. The skill is the only writer in normal operation; treat any drift between the two registries as a bug.
escalationTriage → escalation-triage, Escalation Triage → escalation-triage) and confirm with the user before writing.REPLACE_ME_*. Their presence anywhere in the repo means init has not been completed for that field..agents/plugins/marketplace.json, default policy.installation: "AVAILABLE", policy.authentication: "ON_INSTALL", category: "Productivity". Do not add an interface block to plugin.json on init — the owner can add display metadata later if they ever publish externally.Owners often invoke this skill from a directory unrelated to the marketplace repo. To find the repo:
~/.config/claude-marketplace-admin/config.json if it exists. Expected shape: {"repo_path": "/abs/path/to/marketplace-repo"}.repo_path doesn't exist on disk:
.claude-plugin/marketplace.json (or .agents/plugins/marketplace.json), use cwd and offer to save it to config.repo_path — never assume cwd.When writing the config file, create ~/.config/claude-marketplace-admin/ if it doesn't exist. Use mkdir -p.
init (first run)Trigger when: any REPLACE_ME_* sentinel exists in any manifest, README.instance.md, or LICENSE.
Procedure:
Confirm cwd is the marketplace repo. If the user invoked from inside the cloned template, cwd should contain both .claude-plugin/marketplace.json and .agents/plugins/marketplace.json with sentinels present. If not, ask them to cd into the cloned template repo and re-trigger.
Verify it's a git repo with a GitHub remote. Run git remote get-url origin to capture <owner>/<repo>. If no remote, prompt the user to either (a) create one with gh repo create <name> --private --source=. --remote=origin --push, or (b) provide the slug manually.
Confirm privacy. Run gh repo view --json visibility -q .visibility. If not PRIVATE, prompt: "This repo is currently public. Make it private now? (recommended — your team's skills shouldn't be world-readable.)" If yes: gh repo edit --visibility private --accept-visibility-change-consequences.
Collect:
MIT (keep), UNLICENSED (proprietary, recommended for private internal repos), or other (prompt for SPDX identifier)Do not ask about Codex-specific metadata (display name, category, capabilities, brand color, etc.). Defaults are sufficient for private team marketplaces; the owner can edit .codex-plugin/plugin.json later if they ever publish externally.
Rewrite files in lockstep across both runtimes:
.claude-plugin/marketplace.json: replace team-marketplace with new name (only if user changed it), replace REPLACE_ME_company_name everywhere.agents/plugins/marketplace.json: replace team-marketplace with new name (only if user changed it), replace REPLACE_ME_company_name in the interface.displayName fieldplugins/team-skills/.claude-plugin/plugin.json: replace REPLACE_ME_company_nameplugins/team-skills/.codex-plugin/plugin.json: replace REPLACE_ME_company_nameplugins/marketplace-admin/.claude-plugin/plugin.json: no sentinels by design (description is generic)plugins/marketplace-admin/.codex-plugin/plugin.json: no sentinels by designREADME.instance.md: replace REPLACE_ME_marketplace_name, REPLACE_ME_company_name, REPLACE_ME_github_owner/REPLACE_ME_github_repo with real valuesLICENSE: replace REPLACE_ME_company_name on line 3. If user chose UNLICENSED, replace the file body with an UNLICENSED stub; if they chose another SPDX identifier, replace with the corresponding license text.Validate that no REPLACE_ME_* sentinels remain anywhere in the repo before continuing. If any do, surface them and stop.
Swap READMEs: confirm the destructive rename with the user, then git rm README.md && git mv README.instance.md README.md. The marketing README is unrecoverable post-init by design (different audience, dates badly).
Save config: Write ~/.config/claude-marketplace-admin/config.json with {"repo_path": "<absolute path of repo>"}.
Commit and push:
git add -A
git commit -m "chore: initialize marketplace as <name> for <company>"
git push -u origin <branch>
Print teammate install snippets for both runtimes (with real <owner>/<repo> and <marketplace-name> substituted):
# Claude Code
/plugin marketplace add <owner>/<repo>
/plugin install team-skills@<marketplace-name>
# Codex CLI
codex plugin marketplace add <owner>/<repo>
codex plugin install team-skills@<marketplace-name>
Remind the owner to share docs/install-claude-code.md and docs/install-codex.md with their team — teammates pick whichever runtime they use.
Print owner reminder: "From now on, trigger this skill from anywhere — your repo path is saved at ~/.config/claude-marketplace-admin/config.json."
import (add an existing skill to the marketplace)Trigger when: user says "add this skill", "import skill", "publish skill X to team", "share my skill", etc. Init must already be complete (no sentinels remain).
Procedure:
~/.claude/skills/<name>/ (Claude Code user-level personal skills)~/.codex/skills/<name>/ (Codex user-level personal skills)<some-project>/.claude/skills/<name>/ or <some-project>/.agents/skills/<name>/ (project-level skills)SKILL.md at its root.
Verify the path contains SKILL.md. Read the frontmatter to get the skill name. (Skills are byte-for-byte identical across runtimes, so the source can come from either ecosystem.)<repo>/.claude-plugin/marketplace.json (excluding marketplace-admin). If exactly one, default to it and confirm. If multiple, ask which.<repo>/plugins/<plugin>/skills/<skill-name>/ already exists, ask: overwrite, rename, or abort.cp -R <source> <repo>/plugins/<plugin>/skills/<skill-name>. Preserve the entire directory (sub-files, scripts, references — anything the SKILL.md depends on).<source>? You'll consume the team version once you install <plugin>@<marketplace> on this machine, which avoids divergence between your personal copy and the team copy." If yes: rm -rf <source>. Tell the user to run the install command in whichever runtime they use (/plugin install for Claude Code, codex plugin install for Codex) if they haven't already.publish flow.add-plugin (scaffold a new plugin in the marketplace)Trigger when: user says "add a plugin", "split into plugins", "create a sales plugin", etc.
Procedure:
.claude-plugin/marketplace.json or .agents/plugins/marketplace.json.plugins/<name>/
.claude-plugin/plugin.json
.codex-plugin/plugin.json
skills/ (empty directory; create with a .gitkeep)
.claude-plugin/plugin.json:
{"name": "<name>", "version": "0.1.0", "description": "<description>"}
.codex-plugin/plugin.json:
{
"name": "<name>",
"version": "0.1.0",
"description": "<description>",
"license": "<license-from-LICENSE-or-MIT>",
"skills": "./skills/"
}
.claude-plugin/marketplace.json — add {"name": "<name>", "source": "./plugins/<name>", "description": "<description>"} to the plugins array..agents/plugins/marketplace.json — add to the plugins array:
{
"name": "<name>",
"source": {"source": "local", "path": "./plugins/<name>"},
"policy": {"installation": "AVAILABLE", "authentication": "ON_INSTALL"},
"category": "Productivity"
}
jq . <file> or equivalent) before continuing.publish (commit + push)Trigger when: user says "publish", "ship it", "push", "release", or after import/add-plugin completes.
Procedure:
git -C <repo_path> status --short. If no changes, print "Nothing to publish" and stop.skills/ or own files changed, bump the patch number in both plugins/<plugin>/.claude-plugin/plugin.json and plugins/<plugin>/.codex-plugin/plugin.json to the same value. Versions must stay in sync across the two files. Skip if user prefers to bump manually.<verb>: <skill-or-plugin-name> in <plugin-name> for single-skill changes, or a summary for multi-file changes. Verbs: add, update, remove.git -C <repo_path> add -A
git -C <repo_path> commit -m "<message>"
git -C <repo_path> push
/plugin marketplace update. Codex teammates need to run codex plugin marketplace upgrade <marketplace-name> (Codex has no auto-update toggle as of writing)."statusTrigger when: user says "what's in the marketplace", "list skills", "marketplace status", "what have I shipped".
Procedure:
<repo>/.claude-plugin/marketplace.json and <repo>/.agents/plugins/marketplace.json. List each plugin (name, version from its plugin.json, description).name values. If they diverge, warn loudly — that's a bug. Likewise, for each plugin compare version between .claude-plugin/plugin.json and .codex-plugin/plugin.json and warn if they differ.plugins/<plugin>/skills/<*>/SKILL.md with their name and description from frontmatter.git -C <repo_path> status --short and git -C <repo_path> log -5 --oneline to show pending changes and recent ships.REPLACE_ME_* sentinels are still present anywhere, warn the user and suggest re-running the init flow.write-a-skill / skill-creator skill. Once they have a working skill, return here for the import flow.docs/install-claude-code.md and docs/install-codex.md. If the owner asks how to onboard a teammate, point at the doc that matches the teammate's runtime..claude-plugin/marketplace.json and .agents/plugins/marketplace.json as a bug, and the same for .claude-plugin/plugin.json vs .codex-plugin/plugin.json within a plugin..claude-plugin/marketplace.json (Claude Code):
{
"name": "<kebab-case>",
"owner": { "name": "<display name>" },
"description": "<one line>",
"plugins": [
{ "name": "<kebab>", "source": "./plugins/<kebab>", "description": "<one line>" }
]
}
.agents/plugins/marketplace.json (Codex):
{
"name": "<kebab-case>",
"interface": { "displayName": "<display name>" },
"plugins": [
{
"name": "<kebab>",
"source": { "source": "local", "path": "./plugins/<kebab>" },
"policy": { "installation": "AVAILABLE", "authentication": "ON_INSTALL" },
"category": "Productivity"
}
]
}
.claude-plugin/plugin.json:
{
"name": "<kebab-case>",
"version": "<semver>",
"description": "<one line>"
}
.codex-plugin/plugin.json:
{
"name": "<kebab-case>",
"version": "<semver>",
"description": "<one line>",
"license": "<spdx>",
"skills": "./skills/"
}
A skill is <plugin>/skills/<skill-name>/SKILL.md with YAML frontmatter (name, description) plus body. The same SKILL.md is read by both runtimes; bodies lazy-load on description match in both. Skills may include sub-files, scripts, and other resources in the same directory.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub bradautomates/company-skills-marketplace-template --plugin marketplace-adminOther plugins' skills for the same job