claude-plugins
Guide for creating and validating Claude Code plugin.json files. Use when creating plugins, validating plugin schemas, or troubleshooting plugin configuration.
от vinnie357★ 30 звёзд на GitHub
Установить claude-plugins в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Claude Code Plugin
Guide for creating, validating, and managing plugin.json manifests for Claude Code plugins.
Per core:anti-fabrication: run the validation scripts and read the manifest before claiming a plugin.json is valid or that a component path exists. The validator names the offending field and value; that output is the authority, not this page.
Manifest schema
A manifest lives at .claude-plugin/plugin.json inside the plugin directory.
{
"name": "plugin-name",
"version": "1.2.0",
"description": "Brief plugin description",
"author": { "name": "Author Name", "email": "[email protected]", "url": "https://github.com/author" },
"homepage": "https://docs.example.com/plugin",
"repository": "https://github.com/author/plugin",
"license": "MIT",
"keywords": ["keyword1", "keyword2"],
"commands": ["./custom/commands/special.md"],
"agents": "./custom/agents/",
"hooks": "./config/hooks.json",
"mcpServers": "./mcp-config.json",
"skills": ["./skills/skill-one", "./skills/skill-two"]
}
name is the only required field. Everything else is optional, though version, description, license, keywords, repository, and author are worth setting: they are what a user sees before installing, and author is how they reach you with a bug report or a contribution.
Field rules
| Field | Rule |
|---|---|
name |
kebab-case, ^[a-z0-9]+(-[a-z0-9]+)*$. Match the marketplace entry name, and be specific rather than generic. The directory name may differ (extras-claude-code lives in plugins/tools/claude-code). Valid: my-plugin, core-skills. Invalid: myPlugin, my_plugin, My-Plugin, plugin-. Never choose a reserved name — see "Reserved names" below |
version |
semver, ^[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9.-]+)?(\+[a-zA-Z0-9.-]+)?$. Valid: 1.0.0, 1.0.0-beta.1, 1.0.0+build.123. Invalid: 1.0, v1.0.0, 1.0.0.0 |
license |
SPDX identifier — MIT, Apache-2.0, GPL-3.0, BSD-3-Clause, ISC. See https://spdx.org/licenses/ |
keywords |
array of lowercase, specific, domain-bearing strings |
Reserved names
claude plugin validate rejects a plugin name that passes as one of Anthropic's own. Pick the name before you publish.
| Name | Result |
|---|---|
Starts with claude-, anthropic-, anthropics-, or cc-plugin- |
Error |
Equals claude, anthropic, anthropics, claude-code, or claude-mods |
Error |
Puts official beside claude or anthropic (official-claude-tools) |
Error |
Has claude, anthropic, or anthropics as a whole word elsewhere (mcp-for-claude) |
Warning |
- The check ignores case and treats any run of separators as one.
claude plugin initandclaude plugin tagrefuse a name that draws the error.- A marketplace entry does not exempt the name:
plugin@marketplaceis still checked. - Name the plugin for what it does. Example:
claude-code(error) becameextras-claude-codein this repository, which draws only the warning. - Run
mise run test:plugin-namesin this repository. It applies the rule offline (test/validate-plugin-names.nu).
Messages, version boundary, and sources: references/validation-and-troubleshooting.md ("Reserved plugin names").
Component paths
Relative to the plugin root, ./-prefixed. Each has a dedicated skill for its own file format:
skills— string or array of directories, each containing aSKILL.md, ADDING to (not replacing) the defaultskills/scan — except for a marketplace entry whosesourceresolves to the marketplace root (e.g."./"), where it REPLACES the default scan instead (seeclaude-skills)commands— string or array of.mdfiles or directories, replacing the defaultcommands/scan (seeclaude-commands)agents— string or array of files, replacing the defaultagents/scan (seeclaude-agents)workflows— string or array of workflow script files or directories, replacing the defaultworkflows/scanhooks— string path to a hooks.json, or an inline hooks object (seeclaude-hooks)mcpServers— string path to an MCP config, or an inline objectoutputStyles— string or array of output-style files/directories, replacing the defaultoutput-styles/scan (seeclaude-output-styles)lspServers— string, array, or inline object of LSP (Language Server Protocol) configs for code intelligence (go-to-definition, find-references). Defaults to a.lsp.jsonfile at the plugin root when the field is absent.
output-styles/ is discovered by convention when outputStyles is unset; setting the field replaces that default scan rather than adding to it (see claude-output-styles).
Metadata and dependency fields
displayName— human-readable name shown in the/pluginpicker and other UI surfaces. Falls back tonamewhen omitted. Unlikename, may contain spaces and any casing; not used for namespacing or lookup.defaultEnabled— boolean, whether the plugin starts
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/plugin-schema.md
- references/validation-and-troubleshooting.md
- scripts/format-plugin.nu
- scripts/init-plugin.nu
- scripts/mutation-probe.nu
- scripts/validate-plugin.nu
FAQ
Что делает скилл claude-plugins?
Guide for creating and validating Claude Code plugin.json files. Use when creating plugins, validating plugin schemas, or troubleshooting plugin configuration.
Как установить скилл claude-plugins?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл claude-plugins запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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…