plugin-structure

Scaffold Claude Code plugin directories with manifests and portable path references.

Updated Mar 25, 2026
One-click install
npx skills add https://github.com/SOLEROM/cldlab --skill plugin-structure-solerom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: plugin-structure
Source: https://github.com/SOLEROM/cldlab/tree/main/login/tildaClaude_cleanAfterAcceptKey/plugins/marketplaces/claude-plugins-official/plugins/plugin-dev/skills/plugin-structure
Command: npx skills add https://github.com/SOLEROM/cldlab --skill plugin-structure-solerom

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guides plugin authors to structure Claude Code plugins, align manifest configuration, and establish consistent component loading.

Core Features & Use Cases

  • Clear directory layouts (commands, agents, skills, hooks) for reliable auto-discovery.
  • Guidance on plugin.json manifest fields and portable path references using ${CLAUDE_PLUGIN_ROOT}.
  • Best practices for organizing components, naming conventions, and MCP/server integration.

Quick Start

Create a new plugin folder with the standard layout and add a manifest, then place your commands, agents, and skills so Claude Code can auto-discover them.

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?

To structure a Claude Code plugin for auto-discovery, use a standard directory layout with separate folders for commands, agents, skills, and hooks, then add a plugin.json manifest to define frontmatter fields like name, description, and version.

What is the plugin manifest in Claude Code used for?

The plugin manifest in Claude Code is used to align configuration and establish consistent component loading by defining frontmatter fields such as name, description, and version, alongside portable path references like ${CLAUDE_PLUGIN_ROOT}.

How do I use portable path references in Claude Code plugin architecture?

You can use portable path references in Claude Code plugin architecture by implementing the ${CLAUDE_PLUGIN_ROOT} variable in your plugin.json manifest, ensuring scripts, references, and assets load reliably across different environments.

Does Claude Code plugin architecture support MCP integration?

Yes, Claude Code plugin architecture supports MCP integration. The plugin structure provides best practices for organizing components, naming conventions, and configuring MCP server integration within your distribution-ready plugin kit.

What is the best way to scaffold commands and hooks for a Claude Code plugin?

The best way to scaffold commands and hooks for a Claude Code plugin is to follow a structured blueprint that places these components in clear directory layouts, allowing Claude Code to auto-discover them alongside your SKILL.md file.

When do I need a SKILL.md file in my plugin structure?

You need a SKILL.md file in your plugin structure when you want to provide a structured blueprint for Claude Code plugin architecture, ensuring your commands, agents, skills, and hooks are properly documented and distribution-ready.