Plugin Structure

Standardize Claude Code plugin structures with manifest placement and auto-discovery.

Updated Jan 19, 2026
One-click install
npx skills add https://github.com/kgadek/kgadek-claude-plugin --skill plugin-structure-kgadek
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Plugin Structure
Source: https://github.com/kgadek/kgadek-claude-plugin/tree/main/ai-spec/2026-01-21-sdd-inspirations/references/anthropics-claude-plugins-official/plugins/plugin-dev/skills/plugin-structure
Command: npx skills add https://github.com/kgadek/kgadek-claude-plugin --skill plugin-structure-kgadek

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a canonical guide to organizing Claude Code plugins, covering directory layout, manifest configuration, and component auto-discovery to reduce integration friction.

Core Features & Use Cases

  • Guidance on plugin directory layout, plugin.json fields, and component organization (commands, agents, skills, hooks).
  • Best practices for auto-discovery and portable path references using ${CLAUDE_PLUGIN_ROOT}, as well as file naming conventions.
  • Use cases include scaffolding new plugins, learning plugin architecture, and documenting patterns for teams.

Quick Start

Create a minimal plugin scaffold with a manifest and a basic commands directory to begin.

Frequently Asked Questions about Plugin Structure

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure a Claude Code plugin for reliable auto-discovery?

To structure a Claude Code plugin for reliable auto-discovery, follow a canonical directory layout with a properly configured plugin.json manifest, organizing components like commands, agents, skills, and hooks in their designated folders.

What is the best way to scaffold a new Claude Code plugin?

The best way to scaffold a new Claude Code plugin is to create a minimal directory structure containing a manifest file and a basic commands directory, ensuring standardized naming and portable path references from the start.

How does the ${CLAUDE_PLUGIN_ROOT} path reference work in plugin development?

The ${CLAUDE_PLUGIN_ROOT} variable provides a portable path reference within your plugin structure, ensuring that file references remain stable and correctly resolved regardless of where the plugin is installed.

What components do I need to organize when building a Claude Code plugin?

When building a Claude Code plugin, you need to organize components such as commands, agents, skills, and hooks, placing them in standardized directories to ensure the system can automatically discover and load them.

Why is my Claude Code plugin not loading correctly during auto-discovery?

If your Claude Code plugin is not loading correctly, it is likely due to incorrect manifest placement, improper file naming conventions, or non-standard directory structure that prevents the auto-discovery mechanism from finding your components.

Plugin Structure for Claude Code: does it support team documentation patterns?

Yes, the Plugin Structure standard provides best-practice documentation patterns and architectural guidance, allowing development teams to maintain consistent plugin organization and reduce integration friction across projects.