Plugin Architecture Guide

•
142k
•

Provides standardized patterns and directory layouts for building modular and portable Claude Code plugins.

This skill guides developers through the foundational architecture of Claude Code plugins, ensuring seamless integration and automatic component discovery within the terminal. It covers the mandatory manifest configuration in the .claude-plugin directory, the organization of commands, agents, and hooks, and the critical use of portable path variables like ${CLAUDE_PLUGIN_ROOT}. By following these standardized layouts and naming conventions, developers can create maintainable, robust extensions that enhance Claude's agentic capabilities across any operating system or installation environment.

Key Features

01Automated component discovery for commands, agents, and skills
02Manifest-driven configuration using the plugin.json specification
03Event-driven hook registration for terminal lifecycle management
04Portable path resolution using the ${CLAUDE_PLUGIN_ROOT} variable
05Standardized kebab-case naming conventions for file organization
06142,118 GitHub stars

Use Cases

01Scaffolding a new Claude Code plugin from scratch with the correct directory tree
02Organizing complex agentic workflows into modular commands and skills
03Configuring MCP servers and hooks for deep integration with terminal events