/marketplace-builder:new-marketplacefrom marketplace-builder
Scaffold a new Claude Code plugin-marketplace monorepo — catalog, repo-root tests/scripts/docs trees, CI workflows, release-please config, dev-setup, the hygiene sensor, and a root CLAUDE.md. Use when starting a fresh marketplace repository.
Ships in marketplace-builder. 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.
<owner-handle> [owner-name]Scaffold a healthy marketplace monorepo from scratch.
Read ${CLAUDE_PLUGIN_ROOT}/knowledge/marketplace-conventions.md — it is the
source of truth for the anatomy and invariants below. Confirm the target
directory is empty or is a fresh git repo.
<owner-handle> — the catalog name (e.g. a GitHub org/handle). Required.[owner-name] — human-readable owner name. Defaults to the handle.url (e.g. https://github.com/<org>/<repo>.git) — needed
so /add-plugin can fill catalog source.url. Store it in the root CLAUDE.md.Catalog. Copy ${CLAUDE_PLUGIN_ROOT}/templates/marketplace/marketplace.json
to .claude-plugin/marketplace.json; replace __OWNER_HANDLE__ and
__OWNER_NAME__. Leave plugins: [] — /add-plugin populates it.
Repo-root trees (NEVER shipped). Create tests/repo/, scripts/,
docs/, evals/, plans/. These live at the repo root, never inside a
plugin dir.
Hygiene sensor. Copy
${CLAUDE_PLUGIN_ROOT}/templates/tests/shipped_script_refs_test.bats
to tests/repo/shipped_script_refs_test.bats. Create an empty
tests/repo/escape_allowlist.txt (one repo-relative path per intentional
escape; empty for now).
Dev scripts. Copy from ${CLAUDE_PLUGIN_ROOT}/templates/scripts/:
structural-check.sh, portability-check.sh, dev-setup.sh into
scripts/. chmod +x them. Also write scripts/ci-local.sh that runs all
three gates plus bats tests/repo (the local pre-push mirror of CI).
CI. Copy ${CLAUDE_PLUGIN_ROOT}/templates/ci/plugin-tests.yml to
.github/workflows/plugin-tests.yml.
Release scaffolding. Write release-please-config.json with an empty
packages: {} and .release-please-manifest.json as {}. /add-plugin
and /release-setup populate them per plugin.
requirements-dev.txt. Create it (empty or with any Python dev deps).
Root CLAUDE.md. Document: the shipped-vs-not-shipped rule, the repo URL,
how to run the gates (bash scripts/ci-local.sh), and that versions/refs are
automated via release-please — never hand-edited.
Report. List what you created and run bash scripts/ci-local.sh (it
should pass on the empty marketplace). Tell the user to run /add-plugin <name> next.
Emit files and run the gate. Do not narrate beyond the final report.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (bdfinst/plugin-builder) — no native marketplace selected
npx claudepluginhub p/bdfinst-marketplace-builder-plugins-marketplace-builder6 skills in this plugin
/add-pluginScaffold a new plugin inside an existing marketplace — the shipped dir skeleton, plugin.json, install.sh with the Git-Bash guard, settings.json, and CLAUDE.md; then register it in the catalog and in release-please packages with the catalog extra-files sync. Use when adding a plugin to a marketplace./audit-pluginAudit a marketplace (or a single plugin) — run the shipping-hygiene sensor, structural checks (every catalog entry has a dir, every dir has a manifest, versions in sync), and the portability sweep. Reports findings and offers fixes. Use to validate a marketplace is healthy./cloud-setupGenerate the gated SessionStart install hook plus cloud-setup.sh and a "use skills directly" fallback so the marketplace is usable in Claude Code web/cloud sessions. Use to make a marketplace cloud-aware./portability-checkRun shellcheck -x over every shipped and dev shell script, flag bash-4/GNU-only constructs, verify env-bash shebangs, and check that each install.sh has the Git-Bash-on-Windows guard. Use to validate cross-platform portability (macOS bash 3.2 / BSD / Windows Git Bash)./release-setupWire release-please with one package per plugin and the marketplace.json extra-files jsonpath sync, so plugin.json, the release tag, and the catalog entry can never drift. Use to set up or repair automated versioning + catalog sync.