Архитектура и структура плагина для Claude Code

★ 8.6 · vibe-coding

plugin-structure is a Claude Code skill that guides developers through creating and organizing plugins using the standardized directory layout with automatic component discovery. It covers the required `.claude-plugin/plugin.json` manifest — including name, version, description, author, keywords, and custom component paths — plus the top-level directories for commands, agents, skills, and hooks, and the portable `${CLAUDE_PLUGIN_ROOT}` variable. Each component type follows specific conventions: slash commands and agent definitions as `.md` files with YAML frontmatter, skills as subdirectories each containing a `SKILL.md`, and hooks configured via `hooks/hooks.json`. Useful for anyone scaffolding a new plugin, wiring up MCP servers, or understanding the difference between auto-discovered and explicitly loaded components in Claude Code plugin architecture.