Commit 5d92ed68 by 赵月辉

Update README.md

parent bd0e8340
# Hermes Skills 仓库结构规范
## 目录结构
```
hermes-skills/ # 仓库根目录 hermes-skills/ # 仓库根目录
├── README.md # (可选) 仓库说明 ├── README.md # (可选) 仓库说明
└── skills/ # 必须:技能根目录 └── skills/ # 必须:技能根目录
...@@ -7,7 +12,7 @@ hermes-skills/ # 仓库根目录 ...@@ -7,7 +12,7 @@ hermes-skills/ # 仓库根目录
│ ├── apple-reminders/ │ ├── apple-reminders/
│ │ └── SKILL.md │ │ └── SKILL.md
│ └── findmy/ │ └── findmy/
── SKILL.md │ ── SKILL.md
├── coding/ ├── coding/
│ ├── claude-code/ │ ├── claude-code/
│ │ └── SKILL.md │ │ └── SKILL.md
...@@ -15,4 +20,57 @@ hermes-skills/ # 仓库根目录 ...@@ -15,4 +20,57 @@ hermes-skills/ # 仓库根目录
│ └── SKILL.md │ └── SKILL.md
└── automation/ └── automation/
└── macos-computer-use/ └── macos-computer-use/
└── SKILL.md ── SKILL.md
\ No newline at end of file ```
## SKILL.md 文件格式
每个技能必须包含一个 `SKILL.md` 文件,格式如下:
```markdown
---
name: apple-notes
description: Manage Apple Notes via memo CLI: create, search, edit.
---
# Apple Notes Skill
详细的技能使用说明、提示词模板等...
```
## 规范要求
1. **必须**`skills/` 根目录
2. **必须**按分类组织:`skills/<category>/<skill-name>/SKILL.md`
3. `SKILL.md` 必须包含 YAML frontmatter(`---` 包裹),至少要有 `name``description`
4. 分类名可以自定义,比如 `apple``coding``automation`
5. 技能名使用小写+短横线,如 `apple-notes`
## 示例
创建一个新的技能:
```bash
mkdir -p skills/coding/code-review
cat > skills/coding/code-review/SKILL.md << 'EOF'
---
name: code-review
description: Review code for bugs, style issues, and best practices.
---
# Code Review Skill
You are an expert code reviewer. When reviewing code:
1. Check for bugs and potential issues
2. Suggest improvements for readability
3. Ensure adherence to best practices
EOF
```
然后提交到仓库:
```bash
git add .
git commit -m "feat(skills): add code-review skill"
git push origin master
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment