Create comprehensive Claude Code plugins with proper structure, commands, agents, hooks, and marketplace configuration. Use when the user wants to build a new Claude Code plugin or asks how to create/structure a plugin.
A comprehensive Claude Code skill for creating well-structured Claude Code plugins following official best practices.
This skill provides step-by-step guidance for creating Claude Code plugins, including:
The skill is currently located in .claude/skills/plugin-creator/ within this project.
To make this skill available globally or in other projects:
Copy to a reusable location:
mkdir -p ~/claude-skills
cp -r .claude/skills/plugin-creator ~/claude-skills/
Create as a plugin:
/plugin add plugin-creatorClaude Code will automatically use this skill when you:
Example prompts:
"Help me create a new Claude Code plugin"
"How do I structure a Claude Code plugin?"
"Create a plugin that does X"
"Add a new command to my plugin"
"What's the format for marketplace.json?"
You can manually invoke the skill using:
/skill plugin-creator
(Note: This requires the skill to be properly registered with Claude Code)
plugin-creator/
├── SKILL.md # Main skill definition
├── README.md # This file
└── resources/ # Template files
├── template-plugin.json # Plugin configuration template
├── template-marketplace.json # Marketplace listing template
├── template-command.md # Command file template
├── template-agent.md # Agent file template
├── template-hooks.json # Hooks configuration template
├── template-script.sh # Bash script template
└── template-README.md # Plugin README template
The resources/ directory contains ready-to-use templates:
Basic plugin.json configuration with all required fields.
Complete marketplace listing with metadata, features, and dependencies.
Command file template with YAML frontmatter and execution instructions.
Agent definition template for subagent-based processing.
Hooks configuration for PreToolUse, PostToolUse, and UserPromptSubmit events.
Bash script template with error handling, logging, and JSON output.
Comprehensive README template for plugin documentation.
The skill includes a complete example of a minimal "hello world" plugin:
my-plugin/
├── .claude-plugin/
│ ├── plugin.json
│ └── marketplace.json
├── commands/
│ └── hello.md
├── scripts/
│ └── hello.sh
├── CLAUDE.md
├── README.md
├── CHANGES.md
└── LICENSE
The skill references the gemini-search plugin as a real-world example demonstrating:
All templates in resources/ are designed to be:
You can extend SKILL.md to include:
If Claude Code doesn't automatically invoke this skill:
/skill plugin-creatorTemplates are in resources/ relative to the skill directory. Reference them with:
.claude/skills/plugin-creator/resources/template-*.{json,md,sh}
To improve this skill:
This skill and its templates are provided as examples for creating Claude Code plugins. Use and modify freely for your projects.
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer