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-code

Installs 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
1heshengtao avatarsap-extension-creatorheshengtao/super-agent-partyCreate Super Agent Party (SAP) extensions. This skill should be used when users want to create, build, or scaffold a new extension for Super Agent Party - inclu0skills.sh installs
2hoodini avataryuv-viral-videohoodini/ai-agents-skillsEdit any selfie or screen-share footage into a viral short-form video in YUV.AI's signature style — Apple-style liquid-glass cards (real CSS backdrop-filter), d0skills.sh installs
3jezweb avatarOpenAI Apps MCPjezweb/claude-skillsBuild ChatGPT apps with MCP servers on Cloudflare Workers. Extend ChatGPT with custom tools and interactive widgets (HTML/JS UI). Use when: developing ChatGPT e0skills.sh installs
4Prat011 avatarartifacts-builderPrat011/awesome-llm-skillsSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for0skills.sh installs
5reactjs avatardocs-sandpackreactjs/react.devIf you're working on React documentation with live code examples, this skill gives you the Sandpack patterns the React team actually uses.0skills.sh installs
6reactjs avatarreview-docsreactjs/react.devThis orchestrates parallel reviews of React documentation files by routing them through specialized agents based on file location and...0skills.sh installs