> **Plugin Structure** — chapter 9 of 10 in [anthropics/claude-code](https://skillsdocs.com/anthropics/claude-code).
>
> Book (all chapters, one file): https://skillsdocs.com/anthropics/claude-code.md
> Machine manifest: https://skillsdocs.com/anthropics/claude-code/.well-known/agent-skills/index.json
> Install the book: `npx skills add anthropics/claude-code`
> Upstream: https://github.com/anthropics/claude-code/blob/main/plugins/plugin-dev/skills/plugin-structure/SKILL.md @ `main`
> Raw bytes, no header: https://raw.githubusercontent.com/anthropics/claude-code/main/plugins/plugin-dev/skills/plugin-structure/SKILL.md
> Base for relative paths: https://raw.githubusercontent.com/anthropics/claude-code/main/plugins/plugin-dev/skills/plugin-structure/
> Licence: No licence detected — all rights reserved by its authors
>
> Bundled files (6), referenced from this skill's directory:
>   - `examples/advanced-plugin.md` — https://raw.githubusercontent.com/anthropics/claude-code/main/plugins/plugin-dev/skills/plugin-structure/examples/advanced-plugin.md
>   - `examples/minimal-plugin.md` — https://raw.githubusercontent.com/anthropics/claude-code/main/plugins/plugin-dev/skills/plugin-structure/examples/minimal-plugin.md
>   - `examples/standard-plugin.md` — https://raw.githubusercontent.com/anthropics/claude-code/main/plugins/plugin-dev/skills/plugin-structure/examples/standard-plugin.md
>   - `README.md` — https://raw.githubusercontent.com/anthropics/claude-code/main/plugins/plugin-dev/skills/plugin-structure/README.md
>   - `references/component-patterns.md` — https://raw.githubusercontent.com/anthropics/claude-code/main/plugins/plugin-dev/skills/plugin-structure/references/component-patterns.md
>   - `references/manifest-reference.md` — https://raw.githubusercontent.com/anthropics/claude-code/main/plugins/plugin-dev/skills/plugin-structure/references/manifest-reference.md
>
> Content © its authors. This chapter's body is not served here; the links above are. Takedown: https://github.com/kyleledbetter/skillsdocs/issues/new?labels=takedown&title=Takedown+request

# 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.

No licence could be detected for this skill at either the repository or the skill level, so its body is not reproduced here. Read it upstream:

https://raw.githubusercontent.com/anthropics/claude-code/main/plugins/plugin-dev/skills/plugin-structure/SKILL.md
