Build and manage Claude Code plugins with correct structure, manifests, and marketplace integration. Includes workflows, automation scripts, and reference docs. - Creating new plugins for a marketplace - Adding/modifying plugin components (commands, skills, agents, hooks)
create_plugin.py to generate plugin structure:python scripts/create_plugin.py plugin-name \ --marketplace-root /path/to/marketplace \ --author-name "Your Name" \ --author-email "your.email@example.com" \ --description "Plugin description" \ --keywords "keyword1,keyword2" \ --category "productivity"
plugin.json manifestmarketplace.jsonbump_version.py to update versions in both manifests:python scripts/bump_version.py plugin-name major|minor|patch \ --marketplace-root /path/to/marketplace
mkdir -p plugins/plugin-name/.claude-plugin mkdir -p plugins/plugin-name/commands mkdir -p plugins/plugin-name/skills
plugins/plugin-name/.claude-plugin/plugin.json{ "name": "plugin-name", "version": "0.1.0", "description": "Plugin description", "author": { "name": "Your Name", "email": "your.email@example.com" }, "keywords": ["keyword1", "keyword2"] }
.claude-plugin/marketplace.json:{ "name": "plugin-name", "source": "./plugins/plugin-name", "description": "Plugin description", "version": "0.1.0", "keywords": ["keyword1", "keyword2"], "category": "productivity" }
commands/skills/<name>/SKILL.mdagents/hooks/hooks.json.mcp.json# Add marketplace /plugin marketplace add /path/to/marketplace-root # Install plugin /plugin install plugin-name@marketplace-name # After changes: reinstall /plugin uninstall plugin-name@marketplace-name /plugin install plugin-name@marketplace-name
plugins/framework-name/ ├── .claude-plugin/plugin.json ├── skills/ │ └── framework-name/ │ ├── SKILL.md │ └── references/ ├── commands/ │ └── prime/ │ ├── components.md │ └── framework.md └── README.md
plugins/utility-name/ ├── .claude-plugin/plugin.json ├── commands/ │ ├── action1.md │ └── action2.md └── README.md
plugins/domain-name/ ├── .claude-plugin/plugin.json ├── skills/ │ └── domain-name/ │ ├── SKILL.md │ ├── references/ │ └── scripts/ └── README.md
: separator:commands/namespace/command.md → /namespace:commandcommands/simple.md → /simplecommands/prime/vue.md → /prime:vuecommands/docs/generate.md → /docs:generateplugins/<name>/.claude-plugin/plugin.json.claude-plugin/marketplace.jsonbump_version.py to automate.git commit -m "feat: add new plugin" git commit -m "fix: correct plugin manifest" git commit -m "docs: update plugin README" git commit -m "feat!: breaking change"
references/plugin-structure.mdreferences/marketplace-schema.mdreferences/workflows.mdscripts/create_plugin.pyscripts/bump_version.py