Command Palette

Search for a command to run...

Back to skills
skill № 41685

claude-plugins

Guide for creating and validating Claude Code plugin.json files. Use when creating plugins, validating plugin schemas, or troubleshooting plugin configuration.

FreeRuns bundled scripts
vinnie357by vinnie357★ 30 GitHub stars

Install claude-plugins in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

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 init and claude plugin tag refuse a name that draws the error.
  • A marketplace entry does not exempt the name: plugin@marketplace is still checked.
  • Name the plugin for what it does. Example: claude-code (error) became extras-claude-code in this repository, which draws only the warning.
  • Run mise run test:plugin-names in 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 a SKILL.md, ADDING to (not replacing) the default skills/ scan — except for a marketplace entry whose source resolves to the marketplace root (e.g. "./"), where it REPLACES the default scan instead (see claude-skills)
  • commands — string or array of .md files or directories, replacing the default commands/ scan (see claude-commands)
  • agents — string or array of files, replacing the default agents/ scan (see claude-agents)
  • workflows — string or array of workflow script files or directories, replacing the default workflows/ scan
  • hooks — string path to a hooks.json, or an inline hooks object (see claude-hooks)
  • mcpServers — string path to an MCP config, or an inline object
  • outputStyles — string or array of output-style files/directories, replacing the default output-styles/ scan (see claude-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.json file 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 /plugin picker and other UI surfaces. Falls back to name when omitted. Unlike name, may contain spaces and any casing; not used for namespacing or lookup.
  • defaultEnabled — boolean, whether the plugin starts
Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

  • 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

What does the claude-plugins skill do?

Guide for creating and validating Claude Code plugin.json files. Use when creating plugins, validating plugin schemas, or troubleshooting plugin configuration.

How do I install the claude-plugins skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the claude-plugins skill run scripts?

Yes, this skill bundles executable scripts. Review the source before installing.

Related skills

Compare claude-plugins with