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'