superpowers-zh 1.5.0 → 1.6.0
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/.pi/extensions/superpowers.ts +121 -0
- package/README.md +58 -28
- package/RELEASE-NOTES.zh.md +21 -0
- package/assets/qr-wechat.jpg +0 -0
- package/assets/sponsors/5cookie-code.png +0 -0
- package/bin/superpowers-zh.js +17 -18
- package/docs/README.antigravity.md +7 -7
- package/docs/README.kimi.md +86 -0
- package/docs/README.pi.md +54 -0
- package/docs/README.trae.md +6 -4
- package/gemini-extension.json +1 -1
- package/hooks/session-start +4 -12
- package/package.json +15 -3
- package/skills/brainstorming/SKILL.md +5 -0
- package/skills/brainstorming/scripts/frame-template.html +25 -26
- package/skills/brainstorming/scripts/helper.js +101 -22
- package/skills/brainstorming/scripts/server.cjs +399 -30
- package/skills/brainstorming/scripts/start-server.sh +70 -9
- package/skills/brainstorming/scripts/stop-server.sh +66 -2
- package/skills/chinese-code-review/SKILL.md +5 -0
- package/skills/chinese-commit-conventions/SKILL.md +5 -0
- package/skills/chinese-documentation/SKILL.md +5 -0
- package/skills/chinese-git-workflow/SKILL.md +5 -0
- package/skills/dispatching-parallel-agents/SKILL.md +5 -0
- package/skills/executing-plans/SKILL.md +7 -2
- package/skills/finishing-a-development-branch/SKILL.md +7 -2
- package/skills/mcp-builder/SKILL.md +5 -0
- package/skills/receiving-code-review/SKILL.md +5 -0
- package/skills/requesting-code-review/SKILL.md +5 -0
- package/skills/subagent-driven-development/SKILL.md +5 -0
- package/skills/systematic-debugging/SKILL.md +5 -0
- package/skills/test-driven-development/SKILL.md +5 -0
- package/skills/using-git-worktrees/SKILL.md +14 -24
- package/skills/using-superpowers/SKILL.md +5 -0
- package/skills/using-superpowers/references/pi-tools.md +28 -0
- package/skills/verification-before-completion/SKILL.md +5 -0
- package/skills/workflow-runner/SKILL.md +5 -0
- package/skills/writing-plans/SKILL.md +5 -0
- package/skills/writing-skills/SKILL.md +5 -0
|
@@ -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 等 18 款工具",
|
|
12
|
-
"version": "1.
|
|
12
|
+
"version": "1.6.0",
|
|
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 等 18 款工具",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.6.0",
|
|
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 等 18 款工具",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.6.0",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "jnMetaCode",
|
|
8
8
|
"url": "https://github.com/jnMetaCode"
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { readFileSync } from "node:fs";
|
|
2
|
+
import { dirname, resolve } from "node:path";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
4
|
+
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
5
|
+
|
|
6
|
+
const EXTREMELY_IMPORTANT_MARKER = "<EXTREMELY_IMPORTANT>";
|
|
7
|
+
const BOOTSTRAP_MARKER = "superpowers:using-superpowers bootstrap for pi";
|
|
8
|
+
|
|
9
|
+
const extensionDir = dirname(fileURLToPath(import.meta.url));
|
|
10
|
+
const packageRoot = resolve(extensionDir, "../..");
|
|
11
|
+
const skillsDir = resolve(packageRoot, "skills");
|
|
12
|
+
const bootstrapSkillPath = resolve(skillsDir, "using-superpowers", "SKILL.md");
|
|
13
|
+
|
|
14
|
+
let cachedBootstrap: string | null | undefined;
|
|
15
|
+
|
|
16
|
+
export default function superpowersPiExtension(pi: ExtensionAPI) {
|
|
17
|
+
let injectBootstrap = true;
|
|
18
|
+
|
|
19
|
+
pi.on("resources_discover", async () => ({
|
|
20
|
+
skillPaths: [skillsDir],
|
|
21
|
+
}));
|
|
22
|
+
|
|
23
|
+
pi.on("session_start", async () => {
|
|
24
|
+
injectBootstrap = true;
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
pi.on("session_compact", async () => {
|
|
28
|
+
injectBootstrap = true;
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
pi.on("agent_end", async () => {
|
|
32
|
+
injectBootstrap = false;
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
pi.on("context", async (event) => {
|
|
36
|
+
if (!injectBootstrap) return;
|
|
37
|
+
if (event.messages.some(messageContainsBootstrap)) return;
|
|
38
|
+
|
|
39
|
+
const bootstrap = getBootstrapContent();
|
|
40
|
+
if (!bootstrap) return;
|
|
41
|
+
|
|
42
|
+
const bootstrapMessage = {
|
|
43
|
+
role: "user" as const,
|
|
44
|
+
content: [{ type: "text" as const, text: bootstrap }],
|
|
45
|
+
timestamp: Date.now(),
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const insertAt = firstNonCompactionSummaryIndex(event.messages);
|
|
49
|
+
return {
|
|
50
|
+
messages: [
|
|
51
|
+
...event.messages.slice(0, insertAt),
|
|
52
|
+
bootstrapMessage,
|
|
53
|
+
...event.messages.slice(insertAt),
|
|
54
|
+
],
|
|
55
|
+
};
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function getBootstrapContent(): string | null {
|
|
60
|
+
if (cachedBootstrap !== undefined) return cachedBootstrap;
|
|
61
|
+
|
|
62
|
+
try {
|
|
63
|
+
const skillContent = readFileSync(bootstrapSkillPath, "utf8");
|
|
64
|
+
const body = stripFrontmatter(skillContent);
|
|
65
|
+
cachedBootstrap = `${EXTREMELY_IMPORTANT_MARKER}
|
|
66
|
+
${BOOTSTRAP_MARKER}
|
|
67
|
+
|
|
68
|
+
You have superpowers.
|
|
69
|
+
|
|
70
|
+
The using-superpowers skill content is included below and is already loaded for this Pi session. Follow it now. Do not try to load using-superpowers again.
|
|
71
|
+
|
|
72
|
+
${body}
|
|
73
|
+
|
|
74
|
+
${piToolMapping()}
|
|
75
|
+
</EXTREMELY_IMPORTANT>`;
|
|
76
|
+
return cachedBootstrap;
|
|
77
|
+
} catch {
|
|
78
|
+
cachedBootstrap = null;
|
|
79
|
+
return null;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function stripFrontmatter(content: string): string {
|
|
84
|
+
const match = content.match(/^---\n[\s\S]*?\n---\n([\s\S]*)$/);
|
|
85
|
+
return (match ? match[1] : content).trim();
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function piToolMapping(): string {
|
|
89
|
+
return `## Pi tool mapping
|
|
90
|
+
|
|
91
|
+
Pi has native skills but does not expose Claude Code's \`Skill\` tool. When a Superpowers instruction says to invoke a skill, use Pi's native skill system instead: load the relevant \`SKILL.md\` with \`read\` when the skill applies, or let a human invoke \`/skill:name\` explicitly.
|
|
92
|
+
|
|
93
|
+
Pi's built-in coding tools are lowercase: \`read\`, \`write\`, \`edit\`, \`bash\`, plus optional \`grep\`, \`find\`, and \`ls\`. Use those for the corresponding actions: read a file, create or edit files, run shell commands, search file contents, find files by name, and list directories.
|
|
94
|
+
|
|
95
|
+
Pi does not ship a standard subagent tool. If a subagent tool such as \`subagent\` from \`pi-subagents\` is available, use it for Superpowers subagent workflows. If no subagent tool is available, do the work in this session or explain the missing capability instead of inventing \`Task\` calls.
|
|
96
|
+
|
|
97
|
+
Pi does not ship a standard task-list tool. If an installed todo/task tool is available, use it. Otherwise track work in plan files or a repo-local \`TODO.md\` when task tracking is needed. Treat older \`TodoWrite\` references as this task-tracking action.`;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function messageContainsBootstrap(message: unknown): boolean {
|
|
101
|
+
const content = (message as { content?: unknown }).content;
|
|
102
|
+
if (typeof content === "string") return content.includes(BOOTSTRAP_MARKER);
|
|
103
|
+
if (!Array.isArray(content)) return false;
|
|
104
|
+
return content.some((part) => {
|
|
105
|
+
return (
|
|
106
|
+
part &&
|
|
107
|
+
typeof part === "object" &&
|
|
108
|
+
(part as { type?: unknown }).type === "text" &&
|
|
109
|
+
typeof (part as { text?: unknown }).text === "string" &&
|
|
110
|
+
(part as { text: string }).text.includes(BOOTSTRAP_MARKER)
|
|
111
|
+
);
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
function firstNonCompactionSummaryIndex(messages: unknown[]): number {
|
|
116
|
+
let index = 0;
|
|
117
|
+
while ((messages[index] as { role?: unknown } | undefined)?.role === "compactionSummary") {
|
|
118
|
+
index += 1;
|
|
119
|
+
}
|
|
120
|
+
return index;
|
|
121
|
+
}
|
package/README.md
CHANGED
|
@@ -2,10 +2,47 @@
|
|
|
2
2
|
|
|
3
3
|
🌐 **简体中文** | [English (upstream)](https://github.com/obra/superpowers)
|
|
4
4
|
|
|
5
|
-
> 🦸 **superpowers(
|
|
5
|
+
> 🦸 **superpowers(233k+ ⭐)完整汉化 + 4 个中国原创 skills** — 让 Claude Code / Copilot CLI / Hermes Agent / Cursor / Windsurf / Kiro / Gemini CLI / Qoder 等 **18 款 AI 编程工具**真正会干活。从头脑风暴到代码审查,从 TDD 到调试,每个 skill 都是经过实战验证的工作方法论。
|
|
6
6
|
|
|
7
7
|
Chinese community edition of [superpowers](https://github.com/obra/superpowers) — 20 skills across 18 AI coding tools, including full translations and China-specific development skills.
|
|
8
8
|
|
|
9
|
+
[](https://sp.aiolaola.com)
|
|
10
|
+
[](https://github.com/jnMetaCode/superpowers-zh)
|
|
11
|
+
[](https://www.npmjs.com/package/superpowers-zh)
|
|
12
|
+
[](https://opensource.org/licenses/MIT)
|
|
13
|
+
[](https://makeapullrequest.com)
|
|
14
|
+
|
|
15
|
+
> 📖 **免费配套学习** → [从零学会 AI 编程](https://aiolaola.com/?utm_source=github&utm_campaign=superpowers):180 节免费实操课 + 《AI 编程实战三卷书》在线阅读 + 实战社区 · superpowers 装好后配上方法论效率翻倍 · 永久免费
|
|
16
|
+
|
|
17
|
+
### 📊 项目规模
|
|
18
|
+
|
|
19
|
+
| 📦 翻译 Skills | 🇨🇳 中国特色 Skills | 🤖 支持工具 |
|
|
20
|
+
|:---:|:---:|:---:|
|
|
21
|
+
| **14** | **6** | **Claude Code / Copilot CLI / Hermes Agent / Cursor / Windsurf / Kiro / Gemini CLI / Codex / Aider / Trae / VS Code (Copilot) / DeerFlow / OpenCode / OpenClaw / Qwen Code / Antigravity / Claw Code / Qoder** |
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## ❤️ 赞助商 <sub>🙏 想出现在这里?联系 **jnMetaCode@qq.com** 赞助</sub>
|
|
26
|
+
|
|
27
|
+
<table>
|
|
28
|
+
<tr>
|
|
29
|
+
<td width="200" align="center">
|
|
30
|
+
<a href="https://www.5cookie.cc/sign-up?aff=Pj7u"><img src="assets/sponsors/5cookie-code.png" width="180" alt="5Cookie Code"></a>
|
|
31
|
+
</td>
|
|
32
|
+
<td>
|
|
33
|
+
<a href="https://www.5cookie.cc/sign-up?aff=Pj7u"><b>5Cookie Code</b></a> 是一家稳定高速的 API 中继服务提供商,为 Claude Code、Codex 等平台或模型提供 API 中继服务。面向个人、团队和企业用户提供 AI 编码服务和 AI 生图服务。
|
|
34
|
+
</td>
|
|
35
|
+
</tr>
|
|
36
|
+
</table>
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## 这是什么?
|
|
41
|
+
|
|
42
|
+
[superpowers](https://github.com/obra/superpowers) 是目前最火的 AI 编程 skills 框架(233k+ stars),为 AI 编程工具提供**系统化的工作方法论**。
|
|
43
|
+
|
|
44
|
+
**superpowers-zh** 在完整翻译的基础上,新增了面向中国开发者的特色 skills。
|
|
45
|
+
|
|
9
46
|
<!-- 效果对比 -->
|
|
10
47
|
<table>
|
|
11
48
|
<tr><td>
|
|
@@ -33,32 +70,11 @@ AI:在开始实现之前,我需要了解几个关键问题:
|
|
|
33
70
|
</td></tr>
|
|
34
71
|
</table>
|
|
35
72
|
|
|
36
|
-
[](https://github.com/jnMetaCode/superpowers-zh)
|
|
37
|
-
[](https://www.npmjs.com/package/superpowers-zh)
|
|
38
|
-
[](https://opensource.org/licenses/MIT)
|
|
39
|
-
[](https://makeapullrequest.com)
|
|
40
|
-
|
|
41
|
-
> 📖 **配套阅读**:[《AI 编程实战 · 方法论三卷书》](https://book.aibuzhiyu.com/) — 10 个 AI 编程工具完整教程 + 真实踩坑 · superpowers 装好之后,配上方法论效率翻倍 · 在线书 + PDF · 永久免费
|
|
42
|
-
|
|
43
|
-
### 📊 项目规模
|
|
44
|
-
|
|
45
|
-
| 📦 翻译 Skills | 🇨🇳 中国特色 Skills | 🤖 支持工具 |
|
|
46
|
-
|:---:|:---:|:---:|
|
|
47
|
-
| **14** | **6** | **Claude Code / Copilot CLI / Hermes Agent / Cursor / Windsurf / Kiro / Gemini CLI / Codex / Aider / Trae / VS Code (Copilot) / DeerFlow / OpenCode / OpenClaw / Qwen Code / Antigravity / Claw Code / Qoder** |
|
|
48
|
-
|
|
49
|
-
---
|
|
50
|
-
|
|
51
|
-
## 这是什么?
|
|
52
|
-
|
|
53
|
-
[superpowers](https://github.com/obra/superpowers) 是目前最火的 AI 编程 skills 框架(159k+ stars),为 AI 编程工具提供**系统化的工作方法论**。
|
|
54
|
-
|
|
55
|
-
**superpowers-zh** 在完整翻译的基础上,新增了面向中国开发者的特色 skills。
|
|
56
|
-
|
|
57
73
|
### 🆚 与英文上游的区别(老被问,一次说清)
|
|
58
74
|
|
|
59
75
|
| 维度 | superpowers(英文上游) | superpowers-zh(中文增强版) |
|
|
60
76
|
|------|----------------------|---------------------------|
|
|
61
|
-
| ⭐ Star 数 |
|
|
77
|
+
| ⭐ Star 数 | 233k+ | — |
|
|
62
78
|
| 📦 Skills 总数 | 14 | **20**(14 翻译 + 4 国产原创 + 2 上游历史保留) |
|
|
63
79
|
| 🌐 语言 | 英文 | 中文(技术术语保留英文) |
|
|
64
80
|
| 🤖 **支持工具** | **6 款**:Claude Code / Cursor / Codex / OpenCode / Copilot CLI / Gemini CLI | **18 款**:上述 6 款 + Hermes Agent / Trae / Kiro / Qwen Code(通义灵码)/ OpenClaw / Claw Code / Antigravity / DeerFlow / VS Code / Windsurf / Aider / Qoder |
|
|
@@ -96,7 +112,7 @@ AI:在开始实现之前,我需要了解几个关键问题:
|
|
|
96
112
|
| [OpenCode](https://opencode.ai) | CLI | `npx superpowers-zh` | `.opencode/skills/` |
|
|
97
113
|
| [OpenClaw](https://github.com/anthropics/openclaw) | CLI | `npx superpowers-zh` | `skills/` |
|
|
98
114
|
| [Qwen Code](https://tongyi.aliyun.com/lingma) (通义灵码) | IDE 插件 | `npx superpowers-zh` | `.qwen/skills/` |
|
|
99
|
-
| [Antigravity](https://github.com/anthropics/antigravity) | CLI | `npx superpowers-zh` | `.
|
|
115
|
+
| [Antigravity](https://github.com/anthropics/antigravity) | CLI | `npx superpowers-zh` | `.agents/skills/` |
|
|
100
116
|
| [Claw Code](https://github.com/ultraworkers/claw-code) | CLI (Rust) | `npx superpowers-zh` | `.claw/skills/` |
|
|
101
117
|
| [Qoder](https://qoder.com) (阿里 AI IDE) | IDE | `npx superpowers-zh` | `.qoder/skills/` + `.qoder/rules/` |
|
|
102
118
|
|
|
@@ -170,7 +186,7 @@ cp -r superpowers-zh/skills /your/project/.codex/skills # Codex CLI
|
|
|
170
186
|
cp -r superpowers-zh/skills /your/project/.kiro/steering # Kiro
|
|
171
187
|
cp -r superpowers-zh/skills /your/project/skills/custom # DeerFlow 2.0
|
|
172
188
|
cp -r superpowers-zh/skills /your/project/.trae/rules # Trae
|
|
173
|
-
cp -r superpowers-zh/skills /your/project/.
|
|
189
|
+
cp -r superpowers-zh/skills /your/project/.agents # Antigravity
|
|
174
190
|
cp -r superpowers-zh/skills /your/project/.github/superpowers # VS Code (Copilot)
|
|
175
191
|
cp -r superpowers-zh/skills /your/project/skills # OpenClaw
|
|
176
192
|
cp -r superpowers-zh/skills /your/project/.windsurf/skills # Windsurf
|
|
@@ -207,7 +223,7 @@ cp -r superpowers-zh/skills /your/project/.qoder/skills # Qoder(阿里 AI
|
|
|
207
223
|
| Claw Code | `.claw/skills/*/SKILL.md` | Rust 版 CLI agent,兼容 Claude Code 的 SKILL.md 格式 |
|
|
208
224
|
| Qoder | `.qoder/skills/*/SKILL.md` + `.qoder/rules/superpowers-zh.md` | 阿里 AI IDE,自动生成 `trigger: always_on` 的 bootstrap rule |
|
|
209
225
|
|
|
210
|
-
> **详细安装指南**:[Kiro](docs/README.kiro.md) · [DeerFlow](docs/README.deerflow.md) · [Trae](docs/README.trae.md) · [Antigravity](docs/README.antigravity.md) · [VS Code](docs/README.vscode.md) · [Codex](docs/README.codex.md) · [OpenCode](docs/README.opencode.md) · [OpenClaw](docs/README.openclaw.md) · [Windsurf](docs/README.windsurf.md) · [Gemini CLI](docs/README.gemini-cli.md) · [Aider](docs/README.aider.md) · [Qwen Code](docs/README.qwen.md) · [Hermes Agent](docs/README.hermes.md) · [Qoder](docs/README.qoder.md)
|
|
226
|
+
> **详细安装指南**:[Kiro](docs/README.kiro.md) · [DeerFlow](docs/README.deerflow.md) · [Trae](docs/README.trae.md) · [Antigravity](docs/README.antigravity.md) · [VS Code](docs/README.vscode.md) · [Codex](docs/README.codex.md) · [OpenCode](docs/README.opencode.md) · [OpenClaw](docs/README.openclaw.md) · [Windsurf](docs/README.windsurf.md) · [Gemini CLI](docs/README.gemini-cli.md) · [Aider](docs/README.aider.md) · [Qwen Code](docs/README.qwen.md) · [Hermes Agent](docs/README.hermes.md) · [Qoder](docs/README.qoder.md) · [Kimi Code](docs/README.kimi.md) · [Pi](docs/README.pi.md)
|
|
211
227
|
|
|
212
228
|
### 卸载 / 误装清理(v1.2.1+)
|
|
213
229
|
|
|
@@ -219,7 +235,7 @@ npx superpowers-zh@latest --uninstall
|
|
|
219
235
|
会做这些:
|
|
220
236
|
|
|
221
237
|
- 删除所有装过的 skill 目录(`.claude/skills/`、`.trae/skills/` 等)
|
|
222
|
-
- 删除独立 bootstrap 文件(`.trae/rules/superpowers-zh.md`、`.qoder/rules/superpowers-zh.md`、`.
|
|
238
|
+
- 删除独立 bootstrap 文件(`.trae/rules/superpowers-zh.md`、`.qoder/rules/superpowers-zh.md`、`.agents/rules.md`)
|
|
223
239
|
- 清理追加到 `CLAUDE.md` / `HERMES.md` / `GEMINI.md` / `CONVENTIONS.md` 里的 superpowers-zh 段,**保留你自己写的内容**
|
|
224
240
|
|
|
225
241
|
数据安全说明:v1.2.1 起,安装会把追加内容包在 `<!-- superpowers-zh:begin/end -->` 哨兵注释之间,卸载按哨兵精确切除。识别不可靠时跳过 + 警告,**绝不会误删用户内容**。
|
|
@@ -253,6 +269,14 @@ npx superpowers-zh@latest --uninstall
|
|
|
253
269
|
|
|
254
270
|
## 交流 · Community
|
|
255
271
|
|
|
272
|
+
<table>
|
|
273
|
+
<tr>
|
|
274
|
+
<td width="170" align="center">
|
|
275
|
+
<img src="assets/qr-wechat.jpg" width="150" alt="微信公众号 AI不止语 二维码"><br>
|
|
276
|
+
<sub>微信扫码关注</sub>
|
|
277
|
+
</td>
|
|
278
|
+
<td>
|
|
279
|
+
|
|
256
280
|
微信公众号 **「AI不止语」**(微信搜索 `AI_BuZhiYu`)— 技术问答 · 项目更新 · 实战文章
|
|
257
281
|
|
|
258
282
|
| 渠道 | 加入方式 |
|
|
@@ -260,11 +284,15 @@ npx superpowers-zh@latest --uninstall
|
|
|
260
284
|
| QQ 2群 | [点击加入](https://qm.qq.com/q/EeNQA9xCxy)(群号 1071280067) |
|
|
261
285
|
| 微信群 | 关注公众号后回复「群」获取入群方式 |
|
|
262
286
|
|
|
287
|
+
</td>
|
|
288
|
+
</tr>
|
|
289
|
+
</table>
|
|
290
|
+
|
|
263
291
|
---
|
|
264
292
|
|
|
265
293
|
## 🌟 相关项目生态
|
|
266
294
|
|
|
267
|
-
|
|
295
|
+
**八个项目组合使用,覆盖 AI 编程 + AI 视频创作 + 桌面陪伴的完整链路。**
|
|
268
296
|
|
|
269
297
|
| 项目 | 定位 | 一句话 |
|
|
270
298
|
|------|------|-------|
|
|
@@ -274,6 +302,8 @@ npx superpowers-zh@latest --uninstall
|
|
|
274
302
|
| **[ai-coding-guide](https://github.com/jnMetaCode/ai-coding-guide)** | 📖 实战教程 | 66 个 Claude Code 技巧 + 9 款工具最佳实践 + 配置模板 |
|
|
275
303
|
| **[shellward](https://github.com/jnMetaCode/shellward)** | 🛡️ 安全中间件 | 8 层防御 + DLP 数据流 + 注入检测,**零依赖**(含 MCP Server) |
|
|
276
304
|
| 🆕 **[ai-shortfilm-prompts](https://github.com/jnMetaCode/ai-shortfilm-prompts)** | 🎬 视频提示词 | Mx-Shell《丧尸清道夫》5 段式方法论 + Skill,Seedance / 小云雀 / Sora / 可灵 / 即梦通用 |
|
|
305
|
+
| 🆕 **[local-agent-toolkit](https://github.com/jnMetaCode/local-agent-toolkit)** | 🛠️ Agent 本地三件套 | 给 agent 配上**记忆 / 技能管理 / 运行追踪**,零依赖、数据不出本机;本仓库 skills 可用 `npx @jnmetacode/skillet add jnMetaCode/superpowers-zh/skills/<名称>` 一键安装 |
|
|
306
|
+
| 🆕 **[codepet](https://github.com/jnMetaCode/codepet)** | 🐾 桌面养成桌宠 | 码宠 CodePet —— 你写代码 / 用 Claude Code,它就涨经验、升级、换状态、跳舞。**全本地、隐私优先、开源** |
|
|
277
307
|
|
|
278
308
|
---
|
|
279
309
|
|
package/RELEASE-NOTES.zh.md
CHANGED
|
@@ -6,6 +6,27 @@
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
## v1.6.0 (2026-06-20)
|
|
10
|
+
|
|
11
|
+
本版本对齐上游 **v6.0.0** 的实质性 skill / 基础设施变更,并新增两款 harness 支持。
|
|
12
|
+
|
|
13
|
+
### 🆕 新增 harness 支持
|
|
14
|
+
|
|
15
|
+
- **Kimi Code**(#59,关 #37)—— 插件清单模型 `.kimi-plugin/plugin.json`:指向现有 `skills/`、`sessionStart` 会话开始自动加载 `using-superpowers`、`skillInstructions` 提供 Kimi 工具映射。安装:Kimi 插件管理器 `/plugins install https://github.com/jnMetaCode/superpowers-zh`。文档见 `docs/README.kimi.md`。
|
|
16
|
+
- **Pi (oh-my-pi)**(#60,关 #44)—— 扩展模型:`package.json` 的 `pi` 字段 + `.pi/extensions/superpowers.ts`(注册生命周期钩子,注入 `using-superpowers` bootstrap + Pi 工具映射)。文档见 `docs/README.pi.md`。
|
|
17
|
+
|
|
18
|
+
### 🔒 brainstorm 可视化伴侣安全模型(#58,同步上游 v6.0.0)
|
|
19
|
+
|
|
20
|
+
伴侣服务器重写为**每会话密钥**鉴权(`?key=` 或会话 cookie 门禁所有端点)+ 安全响应头(`X-Frame-Options: DENY`、CSP `frame-ancestors 'none'`、`Cross-Origin-Resource-Policy: same-origin` 等),修复旧版无鉴权时本地浏览器可读取屏幕/注入事件的缺口。Token 用 `crypto.randomBytes(32)`、`timingSafeEqual` 比较、token 文件 `0o600`。
|
|
21
|
+
|
|
22
|
+
### 🔧 其它 v6 同步
|
|
23
|
+
|
|
24
|
+
- **using-git-worktrees / finishing-a-development-branch**(#57)—— 移除已废弃的全局 worktree 目录 `~/.config/superpowers/worktrees/`,对齐 v6.0.0。
|
|
25
|
+
- **hooks/session-start**(#58)—— 移除 legacy `~/.config/superpowers/skills` 迁移警告,输出补 `| cat`。
|
|
26
|
+
- **opencode 测试**(#72)—— 修复 `setup.sh` 拷贝不存在的 `lib/` 导致的测试飘红。
|
|
27
|
+
|
|
28
|
+
> SDD(subagent-driven-development)的 v6 重写为性能/成本优化,需专门 eval 验证,故本版本暂未纳入(详见 #19)。
|
|
29
|
+
|
|
9
30
|
## v1.5.0 (2026-05-21)
|
|
10
31
|
|
|
11
32
|
### 🆕 Qoder 适配(第 18 款工具,#26、#34)
|
|
Binary file
|
|
Binary file
|
package/bin/superpowers-zh.js
CHANGED
|
@@ -53,7 +53,7 @@ const TARGETS = [
|
|
|
53
53
|
{ name: 'Kiro', dir: '.kiro/steering', detect: '.kiro' },
|
|
54
54
|
{ name: 'DeerFlow', dir: 'skills/custom', detect: 'deer_flow' },
|
|
55
55
|
{ name: 'Trae', dir: '.trae/skills', detect: '.trae' },
|
|
56
|
-
{ name: 'Antigravity', dir: '.
|
|
56
|
+
{ name: 'Antigravity', dir: '.agents/skills', detect: '.agents' },
|
|
57
57
|
{ name: 'VS Code', dir: '.github/superpowers', detect: '.github/copilot-instructions.md' },
|
|
58
58
|
{ name: 'OpenClaw', dir: 'skills', detect: '.openclaw' },
|
|
59
59
|
{ name: 'Windsurf', dir: '.windsurf/skills', detect: '.windsurf' },
|
|
@@ -204,17 +204,17 @@ function generateAntigravityBootstrap(projectDir) {
|
|
|
204
204
|
|
|
205
205
|
## 可用 Skills
|
|
206
206
|
|
|
207
|
-
Skills 位于 \`.
|
|
207
|
+
Skills 位于 \`.agents/skills/\` 目录,每个 skill 有独立的 \`SKILL.md\` 文件。
|
|
208
208
|
|
|
209
209
|
${skillList}
|
|
210
210
|
|
|
211
211
|
## 如何使用
|
|
212
212
|
|
|
213
|
-
当任务匹配某个 skill 时,读取对应的 \`.
|
|
213
|
+
当任务匹配某个 skill 时,读取对应的 \`.agents/skills/<skill-name>/SKILL.md\` 并严格遵循其流程。
|
|
214
214
|
`;
|
|
215
215
|
|
|
216
|
-
// 写入 .
|
|
217
|
-
const rulePath = resolve(projectDir, '.
|
|
216
|
+
// 写入 .agents/rules.md(不覆盖用户已有的 GEMINI.md / AGENTS.md)
|
|
217
|
+
const rulePath = resolve(projectDir, '.agents', 'rules.md');
|
|
218
218
|
writeFileSync(rulePath, content, 'utf8');
|
|
219
219
|
console.log(` ✅ Antigravity: bootstrap rule -> ${rulePath}`);
|
|
220
220
|
}
|
|
@@ -521,7 +521,7 @@ function isHomeDir(p) {
|
|
|
521
521
|
const BOOTSTRAP_DELETE = [
|
|
522
522
|
'.trae/rules/superpowers-zh.md',
|
|
523
523
|
'.qoder/rules/superpowers-zh.md',
|
|
524
|
-
'.
|
|
524
|
+
'.agents/rules.md',
|
|
525
525
|
];
|
|
526
526
|
const BOOTSTRAP_CLEAN_SECTION = [
|
|
527
527
|
'CLAUDE.md',
|
|
@@ -748,18 +748,17 @@ function install(forceToolName, force) {
|
|
|
748
748
|
}
|
|
749
749
|
|
|
750
750
|
if (installed === 0) {
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
console.log('
|
|
755
|
-
console.log('
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
console.log(`
|
|
761
|
-
|
|
762
|
-
generateClaudeCodeBootstrap(PROJECT_DIR);
|
|
751
|
+
// 检测落空时不再静默装 Claude Code —— 否则 Antigravity / Trae 等
|
|
752
|
+
// 不会在项目里留下检测目录的工具,会被误装成 Claude(见 issue #33)。
|
|
753
|
+
// 改为明确报错并教用户用 --tool 显式指定。
|
|
754
|
+
console.log(' ⚠️ 未在当前目录检测到任何已知 AI 编程工具的项目标记。\n');
|
|
755
|
+
console.log(' 为避免装错工具,未做任何安装。请用 --tool 显式指定你的工具,例如:\n');
|
|
756
|
+
console.log(' npx superpowers-zh --tool claude # Claude Code / Copilot CLI');
|
|
757
|
+
console.log(' npx superpowers-zh --tool antigravity # Google Antigravity');
|
|
758
|
+
console.log(' npx superpowers-zh --tool trae # Trae');
|
|
759
|
+
console.log(' npx superpowers-zh --tool cursor # Cursor\n');
|
|
760
|
+
console.log(` 全部可用别名:${Object.keys(TOOL_ALIASES).join(', ')}\n`);
|
|
761
|
+
process.exit(1);
|
|
763
762
|
}
|
|
764
763
|
|
|
765
764
|
console.log('\n 安装完成!重启你的 AI 编程工具即可生效。\n');
|
|
@@ -9,14 +9,14 @@ cd /your/project
|
|
|
9
9
|
npx superpowers-zh
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
-
安装脚本会自动检测 `.
|
|
12
|
+
安装脚本会自动检测 `.agents/` 目录并将 skills 复制到该目录。
|
|
13
13
|
|
|
14
14
|
## 手动安装
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
17
|
git clone https://github.com/jnMetaCode/superpowers-zh.git
|
|
18
|
-
mkdir -p /your/project/.
|
|
19
|
-
cp -r superpowers-zh/skills/* /your/project/.
|
|
18
|
+
mkdir -p /your/project/.agents/skills
|
|
19
|
+
cp -r superpowers-zh/skills/* /your/project/.agents/skills/
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
## 工作原理
|
|
@@ -27,7 +27,7 @@ Antigravity 支持多种规则文件格式:
|
|
|
27
27
|
|------|--------|------|
|
|
28
28
|
| `GEMINI.md` | 最高 | Antigravity 专属规则 |
|
|
29
29
|
| `AGENTS.md` | 中 | 通用规则(Antigravity、Cursor、Claude Code 共享) |
|
|
30
|
-
| `.
|
|
30
|
+
| `.agents/rules.md` | 中 | 项目级规则目录 |
|
|
31
31
|
| `CLAUDE.md` | 低 | 也会被自动读取 |
|
|
32
32
|
|
|
33
33
|
### 推荐配置方式
|
|
@@ -37,10 +37,10 @@ Antigravity 支持多种规则文件格式:
|
|
|
37
37
|
```markdown
|
|
38
38
|
# GEMINI.md
|
|
39
39
|
|
|
40
|
-
使用 .
|
|
40
|
+
使用 .agents/ 目录下的 superpowers skills 来指导工作流程。
|
|
41
41
|
优先使用 brainstorming(头脑风暴)开始新任务。
|
|
42
42
|
|
|
43
|
-
Skills 列表参见 .
|
|
43
|
+
Skills 列表参见 .agents/ 目录。
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
**方式二**:在 `AGENTS.md` 中引用(多工具共享):
|
|
@@ -49,7 +49,7 @@ Skills 列表参见 .antigravity/ 目录。
|
|
|
49
49
|
# AGENTS.md
|
|
50
50
|
|
|
51
51
|
本项目使用 superpowers-zh skills 框架。
|
|
52
|
-
Skills 位于 .
|
|
52
|
+
Skills 位于 .agents/(Antigravity)或 .claude/skills/(Claude Code)目录下。
|
|
53
53
|
```
|
|
54
54
|
|
|
55
55
|
### 工具映射
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# Superpowers 中文版 · Kimi Code 指南
|
|
2
|
+
|
|
3
|
+
在 [Kimi Code](https://github.com/MoonshotAI/kimi-code) 上使用 superpowers-zh 的完整说明。
|
|
4
|
+
|
|
5
|
+
## 安装
|
|
6
|
+
|
|
7
|
+
superpowers-zh 通过 Kimi Code 的插件清单 `.kimi-plugin/plugin.json` 集成,**直接指向仓库现有的 `skills/` 目录**——不复制 skill、不建 symlink、不装 hook、无任何运行时依赖。
|
|
8
|
+
|
|
9
|
+
打开插件管理器:
|
|
10
|
+
|
|
11
|
+
```text
|
|
12
|
+
/plugins
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
如果 Kimi 插件市场已收录,进入 `Marketplace` > `Superpowers 中文版` 安装即可。
|
|
16
|
+
|
|
17
|
+
也可以直接从本仓库安装:
|
|
18
|
+
|
|
19
|
+
```text
|
|
20
|
+
/plugins install https://github.com/jnMetaCode/superpowers-zh
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
如需验证尚未发布的改动,显式指定分支:
|
|
24
|
+
|
|
25
|
+
```text
|
|
26
|
+
/plugins install https://github.com/jnMetaCode/superpowers-zh/tree/main
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Kimi Code 在**新会话**才会应用插件变更。安装、更新、启用、禁用或重载插件后,用 `/new` 开一个新会话。
|
|
30
|
+
|
|
31
|
+
## 工作原理
|
|
32
|
+
|
|
33
|
+
Kimi 插件清单位于 `.kimi-plugin/plugin.json`,做三件事:
|
|
34
|
+
|
|
35
|
+
1. 把 Kimi Code 指向仓库现有的 `skills/` 目录;
|
|
36
|
+
2. 通过 `sessionStart.skill` 在会话开始时加载 `using-superpowers`(这是让 skill 在恰当时机自动触发的关键);
|
|
37
|
+
3. 通过 `skillInstructions` 提供 Kimi 专属的工具映射。
|
|
38
|
+
|
|
39
|
+
## 工具映射
|
|
40
|
+
|
|
41
|
+
skill 内容描述的是「动作」而非写死某个运行时的工具名。在 Kimi Code 上它们对应到:
|
|
42
|
+
|
|
43
|
+
- 「向用户提问」/「问澄清问题」/「给出多选项」→ `AskUserQuestion`
|
|
44
|
+
- 「创建待办」/「在待办清单中标记完成」→ `TodoList`
|
|
45
|
+
- 「分派子智能体」/「Task tool (general-purpose)」→ `Agent`(用 Kimi 的 subagent 类型,如 `coder`/`explore`/`plan`,**不要**传 `general-purpose`)
|
|
46
|
+
- 「调用某个 skill」→ Kimi Code 原生 `Skill` 工具
|
|
47
|
+
- 「读文件」/「写文件」/「改文件」→ `Read` / `Write` / `Edit`
|
|
48
|
+
- 「跑 shell 命令」→ `Bash`
|
|
49
|
+
- 「搜索文件内容」→ `Grep`
|
|
50
|
+
- 「按路径/模式找文件」→ `Glob`
|
|
51
|
+
- 「抓取 URL」→ `FetchURL`
|
|
52
|
+
- 「联网搜索」→ `WebSearch`
|
|
53
|
+
|
|
54
|
+
完整映射写在清单的 `skillInstructions` 字段里,由 Kimi 在运行时读取。
|
|
55
|
+
|
|
56
|
+
## 更新
|
|
57
|
+
|
|
58
|
+
用 Kimi Code 的插件管理器:
|
|
59
|
+
|
|
60
|
+
```text
|
|
61
|
+
/plugins
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
选中 Superpowers 中文版更新,更新后用 `/new` 开新会话。
|
|
65
|
+
|
|
66
|
+
## 排错
|
|
67
|
+
|
|
68
|
+
### 插件没加载
|
|
69
|
+
|
|
70
|
+
1. 跑 `/plugins info superpowers-zh` 看诊断信息;
|
|
71
|
+
2. 确认插件已启用;
|
|
72
|
+
3. 安装或更新后用 `/new` 开新会话。
|
|
73
|
+
|
|
74
|
+
### 直接 GitHub 安装装到了旧版本
|
|
75
|
+
|
|
76
|
+
对于裸仓库 URL,Kimi Code 会装最新的 GitHub release(若存在)。要在下一个 release 前测试未发布的改动,显式指定分支:
|
|
77
|
+
|
|
78
|
+
```text
|
|
79
|
+
/plugins install https://github.com/jnMetaCode/superpowers-zh/tree/main
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### skill 不触发
|
|
83
|
+
|
|
84
|
+
1. 用 `/plugins info superpowers-zh` 确认插件已启用;
|
|
85
|
+
2. 用 `/new` 开新会话;
|
|
86
|
+
3. 试验收提示词:`我们来做个 react todo list`。集成正常的话,会在写任何代码之前先加载 `brainstorming`。
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Superpowers 中文版 · Pi 指南
|
|
2
|
+
|
|
3
|
+
在 [Pi](https://github.com/earendil-works/pi)(oh-my-pi)上使用 superpowers-zh 的完整说明。
|
|
4
|
+
|
|
5
|
+
## 安装
|
|
6
|
+
|
|
7
|
+
superpowers-zh 通过 Pi 的扩展机制集成,**直接指向仓库现有的 `skills/` 目录**——不复制 skill、不建 symlink、无额外运行时依赖。
|
|
8
|
+
|
|
9
|
+
集成由 `package.json` 里的 `pi` 字段声明:
|
|
10
|
+
|
|
11
|
+
```json
|
|
12
|
+
"pi": {
|
|
13
|
+
"skills": ["./skills"],
|
|
14
|
+
"extensions": ["./.pi/extensions/superpowers.ts"]
|
|
15
|
+
}
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
并带 `pi-package` keyword,便于 Pi 发现这是一个 Pi 包。
|
|
19
|
+
|
|
20
|
+
按 Pi 的包安装方式安装 `superpowers-zh`(参考 Pi 文档的包管理命令),Pi 会读取上述 `pi` 配置,挂载 `skills/` 并加载 `.pi/extensions/superpowers.ts` 扩展。
|
|
21
|
+
|
|
22
|
+
## 工作原理
|
|
23
|
+
|
|
24
|
+
`.pi/extensions/superpowers.ts` 注册了 Pi 的生命周期钩子:
|
|
25
|
+
|
|
26
|
+
1. **`resources_discover`** — 把仓库的 `skills/` 目录贡献给 Pi 的技能系统;
|
|
27
|
+
2. **`session_start` / `session_compact`** — 标记需要重新注入 bootstrap;
|
|
28
|
+
3. **`context`** — 在会话上下文中注入 `using-superpowers` 的内容(去除 frontmatter)+ Pi 工具映射,作为「You have superpowers」bootstrap,让 skill 在恰当时机被遵循;
|
|
29
|
+
4. **`agent_end`** — 一轮结束后停止重复注入。
|
|
30
|
+
|
|
31
|
+
注入带有唯一标记,已存在时不会重复注入;并且会插入到 compaction summary 之后,避免被压缩流程吞掉。
|
|
32
|
+
|
|
33
|
+
## 工具映射
|
|
34
|
+
|
|
35
|
+
Pi 有原生技能系统,但**不暴露** `Skill` 工具。skill 内容描述「动作」,在 Pi 上对应到小写工具:
|
|
36
|
+
|
|
37
|
+
- 「调用某个 skill」→ Pi 原生技能:用 `read` 加载对应 `SKILL.md`,或由人类显式 `/skill:name`
|
|
38
|
+
- 「读/写/改文件」→ `read` / `write` / `edit`
|
|
39
|
+
- 「跑 shell 命令」→ `bash`
|
|
40
|
+
- 「搜索文件内容」→ `grep`,「按名找文件」→ `find`,「列目录」→ `ls`
|
|
41
|
+
- 「分派子智能体」→ 若装了 `pi-subagents` 的 `subagent` 工具则用之;没有则在本会话内完成或说明能力缺失,**不要**臆造 `Task` 调用
|
|
42
|
+
- 「待办清单」→ 若装了 todo/task 工具则用之;否则用 plan 文件或仓库内 `TODO.md` 跟踪;旧的 `TodoWrite` 引用按此处理
|
|
43
|
+
|
|
44
|
+
完整映射见 [`skills/using-superpowers/references/pi-tools.md`](../skills/using-superpowers/references/pi-tools.md),扩展也会把同样的映射注入会话。
|
|
45
|
+
|
|
46
|
+
## 验证
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
bash tests/pi/run-tests.sh
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
该测试动态加载扩展并校验:声明了 `pi` 包配置、注册了正确的生命周期钩子(且无 pre-compaction 注入)、`resources_discover` 贡献了 `skills/` 目录、`session_start` 注入了「You have superpowers」+「Pi tool mapping」、pi-tools 参考文档存在。
|
|
53
|
+
|
|
54
|
+
> 注:扩展是 TypeScript(仅 `import type`,运行时无类型依赖)。Node 22.6–23.5 需 `--experimental-strip-types`(run-tests.sh 已带),23.6+ 默认支持。
|
package/docs/README.trae.md
CHANGED
|
@@ -9,16 +9,18 @@ cd /your/project
|
|
|
9
9
|
npx superpowers-zh
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
-
安装脚本会自动检测 `.trae/`
|
|
12
|
+
安装脚本会自动检测 `.trae/` 目录,将各 skill 完整复制到 `.trae/skills/`(含 `SKILL.md` 及其 `scripts/` 等附属文件),并在 `.trae/rules/superpowers-zh.md` 生成一份 bootstrap 规则用于自动触发。
|
|
13
13
|
|
|
14
14
|
## 手动安装
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
17
|
git clone https://github.com/jnMetaCode/superpowers-zh.git
|
|
18
|
-
mkdir -p /your/project/.trae/
|
|
19
|
-
cp -r superpowers-zh/skills/* /your/project/.trae/
|
|
18
|
+
mkdir -p /your/project/.trae/skills
|
|
19
|
+
cp -r superpowers-zh/skills/* /your/project/.trae/skills/
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
+
> 手动复制只会放好 skill 文件,不会生成 `.trae/rules/` 下的 bootstrap 自动触发规则。建议优先用上面的 `npx superpowers-zh`,否则需要在对话里手动点名 skill 才会激活。
|
|
23
|
+
|
|
22
24
|
## 工作原理
|
|
23
25
|
|
|
24
26
|
Trae 使用 `.rules` 机制管理 AI 行为:
|
|
@@ -32,7 +34,7 @@ Trae 使用 `.rules` 机制管理 AI 行为:
|
|
|
32
34
|
|
|
33
35
|
### Skills 适配
|
|
34
36
|
|
|
35
|
-
superpowers-zh
|
|
37
|
+
安装器把各 skill 放在 `.trae/skills/<skill-name>/`,并在 `.trae/rules/superpowers-zh.md` 写入一份 bootstrap 规则。Trae 初始化时加载 `.trae/rules/` 下的规则,bootstrap 规则会引导 AI 在任务匹配时读取对应的 `.trae/skills/<skill-name>/SKILL.md` 并遵循其流程。
|
|
36
38
|
|
|
37
39
|
### 推荐配置
|
|
38
40
|
|