plugin-structure

Automate Claude Code plugin structuring with standardized directory and manifest conventions.

Updated Mar 28, 2026
One-click install
npx skills add https://github.com/mobster570/oc-claude-plugin-dev --skill plugin-structure-mobster570
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: plugin-structure
Source: https://github.com/mobster570/oc-claude-plugin-dev/tree/main/plugin-src/skills/plugin-structure
Command: npx skills add https://github.com/mobster570/oc-claude-plugin-dev --skill plugin-structure-mobster570

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Organizes Claude Code plugins with a standardized layout, explicit manifest guidance, and predictable component loading to streamline development and maintenance.

Core Features & Use Cases

  • Directory layout guidance: how to structure commands, agents, skills, hooks, and optional resources
  • Manifest-driven configuration: using .claude-plugin/plugin.json for metadata and path mapping
  • Auto-discovery mechanics: support for default and custom component locations with smooth loading
  • Portable path references: using ${CLAUDE_PLUGIN_ROOT} to ensure cross-platform portability
  • Progressive disclosure: tighten context by moving details to references and examples

Quick Start

Create a minimal plugin with a manifest and one command to bootstrap development.

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 auto-discovery?

Claude Code plugin structure requires a standardized directory layout for commands, agents, skills, and hooks, along with a `.claude-plugin/plugin.json` manifest to map component paths and enable predictable auto-discovery.

What is the required manifest configuration for Claude Code plugins?

Manifest configuration for Claude Code plugins requires a `.claude-plugin/plugin.json` file to define metadata and path mappings, enabling the loader to automatically discover and register commands, agents, skills, and hooks.

How does auto-discovery work for plugin components like commands and hooks?

Auto-discovery for plugin components works by scanning default and custom directory locations specified in the manifest, automatically loading commands, agents, skills, and hooks that contain mandated YAML frontmatter with name and description.

Do I need YAML frontmatter for Claude Code plugin skills to load correctly?

Yes, YAML frontmatter is required for Claude Code plugin skills to load correctly, as the auto-discovery mechanism mandates that each skill file includes frontmatter with a name and description to be recognized and registered.

What is the best way to reference plugin paths across different platforms?

The best way to reference plugin paths across different platforms is to use the `${CLAUDE_PLUGIN_ROOT}` variable, which ensures portable path references for components and resources regardless of the underlying operating system.

Can I use custom directory locations for plugin components instead of defaults?

Yes, you can use custom directory locations for plugin components instead of defaults by explicitly mapping the custom paths in your `.claude-plugin/plugin.json` manifest, which the auto-discovery mechanics support for smooth loading.