
Plugin Structure
This is the reference guide you'll want when scaffolding a new Claude Code plugin. It covers the mandatory directory structure (manifest goes in .claude-plugin/, components live at root), explains how auto-discovery works for commands, agents, skills, and hooks, and shows you how to use ${CLAUDE_PLUGIN_ROOT} for portable paths. The key insight is that Claude Code prefers convention over configuration: drop a .md file in commands/ and it becomes a slash command, put SKILL.md in a subdirectory of skills/ and it's available to the agent. The manifest examples are practical, covering everything from basic metadata to custom component paths and MCP server definitions. Worth keeping open when you're setting up plugin.json or wondering why your hook isn't firing.
- GitHub stars
- 30.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add davila7/claude-code-templates --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/davila7/claude-code-templates
- Categories
- Frontend Development, Code Review & Quality, Automation & Workflows, Sales & Marketing
- First seen
- Jun 3, 2026
More from davila7/claude-code-templates
All 618- Privilege Escalation Methods
- Red Team Tools And Methodology
- Security Scanning Tools
- SEO Optimizer
- Shodan Reconnaissance And Pentesting
- Skill Development
- SMTP Penetration Testing
- SQL Injection Testing
- SQLMap Database Penetration Testing
- SSH Penetration Testing
- Top 100 Web Vulnerabilities Reference
- Windows Privilege Escalation
- Wireshark Network Traffic Analysis
- WordPress Penetration Testing
- Writing Hookify Rules
- Senior Data Scientist3.2K
- Senior Backend2.7K
- Markitdown2.5K
- Senior Frontend2.1K
- Scientific Writing2K
- Literature Review2K
- Market Research Reports1.9K
- Ui Ux Pro Max1.9K
- Exploratory Data Analysis1.9K