Plugin Structure

作者: anthropic

标准化目录结构与清单配置,用于Claude Code插件的自动组件发现。遵循常规布局,包含.claude-plugin/plugin.json清单,以及根目录下的commands/、agents/、skills/和hooks/目录,用于自动发现。组件自动加载:commands和agents为.md文件,skills为包含SKILL.md的子目录,hooks通过JSON配置。使用${CLAUDE_PLUGIN_ROOT}环境变量处理所有插件内部路径...

npx skills add https://github.com/anthropics/claude-code --skill 'Plugin Structure'