superpowers-zh 1.7.8 → 1.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/.cursor-plugin/plugin.json +1 -1
- package/README.md +4 -3
- package/README.zh-Hant.md +4 -3
- package/RELEASE-NOTES.zh.md +42 -0
- package/bin/superpowers-zh.js +37 -4
- package/docs/README.hermes.md +27 -16
- package/gemini-extension.json +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
{
|
|
10
10
|
"name": "superpowers-zh",
|
|
11
11
|
"description": "AI 编程超能力中文增强版:20 个 skills(14 翻译 + 4 中国原创 + 2 上游历史保留),支持 Claude Code / Hermes Agent / Cursor / Claw Code / Qoder 等 23 款工具",
|
|
12
|
-
"version": "1.7.
|
|
12
|
+
"version": "1.7.9",
|
|
13
13
|
"source": "./",
|
|
14
14
|
"author": {
|
|
15
15
|
"name": "jnMetaCode",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "superpowers-zh",
|
|
3
3
|
"description": "AI 编程超能力中文增强版:20 个 skills(14 翻译 + 4 中国原创 + 2 上游历史保留),支持 Claude Code / Hermes Agent / Cursor / Claw Code / Qoder 等 23 款工具",
|
|
4
|
-
"version": "1.7.
|
|
4
|
+
"version": "1.7.9",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "jnMetaCode",
|
|
7
7
|
"url": "https://github.com/jnMetaCode"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "superpowers-zh",
|
|
3
3
|
"displayName": "Superpowers 中文版",
|
|
4
4
|
"description": "AI 编程超能力中文增强版:20 个 skills(14 翻译 + 4 中国原创 + 2 上游历史保留),支持 Cursor / Claude Code / Hermes Agent / Claw Code / Qoder 等 23 款工具",
|
|
5
|
-
"version": "1.7.
|
|
5
|
+
"version": "1.7.9",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "jnMetaCode",
|
|
8
8
|
"url": "https://github.com/jnMetaCode"
|
package/README.md
CHANGED
|
@@ -16,7 +16,8 @@ Chinese community edition of [superpowers](https://github.com/obra/superpowers)
|
|
|
16
16
|
>
|
|
17
17
|
> 🌍 Also available in [English](https://aiolaola.com/en?utm_source=github&utm_campaign=superpowers) · [日本語](https://aiolaola.com/ja?utm_source=github&utm_campaign=superpowers) · [Español](https://aiolaola.com/es?utm_source=github&utm_campaign=superpowers) · [한국어](https://aiolaola.com/ko?utm_source=github&utm_campaign=superpowers) · [繁體中文](https://aiolaola.com/zh-Hant?utm_source=github&utm_campaign=superpowers)
|
|
18
18
|
|
|
19
|
-
> 🆕 **v1.7.
|
|
19
|
+
> 🆕 **v1.7.9 更新亮点**([完整 Release Notes →](RELEASE-NOTES.zh.md))
|
|
20
|
+
> - 🐛 **Hermes 用户请重装** —— 之前我们只装项目级 `.hermes/skills/`,而 Hermes 根本不读那个目录,等于**装了完全不生效**。现在改用 `npx superpowers-zh --global --tool hermes` 装到 `~/.hermes/skills/`([#45](https://github.com/jnMetaCode/superpowers-zh/issues/45))
|
|
20
21
|
> - 🔍 **定位核查** —— 逐层比对上游,修掉 5 处「不是增量」的偏离;新增 audit 检查强制 fork 增量必须显式声明
|
|
21
22
|
> - 🆕 **新增 Crush**(工具数 22 → 23)—— 若你已为 CC / Cursor / Codex 装过,Crush 其实已经能读到,别重复装
|
|
22
23
|
> - 🎯 **上游 v6.2.0 对齐完成** —— audit 的结构漂移告警清零;C 块盘点时发现其中 3 项不是风格改动而是实质新规则
|
|
@@ -133,7 +134,7 @@ AI:在开始实现之前,我需要了解几个关键问题:
|
|
|
133
134
|
|------|------|:---:|:---:|
|
|
134
135
|
| [Claude Code](https://claude.ai/code) | CLI | `npx superpowers-zh` | `.claude/skills/` |
|
|
135
136
|
| [Copilot CLI](https://githubnext.com/projects/copilot-cli) | CLI | `npx superpowers-zh --tool copilot` | `.claude/skills/` |
|
|
136
|
-
| [Hermes Agent](https://github.com/NousResearch/hermes-agent) | CLI | `npx superpowers-zh --tool hermes` |
|
|
137
|
+
| [Hermes Agent](https://github.com/NousResearch/hermes-agent) | CLI | `npx superpowers-zh --global --tool hermes` | `~/.hermes/skills/` |
|
|
137
138
|
| [Cursor](https://cursor.sh) | IDE | `npx superpowers-zh` | `.cursor/skills/` |
|
|
138
139
|
| [Windsurf](https://codeium.com/windsurf) | IDE | `npx superpowers-zh` | `.windsurf/skills/` |
|
|
139
140
|
| [Kiro](https://kiro.dev) | IDE | `npx superpowers-zh` | `.kiro/steering/` |
|
|
@@ -214,7 +215,7 @@ npx superpowers-zh --global --tool claude # 或指定工具
|
|
|
214
215
|
|
|
215
216
|
全局安装把 skills 装到工具的**用户级目录**(如 `~/.claude/skills`),一次安装所有项目自动可用,更新时也只需重装一次。**项目级优先、全局兜底**,二者可共存。
|
|
216
217
|
|
|
217
|
-
支持通用全局安装的工具(均为 docs 已证实的用户级加载路径):**Claude Code · Codex CLI · Qoder · Windsurf · Qwen Code · OpenClaw · OpenCode · Crush**。其中 **Codex CLI** 全局装到 `~/.agents/skills`(Codex 启动扫描目录)。其余工具(Cursor / Kiro / Trae / Aider / DeerFlow / VS Code /
|
|
218
|
+
支持通用全局安装的工具(均为 docs 已证实的用户级加载路径):**Claude Code · Codex CLI · Qoder · Windsurf · Qwen Code · OpenClaw · OpenCode · Crush · Hermes Agent**。其中 **Codex CLI** 全局装到 `~/.agents/skills`(Codex 启动扫描目录)。其余工具(Cursor / Kiro / Trae / Aider / DeerFlow / VS Code / Claw / Cline / Kilo Code)规则是项目级或存于应用内设置,`--global` 会提示改用项目级;**Gemini CLI / Antigravity** 有各自专属的全局方式(Gemini 走扩展目录),见对应 `docs/README.*.md`。
|
|
218
219
|
|
|
219
220
|
| | 项目级(默认) | 全局(`--global`) |
|
|
220
221
|
|---|---|---|
|
package/README.zh-Hant.md
CHANGED
|
@@ -16,7 +16,8 @@ Chinese community edition of [superpowers](https://github.com/obra/superpowers)
|
|
|
16
16
|
|
|
17
17
|
> 📖 **免費配套學習** → [從零學會 AI 編程](https://aiolaola.com/?utm_source=github&utm_campaign=superpowers):180 節免費實操課 + 《AI 編程實戰三卷書》線上閱讀 + 實戰社群 · superpowers 裝好後配上方法論效率翻倍 · 永久免費
|
|
18
18
|
|
|
19
|
-
> 🆕 **v1.7.
|
|
19
|
+
> 🆕 **v1.7.9 更新亮點**([完整 Release Notes →](RELEASE-NOTES.zh.md))
|
|
20
|
+
> - 🐛 **Hermes 使用者請重裝** —— 之前我們只裝專案級 `.hermes/skills/`,而 Hermes 根本不讀那個目錄,等於**裝了完全不生效**。現在改用 `npx superpowers-zh --global --tool hermes` 裝到 `~/.hermes/skills/`([#45](https://github.com/jnMetaCode/superpowers-zh/issues/45))
|
|
20
21
|
> - 🔍 **定位核查** —— 逐層比對上游,修掉 5 處「不是增量」的偏離;新增 audit 檢查強制 fork 增量必須顯式聲明
|
|
21
22
|
> - 🆕 **新增 Crush**(工具數 22 → 23)—— 若你已為 CC / Cursor / Codex 裝過,Crush 其實已經能讀到,別重複裝
|
|
22
23
|
> - 🎯 **上游 v6.2.0 對齊完成** —— audit 的結構漂移告警清零;C 塊盤點時發現其中 3 項不是風格改動而是實質新規則
|
|
@@ -133,7 +134,7 @@ AI:在開始實作之前,我需要了解幾個關鍵問題:
|
|
|
133
134
|
|------|------|:---:|:---:|
|
|
134
135
|
| [Claude Code](https://claude.ai/code) | CLI | `npx superpowers-zh` | `.claude/skills/` |
|
|
135
136
|
| [Copilot CLI](https://githubnext.com/projects/copilot-cli) | CLI | `npx superpowers-zh --tool copilot` | `.claude/skills/` |
|
|
136
|
-
| [Hermes Agent](https://github.com/NousResearch/hermes-agent) | CLI | `npx superpowers-zh --tool hermes` |
|
|
137
|
+
| [Hermes Agent](https://github.com/NousResearch/hermes-agent) | CLI | `npx superpowers-zh --global --tool hermes` | `~/.hermes/skills/` |
|
|
137
138
|
| [Cursor](https://cursor.sh) | IDE | `npx superpowers-zh` | `.cursor/skills/` |
|
|
138
139
|
| [Windsurf](https://codeium.com/windsurf) | IDE | `npx superpowers-zh` | `.windsurf/skills/` |
|
|
139
140
|
| [Kiro](https://kiro.dev) | IDE | `npx superpowers-zh` | `.kiro/steering/` |
|
|
@@ -214,7 +215,7 @@ npx superpowers-zh --global --tool claude # 或指定工具
|
|
|
214
215
|
|
|
215
216
|
全域安裝把 skills 裝到工具的**使用者級目錄**(如 `~/.claude/skills`),一次安裝所有專案自動可用,更新時也只需重裝一次。**專案級優先、全域兜底**,二者可共存。
|
|
216
217
|
|
|
217
|
-
支援通用全域安裝的工具(均為 docs 已證實的使用者級載入路徑):**Claude Code · Codex CLI · Qoder · Windsurf · Qwen Code · OpenClaw · OpenCode · Crush**。其中 **Codex CLI** 全域裝到 `~/.agents/skills`(Codex 啟動掃描目錄)。其餘工具(Cursor / Kiro / Trae / Aider / DeerFlow / VS Code /
|
|
218
|
+
支援通用全域安裝的工具(均為 docs 已證實的使用者級載入路徑):**Claude Code · Codex CLI · Qoder · Windsurf · Qwen Code · OpenClaw · OpenCode · Crush · Hermes Agent**。其中 **Codex CLI** 全域裝到 `~/.agents/skills`(Codex 啟動掃描目錄)。其餘工具(Cursor / Kiro / Trae / Aider / DeerFlow / VS Code / Claw / Cline / Kilo Code)規則是專案級或存於應用內設定,`--global` 會提示改用專案級;**Gemini CLI / Antigravity** 有各自專屬的全域方式(Gemini 走擴充目錄),見對應 `docs/README.*.md`。
|
|
218
219
|
|
|
219
220
|
| | 專案級(預設) | 全域(`--global`) |
|
|
220
221
|
|---|---|---|
|
package/RELEASE-NOTES.zh.md
CHANGED
|
@@ -6,6 +6,48 @@
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
## v1.7.9 (2026-08-11)
|
|
10
|
+
|
|
11
|
+
**如果你在用 Hermes Agent,请重新安装。** 本版本之前我们对 Hermes 的支持是**坏的** —— 不是"不好用",是装完完全不生效。
|
|
12
|
+
|
|
13
|
+
### 🐛 Hermes:我们一直装错了目录([#45](https://github.com/jnMetaCode/superpowers-zh/issues/45))
|
|
14
|
+
|
|
15
|
+
报告人说「项目级 `.hermes/skills/` 里的 20 个 skill 全部返回 404,必须手动复制到 `~/.hermes/skills/` 才被识别」。查[官方文档](https://hermes-agent.nousresearch.com/docs/user-guide/features/skills)核实,他是对的:
|
|
16
|
+
|
|
17
|
+
> Hermes 只自动加载 `~/.hermes/skills/`(原文称其为 "the primary directory and source of truth"),**项目级目录不会被自动发现**;外部目录必须写进 `~/.hermes/config.yaml` 的 `skills.external_dirs`。
|
|
18
|
+
|
|
19
|
+
而我们从支持 Hermes 起就只装项目级 `.hermes/skills/` —— **那个目录 Hermes 根本不读**。装了 20 个 skill,一个都不生效,比不支持更糟:用户以为装好了。
|
|
20
|
+
|
|
21
|
+
**改法:**
|
|
22
|
+
|
|
23
|
+
- **全局成为推荐装法** —— `npx superpowers-zh --global --tool hermes` 装到 `~/.hermes/skills/`,装完即生效,`skills_list` 直接能看到 20 个 skill
|
|
24
|
+
- **项目级保留**(skills 可以随仓库分发),但装完打印**可直接粘贴**的配置片段,带绝对路径:
|
|
25
|
+
|
|
26
|
+
```yaml
|
|
27
|
+
skills:
|
|
28
|
+
external_dirs:
|
|
29
|
+
- /your/project/.hermes/skills
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
**我们不替你改 `config.yaml`** —— 那是你的文件。文档里特意写明「配置里不存在的路径会被静默跳过」,所以写错不会报错、只会"没生效",这个坑值得先说。
|
|
33
|
+
|
|
34
|
+
**过程中拦住了一次自己猜路径:** 第一版全局实现把 `HERMES.md` 引导文件写到了 `$HOME` 根目录。Hermes 的用户级指令文件约定**没有公开文档** —— 那是在猜路径 + 污染用户主目录。已改为全局模式不写 bootstrap,并在文档里说明理由。实测:全局装完 `$HOME` 根目录 0 个新文件、卸载 0 残留。
|
|
35
|
+
|
|
36
|
+
### 🔧 发版工具:`bump-version.sh` 缺 jq 时会静默改错
|
|
37
|
+
|
|
38
|
+
本次发版时踩到:机器上没有 `jq`,脚本不报错退出,而是每个文件打一行 `command not found` 后**继续往下跑**,最后以 `unbound variable` 收场 —— 版本号一个都没写进去,但输出里混着 "Done."。已加前置检查:缺 `jq` 直接退出并给出安装命令。
|
|
39
|
+
|
|
40
|
+
### ℹ️ #45 的后半部分未动(说明理由)
|
|
41
|
+
|
|
42
|
+
#45 还提到 7 个 skill 文件里有 24 处硬编码的 Claude 工具名(`TodoWrite` / `Read` / `Bash` 等)。**本次不动**,理由:那属于行为塑造内容,且 `references/hermes-tools.md` 已有完整映射表。正确解法是强化「查映射表」的引用,而不是把正文改成某个 harness 专属的工具名 —— 那会伤到其余 22 款工具。
|
|
43
|
+
|
|
44
|
+
### ✅ 发版前门禁
|
|
45
|
+
|
|
46
|
+
- `audit.sh` 166 pass / 0 warn / 0 fail
|
|
47
|
+
- `verify-release.sh` 90 pass / 0 fail(`--global` 支持清单 6 → 7 款,新增 hermes)
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
9
51
|
## v1.7.8 (2026-08-08)
|
|
10
52
|
|
|
11
53
|
本版本源于一次**定位核查**:按「superpowers-zh 只是完整翻译上游 + 增加更多工具支持」这个定位,逐层比对我们与 [obra/superpowers](https://github.com/obra/superpowers) 的差异。结论是**定位基本站得住,但不完全** —— 查出 5 处偏离,全部修掉。
|
package/bin/superpowers-zh.js
CHANGED
|
@@ -51,7 +51,7 @@ const LEGACY_AGENT_FILENAMES = ['code-reviewer.md'];
|
|
|
51
51
|
// global.dir 用户级 skills 目录(相对 home)
|
|
52
52
|
// global.detect home 下用于自动检测该工具是否安装的标记目录
|
|
53
53
|
// global.boot 可选,用户级 bootstrap 文件(相对 home);无则仅靠 skill 自动发现
|
|
54
|
-
// 无 global 的工具(Cursor/Kiro/Trae/Aider/DeerFlow/VS Code/
|
|
54
|
+
// 无 global 的工具(Cursor/Kiro/Trae/Aider/DeerFlow/VS Code/Claw/Cline/Kilo Code)规则是项目级、
|
|
55
55
|
// 或存在于应用内设置,没有稳定的用户级 skills 加载路径 —— --global 会明确拒绝而非写无效路径。
|
|
56
56
|
const TARGETS = [
|
|
57
57
|
{ name: 'Claude Code', dir: '.claude/skills', detect: '.claude', global: { dir: '.claude/skills', detect: '.claude', boot: '.claude/CLAUDE.md' } },
|
|
@@ -74,7 +74,11 @@ const TARGETS = [
|
|
|
74
74
|
{ name: 'Aider', dir: '.aider/skills', detect: '.aider' },
|
|
75
75
|
{ name: 'OpenCode', dir: '.opencode/skills', detect: '.opencode', global: { dir: '.config/opencode/skills', detect: '.config/opencode' } },
|
|
76
76
|
{ name: 'Qwen Code', dir: '.qwen/skills', detect: '.qwen', global: { dir: '.qwen/skills', detect: '.qwen' } },
|
|
77
|
-
|
|
77
|
+
// Hermes 官方文档:只自动加载 ~/.hermes/skills/("the primary directory and
|
|
78
|
+
// source of truth"),项目级目录不被自动发现,外部目录必须写进
|
|
79
|
+
// ~/.hermes/config.yaml 的 skills.external_dirs。所以全局才是能直接生效的装法;
|
|
80
|
+
// 项目级仍保留(便于随仓库分发),但装完会打印需要粘贴的 config.yaml 片段。
|
|
81
|
+
{ name: 'Hermes Agent', dir: '.hermes/skills', detect: ['.hermes', 'HERMES.md', '.hermes.md'], global: { dir: '.hermes/skills', detect: '.hermes' } },
|
|
78
82
|
{ name: 'Claw Code', dir: '.claw/skills', detect: ['.claw', 'CLAW.md'] },
|
|
79
83
|
{ name: 'Qoder', dir: '.qoder/skills', detect: '.qoder', global: { dir: '.qoder/skills', detect: '.qoder' } },
|
|
80
84
|
{ name: 'CodeBuddy', dir: '.codebuddy/skills', detect: ['.codebuddy', 'CODEBUDDY.md'] },
|
|
@@ -431,7 +435,17 @@ ${skillList}
|
|
|
431
435
|
}
|
|
432
436
|
}
|
|
433
437
|
|
|
434
|
-
function generateHermesBootstrap(projectDir) {
|
|
438
|
+
function generateHermesBootstrap(projectDir, isGlobal) {
|
|
439
|
+
// 全局模式不写 bootstrap:Hermes 的用户级指令文件约定未在 docs 证实,
|
|
440
|
+
// 往 $HOME 根目录写 HERMES.md 是猜路径 + 污染主目录。~/.hermes/skills/ 里的
|
|
441
|
+
// skill 靠 name/description 被 skills_list / skill_view 发现,本就不依赖 bootstrap。
|
|
442
|
+
if (isGlobal) {
|
|
443
|
+
console.log(' ℹ️ Hermes 全局安装不写 bootstrap 文件(其用户级指令文件约定未证实)。');
|
|
444
|
+
console.log(' skills 已在 ~/.hermes/skills/,可用 skills_list / skill_view 发现。');
|
|
445
|
+
console.log(' 想让它在项目里自动触发,在该项目跑一次项目级安装以生成 HERMES.md。');
|
|
446
|
+
return;
|
|
447
|
+
}
|
|
448
|
+
|
|
435
449
|
const skillEntries = scanSkillEntries(SKILLS_SRC);
|
|
436
450
|
const skillList = skillEntries.map(s => `- **${s.name}**: ${s.desc}`).join('\n');
|
|
437
451
|
|
|
@@ -485,6 +499,25 @@ ${skillList}
|
|
|
485
499
|
writeFileSync(hermesPath, wrapWithSentinel(content), 'utf8');
|
|
486
500
|
console.log(` ✅ Hermes Agent: bootstrap -> ${hermesPath}`);
|
|
487
501
|
}
|
|
502
|
+
|
|
503
|
+
// 项目级安装 Hermes 认不到 —— 必须显式登记到 config.yaml。不替用户改配置
|
|
504
|
+
// (那是他们的文件),改为打印可直接粘贴的片段。见 issue #45。
|
|
505
|
+
if (!isGlobal) {
|
|
506
|
+
const abs = resolve(projectDir, '.hermes', 'skills');
|
|
507
|
+
console.log('');
|
|
508
|
+
console.log(' ⚠️ Hermes 只自动扫描 ~/.hermes/skills/,不会发现项目级目录。');
|
|
509
|
+
console.log(' 二选一让它生效:');
|
|
510
|
+
console.log('');
|
|
511
|
+
console.log(' A) 改用全局安装(推荐,装完即生效):');
|
|
512
|
+
console.log(' npx superpowers-zh --global --tool hermes');
|
|
513
|
+
console.log('');
|
|
514
|
+
console.log(' B) 保留项目级,把这段加进 ~/.hermes/config.yaml:');
|
|
515
|
+
console.log('');
|
|
516
|
+
console.log(' skills:');
|
|
517
|
+
console.log(' external_dirs:');
|
|
518
|
+
console.log(` - ${abs}`);
|
|
519
|
+
console.log('');
|
|
520
|
+
}
|
|
488
521
|
}
|
|
489
522
|
|
|
490
523
|
function generateClaudeCodeBootstrap(baseDir, isGlobal) {
|
|
@@ -732,7 +765,7 @@ function installForTarget(target, baseDir, isGlobal) {
|
|
|
732
765
|
}
|
|
733
766
|
|
|
734
767
|
if (target.name === 'Hermes Agent') {
|
|
735
|
-
generateHermesBootstrap(baseDir);
|
|
768
|
+
generateHermesBootstrap(baseDir, isGlobal);
|
|
736
769
|
}
|
|
737
770
|
|
|
738
771
|
if (target.name === 'Claude Code') {
|
package/docs/README.hermes.md
CHANGED
|
@@ -2,37 +2,48 @@
|
|
|
2
2
|
|
|
3
3
|
在 [Hermes Agent](https://github.com/NousResearch/hermes-agent) 中使用 superpowers-zh 的完整指南。
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## ⚠️ 先看这一条:必须装到全局,否则不生效
|
|
6
|
+
|
|
7
|
+
[Hermes 官方文档](https://hermes-agent.nousresearch.com/docs/user-guide/features/skills)明确:Hermes **只自动加载 `~/.hermes/skills/`**(原文称其为 "the primary directory and source of truth"),**项目级目录不会被自动发现**。
|
|
8
|
+
|
|
9
|
+
所以推荐的装法是全局:
|
|
6
10
|
|
|
7
11
|
```bash
|
|
8
|
-
|
|
9
|
-
npx superpowers-zh --tool hermes
|
|
12
|
+
npx superpowers-zh --global --tool hermes
|
|
10
13
|
```
|
|
11
14
|
|
|
12
|
-
|
|
15
|
+
装到 `~/.hermes/skills/`,装完即生效,用 `skills_list` 就能看到 20 个 skill。
|
|
13
16
|
|
|
14
|
-
|
|
17
|
+
> 📌 v1.7.8 及更早版本只支持项目级安装(装到 `<项目>/.hermes/skills/`)—— 那个目录 Hermes 根本不读,等于装了不生效。这是我们的实现错误,v1.7.9 起修正。见 [#45](https://github.com/jnMetaCode/superpowers-zh/issues/45)。
|
|
18
|
+
|
|
19
|
+
## 如果你确实要项目级安装
|
|
20
|
+
|
|
21
|
+
项目级的好处是 skills 可以随仓库一起分发。但**必须显式登记**,否则 Hermes 看不见。
|
|
15
22
|
|
|
16
23
|
```bash
|
|
17
|
-
|
|
24
|
+
cd /your/project
|
|
25
|
+
npx superpowers-zh --tool hermes
|
|
18
26
|
```
|
|
19
27
|
|
|
20
|
-
|
|
28
|
+
安装器会打印出你需要粘贴的配置片段,形如:
|
|
21
29
|
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
|
|
30
|
+
```yaml
|
|
31
|
+
skills:
|
|
32
|
+
external_dirs:
|
|
33
|
+
- /your/project/.hermes/skills
|
|
25
34
|
```
|
|
26
35
|
|
|
27
|
-
|
|
36
|
+
把它加进 `~/.hermes/config.yaml`。路径支持 `~` 展开和 `${VAR}` 环境变量替换;**配置里不存在的路径会被静默跳过**,所以写错了不会报错,只会"没生效"。
|
|
37
|
+
|
|
38
|
+
**我们不替你改 `config.yaml`** —— 那是你的配置文件。
|
|
39
|
+
|
|
40
|
+
项目级安装还会生成 `HERMES.md` 引导文件(含核心规则和 skills 列表),让 Hermes 在合适时机主动检查 skill。全局安装**不写**这个文件 —— Hermes 的用户级指令文件约定没有公开文档,我们不猜路径、也不往你的主目录里写东西。
|
|
28
41
|
|
|
29
|
-
|
|
42
|
+
## 同名冲突
|
|
30
43
|
|
|
31
|
-
|
|
32
|
-
- 所有可用 skills 的列表和描述
|
|
33
|
-
- 核心规则和使用说明
|
|
44
|
+
如果同一个 skill 名在 `~/.hermes/skills/` 和某个 `external_dirs` 目录里都存在,**本地(`~/.hermes/skills/`)的版本优先**。
|
|
34
45
|
|
|
35
|
-
##
|
|
46
|
+
## 其他 config.yaml 用法
|
|
36
47
|
|
|
37
48
|
如果希望全局使用 superpowers-zh skills,可以在 `~/.hermes/config.yaml` 中配置:
|
|
38
49
|
|
package/gemini-extension.json
CHANGED