Claude Code Plugin Structure

•
32k
•

Standardizes the development and organization of Claude Code plugins using official directory patterns and manifest configurations.

This skill provides a comprehensive blueprint for building Claude Code plugins, ensuring seamless integration through automatic component discovery. It guides developers through the required directory layout, manifest (plugin.json) setup, and the implementation of commands, agents, skills, and hooks. By enforcing best practices like portable path references via ${CLAUDE_PLUGIN_ROOT}, it helps creators build maintainable, portable, and high-quality extensions for the Claude Code ecosystem.

主要功能

0131,862 GitHub stars
02Portable path management using ${CLAUDE_PLUGIN_ROOT}
03Standardized directory layout for automatic component discovery
04Event hook registration and MCP server integration patterns
05Component-based organization for commands, agents, and skills
06Manifest configuration (plugin.json) for metadata and custom paths

使用场景

01Scaffolding a new Claude Code plugin from scratch with the correct file hierarchy
02Refactoring an existing script or utility into a structured, auto-discoverable plugin
03Configuring complex plugins that require sub-agents, automated hooks, and MCP servers