anthropics avatar

Plugin Structure

This is the reference documentation for how Claude Code plugins are structured under the hood. You'll want this when you're building your own plugin and need to understand the conventional directory layout, how the manifest system works with plugin.json, and how component discovery happens automatically. It covers the portable path references using CLAUDE_PLUGIN_ROOT and explains when components load explicitly versus auto-discovery. The actual directory tree and manifest details are cut off in the preview, but this is essentially the structural specification you'd reference while scaffolding a new plugin or debugging why your commands or agents aren't being recognized.

GitHub stars
141.9K
last updated
Aug 21, 2026

Install

$ npx -y skills add anthropics/claude-code --skill 'Plugin Structure' --agent claude-code

Installs into .claude/skills of the current project.

Files

This is the reference documentation for how Claude Code plugins are structured under the hood. You'll want this when you're building your own plugin and need to understand the conventional directory layout, how the manifest system works with plugin.json, and how component discovery happens automatically. It covers the portable path references using CLAUDE_PLUGIN_ROOT and explains when components load explicitly versus auto-discovery. The actual directory tree and manifest details are cut off in the preview, but this is essentially the structural specification you'd reference while scaffolding a new plugin or debugging why your commands or agents aren't being recognized.

Browse the repository on GitHub

Sponsors

Details

Repository
github.com/anthropics/claude-code
Categories
Frontend Development, Code Review & Quality, Automation & Workflows, Sales & Marketing
First seen
Jun 3, 2026

More from anthropics/claude-code

All 10
1cherryhq avatargh-pr-reviewcherryhq/cherry-studioAutomated Cherry Studio code review for local branches, PRs, commits, and files. Use for reviewing code, docs, or pull requests with project-specific checks for0skills.sh installs
2composiohq avatarartifacts-buildercomposiohq/awesome-claude-pluginsSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for0skills.sh installs
3countbot-ai avatarweb-designcountbot-ai/countbot网页设计与部署。生成精美的单页 HTML 网页(报告、落地页、数据可视化等),支持一键部署到 Cloudflare Pages。使用 Tailwind CSS + Chart.js + Font Awesome 技术栈。当用户要求制作网页、生成报告页面、创建落地页、数据可视化展示、部署网页到线上时使用。0skills.sh installs
4davila7 avatarplugin-structuredavila7/claude-code-templatesThis skill should be used when the user asks to "create a plugin", "scaffold a plugin", "understand plugin structure", "organize plugin components", "set up plu0skills.sh installs
5heshengtao avatarsap-extension-creatorheshengtao/super-agent-partyCreate Super Agent Party (SAP) extensions. This skill should be used when users want to create, build, or scaffold a new extension for Super Agent Party - inclu0skills.sh installs
6hoodini avataryuv-viral-videohoodini/ai-agents-skillsEdit any selfie or screen-share footage into a viral short-form video in YUV.AI's signature style — Apple-style liquid-glass cards (real CSS backdrop-filter), d0skills.sh installs