claude-plugin-creator
Claude Code plugin creation guide. Use when creating new plugins, adding commands/skills/hooks/MCP servers to plugins, or setting up marketplace distribution. Triggers on "create plugin", "add command", "add skill", "add hook", "plugin structure".
When & Why to Use This Skill
The Claude Code Plugin Creator is a specialized development assistant designed to streamline the end-to-end process of building, structuring, and distributing plugins for Claude Code. It provides standardized guidance on implementing commands, skills, hooks, and Model Context Protocol (MCP) servers, ensuring that developers can extend Claude's capabilities with high-quality, marketplace-ready components.
Use Cases
- Plugin Scaffolding: Quickly generating the required directory structure and metadata files for new Claude Code extensions.
- Feature Enhancement: Adding custom slash commands and event-driven hooks to automate specific developer workflows.
- MCP Integration: Configuring Model Context Protocol servers to bridge Claude with external databases, APIs, and local tools.
- Marketplace Preparation: Formatting and validating plugin packages for seamless submission and distribution in the Claude ecosystem.
| name | claude-plugin-creator |
|---|---|
| description | Claude Code plugin creation guide. Use when creating new plugins, adding commands/skills/hooks/MCP servers to plugins, or setting up marketplace distribution. Triggers on "create plugin", "add command", "add skill", "add hook", "plugin structure". |
Claude Code Plugin Creator
Guide for creating Claude Code plugins with correct structure and components.
Plugin Structure
my-plugin/
├── .claude-plugin/
│ └── plugin.json # Required: Plugin metadata
├── commands/ # Optional: Slash commands
│ └── my-command.md
├── skills/ # Optional: Agent skills
│ └── my-skill/
│ └── SKILL.md
├── hooks/ # Optional: Event handlers
│ └── hooks.json
└── .mcp.json # Optional: MCP servers
Quick Start
1. Create Plugin Directory
mkdir -p my-plugin/.claude-plugin
2. Create plugin.json
{
"name": "my-plugin",
"description": "Plugin description",
"version": "1.0.0",
"author": { "name": "Your Name" }
}
3. Add Components
- Commands: See commands.md
- Skills: See skills.md
- Hooks: See hooks.md
- MCP Servers: See mcp.md
Adding to Marketplace
For this repository, add plugin to .claude-plugin/marketplace.json:
{
"plugins": [
{
"name": "my-plugin",
"source": "./my-plugin",
"description": "Plugin description"
}
]
}
Validation
Run validation script before committing:
./validate-plugin.sh my-plugin
Component Reference
| Component | Location | Format | Trigger |
|---|---|---|---|
| Commands | commands/*.md |
Markdown + frontmatter | User: /command |
| Skills | skills/*/SKILL.md |
Markdown + frontmatter | Auto (context) |
| Hooks | hooks/hooks.json |
JSON | Events |
| MCP | .mcp.json |
JSON | Auto |