Plugin Structure Guide

Standardizes the directory layout and manifest configuration for building robust Claude Code plugins.

This skill provides comprehensive guidance on organizing Claude Code plugins, ensuring seamless integration through automatic component discovery and portable path management. It covers the essential directory hierarchy—including commands, agents, skills, and hooks—while detailing mandatory manifest fields and the usage of the ${CLAUDE_PLUGIN_ROOT} environment variable. By following these architectural best practices, developers can create maintainable, cross-platform plugins that load efficiently and leverage Claude's full range of capabilities.

Key Features

01Portable path resolution using the ${CLAUDE_PLUGIN_ROOT} variable
02Standardized manifest configuration via .claude-plugin/plugin.json
030 GitHub stars
04Convention-based directory layout for maintainable plugin architecture
05Automatic component discovery for commands, agents, and skills
06Support for event-driven hooks and MCP server integration

Use Cases

01Scaffolding a new Claude Code plugin with the correct file hierarchy
02Migrating local scripts into a structured, shareable plugin format
03Troubleshooting component discovery issues in complex plugin setups