SkillsReviewed · anthropics

Plugin Structure for Claude Code

Plugin Structure is a Claude Code skill for developers building plugins, but its larger examples reference implementation code that is not included. It explains plugin manifests, component directories, automatic discovery and portable paths, with examples ranging from a single command to a complex DevOps plugin.

Researched 17 Nov 2026

In short.

Plugin Structure is a Claude Code skill for plugin authors, but its larger examples require additional implementation code and current-version compatibility is unknown. The skill explains .claude-plugin/plugin.json, commands, agents, skills, hooks, MCP server configuration and ${CLAUDE_PLUGIN_ROOT}. Its references add organization patterns and manifest rules. Some reload guidance is unclear, and sample output does not establish working behavior. Nothing was executed.

Researched and written by an AI model and checked by a second AI model. How it works

Covers all seven supplied files in plugins/plugin-dev/skills/plugin-structure at revision fd30cee3ecd5a8ee772733c5d20c0f2bae2da2f0, together with the repository and plugin-dev license notices. The wider plugin-dev implementation, sibling skills, referenced but unprovided scripts and servers, and current Claude Code documentation are outside this scope. Original source locations are retained. No commands, installations, example plugins or integrations were executed; operational behavior and compatibility remain unassessed.

The overview

Identity

Plugin Structure is the plugin-structure skill inside the plugin-dev plugin in Anthropic's claude-plugins-official repository. Its SKILL.md declares version 0.1.0. The resource consists of assistant instructions, a README, two technical references and three example documents.

The original source folder is [https://github.com/anthropics/claude-plugins-official/tree/main/plugins/plugin-dev/skills/plugin-structure]. This resource covers that skill folder, rather than the entire plugin-dev plugin.

Assessment

The skill is most useful as a reference when creating a plugin's initial layout or reorganizing an existing one. It connects file placement with manifest configuration and explains a particularly useful distinction: custom component paths supplement the default locations.

The minimal example provides a small starting pattern. The standard and advanced examples illustrate broader architectures, but many scripts, server implementations and integration libraries they reference are absent. Their production-oriented descriptions do not establish production readiness.

Users

Beginners who already use Claude Code can use the single-command example to understand the basic relationship between a manifest and a command file. Familiarity with folders, JSON, Markdown and YAML metadata will help.

Experienced developers can use the references when separating commands by function, organizing specialized agents, sharing scripts or adding hooks and external tool servers. The material addresses plugin architecture; it does not teach the implementation of Kubernetes, Terraform, monitoring services or programming languages from the beginning.

Capabilities

The skill explains the manifest's required name, recommended metadata, component paths and naming conventions. It covers commands, agents, skills, event hooks and MCP servers, which expose external tools to Claude Code through the Model Context Protocol.

The references describe flat and categorized layouts, explicitly configured nested command directories, shared libraries and layered architectures. They also explain using ${CLAUDE_PLUGIN_ROOT} to locate a plugin's scripts and resources across installation locations.

These are documented patterns and instructions. The selected folder does not include a standalone scaffolding program, complete integration servers or a general plugin validation tool.

Using it

Requirements

Reading the material requires no plugin runtime. Using it as an automatically activated skill requires Claude Code with plugin and skill support; the minimum supported Claude Code version is not specified.

Requirements depend on the plugin being built. The minimal example contains only a manifest and a command document, with no helper scripts or external services. Larger examples reference Bash scripts, Node.js or Python servers, credentials and infrastructure services. Required runtime versions, complete dependency lists and operating-system compatibility are not established.

Mechanism

The skill's description identifies plugin creation and organization tasks that should trigger its instructions. Its README describes loading the core guidance first and consulting detailed references and examples as needed.

The documented plugin lifecycle begins with reading manifests and discovering component definitions. Commands respond to user invocation, agents are selected for tasks, skills activate from context, hooks respond to events and MCP servers supply tools. The component reference places registration during Claude Code initialization rather than continuous monitoring.

According to the manifest reference, default and custom component locations are combined, and conflicting component names can cause errors. Nested command directories require explicit paths in the described configuration.

Setup

The selected material does not provide an exact installation command for the enclosing plugin-dev plugin. Installation and enablement steps for that package are therefore unknown from this scope.

For a plugin being created, the guide specifies .claude-plugin/plugin.json containing a unique kebab-case name. Component directories belong at the plugin root, outside .claude-plugin, and only needed components should be added.

The manifest reference requires component paths to begin with ./, remain inside the plugin and use forward slashes. It distinguishes those configuration paths from executable command paths that use ${CLAUDE_PLUGIN_ROOT}. These rules describe the captured documentation; compatibility with a particular installed Claude Code version remains unassessed.

Example

The minimal example defines a hello-world folder containing .claude-plugin/plugin.json with {"name":"hello-world"} and commands/hello.md. The command document supplies name and description metadata, then asks for a greeting and timestamp.

The document illustrates invoking /hello after installation. Its displayed greeting and timestamp are example output, not evidence that the plugin was executed. It demonstrates how little structure a single-command plugin needs without introducing helper scripts, hooks or service dependencies.

Assessment & evidence

Limitations

The standard example references a linter script without supplying its implementation. The advanced example similarly names server entry points, security scripts and integration clients without supplying many of their implementations. Working deployments, secret scanning, notifications and monitoring are not established by those directory trees.

Reload guidance is unclear. The core document says changes take effect in the next session while also describing restart-free behavior, and troubleshooting advises restarting Claude Code. The component reference says discovery occurs during initialization. Live reloading should not be assumed.

The event-based hook example uses ${file:...} placeholders, but explicitly states that Claude Code does not support those file references and requires a build script to combine them. Sample test counts, coverage values and security findings are illustrative. Runtime correctness, cross-platform compatibility and security effectiveness were not assessed.

Reasoning

The guide's practical value comes from connecting organization choices to how components are found. Default directories keep a small plugin's manifest simple; explicit paths let an author introduce categories as the plugin grows. Because custom paths supplement defaults, both locations need attention when moving or renaming components.

Using ${CLAUDE_PLUGIN_ROOT} ties resource references to the installation directory and avoids depending on the user's current working directory. Shared libraries can centralize reusable behavior. These are architectural rationales supported by the examples, not measured claims about speed, reliability or development time.

Alternatives

The included examples offer three starting patterns. The minimal pattern suits a single command. The standard pattern introduces commands, agents, skills and hooks for code-quality tasks. The advanced pattern illustrates multiple external servers, shared libraries and environment configuration, with substantially more implementation work left to the author.

The README also points to hook-development and conditionally mentions mcp-integration and marketplace-publishing as related skills. Their contents are outside the supplied material, so their availability and comparative usefulness are unknown.

Evidence

The source snapshot contains seven Markdown files: the README, SKILL.md, manifest and component references, and minimal, standard and advanced examples. Two Apache-2.0 license files accompany them, one at repository level and one inside plugin-dev.

The exact source revision is fd30cee3ecd5a8ee772733c5d20c0f2bae2da2f0. The corresponding folder is [https://github.com/anthropics/claude-plugins-official/tree/fd30cee3ecd5a8ee772733c5d20c0f2bae2da2f0/plugins/plugin-dev/skills/plugin-structure]. The files support descriptions of the skill's instructions and examples; they supply no verified execution results or benchmarks.

Access & freshness

Costs

The supplied Apache-2.0 license grants reuse rights without license royalties. It does not establish the cost of Claude Code access, model usage, subscriptions or API calls, so total usage cost is unknown.

The advanced example also references cloud infrastructure, monitoring integrations and separate server processes. Any service, hosting or compute charges associated with implementing that architecture are unspecified.

Rights

Both the repository LICENSE and the enclosing plugin-dev LICENSE contain Apache License 2.0. It permits copying, modification and redistribution subject to its conditions. The MIT and other license values inside hypothetical plugin manifests describe those examples and do not replace the supplied license notices.

Redistribution requires a license copy, retention of relevant notices, prominent notices on modified files and preservation of applicable NOTICE attribution when present. No NOTICE file appears in the supplied manifest; notice requirements elsewhere in the repository are unknown. The license includes a conditional patent grant, disclaims warranties and does not grant general trademark rights.

Freshness

The supplied source snapshot was captured on 2026-11-17 at 08:39:35.998 UTC. That timestamp identifies the snapshot, not the skill's last modification or release date.

The skill declares version 0.1.0. Version numbers inside sample manifests belong to hypothetical plugins. The supplied files do not establish the latest skill release, the current contents of the main branch or compatibility with current Claude Code releases.

Actions

Start with the minimal pattern and add only the component types the plugin needs. Use the manifest reference when introducing custom paths, and explicitly configure nested command directories as described by the component reference.

Before relying on a larger example, implement its missing scripts, servers and libraries and identify their actual dependencies. Check discovery, command invocation, hook configuration and reload behavior against the installed Claude Code version, then verify the resulting plugin in a clean environment. These are proposed next steps; no installation or execution has been performed.

Evidence for this report

LICENSEnotice · checked 2026-11-17
plugins/plugin-dev/LICENSEnotice · checked 2026-11-17