superpowers-zh 1.1.8 → 1.1.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/README.md +55 -23
- package/bin/superpowers-zh.js +52 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
🌐 **简体中文** | [English (upstream)](https://github.com/obra/superpowers)
|
|
4
4
|
|
|
5
|
-
> 🦸 **superpowers(
|
|
5
|
+
> 🦸 **superpowers(159k+ ⭐)完整汉化 + 6 个中国原创 skills** — 让 Claude Code / Copilot CLI / Hermes Agent / Cursor / Windsurf / Kiro / Gemini CLI 等 **17 款 AI 编程工具**真正会干活。从头脑风暴到代码审查,从 TDD 到调试,每个 skill 都是经过实战验证的工作方法论。
|
|
6
6
|
|
|
7
7
|
Chinese community edition of [superpowers](https://github.com/obra/superpowers) — 20 skills across 16 AI coding tools, including full translations and China-specific development skills.
|
|
8
8
|
|
|
@@ -49,10 +49,33 @@ AI:在开始实现之前,我需要了解几个关键问题:
|
|
|
49
49
|
|
|
50
50
|
## 这是什么?
|
|
51
51
|
|
|
52
|
-
[superpowers](https://github.com/obra/superpowers) 是目前最火的 AI 编程 skills 框架(
|
|
52
|
+
[superpowers](https://github.com/obra/superpowers) 是目前最火的 AI 编程 skills 框架(159k+ stars),为 AI 编程工具提供**系统化的工作方法论**。
|
|
53
53
|
|
|
54
54
|
**superpowers-zh** 在完整翻译的基础上,新增了面向中国开发者的特色 skills。
|
|
55
55
|
|
|
56
|
+
### 🆚 与英文上游的区别(老被问,一次说清)
|
|
57
|
+
|
|
58
|
+
| 维度 | superpowers(英文上游) | superpowers-zh(中文增强版) |
|
|
59
|
+
|------|----------------------|---------------------------|
|
|
60
|
+
| ⭐ Star 数 | 159k+ | — |
|
|
61
|
+
| 📦 Skills 总数 | 14 | **20**(14 翻译 + 6 国产原创) |
|
|
62
|
+
| 🌐 语言 | 英文 | 中文(技术术语保留英文) |
|
|
63
|
+
| 🤖 **支持工具** | **6 款**:Claude Code / Cursor / Codex / OpenCode / Copilot CLI / Gemini CLI | **17 款**:上述 6 款 + Hermes Agent / Trae / Kiro / Qwen Code(通义灵码)/ OpenClaw / Claw Code / Antigravity / DeerFlow / VS Code / Windsurf / Aider |
|
|
64
|
+
| ⚡ **安装方式** | 按工具分别装(每款一条不同的 plugin marketplace 命令) | **`npx superpowers-zh` 一条命令自动识别项目里的工具并安装**;识别不出可 `--tool <name>` 显式指定 |
|
|
65
|
+
| 🇨🇳 Git 平台 | GitHub 为主 | GitHub + Gitee + Coding + 极狐 GitLab + **CNB(腾讯云原生构建)** |
|
|
66
|
+
| 🇨🇳 CI/CD 示例 | GitHub Actions | GitHub Actions + Gitee Go + Coding CI + 极狐 CI + `.cnb.yml` |
|
|
67
|
+
| 🇨🇳 代码审查风格 | 西方直接风格 | 适配国内团队沟通文化 |
|
|
68
|
+
| 🇨🇳 Git 提交规范 | 无 | Conventional Commits 中文适配 |
|
|
69
|
+
| 🇨🇳 中文文档规范 | 无 | 中文排版 + 中英混排规则 + 告别机翻味 |
|
|
70
|
+
| ➕ MCP 服务器构建 | 无 | 独立 `mcp-builder` skill |
|
|
71
|
+
| ➕ 工作流执行器 | 无 | 独立 `workflow-runner` skill(多角色 YAML 编排) |
|
|
72
|
+
| 🔄 版本跟进 | 独立迭代 | **同步上游 + 国产增量叠加** |
|
|
73
|
+
| 🤝 接受新 skill PR | 一般不接受(原文:*"we don't generally accept contributions of new skills"*) | 欢迎 PR(中国开发者痛点优先) |
|
|
74
|
+
| 💬 社区 | Discord | 微信公众号「AI不止语」+ 微信群 + QQ 群 |
|
|
75
|
+
| 📜 License | MIT | MIT |
|
|
76
|
+
|
|
77
|
+
**一句话总结:** 英文上游 = 方法论内核;中文增强版 = 方法论内核 **+** 17 款工具一键适配 **+** 国内 Git/CI 生态 **+** 中文化表达习惯。
|
|
78
|
+
|
|
56
79
|
### 🤖 支持 17 款主流 AI 编程工具
|
|
57
80
|
|
|
58
81
|
| 工具 | 类型 | 一键安装 | 手动安装 |
|
|
@@ -171,21 +194,6 @@ cp -r superpowers-zh/skills /your/project/.claw/skills # Claw Code(Rust
|
|
|
171
194
|
|
|
172
195
|
---
|
|
173
196
|
|
|
174
|
-
## 对比上游
|
|
175
|
-
|
|
176
|
-
| 特性 | superpowers (英文) | superpowers-zh (中文) |
|
|
177
|
-
|------|-------------------|----------------------|
|
|
178
|
-
| Skills 数量 | 14 | **20**(14 翻译 + 6 原创) |
|
|
179
|
-
| 语言 | 英文 | 中文(技术术语保留英文) |
|
|
180
|
-
| 代码审查规范 | 西方直接风格 | 适配国内团队沟通文化 |
|
|
181
|
-
| Git 平台 | GitHub 为主 | GitHub + Gitee + Coding + 极狐 |
|
|
182
|
-
| Git 提交规范 | 无 | Conventional Commits 中文适配 |
|
|
183
|
-
| 文档规范 | 英文 | 中文排版规范 + 中英混排 |
|
|
184
|
-
| MCP 构建 | 无 | MCP 服务器构建方法论 |
|
|
185
|
-
| 社区 | Discord | 微信公众号 + 微信群 |
|
|
186
|
-
|
|
187
|
-
---
|
|
188
|
-
|
|
189
197
|
## 贡献
|
|
190
198
|
|
|
191
199
|
欢迎参与!翻译改进、新增 skills、Bug 修复都可以。
|
|
@@ -208,20 +216,44 @@ cp -r superpowers-zh/skills /your/project/.claw/skills # Claw Code(Rust
|
|
|
208
216
|
|
|
209
217
|
| 渠道 | 加入方式 |
|
|
210
218
|
|------|---------|
|
|
211
|
-
| QQ 群 | [点击加入](https://qm.qq.com/q/EeNQA9xCxy)(群号 1071280067) |
|
|
219
|
+
| QQ 2群 | [点击加入](https://qm.qq.com/q/EeNQA9xCxy)(群号 1071280067) |
|
|
212
220
|
| 微信群 | 关注公众号后回复「群」获取入群方式 |
|
|
213
221
|
|
|
214
222
|
---
|
|
215
223
|
|
|
224
|
+
## 🌟 相关项目生态
|
|
225
|
+
|
|
226
|
+
**五个项目组合使用,覆盖 AI 编程从"方法论 → 角色 → 协作 → 教程 → 安全"的完整链路。**
|
|
227
|
+
|
|
228
|
+
| 项目 | 定位 | 一句话 |
|
|
229
|
+
|------|------|-------|
|
|
230
|
+
| **[superpowers-zh](https://github.com/jnMetaCode/superpowers-zh)**(本项目)  | 🧠 工作方法论 | 20 个 skills 教 AI 怎么干活(TDD / 调试 / 代码审查等) |
|
|
231
|
+
| **[agency-agents-zh](https://github.com/jnMetaCode/agency-agents-zh)**  | 🎭 专家角色库 | 211 个**即插即用** AI 专家,含 46 中国原创(小红书 / 抖音 / 飞书 / 钉钉) |
|
|
232
|
+
| **[agency-orchestrator](https://github.com/jnMetaCode/agency-orchestrator)** | 🚀 编排引擎 | 一句话 → 211 专家协作,**几分钟出方案**(9 家 LLM / 6 免费) |
|
|
233
|
+
| **[ai-coding-guide](https://github.com/jnMetaCode/ai-coding-guide)** | 📖 实战教程 | 66 个 Claude Code 技巧 + 9 款工具最佳实践 + 配置模板 |
|
|
234
|
+
| **[shellward](https://github.com/jnMetaCode/shellward)** | 🛡️ 安全中间件 | 8 层防御 + DLP 数据流 + 注入检测,**零依赖**(含 MCP Server) |
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
238
|
+
### 🔥 重点推荐:[agency-orchestrator](https://github.com/jnMetaCode/agency-orchestrator) — 一句话调度 211 个 AI 专家协作,几分钟交付完整方案
|
|
239
|
+
|
|
240
|
+
以前写个方案:你当指挥官,把 AI 轮流扮演 5 个角色,复制粘贴 10 次,1 小时没了。
|
|
241
|
+
|
|
242
|
+
**现在:** 丢一句话进去 `"做一个电商退款流程"`,**产品 → 架构 → 安全 → 测试 → DBA 自动接力**,几分钟完整方案落地。
|
|
243
|
+
|
|
244
|
+
- 🎭 **211+ 专家角色**(含 46 个中国市场原创:小红书 / 抖音 / 微信 / 飞书 / 钉钉)
|
|
245
|
+
- 🧩 **零代码 YAML**,一行 prompt 就能跑
|
|
246
|
+
- 💰 **9 家 LLM 可选**(DeepSeek / Claude / OpenAI / Ollama 等,**6 家免费**)
|
|
247
|
+
- 🔗 **与 superpowers-zh 互补**:本项目管"**怎么做**"(方法论),orchestrator 管"**谁来做**"(角色协作)
|
|
248
|
+
|
|
249
|
+
👉 **[立即体验 agency-orchestrator →](https://github.com/jnMetaCode/agency-orchestrator)**
|
|
250
|
+
|
|
251
|
+
---
|
|
252
|
+
|
|
216
253
|
## 致谢
|
|
217
254
|
|
|
218
255
|
- 原始英文版:[obra/superpowers](https://github.com/obra/superpowers)(MIT 协议)
|
|
219
256
|
- 感谢 [@obra](https://github.com/obra) 创建了这个优秀的项目
|
|
220
|
-
- 姊妹项目:
|
|
221
|
-
- [ai-coding-guide](https://github.com/jnMetaCode/ai-coding-guide) — AI 编程工具实战指南 — 66 个 Claude Code 技巧 + 9 款工具最佳实践 + 可复制配置模板
|
|
222
|
-
- [agency-agents-zh](https://github.com/jnMetaCode/agency-agents-zh) — 187 个专业角色,让 AI 变成安全工程师、DBA、产品经理等
|
|
223
|
-
- [agency-orchestrator](https://github.com/jnMetaCode/agency-orchestrator) — 多智能体编排引擎 — 用 YAML 编排 187 个角色协作,支持 DeepSeek/Claude/OpenAI/Ollama,零代码
|
|
224
|
-
- [shellward](https://github.com/jnMetaCode/shellward) — AI 智能体安全中间件 — 注入检测、数据防泄露、命令安全、零依赖、MCP Server
|
|
225
257
|
|
|
226
258
|
---
|
|
227
259
|
|
package/bin/superpowers-zh.js
CHANGED
|
@@ -299,6 +299,49 @@ ${skillList}
|
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
+
function generateClaudeCodeBootstrap(projectDir) {
|
|
303
|
+
const skillEntries = scanSkillEntries(SKILLS_SRC);
|
|
304
|
+
const skillList = skillEntries.map(s => `- **${s.name}**: ${s.desc}`).join('\n');
|
|
305
|
+
|
|
306
|
+
const content = `# Superpowers-ZH 中文增强版
|
|
307
|
+
|
|
308
|
+
本项目已安装 superpowers-zh 技能框架(${skillEntries.length} 个 skills)。
|
|
309
|
+
|
|
310
|
+
## 核心规则
|
|
311
|
+
|
|
312
|
+
1. **收到任务时,先检查是否有匹配的 skill** — 哪怕只有 1% 的可能性也要检查
|
|
313
|
+
2. **设计先于编码** — 收到功能需求时,先用 brainstorming skill 做需求分析
|
|
314
|
+
3. **测试先于实现** — 写代码前先写测试(TDD)
|
|
315
|
+
4. **验证先于完成** — 声称完成前必须运行验证命令
|
|
316
|
+
|
|
317
|
+
## 可用 Skills
|
|
318
|
+
|
|
319
|
+
Skills 位于 \`.claude/skills/\` 目录,每个 skill 有独立的 \`SKILL.md\` 文件。
|
|
320
|
+
|
|
321
|
+
${skillList}
|
|
322
|
+
|
|
323
|
+
## 如何使用
|
|
324
|
+
|
|
325
|
+
当任务匹配某个 skill 时,使用 \`Skill\` 工具加载对应 skill 并严格遵循其流程。绝不要用 Read 工具读取 SKILL.md 文件。
|
|
326
|
+
|
|
327
|
+
如果你认为哪怕只有 1% 的可能性某个 skill 适用于你正在做的事情,你必须调用该 skill 检查。
|
|
328
|
+
`;
|
|
329
|
+
|
|
330
|
+
const mdPath = resolve(projectDir, 'CLAUDE.md');
|
|
331
|
+
if (existsSync(mdPath)) {
|
|
332
|
+
const existing = readFileSync(mdPath, 'utf8');
|
|
333
|
+
if (!existing.includes('superpowers-zh')) {
|
|
334
|
+
writeFileSync(mdPath, existing + '\n\n' + content, 'utf8');
|
|
335
|
+
console.log(` ✅ Claude Code: 追加 skills 引用 -> ${mdPath}`);
|
|
336
|
+
} else {
|
|
337
|
+
console.log(` ✅ Claude Code: CLAUDE.md 已包含 superpowers-zh 引用`);
|
|
338
|
+
}
|
|
339
|
+
} else {
|
|
340
|
+
writeFileSync(mdPath, content, 'utf8');
|
|
341
|
+
console.log(` ✅ Claude Code: bootstrap -> ${mdPath}`);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
302
345
|
// 工具名称别名映射(用户输入 -> TARGETS.name)
|
|
303
346
|
const TOOL_ALIASES = {
|
|
304
347
|
'claude': 'Claude Code',
|
|
@@ -390,10 +433,13 @@ function installForTarget(target) {
|
|
|
390
433
|
generateHermesBootstrap(PROJECT_DIR);
|
|
391
434
|
}
|
|
392
435
|
|
|
393
|
-
if (target.name === 'Claude Code'
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
436
|
+
if (target.name === 'Claude Code') {
|
|
437
|
+
generateClaudeCodeBootstrap(PROJECT_DIR);
|
|
438
|
+
if (existsSync(AGENTS_SRC)) {
|
|
439
|
+
const agentsDest = resolve(PROJECT_DIR, '.claude', 'agents');
|
|
440
|
+
mkdirSync(agentsDest, { recursive: true });
|
|
441
|
+
copyDirSync(AGENTS_SRC, agentsDest);
|
|
442
|
+
}
|
|
397
443
|
}
|
|
398
444
|
}
|
|
399
445
|
|
|
@@ -445,6 +491,8 @@ function install(forceToolName) {
|
|
|
445
491
|
copyDirSync(SKILLS_SRC, dest);
|
|
446
492
|
console.log(` ✅ 默认安装: ${countDirs(dest)} 个 skills -> ${dest}`);
|
|
447
493
|
|
|
494
|
+
generateClaudeCodeBootstrap(PROJECT_DIR);
|
|
495
|
+
|
|
448
496
|
if (existsSync(AGENTS_SRC)) {
|
|
449
497
|
const agentsDest = resolve(PROJECT_DIR, '.claude', 'agents');
|
|
450
498
|
mkdirSync(agentsDest, { recursive: true });
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "superpowers-zh",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"engines": {
|
|
5
|
-
"node": ">=
|
|
5
|
+
"node": ">=20.0.0"
|
|
6
6
|
},
|
|
7
7
|
"description": "AI 编程超能力中文增强版 — superpowers(99k+ ⭐)完整汉化 + 6 个中国原创 skills,支持 Claude Code / Copilot CLI / Hermes Agent / Cursor / Claw Code / Windsurf / Kiro / Gemini CLI 等 17 款工具",
|
|
8
8
|
"type": "module",
|