/claude-code-capabilities:managing-pluginsfrom claude-code-capabilities
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.
Ships in claude-code-capabilities. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub thoeltig/claude-code-toolkit --plugin claude-code-capabilities7 skills in this plugin
/managing-agent-skillsCreates, analyzes, updates, and improves Claude Code agent skills including YAML frontmatter, allowed-tools field, progressive disclosure, and skill authoring workflows. Use when user asks how skills work, what agent skills are, explaining skill concepts, understanding SKILL.md structure, describing .md files organization, skill authoring process, asked to create a new skill, evaluate existing skills for improvements, optimize skills for AI/Claude effectiveness, suggest converting current logic into a skill, update outdated skill information, or when user mentions skill validation, best practices, supporting files, skill security, API integration, or technical architecture./managing-hooksCreates, analyzes, updates, and improves Claude Code hooks including configuration, scripts, and security validation. Use when user asks how hooks work, explaining hook concepts, understanding hook types and event lifecycle, describing hook configuration, creating new hooks, analyzing existing hooks for improvements, validating hook security, debugging hook activation, updating hook configurations, or when user mentions "hook", "PreToolUse", "PostToolUse", "SessionStart", or other hook event types. Handles both command hooks and prompt-based hooks across all 9 event types./managing-mcpsCreates, analyzes, updates, and evaluates Model Context Protocol (MCP) servers including architecture assessment, security validation, and connection configuration. Use when user asks if current context or logic should be MCP, requests MCP creation/improvement/update, mentions MCP is outdated, or asks how MCPs work, what MCPs are, explaining MCP concepts, understanding MCP architecture, protocol specification, server implementation, client integration, or connecting MCP servers to Claude Code./managing-promptsCreates, analyzes, updates, and optimizes prompts using Claude 4.5 best practices, guardrails, context management, and prompt engineering patterns. Use when user asks how to write effective prompts, explaining prompt engineering techniques, understanding Claude 4.5 best practices, describing prompt patterns and structures, creating new prompts, evaluating existing prompts for improvements, determining if current logic should be extracted to prompts, identifying outdated prompt techniques, optimizing context usage, implementing guardrails, or when user mentions "prompt engineering", "hallucinations", "context optimization", "prompt caching", "chain-of-thought", or asks if logic should become a prompt./managing-slash-commandsCreates, analyzes, updates, and improves slash commands including YAML frontmatter, argument handling, and command authoring workflows. Use when user asks how slash commands work, explaining command syntax and arguments, understanding command structure, describing command vs skill differences, asked to create a new slash command, evaluate existing commands for improvements, optimize commands for effectiveness, suggest converting current logic into a command, update outdated command information, or when user mentions command validation, best practices, or supporting files./managing-subagentsAnalyzes subagent usage patterns to determine when to delegate tasks, evaluates and improves existing subagent configurations, creates new custom subagents when needed, and identifies outdated subagent information. Use when deciding if a task should use a subagent, analyzing existing agents for effectiveness, recommending agent improvements, creating specialized agents for recurring patterns, or managing agent configurations. Optimizes Claude's subagent usage for performance, context preservation, and task specialization.