Agent Skill
2/7/2026

plugins-reference

Claude Code plugins configuration reference. Use when creating plugins, bundling commands/agents/hooks/skills/MCP servers, setting up marketplaces, or distributing extensions.

D
dunc4nj
1GitHub Stars
1Views
npx skills add Dunc4nJ/entropy-plugins

SKILL.md

Nameplugins-reference
DescriptionClaude Code plugins configuration reference. Use when creating plugins, bundling commands/agents/hooks/skills/MCP servers, setting up marketplaces, or distributing extensions.

name: plugins-reference description: Claude Code plugins configuration reference. Use when creating plugins, bundling commands/agents/hooks/skills/MCP servers, setting up marketplaces, or distributing extensions.

Claude Code Plugins Reference

Plugins bundle commands, agents, skills, hooks, and MCP servers into distributable packages.

Plugin Structure

my-plugin/
├── .claude-plugin/
│   └── plugin.json          # Required: plugin manifest
├── commands/                 # Slash commands
│   └── deploy.md
├── agents/                   # Subagent definitions
│   └── reviewer.md
├── skills/                   # Agent skills
│   └── api-patterns/
│       └── SKILL.md
├── hooks/
│   └── hooks.json           # Hook configurations
├── .mcp.json                # MCP server configs
└── .lsp.json                # LSP server configs

plugin.json Manifest

{
  "name": "my-plugin",
  "version": "1.0.0",
  "description": "Plugin description",
  "author": {
    "name": "Author Name",
    "email": "author@example.com"
  },
  "keywords": ["keyword1", "keyword2"]
}

Required vs Optional Fields

FieldRequiredDescription
nameYesUnique identifier (kebab-case)
versionNoSemantic version
descriptionNoBrief description
authorNoAuthor info
commandsNoCustom command paths
agentsNoCustom agent paths
skillsNoCustom skill paths
hooksNoHook config path/object
mcpServersNoMCP config path/object
lspServersNoLSP config path/object

Installation Scopes

ScopeLocationUse Case
user~/.claude/settings.jsonPersonal (default)
project.claude/settings.jsonTeam shared
local.claude/settings.local.jsonProject, gitignored

Plugin Commands

Install plugin:

/plugin install plugin-name@marketplace
claude plugin install plugin-name@marketplace --scope project

Uninstall plugin:

/plugin uninstall plugin-name

Enable/Disable:

/plugin enable plugin-name
/plugin disable plugin-name

Update plugin:

/plugin update plugin-name

Validate plugin:

/plugin validate ./path/to/plugin
claude plugin validate ./path/to/plugin

Marketplace Setup

marketplace.json

{
  "name": "my-marketplace",
  "owner": {
    "name": "Team Name"
  },
  "plugins": [
    {
      "name": "plugin-name",
      "source": "./plugins/plugin-name",
      "description": "Plugin description"
    }
  ]
}

Marketplace Commands

# Add marketplace
/plugin marketplace add owner/repo
/plugin marketplace add https://gitlab.com/org/plugins.git

# Update marketplaces
/plugin marketplace update

# List marketplaces
/plugin marketplace list

Plugin Sources

Relative Path

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

GitHub

{
  "source": {
    "source": "github",
    "repo": "owner/repo"
  }
}

Git URL

{
  "source": {
    "source": "url",
    "url": "https://gitlab.com/org/plugin.git"
  }
}

Environment Variable

Use ${CLAUDE_PLUGIN_ROOT} in hooks and MCP configs:

{
  "hooks": {
    "PostToolUse": [{
      "hooks": [{
        "type": "command",
        "command": "${CLAUDE_PLUGIN_ROOT}/scripts/format.sh"
      }]
    }]
  }
}

Project-Required Plugins

Add to .claude/settings.json:

{
  "extraKnownMarketplaces": {
    "company-tools": {
      "source": {
        "source": "github",
        "repo": "org/claude-plugins"
      }
    }
  },
  "enabledPlugins": {
    "formatter@company-tools": true
  }
}

Common Issues

IssueSolution
Plugin not loadingCheck plugin.json syntax
Commands missingEnsure commands/ at root, not in .claude-plugin/
Hooks not firingCheck script permissions (chmod +x)
MCP failsUse ${CLAUDE_PLUGIN_ROOT} for paths

Debugging

# Debug mode shows plugin loading
claude --debug

# Check for errors
/plugin  # Navigate to Errors tab

For complete documentation, see:

Skills Info
Original Name:plugins-referenceAuthor:dunc4nj