This is the reference documentation for how Claude Code plugins are structured under the hood. You'll want this when you're building your own plugin and need to understand the conventional directory layout, how the manifest system works with plugin.json, and how component discovery happens automatically. It covers the portable path references using CLAUDE_PLUGIN_ROOT and explains when components load explicitly versus auto-discovery. The actual directory tree and manifest details are cut off in the preview, but this is essentially the structural specification you'd reference while scaffolding a new plugin or debugging why your commands or agents aren't being recognized.
npx skills add https://github.com/anthropics/claude-code --skill plugin-structure