Plugin marketplace

From vinnie357/claude-skills · View interactive version

Plugin marketplace is an AI agent skill from the GitHub repository vinnie357/claude-skills. Guide for creating and managing Claude Code plugin marketplaces. Use when setting up a marketplace, validating marketplace.json, or distributing plugins.

How to use this skill

Skill file

Claude Code Plugin Marketplace

Guide for creating, validating, and managing plugin marketplaces for Claude Code.

Per core:anti-fabrication: verify schema fields and source paths with the validation scripts before claiming an entry is valid — never assert validation results without running them. The validator names the offending field and value; that output is the authority, not this page.

Marketplace schema

A marketplace lives at .claude-plugin/marketplace.json in the repository root.

Required: name (kebab-case), owner (object; name required, email optional), plugins (array, may be empty).

Optional metadata: description, version, and pluginRoot — a base directory that relative plugin source paths resolve against.

Optional renames: a map from a former plugin name to its current name, or to null for a removed plugin. See "Renaming a plugin".

Plugin entry schema

Plugin entries use the plugin manifest schema with every field optional, plus the marketplace-only fields source, strict, category, and tags. Any field valid in a plugin.json is therefore valid in an entry — see /extras-claude-code:claude-plugins for the manifest schema and for which fields must never appear in a plugin.json.

Each entry requires name (kebab-case) and source. Beyond those:

Strict mode

strict defaults to true.

Choose strict: false for simple self-contained plugins whose configuration all lives in marketplace.json, when centralized management is the goal and the plugin is unlikely to be distributed independently.

Choose strict: true when the plugin has complex configuration, may be distributed separately, has its own versioning lifecycle, or when the marketplace is only adding metadata to a manifest that already exists.

This is the one genuine judgment call in a marketplace entry; everything else is schema.

Source formats

"source": "./plugins/my-plugin"

With "metadata": { "pluginRoot": "./plugins" }, a bare "source": "my-plugin" resolves to ./plugins/my-plugin.

"source": { "source": "github", "repo": "owner/plugin-repo", "path": "optional/subdir", "branch": "main" }
"source": { "source": "url", "url": "https://gitlab.com/team/plugin.git", "branch": "main" }

Path variables — a load-time trap

Two different variables, and mixing them up breaks the file:

Both names are written bare on this page on purpose. The braced form expands when a skill loads, so a braced variable inside a skill body is replaced with one machine's absolute path before any reader sees it. That is correct behavior for a JSON config value the harness expands at runtime, and wrong for a command written in a skill body. Copyable braced examples live in references/marketplace-examples.md, where Read returns raw bytes.

Advanced entries

{
  "name": "existing-plugin",
  "source": "./plugins/existing",
  "strict": true,
  "category": "development",
  "keywords": ["added", "from", "marketplace"]
}

Validation

Scripts are bundled with this skill, under its own directory:

nu <CLAUDE_SKILL_DIR>/scripts/validate-marketplace.nu .claude-plugin/marketplace.json
nu <CLAUDE_SKILL_DIR>/scripts/validate-dependencies.nu .claude-plugin/marketplace.json

validate-marketplace.nu checks JSON syntax, required fields, kebab-case naming, field types, and relative-source accessibility. validate-dependencies.nu checks the dependency graph for cycles and missing entries. Add --verbose for per-field output.

Read the script's message rather than guessing: it names the field and the value. What each message means, plus the install-time and load-time failures no script detects, is in references/validation-and-troubleshooting.md.

Creating a marketplace

  1. mkdir -p .claude-plugin, then generate a skeleton with nu <CLAUDE_SKILL_DIR>/scripts/init-marketplace.nu.
  2. Add an entry per plugin, deciding strict mode for each. A complete entry with a CLAUDE_PLUGIN_ROOT skills path is in references/marketplace-examples.md ("Creating a marketplace — Step 3").
  3. Validate, then install from it: /plugin marketplace add <owner>/<repo> followed by /plugin install <plugin-name>@<marketplace-name>.

Converting an existing set of plugins into a marketplace is a different procedure — see references/validation-and-troubleshooting.md ("Migrating existing plugins").

Conventions

Renaming a plugin

Renaming a plugin breaks existing installs, because users reference the name in /plugin install and in settings keys. Add a top-level renames map so Claude Code migrates them.

{ "renames": { "old-name": "new-name", "retired-plugin": null } }

Procedure, user-visible results, and source: references/validation-and-troubleshooting.md ("Renaming or removing a plugin").

Scripts

Bundled in this skill's scripts/ directory, run as nu <CLAUDE_SKILL_DIR>/scripts/<name>.nu [args]:

| Script | Purpose |

|---|---|

| validate-marketplace.nu | Full marketplace validation |

| validate-dependencies.nu | Dependency graph validation |

| init-marketplace.nu | Generate a marketplace template |

| analyze-plugins.nu | Analyze an existing plugin structure |

| format-marketplace.nu | Format and sort marketplace.json |

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.