MCP & Plugins Advanced
Create a Plugin
Build a reusable plugin with skills, agents, hooks, and MCP servers
Command
"color:#9CA3AF;font-style:italic"># Plugin directory structure: $ my-plugin/ ├── ."color:#7C5CFC">claude-plugin/ │ └── plugin.json "color:#9CA3AF;font-style:italic"># Required manifest ├── skills/ │ └── code-review/ │ └── SKILL.md ├── agents/ ├── hooks/ │ └── hooks.json ├── .mcp.json └── settings.json
Response
// .claude-plugin/plugin.json (required): { "name": "my-plugin", "description": "My custom plugin", "version": "1.0.0", "author": { "name": "Your Name" } }
Parsing Code
059669">">// SKILL.md format: 059669">">// --- 059669">">// name: code-review 059669">">// description: Review code 059669">">for quality 059669">">// --- 059669">">// Review the provided code 059669">">for issues. // Target: $ARGUMENTS
Gotchas
! Only plugin.json goes inside .claude-plugin/ — everything else (skills, hooks, agents) goes at the plugin root
! Plugin name in manifest determines the namespace for all skills