Keyflow

Search Keyflow

Find a shortcut, workflow, MCP server or skill

plugin-structure

Official · Anthropic

Installation

Terminal

git clone --depth 1 https://github.com/anthropics/claude-plugins-official.git /tmp/plugin-structure-src
cp -r /tmp/plugin-structure-src/plugins/plugin-dev/skills/plugin-structure ~/.claude/skills/plugin-structure

Or .claude/skills/plugin-structure to scope it to one repo.

Summary

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 ${CLAUDEPLUGINROOT}", "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.

Plugin Structure for Claude Code Overview Claude Code plugins follow a standardized directory structure with automatic component discovery. Understanding this structure enables creating well-organized, maintainable plugins that integrate seamlessly with Claude Code. Key concepts: - Conventional directory layout for automatic discovery - Manifest-driven configuration in .claude-plugin/plugin.json - Component-based organization (commands, agents, skills, hooks) - Portable path references using ${CLAUDEPLUGINROOT} - Explicit vs. auto-discovered component loading Directory Structure Every Claude Code plugin follows this organizational pattern: plugin-name/ ├── .claude-plugin/ │ └── plugin.json Required: Plugin manifest ├── commands/ Slash commands (.md files) ├── agents/ Subagent definitions (.md files) ├── skills/ Agent skills (subdirectories) │ └── skill-name/ │ └── SKILL.md Required for e…

Questions

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 ${CLAUDEPLUGINROOT}", "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.

Claude Code: ~/.claude/skills/plugin-structure. Codex: ~/.agents/skills/plugin-structure. Antigravity: ~/.gemini/config/skills/plugin-structure. Use .claude/skills or .agents/skills inside a repo to scope it to one project.

More from anthropics/claude-plugins-official

Name
  1. access
  2. configure
  3. access
  4. configure
  5. claude-automation-recommender
  6. claude-md-improver
  7. claude-security
  8. cardputer-buddy
Buy me a coffee