
Plugin Structure
This teaches you the anatomy of a Claude Code plugin: where to put your plugin.json manifest, how to organize commands, agents, skills, and hooks into the right directories, and why you should always use ${CLAUDE_PLUGIN_ROOT} instead of hardcoded paths. The structure is mostly convention-based, so dropping a .md file in the commands folder makes it available as a slash command without extra wiring. Use this when scaffolding a new plugin or when your components aren't loading and you need to check if they're in the wrong place. The emphasis on portable paths is smart, since plugins get installed in different locations depending on how users set them up.
- install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
- 6
- skills.sh installs
- 7.3K
- GitHub stars
- 46.7K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add anthropics/claude-plugins-official --skill plugin-structure --agent claude-codeInstalls into .claude/skills of the current project.
Files
Plugin Structure for Claude Code
Overview
Claude Code plugins follow a standardized directory structure with automatic component discovery. Understanding this structure enables creating well-organized, maintainable plugins that integrate seamlessly with Claude Code.
Key concepts:
- Conventional directory layout for automatic discovery
- Manifest-driven configuration in
.claude-plugin/plugin.json - Component-based organization (commands, agents, skills, hooks)
- Portable path references using
${CLAUDE_PLUGIN_ROOT} - Explicit vs. auto-discovered component loading
Directory Structure
Every Claude Code plugin follows this organizational pattern:
Sponsors
Details
- Repository
- github.com/anthropics/claude-plugins-official
- Categories
- Frontend Development, Code Review & Quality, Automation & Workflows, Sales & Marketing
- First seen
- May 16, 2026
More from anthropics/claude-plugins-official
All 24- Plugin Settings7.3K
- Build Mcp App7.1K
- Build Mcpb6.9K
- Math Olympiad4.7K
- Configure4.5K
- Access4.5K
- Session Report4.3K
- M5 Onboard3.5K
- Cardputer Buddy3.5K
- Stripe Best Practices1.4K
- Example Skill208
- Frontend Design18.4K
- Claude Md Improver14.2K
- Claude Automation Recommender10.7K
- Playground8.6K
- Skill Creator8.3K
- Agent Development7.9K
- Skill Development7.7K
- Hook Development7.5K
- Mcp Integration7.5K
- Command Development7.4K
- Writing Hookify Rules7.4K
- Build Mcp Server7.4K