Plugin Structure

Guide Claude Code plugin architecture, directory structure, and manifest configuration.

Updated Feb 18, 2026
One-click install
npx skills add https://github.com/zach-source/claude-plugins --skill plugin-structure-zach-source
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Plugin Structure
Source: https://github.com/zach-source/claude-plugins/tree/main/plugins/plugin-dev/skills/plugin-structure
Command: npx skills add https://github.com/zach-source/claude-plugins --skill plugin-structure-zach-source

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and examples (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance on organizing Claude Code plugins, ensuring they are discoverable, maintainable, and follow best practices for structure, manifest configuration, and component layout.

Core Features & Use Cases

  • Plugin Architecture: Understand the standard directory layout and file naming conventions.
  • Manifest Configuration: Learn how to configure plugin.json for optimal discovery and functionality.
  • Component Organization: Master patterns for structuring commands, agents, skills, and hooks.
  • Use Case: When starting a new Claude plugin project, use this Skill to scaffold the project correctly from the beginning, avoiding common pitfalls and ensuring scalability.

Quick Start

Use the plugin structure skill to understand how to organize files within a new Claude plugin.

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 maintainability?

To structure a Claude Code plugin for maintainability, follow standard directory layouts, configure the manifest properly, and use portable path references to ensure components are discoverable and scalable.

What is the correct directory layout for Claude plugin development?

The correct directory layout for Claude plugin development organizes components like commands, agents, skills, and hooks into dedicated folders, utilizing auto-discovery mechanisms and specific file naming conventions for optimal functionality.

How does auto-discovery work for Claude Code plugin components?

Auto-discovery for Claude Code plugin components works by scanning the standard directory structure and reading the manifest configuration, automatically identifying and loading commands, agents, and hooks without manual registration.

Do I need a manifest configuration to scaffold a new Claude plugin?

Yes, you need a manifest configuration file, typically plugin.json, to scaffold a new Claude plugin. This file defines the plugin's metadata and ensures proper component discovery and functionality within the environment.

What are the best practices for organizing commands and hooks in Claude plugins?

Best practices for organizing commands and hooks in Claude plugins involve grouping them into logical directories, applying consistent file naming conventions, and using portable path references to maintain a scalable and maintainable architecture.

When should I scaffold a Claude plugin project using standard architecture?

You should scaffold a Claude plugin project using standard architecture at the very beginning of development to avoid common structural pitfalls, ensure auto-discovery works correctly, and maintain long-term project scalability.