plugin-marketplace
Guide for creating and managing Claude Code plugin marketplaces. Use when setting up a marketplace, validating marketplace.json, or distributing plugins.
от vinnie357★ 30 звёзд на GitHub
Установить plugin-marketplace в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
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:
- Metadata:
description,version,author,homepage,repository,license(SPDX),keywords,category,tags - Component paths:
commands,agents,hooks,mcpServers,skills - Dependencies:
dependencies, an array of"namespace:plugin-name"strings
Strict mode
strict defaults to true.
true— the plugin must ship its ownplugin.json; marketplace fields supplement it.false— the marketplace entry is the complete manifest; noplugin.jsonneeded.
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:
CLAUDE_PLUGIN_ROOTresolves to the plugin's installation directory. Use it as a brace expansion insideskills/commands/agents/hooks/mcpServersvalues in marketplace.json and plugin.json, so paths survive relocation.CLAUDE_SKILL_DIRresolves to an individual skill's directory — not the plugin root. Bundled scripts live under it.
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
- Inline definitions —
strict: falsewith a full manifest in the entry. Seereferences/marketplace-examples.md("Inline Plugin Definitions"). - Component path override — point
commands/agents/hooks/mcpServersat custom locations. Same reference ("Component Path Override"). - Metadata supplementation — with
strict: true, addcategory,keywords, orhomepagethat the plugin's own manifest omits:
{
"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, i
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/marketplace-examples.md
- references/schema-specification.md
- references/validation-and-troubleshooting.md
- scripts/analyze-plugins.nu
- scripts/format-marketplace.nu
- scripts/init-marketplace.nu
- scripts/validate-dependencies.nu
- scripts/validate-marketplace.nu
FAQ
Что делает скилл plugin-marketplace?
Guide for creating and managing Claude Code plugin marketplaces. Use when setting up a marketplace, validating marketplace.json, or distributing plugins.
Как установить скилл plugin-marketplace?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл plugin-marketplace запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…