SKILL6.8K installs44.8K

Plugin Structure

This skill should be used when the user asks to "create a plugin", "scaffold a plugin", "understand plugin structure", "organize plugin components", "set up plugin.json", "use ${CLAUDE_PLUGIN_ROOT}", "add commands/agents/skills/hooks", "configure auto-discovery", or needs guidance on plugin directory layout, manifest configuration, component organization, file naming conventions, or Claude Code plugin architecture best practices.

Type
Skill
Author
anthropics
Category
Documentation
GitHub stars
44.8K
Installs
6.8K
Last updated
November 2, 2026

Install

npx skills add https://github.com/anthropics/claude-plugins-official --skill plugin-structure

Use cases


Frequently Asked Questions

What does it cover about plugin.json?

Manifest configuration — how plugin.json is set up and what it declares for the plugin.

Can it help with adding commands, agents, skills, and hooks?

Yes, component organization and auto-discovery for commands, agents, skills, and hooks are part of what it covers.

How do I reference the plugin root inside my files?

The skill covers using ${CLAUDE_PLUGIN_ROOT} within plugin components.


About this skill

Guidance on Claude Code plugin structure: directory layout, plugin.json manifest configuration, component organization, file naming conventions, and auto-discovery. It covers adding commands, agents, skills, and hooks, and using ${CLAUDE_PLUGIN_ROOT}. Use it when scaffolding a plugin or reorganizing an existing one.

Summary written with AI assistance from the project's public description.


Categories


More from anthropics


Similar Skills