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".
Scanned 2/12/2026
Install via CLI
openskills install majiayu000/claude-skill-registry---
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
```bash
mkdir -p my-plugin/.claude-plugin
```
### 2. Create plugin.json
```json
{
"name": "my-plugin",
"description": "Plugin description",
"version": "1.0.0",
"author": { "name": "Your Name" }
}
```
### 3. Add Components
- **Commands**: See [commands.md](references/commands.md)
- **Skills**: See [skills.md](references/skills.md)
- **Hooks**: See [hooks.md](references/hooks.md)
- **MCP Servers**: See [mcp.md](references/mcp.md)
## Adding to Marketplace
For this repository, add plugin to `.claude-plugin/marketplace.json`:
```json
{
"plugins": [
{
"name": "my-plugin",
"source": "./my-plugin",
"description": "Plugin description"
}
]
}
```
## Validation
Run validation script before committing:
```bash
./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 |
No comments yet. Be the first to comment!
Create Mermaid diagrams for flowcharts, sequences, ERDs, and
Draft release notes and changelog entries from git history or merged PRs between two refs (tags/SHAs/branches), including breaking changes, migrations, and upgrade steps. Use when the user asks for release notes, changelog updates, or a GitHub Release draft.
Explain how claude-mem captures observations, when memory injection kicks in, and where data lives. Use when the user asks "how does claude-mem work?" or "what is this thing doing?".
Review a pull request or contribution deeply, explain it tutorial-style for a maintainer, and produce a polished report artifact such as HTML or Markdown. Use when asked to analyze a PR, explain a contributor's design decisions, compare it with similar systems, or prepare a merge recommendation.
Generate the stable Paperclip release changelog at releases/vYYYY.MDD.P.md by reading commits, changesets, and merged PR context since the last stable tag.