Creates, packs, bundles, and manages Claude Code plugins with manifest generation, directory structure, marketplace configuration. Use when user asks how plugins work, what plugins are, explaining plugin structure, understanding plugin.json manifest, describing plugin bundling process, creating plugins, bundling skills/commands/hooks/MCPs, generating plugin.json, setting up marketplaces, or distributing team-shared functionality.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-code-capabilities:managing-pluginsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Activate when user mentions: plugin creation, bundling, packaging, plugin.json, marketplace, team distribution, .claude-plugin, plugin structure
Activate when user mentions: plugin creation, bundling, packaging, plugin.json, marketplace, team distribution, .claude-plugin, plugin structure
Manifest: Refers to the plugin.json file located at .claude-plugin/plugin.json. These terms are used interchangeably throughout this skill.
Subagents: Referred to as "agents/" directory in plugins. Subagents are specialized agents started as subordinate processes from Claude Code's main agent instance. For detailed subagent creation guidance, see the managing-agents skill.
Input: plugin name, components list Output: directory structure with manifest
Process:
mkdir -p plugin-name/.claude-plugin to create plugin directorymkdir -p plugin-name/{commands,skills,hooks,agents} to create component directoriescp -r source plugin-name/target-dir to copy files to appropriate directoriesls -la plugin-name to list all created directoriesResulting directory structure:
plugin-name/
.claude-plugin/
plugin.json
commands/
skills/
hooks/
agents/
For detailed plugin.json schema and directory structure requirements, load plugin-spec.md
Input: prefix pattern (e.g., "git") Output: plugin with all matching components
Working directory assumptions:
Detection process:
commands/**/{prefix}-*.md to find matching command filesskills/**/{prefix}-*/** to find matching skill directorieshooks/hooks.json to check if hooks config exists
.mcp.json to check if MCP config exists
Bundling process:
cp -r source-path plugin-name/target-dir to copy filesfind plugin-name -type f to list all bundled filesFor detailed component formats and path rules, load plugin-spec.md
Input: plugin paths, marketplace name, owner Output: marketplace.json
Template:
{"name":"MARKETPLACE","owner":{"name":"OWNER"},"plugins":[{"name":"NAME","source":"./path","description":"DESC"}]}
Sources: local path, git URL, or tarball
For complete marketplace.json schema and source types, load marketplace-spec.md
Input: plugin directory path Output: validation status with specific errors if any
Validation sequence:
plugin-name/**/*.md to find all markdown filesFor comprehensive validation checklist and debugging guidance, load validation-rules.md
Input: plugin dir Output: ready-to-distribute structure
Steps:
tar -czf plugin-name.tar.gz -C plugin-name . to create tarball/plugin install name@marketplaceFor semver versioning guidelines and distribution methods, load distribution-guide.md
Commands: Copy to commands/, preserve .md extension, keep frontmatter Skills: Copy entire skill dir to skills/, preserve SKILL.md and supporting files Hooks: Merge hooks.json or copy individual hook configs MCPs: Copy .mcp.json, merge mcpServers section if exists Subagents: Copy to agents/ directory (subordinate agents created via managing-agents skill)
Prefix matching priority:
Decision tree for bundling:
Count total matches from detection process (OP2 step 5)
Check if user provided explicit file list
Apply decision logic:
IF match_count == 0:
ELSE IF match_count == 1:
ELSE IF match_count >= 2 AND user_provided_explicit_list == false:
ELSE IF user_provided_explicit_list == true:
Load when detailed information needed:
plugin-spec.md: Complete plugin.json schema, directory structure requirements, component formats, path rules, environment variables marketplace-spec.md: marketplace.json schema, source types, distribution patterns, installation commands distribution-guide.md: Semver versioning, distribution methods (local/git/team/archive), testing workflow, pre-distribution checklist validation-rules.md: Comprehensive validation checklist, debugging with --debug flag, common issues and fixes, error messages reference
Completion report:
Common failures:
npx claudepluginhub thoeltig/claude-code-toolkit --plugin claude-code-capabilitiesGuides developers in creating, scaffolding, validating, and publishing Claude Code plugins including directory structure, plugin.json schema, YAML frontmatter, agents, commands, skills, and marketplace deployment.
Scaffolds a complete Claude Code plugin with manifest, skills, agents, hooks, MCP/LSP servers, and marketplace entry. Walks through component selection and writes files.
Creates, converts, validates, and publishes Claude Code plugins with Agent Skills, hooks, agents, and servers. Automates manifest generation, scanning, structure validation, and marketplace prep.