Loading...
Loading...
Compare original and translation side by side
| Tier | Structure | Use When |
|---|---|---|
| Simple | | Self-contained instructions under ~200 lines |
| With references | | Domain knowledge that agents load conditionally |
| With scripts | | Workflow automation needing Python scripts |
| Full | All of the above | Complex skills with automation and domain knowledge |
${CLAUDE_SKILL_ROOT}/references/design-principles.md| 层级 | 结构 | 使用场景 |
|---|---|---|
| 简单型 | 仅包含 | 内容不超过200行的独立指令型Skill |
| 带参考资料型 | | 需要Agent根据上下文加载领域知识的Skill |
| 带脚本型 | | 需要Python脚本实现工作流自动化的Skill |
| 完整型 | 包含以上所有结构 | 兼具自动化能力和领域知识的复杂Skill |
${CLAUDE_SKILL_ROOT}/references/design-principles.md${CLAUDE_SKILL_ROOT}/references/skill-patterns.mdCLAUDE.mdAGENTS.md${CLAUDE_SKILL_ROOT}/references/skill-patterns.mdCLAUDE.mdAGENTS.md<skill-directory>/<name>/SKILL.md<skill-directory>/<name>/SKILL.md------
name: <skill-name>
description: <what it does>. Use when <trigger phrases>. <key capabilities>.
---namedescriptionmodelsonnetopushaikuallowed-toolsRead Grep Glob Bash Tasklicense------
name: <skill-name>
description: <功能描述>. Use when <触发短语>. <核心能力>.
---namedescriptionmodelsonnetopushaikuallowed-toolsRead Grep Glob Bash Tasklicense| Do | Don't |
|---|---|
| "Read the file and extract..." | "This skill reads the file and extracts..." |
| "Report only HIGH confidence findings" | "The agent should report only HIGH confidence findings" |
| "Ask the user which option to use" | "You may want to ask the user..." |
## Step N: Titlereferences/| 正确示例 | 错误示例 |
|---|---|
| "读取文件并提取..." | "此Skill会读取文件并提取..." |
| "仅报告高置信度的结果" | "Agent应仅报告高置信度的结果" |
| "询问用户要使用哪个选项" | "你可能需要询问用户..." |
## 步骤N:标题references/------
name: example
description: ...
---
<!--
Based on [Original Name] by [Author/Org]:
https://github.com/example/original-source
-->------
name: example
description: ...
---
<!--
Based on [Original Name] by [Author/Org]:
https://github.com/example/original-source
-->references/references/<name>/
├── SKILL.md
└── references/
├── topic-a.md
└── topic-b.mdRead `${CLAUDE_SKILL_ROOT}/references/topic-a.md` for details on [topic].<name>/
├── SKILL.md
└── references/
├── topic-a.md
└── topic-b.mdRead `${CLAUDE_SKILL_ROOT}/references/topic-a.md` for details on [topic].scripts/scripts/<name>/
├── SKILL.md
└── scripts/
└── do_thing.pyuv runuv run ${CLAUDE_SKILL_ROOT}/scripts/do_thing.pyundefined<name>/
├── SKILL.md
└── scripts/
└── do_thing.pyuv runuv run ${CLAUDE_SKILL_ROOT}/scripts/do_thing.pyundefined
- Output structured JSON for agent consumption
- Run from the **repository root**, not the skill directory
- Document the script's interface in SKILL.md (arguments, output format)
- 输出结构化JSON供Agent使用
- 从**仓库根目录**执行,而非Skill目录
- 在SKILL.md中记录脚本的接口(参数、输出格式)assets/assets/CLAUDE.mdREADME.mdname.claude/settings.jsonSkill(<plugin>:<name>)permissions.allowCLAUDE.mdCLAUDE.mdREADME.mdname.claude/settings.jsonSkill(<plugin>:<name>)permissions.allowCLAUDE.mdnamedescriptiondescription---namedescriptiondescription---namenameuv run ${CLAUDE_SKILL_ROOT}/scripts/...uv run ${CLAUDE_SKILL_ROOT}/scripts/...