New advertisers: 50% off your first month with code FIRSTMONTHSee slots
anthropics avatar

Plugin Structure

Reference for building a Claude Code plugin's directory layout, manifest, and component files.

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.6K
GitHub stars
47.9K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers the plugin directory layout, plugin.json manifest fields, and naming conventions for commands, agents, skills, and hooks
  • Includes guidance on ${CLAUDE_PLUGIN_ROOT} for portable paths in hooks, MCP server definitions, and scripts
  • Enforces kebab-case names, manifest placement in .claude-plugin/, and relative ./ paths for custom component locations
  • Designed for developers scaffolding a new Claude Code plugin or reorganizing an existing one

Install

$ npx -y skills add anthropics/claude-plugins-official --skill plugin-structure -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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:

Details

Repository
github.com/anthropics/claude-plugins-official
Category
Skill & Plugin Building
First seen
May 16, 2026

More from anthropics/claude-plugins-official

All 23

Similar to Plugin Structure

More Skill & Plugin Building