Plugin Structure

仓库创建 2026年1月12日最近提交 4 天前SkillHot 收录 21 天前
▸ 精选理由

帮助快速脚手架与保持插件一致性,适合开发者上手。

这个 Skill 做什么

描述 Claude Code 插件的标准目录结构与组件自动发现规则。

帮你搞清 Claude Code 插件的目录约定和组件自动发现规则,便于按规范搭建插件骨架、组织 commands/agents/skills/hooks 等文件并配置 manifest(比如 plugin.json)。在要创建插件、脚手架、整理目录结构或配置自动发现时会用到。特点是以约定优先,降低配置成本,让插件能被 Claude Code 自动识别和维护。

▸ 展开 SKILL.md 英文原文

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.

开发编程插件目录规范自动发现Claude Code
431
Stars
37
Forks
30
仓库内 Skill
+16
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/tzachbon/smart-ralph/main/.agents/skills/Plugin Structure/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/tzachbon/smart-ralph/main/.agents/skills/Plugin Structure/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# 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 `${CLAUDE_PLUGIN_ROOT}`
- Explicit vs. auto-discovered component loading

## Directory Structure

Every Claude Code plugin follows this organizational pattern:

```
plugin-name/
├── .claude
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有