superpowers-zh 1.0.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.
Files changed (70) hide show
  1. package/.claude-plugin/marketplace.json +20 -0
  2. package/.claude-plugin/plugin.json +13 -0
  3. package/.codex/INSTALL.md +67 -0
  4. package/.cursor-plugin/plugin.json +18 -0
  5. package/.opencode/INSTALL.md +83 -0
  6. package/.opencode/plugins/superpowers.js +107 -0
  7. package/GEMINI.md +2 -0
  8. package/LICENSE +21 -0
  9. package/README.md +153 -0
  10. package/agents/code-reviewer.md +48 -0
  11. package/bin/superpowers-zh.js +66 -0
  12. package/commands/brainstorm.md +5 -0
  13. package/commands/execute-plan.md +5 -0
  14. package/commands/write-plan.md +5 -0
  15. package/gemini-extension.json +6 -0
  16. package/hooks/hooks-cursor.json +10 -0
  17. package/hooks/hooks.json +16 -0
  18. package/hooks/run-hook.cmd +46 -0
  19. package/hooks/session-start +57 -0
  20. package/package.json +46 -0
  21. package/skills/brainstorming/SKILL.md +164 -0
  22. package/skills/brainstorming/scripts/frame-template.html +214 -0
  23. package/skills/brainstorming/scripts/helper.js +88 -0
  24. package/skills/brainstorming/scripts/server.cjs +338 -0
  25. package/skills/brainstorming/scripts/start-server.sh +153 -0
  26. package/skills/brainstorming/scripts/stop-server.sh +55 -0
  27. package/skills/brainstorming/spec-document-reviewer-prompt.md +48 -0
  28. package/skills/brainstorming/visual-companion.md +286 -0
  29. package/skills/chinese-code-review/SKILL.md +277 -0
  30. package/skills/chinese-commit-conventions/SKILL.md +364 -0
  31. package/skills/chinese-documentation/SKILL.md +448 -0
  32. package/skills/chinese-git-workflow/SKILL.md +510 -0
  33. package/skills/dispatching-parallel-agents/SKILL.md +182 -0
  34. package/skills/executing-plans/SKILL.md +175 -0
  35. package/skills/finishing-a-development-branch/SKILL.md +200 -0
  36. package/skills/mcp-builder/SKILL.md +255 -0
  37. package/skills/receiving-code-review/SKILL.md +213 -0
  38. package/skills/requesting-code-review/SKILL.md +105 -0
  39. package/skills/requesting-code-review/code-reviewer.md +146 -0
  40. package/skills/subagent-driven-development/SKILL.md +277 -0
  41. package/skills/subagent-driven-development/code-quality-reviewer-prompt.md +26 -0
  42. package/skills/subagent-driven-development/implementer-prompt.md +113 -0
  43. package/skills/subagent-driven-development/spec-reviewer-prompt.md +61 -0
  44. package/skills/systematic-debugging/CREATION-LOG.md +119 -0
  45. package/skills/systematic-debugging/SKILL.md +296 -0
  46. package/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
  47. package/skills/systematic-debugging/condition-based-waiting.md +115 -0
  48. package/skills/systematic-debugging/defense-in-depth.md +122 -0
  49. package/skills/systematic-debugging/find-polluter.sh +63 -0
  50. package/skills/systematic-debugging/root-cause-tracing.md +169 -0
  51. package/skills/systematic-debugging/test-academic.md +14 -0
  52. package/skills/systematic-debugging/test-pressure-1.md +58 -0
  53. package/skills/systematic-debugging/test-pressure-2.md +68 -0
  54. package/skills/systematic-debugging/test-pressure-3.md +69 -0
  55. package/skills/test-driven-development/SKILL.md +371 -0
  56. package/skills/test-driven-development/testing-anti-patterns.md +299 -0
  57. package/skills/using-git-worktrees/SKILL.md +218 -0
  58. package/skills/using-superpowers/SKILL.md +134 -0
  59. package/skills/using-superpowers/references/codex-tools.md +25 -0
  60. package/skills/using-superpowers/references/gemini-tools.md +33 -0
  61. package/skills/verification-before-completion/SKILL.md +139 -0
  62. package/skills/writing-plans/SKILL.md +145 -0
  63. package/skills/writing-plans/plan-document-reviewer-prompt.md +49 -0
  64. package/skills/writing-skills/SKILL.md +654 -0
  65. package/skills/writing-skills/anthropic-best-practices.md +1149 -0
  66. package/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
  67. package/skills/writing-skills/graphviz-conventions.dot +172 -0
  68. package/skills/writing-skills/persuasion-principles.md +187 -0
  69. package/skills/writing-skills/render-graphs.js +168 -0
  70. package/skills/writing-skills/testing-skills-with-subagents.md +384 -0
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "superpowers-zh",
3
+ "description": "AI 编程超能力中文版:19 个 skills 库",
4
+ "owner": {
5
+ "name": "jnMetaCode",
6
+ "url": "https://github.com/jnMetaCode"
7
+ },
8
+ "plugins": [
9
+ {
10
+ "name": "superpowers-zh",
11
+ "description": "AI 编程超能力中文版:19 个 skills(14 翻译 + 5 中国特色原创)",
12
+ "version": "1.0.0",
13
+ "source": "./",
14
+ "author": {
15
+ "name": "jnMetaCode",
16
+ "url": "https://github.com/jnMetaCode"
17
+ }
18
+ }
19
+ ]
20
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "superpowers-zh",
3
+ "description": "AI 编程超能力中文版:19 个 skills(14 翻译 + 5 中国特色原创)",
4
+ "version": "1.0.0",
5
+ "author": {
6
+ "name": "jnMetaCode",
7
+ "url": "https://github.com/jnMetaCode"
8
+ },
9
+ "homepage": "https://github.com/jnMetaCode/superpowers-zh",
10
+ "repository": "https://github.com/jnMetaCode/superpowers-zh",
11
+ "license": "MIT",
12
+ "keywords": ["skills", "tdd", "debugging", "chinese", "中文", "best-practices", "workflows"]
13
+ }
@@ -0,0 +1,67 @@
1
+ # 为 Codex 安装 Superpowers 中文版
2
+
3
+ 通过原生 skill 发现机制在 Codex 中启用 superpowers skills。只需克隆并创建符号链接。
4
+
5
+ ## 前置条件
6
+
7
+ - Git
8
+
9
+ ## 安装步骤
10
+
11
+ 1. **克隆 superpowers-zh 仓库:**
12
+ ```bash
13
+ git clone https://github.com/jnMetaCode/superpowers-zh.git ~/.codex/superpowers
14
+ ```
15
+
16
+ 2. **创建 skills 符号链接:**
17
+ ```bash
18
+ mkdir -p ~/.agents/skills
19
+ ln -s ~/.codex/superpowers/skills ~/.agents/skills/superpowers
20
+ ```
21
+
22
+ **Windows (PowerShell):**
23
+ ```powershell
24
+ New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\.agents\skills"
25
+ cmd /c mklink /J "$env:USERPROFILE\.agents\skills\superpowers" "$env:USERPROFILE\.codex\superpowers\skills"
26
+ ```
27
+
28
+ 3. **重启 Codex**(退出并重新启动 CLI)以发现 skills。
29
+
30
+ ## 从旧版引导方式迁移
31
+
32
+ 如果你在原生 skill 发现机制之前安装过 superpowers,需要:
33
+
34
+ 1. **更新仓库:**
35
+ ```bash
36
+ cd ~/.codex/superpowers && git pull
37
+ ```
38
+
39
+ 2. **创建 skills 符号链接**(上面的步骤 2)——这是新的发现机制。
40
+
41
+ 3. **移除旧的引导代码块**——删除 `~/.codex/AGENTS.md` 中引用 `superpowers-codex bootstrap` 的代码块,已不再需要。
42
+
43
+ 4. **重启 Codex。**
44
+
45
+ ## 验证
46
+
47
+ ```bash
48
+ ls -la ~/.agents/skills/superpowers
49
+ ```
50
+
51
+ 你应该看到一个符号链接(Windows 上为目录连接),指向你的 superpowers skills 目录。
52
+
53
+ ## 更新
54
+
55
+ ```bash
56
+ cd ~/.codex/superpowers && git pull
57
+ ```
58
+
59
+ Skills 通过符号链接即时更新。
60
+
61
+ ## 卸载
62
+
63
+ ```bash
64
+ rm ~/.agents/skills/superpowers
65
+ ```
66
+
67
+ 可选:删除克隆的仓库:`rm -rf ~/.codex/superpowers`。
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "superpowers-zh",
3
+ "displayName": "Superpowers 中文版",
4
+ "description": "AI 编程超能力中文版:19 个 skills(14 翻译 + 5 中国特色原创)",
5
+ "version": "1.0.0",
6
+ "author": {
7
+ "name": "jnMetaCode",
8
+ "url": "https://github.com/jnMetaCode"
9
+ },
10
+ "homepage": "https://github.com/jnMetaCode/superpowers-zh",
11
+ "repository": "https://github.com/jnMetaCode/superpowers-zh",
12
+ "license": "MIT",
13
+ "keywords": ["skills", "tdd", "debugging", "chinese", "中文", "best-practices", "workflows"],
14
+ "skills": "./skills/",
15
+ "agents": "./agents/",
16
+ "commands": "./commands/",
17
+ "hooks": "./hooks/hooks-cursor.json"
18
+ }
@@ -0,0 +1,83 @@
1
+ # 为 OpenCode 安装 Superpowers 中文版
2
+
3
+ ## 前置条件
4
+
5
+ - 已安装 [OpenCode.ai](https://opencode.ai)
6
+
7
+ ## 安装步骤
8
+
9
+ 在你的 `opencode.json`(全局或项目级别)中将 superpowers-zh 添加到 `plugin` 数组:
10
+
11
+ ```json
12
+ {
13
+ "plugin": ["superpowers@git+https://github.com/jnMetaCode/superpowers-zh.git"]
14
+ }
15
+ ```
16
+
17
+ 重启 OpenCode。完成——插件会自动安装并注册所有 skills。
18
+
19
+ 通过询问来验证:"告诉我你的超能力"
20
+
21
+ ## 从旧版符号链接安装方式迁移
22
+
23
+ 如果你之前使用 `git clone` 和符号链接安装过 superpowers,请移除旧的配置:
24
+
25
+ ```bash
26
+ # 移除旧的符号链接
27
+ rm -f ~/.config/opencode/plugins/superpowers.js
28
+ rm -rf ~/.config/opencode/skills/superpowers
29
+
30
+ # 可选:移除克隆的仓库
31
+ rm -rf ~/.config/opencode/superpowers
32
+
33
+ # 如果你在 opencode.json 中为 superpowers 添加过 skills.paths,请将其移除
34
+ ```
35
+
36
+ 然后按照上面的安装步骤操作。
37
+
38
+ ## 使用方法
39
+
40
+ 使用 OpenCode 的原生 `skill` 工具:
41
+
42
+ ```
43
+ use skill tool to list skills
44
+ use skill tool to load superpowers/brainstorming
45
+ ```
46
+
47
+ ## 更新
48
+
49
+ Superpowers 会在你重启 OpenCode 时自动更新。
50
+
51
+ 要固定到特定版本:
52
+
53
+ ```json
54
+ {
55
+ "plugin": ["superpowers@git+https://github.com/jnMetaCode/superpowers-zh.git#v1.0.0"]
56
+ }
57
+ ```
58
+
59
+ ## 故障排除
60
+
61
+ ### 插件未加载
62
+
63
+ 1. 检查日志:`opencode run --print-logs "hello" 2>&1 | grep -i superpowers`
64
+ 2. 验证 `opencode.json` 中的插件配置
65
+ 3. 确保你运行的是最新版本的 OpenCode
66
+
67
+ ### Skills 未找到
68
+
69
+ 1. 使用 `skill` 工具列出已发现的内容
70
+ 2. 检查插件是否已加载(见上文)
71
+
72
+ ### 工具映射
73
+
74
+ 当 skills 引用 Claude Code 工具时:
75
+ - `TodoWrite` → `todowrite`
76
+ - `Task` 子代理 → `@mention` 语法
77
+ - `Skill` 工具 → OpenCode 的原生 `skill` 工具
78
+ - 文件操作 → 你的原生工具
79
+
80
+ ## 获取帮助
81
+
82
+ - 报告问题:https://github.com/jnMetaCode/superpowers-zh/issues
83
+ - 完整文档:https://github.com/jnMetaCode/superpowers-zh
@@ -0,0 +1,107 @@
1
+ /**
2
+ * Superpowers plugin for OpenCode.ai
3
+ *
4
+ * Injects superpowers bootstrap context via system prompt transform.
5
+ * Auto-registers skills directory via config hook (no symlinks needed).
6
+ */
7
+
8
+ import path from 'path';
9
+ import fs from 'fs';
10
+ import os from 'os';
11
+ import { fileURLToPath } from 'url';
12
+
13
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
14
+
15
+ // Simple frontmatter extraction (avoid dependency on skills-core for bootstrap)
16
+ const extractAndStripFrontmatter = (content) => {
17
+ const match = content.match(/^---\n([\s\S]*?)\n---\n([\s\S]*)$/);
18
+ if (!match) return { frontmatter: {}, content };
19
+
20
+ const frontmatterStr = match[1];
21
+ const body = match[2];
22
+ const frontmatter = {};
23
+
24
+ for (const line of frontmatterStr.split('\n')) {
25
+ const colonIdx = line.indexOf(':');
26
+ if (colonIdx > 0) {
27
+ const key = line.slice(0, colonIdx).trim();
28
+ const value = line.slice(colonIdx + 1).trim().replace(/^["']|["']$/g, '');
29
+ frontmatter[key] = value;
30
+ }
31
+ }
32
+
33
+ return { frontmatter, content: body };
34
+ };
35
+
36
+ // Normalize a path: trim whitespace, expand ~, resolve to absolute
37
+ const normalizePath = (p, homeDir) => {
38
+ if (!p || typeof p !== 'string') return null;
39
+ let normalized = p.trim();
40
+ if (!normalized) return null;
41
+ if (normalized.startsWith('~/')) {
42
+ normalized = path.join(homeDir, normalized.slice(2));
43
+ } else if (normalized === '~') {
44
+ normalized = homeDir;
45
+ }
46
+ return path.resolve(normalized);
47
+ };
48
+
49
+ export const SuperpowersPlugin = async ({ client, directory }) => {
50
+ const homeDir = os.homedir();
51
+ const superpowersSkillsDir = path.resolve(__dirname, '../../skills');
52
+ const envConfigDir = normalizePath(process.env.OPENCODE_CONFIG_DIR, homeDir);
53
+ const configDir = envConfigDir || path.join(homeDir, '.config/opencode');
54
+
55
+ // Helper to generate bootstrap content
56
+ const getBootstrapContent = () => {
57
+ // Try to load using-superpowers skill
58
+ const skillPath = path.join(superpowersSkillsDir, 'using-superpowers', 'SKILL.md');
59
+ if (!fs.existsSync(skillPath)) return null;
60
+
61
+ const fullContent = fs.readFileSync(skillPath, 'utf8');
62
+ const { content } = extractAndStripFrontmatter(fullContent);
63
+
64
+ const toolMapping = `**Tool Mapping for OpenCode:**
65
+ When skills reference tools you don't have, substitute OpenCode equivalents:
66
+ - \`TodoWrite\` → \`todowrite\`
67
+ - \`Task\` tool with subagents → Use OpenCode's subagent system (@mention)
68
+ - \`Skill\` tool → OpenCode's native \`skill\` tool
69
+ - \`Read\`, \`Write\`, \`Edit\`, \`Bash\` → Your native tools
70
+
71
+ **Skills location:**
72
+ Superpowers skills are in \`${configDir}/skills/superpowers/\`
73
+ Use OpenCode's native \`skill\` tool to list and load skills.`;
74
+
75
+ return `<EXTREMELY_IMPORTANT>
76
+ You have superpowers.
77
+
78
+ **IMPORTANT: The using-superpowers skill content is included below. It is ALREADY LOADED - you are currently following it. Do NOT use the skill tool to load "using-superpowers" again - that would be redundant.**
79
+
80
+ ${content}
81
+
82
+ ${toolMapping}
83
+ </EXTREMELY_IMPORTANT>`;
84
+ };
85
+
86
+ return {
87
+ // Inject skills path into live config so OpenCode discovers superpowers skills
88
+ // without requiring manual symlinks or config file edits.
89
+ // This works because Config.get() returns a cached singleton — modifications
90
+ // here are visible when skills are lazily discovered later.
91
+ config: async (config) => {
92
+ config.skills = config.skills || {};
93
+ config.skills.paths = config.skills.paths || [];
94
+ if (!config.skills.paths.includes(superpowersSkillsDir)) {
95
+ config.skills.paths.push(superpowersSkillsDir);
96
+ }
97
+ },
98
+
99
+ // Use system prompt transform to inject bootstrap (fixes #226 agent reset bug)
100
+ 'experimental.chat.system.transform': async (_input, output) => {
101
+ const bootstrap = getBootstrapContent();
102
+ if (bootstrap) {
103
+ (output.system ||= []).push(bootstrap);
104
+ }
105
+ }
106
+ };
107
+ };
package/GEMINI.md ADDED
@@ -0,0 +1,2 @@
1
+ @./skills/using-superpowers/SKILL.md
2
+ @./skills/using-superpowers/references/gemini-tools.md
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 jnMetaCode
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,153 @@
1
+ # superpowers-zh(AI 编程超能力 · 中文版)
2
+
3
+ 🌐 **简体中文** | [English (upstream)](https://github.com/obra/superpowers)
4
+
5
+ > **让你的 AI 编程助手真正会干活** — 从头脑风暴到代码审查,从 TDD 到调试,每个 skill 都是经过实战验证的工作方法论。
6
+
7
+ Chinese community edition of [superpowers](https://github.com/obra/superpowers), including full translations and China-specific development skills.
8
+
9
+ [![GitHub stars](https://img.shields.io/github/stars/jnMetaCode/superpowers-zh?style=social)](https://github.com/jnMetaCode/superpowers-zh)
10
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
11
+ [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://makeapullrequest.com)
12
+ [![QQ群](https://img.shields.io/badge/QQ群-833585047-blue?logo=tencentqq)](https://qm.qq.com/q/x8kyqzlfDc)
13
+
14
+ ### 📊 项目规模
15
+
16
+ | 📦 翻译 Skills | 🇨🇳 中国特色 Skills | 🤖 支持工具 |
17
+ |:---:|:---:|:---:|
18
+ | **14** | **5** | **Claude Code / Cursor / Codex / Gemini** |
19
+
20
+ ---
21
+
22
+ ## 这是什么?
23
+
24
+ [superpowers](https://github.com/obra/superpowers) 是目前最火的 AI 编程 skills 框架(99k+ stars),为 Claude Code、Cursor 等 AI 编程工具提供**系统化的工作方法论**。
25
+
26
+ **superpowers-zh** 在完整翻译的基础上,新增了面向中国开发者的特色 skills:
27
+
28
+ ### 翻译的 Skills(14 个)
29
+
30
+ | Skill | 用途 |
31
+ |-------|------|
32
+ | **头脑风暴** (brainstorming) | 需求分析 → 设计规格,不写代码先想清楚 |
33
+ | **编写计划** (writing-plans) | 把规格拆成可执行的实施步骤 |
34
+ | **执行计划** (executing-plans) | 按计划逐步实施,每步验证 |
35
+ | **测试驱动开发** (test-driven-development) | 严格 TDD:先写测试,再写代码 |
36
+ | **系统化调试** (systematic-debugging) | 四阶段调试法:定位→分析→假设→修复 |
37
+ | **请求代码审查** (requesting-code-review) | 派遣审查 agent 检查代码质量 |
38
+ | **接收代码审查** (receiving-code-review) | 技术严谨地处理审查反馈,拒绝敷衍 |
39
+ | **完成前验证** (verification-before-completion) | 证据先行——声称完成前必须跑验证 |
40
+ | **派遣并行 Agent** (dispatching-parallel-agents) | 多任务并发执行 |
41
+ | **子 Agent 驱动开发** (subagent-driven-development) | 每个任务一个 agent,两轮审查 |
42
+ | **Git Worktree 使用** (using-git-worktrees) | 隔离式特性开发 |
43
+ | **完成开发分支** (finishing-a-development-branch) | 合并/PR/保留/丢弃四选一 |
44
+ | **编写 Skills** (writing-skills) | 创建新 skill 的方法论 |
45
+ | **使用 Superpowers** (using-superpowers) | 元技能:如何调用和优先使用 skills |
46
+
47
+ ### 🇨🇳 中国特色 Skills(5 个)
48
+
49
+ | Skill | 用途 | 上游有吗? |
50
+ |-------|------|:---:|
51
+ | **中文代码审查** (chinese-code-review) | 符合国内团队文化的代码审查规范 | 无 |
52
+ | **中文 Git 工作流** (chinese-git-workflow) | 适配 Gitee/Coding/极狐 GitLab | 无 |
53
+ | **中文技术文档** (chinese-documentation) | 中文排版规范、中英混排、告别机翻味 | 无 |
54
+ | **中文提交规范** (chinese-commit-conventions) | 适配国内团队的 commit message 规范 | 无 |
55
+ | **MCP 服务器构建** (mcp-builder) | 构建生产级 MCP 工具,扩展 AI 能力边界 | 无 |
56
+
57
+ ---
58
+
59
+ ## 快速开始
60
+
61
+ ### 方式一:npm 安装(推荐)
62
+
63
+ ```bash
64
+ cd /your/project
65
+ npx superpowers-zh
66
+ ```
67
+
68
+ ### 方式二:手动安装
69
+
70
+ ```bash
71
+ # 克隆仓库
72
+ git clone https://github.com/jnMetaCode/superpowers-zh.git
73
+
74
+ # 复制 skills 到你的项目
75
+ cp -r superpowers-zh/skills /your/project/.claude/skills
76
+ # 或
77
+ cp -r superpowers-zh/skills /your/project/.cursor/skills
78
+ ```
79
+
80
+ ### 方式三:在 CLAUDE.md 中引用
81
+
82
+ ```markdown
83
+ # CLAUDE.md
84
+
85
+ 请使用 superpowers-zh 的 skills 来指导你的工作流程。
86
+ Skills 位于 ./skills/ 目录下。
87
+ ```
88
+
89
+ ---
90
+
91
+ ## 对比上游
92
+
93
+ | 特性 | superpowers (英文) | superpowers-zh (中文) |
94
+ |------|-------------------|----------------------|
95
+ | Skills 数量 | 14 | **19**(14 翻译 + 5 原创) |
96
+ | 语言 | 英文 | 中文(技术术语保留英文) |
97
+ | 代码审查规范 | 西方直接风格 | 适配国内团队沟通文化 |
98
+ | Git 平台 | GitHub 为主 | GitHub + Gitee + Coding + 极狐 |
99
+ | Git 提交规范 | 无 | Conventional Commits 中文适配 |
100
+ | 文档规范 | 英文 | 中文排版规范 + 中英混排 |
101
+ | MCP 构建 | 无 | MCP 服务器构建方法论 |
102
+ | 社区 | Discord | QQ 群 |
103
+
104
+ ---
105
+
106
+ ## 贡献
107
+
108
+ 欢迎参与!翻译改进、新增 skills、Bug 修复都可以。
109
+
110
+ ### 计划中的 Skills
111
+
112
+ - [ ] DeepSeek/国产模型调优
113
+ - [ ] Vue 生态 TDD
114
+ - [ ] 微信小程序开发流程
115
+ - [ ] 阿里巴巴 Java 开发规范
116
+ - [ ] 合规检查(等保/个人信息保护法)
117
+ - [ ] 国内云平台部署(阿里云/腾讯云/华为云)
118
+ - [ ] 飞书/钉钉项目管理集成
119
+ - [ ] 出海全栈开发(i18n + 多支付 + CDN 分流)
120
+
121
+ 欢迎认领或提出新想法!
122
+
123
+ ---
124
+
125
+ ## 社区交流
126
+
127
+ | 群名 | 群号 | 加入方式 |
128
+ |------|------|---------|
129
+ | AI Agent 中文实践群 | **833585047** | [点击加入](https://qm.qq.com/q/x8kyqzlfDc) |
130
+
131
+ ---
132
+
133
+ ## 致谢
134
+
135
+ - 原始英文版:[obra/superpowers](https://github.com/obra/superpowers)(MIT 协议)
136
+ - 感谢 [@obra](https://github.com/obra) 创建了这个优秀的项目
137
+ - 姊妹项目:[agency-agents-zh](https://github.com/jnMetaCode/agency-agents-zh)(180 个 AI 智能体专家团队)
138
+
139
+ ---
140
+
141
+ ## 许可证
142
+
143
+ MIT License — 自由使用,商业或个人均可。
144
+
145
+ ---
146
+
147
+ <div align="center">
148
+
149
+ **AI 编程超能力:让你的 AI 助手真正会干活**
150
+
151
+ [Star 本项目](https://github.com/jnMetaCode/superpowers-zh) · [提交 Issue](https://github.com/jnMetaCode/superpowers-zh/issues) · [贡献代码](https://github.com/jnMetaCode/superpowers-zh/pulls)
152
+
153
+ </div>
@@ -0,0 +1,48 @@
1
+ ---
2
+ name: code-reviewer
3
+ description: |
4
+ 当一个主要项目步骤完成并需要根据原始计划和编码标准进行审查时使用此智能体。示例:<example>Context: 用户正在创建一个代码审查智能体,应在逻辑代码块编写完成后调用。user: "我已经按照计划第 3 步完成了用户认证系统的实现" assistant: "干得好!让我使用 code-reviewer 智能体来根据我们的计划和编码标准审查实现" <commentary>由于一个主要项目步骤已完成,使用 code-reviewer 智能体来验证工作是否符合计划并识别任何问题。</commentary></example> <example>Context: 用户完成了一个重要功能的实现。user: "任务管理系统的 API 端点现在完成了——这涵盖了我们架构文档中的第 2 步" assistant: "很好!让我用 code-reviewer 智能体检查这个实现,确保它符合我们的计划并遵循最佳实践" <commentary>规划文档中的一个编号步骤已完成,所以应该用 code-reviewer 智能体审查工作。</commentary></example>
5
+ model: inherit
6
+ ---
7
+
8
+ 你是一位高级代码审查员,精通软件架构、设计模式和最佳实践。你的角色是根据原始计划审查已完成的项目步骤,确保代码质量标准得到满足。
9
+
10
+ 审查已完成的工作时,你将:
11
+
12
+ 1. **计划对齐分析**:
13
+ - 将实现与原始规划文档或步骤描述进行对比
14
+ - 识别与计划的方案、架构或需求的任何偏差
15
+ - 评估偏差是合理的改进还是有问题的偏离
16
+ - 验证所有计划的功能是否都已实现
17
+
18
+ 2. **代码质量评估**:
19
+ - 审查代码是否遵循已建立的模式和约定
20
+ - 检查错误处理、类型安全和防御性编程是否恰当
21
+ - 评估代码组织、命名约定和可维护性
22
+ - 评估测试覆盖率和测试实现的质量
23
+ - 寻找潜在的安全漏洞或性能问题
24
+
25
+ 3. **架构和设计审查**:
26
+ - 确保实现遵循 SOLID 原则和已建立的架构模式
27
+ - 检查关注点分离和松耦合是否恰当
28
+ - 验证代码与现有系统的集成是否良好
29
+ - 评估可扩展性和可延展性的考虑
30
+
31
+ 4. **文档和标准**:
32
+ - 验证代码包含适当的注释和文档
33
+ - 检查文件头、函数文档和内联注释是否存在且准确
34
+ - 确保遵循项目特定的编码标准和约定
35
+
36
+ 5. **问题识别和建议**:
37
+ - 将问题明确分类为:关键(必须修复)、重要(应该修复)或建议(锦上添花)
38
+ - 对每个问题提供具体示例和可操作的建议
39
+ - 识别计划偏差时,解释它们是有问题的还是有益的
40
+ - 在有帮助时提供带有代码示例的具体改进建议
41
+
42
+ 6. **沟通协议**:
43
+ - 如果发现与计划的重大偏差,请编码智能体审查并确认更改
44
+ - 如果识别出原始计划本身的问题,建议更新计划
45
+ - 对于实现问题,提供明确的修复指导
46
+ - 在指出问题之前始终先肯定做得好的地方
47
+
48
+ 你的输出应该是结构化的、可操作的,聚焦于帮助保持高代码质量同时确保项目目标的达成。要全面但简洁,始终提供建设性的反馈,帮助改进当前实现和未来的开发实践。
@@ -0,0 +1,66 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { existsSync, mkdirSync, cpSync, readdirSync } from 'fs';
4
+ import { resolve, dirname, join } from 'path';
5
+ import { fileURLToPath } from 'url';
6
+
7
+ const __dirname = dirname(fileURLToPath(import.meta.url));
8
+ const SKILLS_SRC = resolve(__dirname, '..', 'skills');
9
+ const AGENTS_SRC = resolve(__dirname, '..', 'agents');
10
+ const PROJECT_DIR = process.cwd();
11
+
12
+ const TARGETS = [
13
+ { name: 'Claude Code', dir: '.claude/skills', type: 'skills' },
14
+ { name: 'Cursor', dir: '.cursor/skills', type: 'skills' },
15
+ { name: 'Codex CLI', dir: '.codex/skills', type: 'skills' },
16
+ ];
17
+
18
+ function countFiles(dir) {
19
+ if (!existsSync(dir)) return 0;
20
+ let count = 0;
21
+ for (const entry of readdirSync(dir, { withFileTypes: true })) {
22
+ if (entry.isDirectory()) count++;
23
+ }
24
+ return count;
25
+ }
26
+
27
+ function install() {
28
+ console.log('\n superpowers-zh — AI 编程超能力中文版\n');
29
+ console.log(` 源: ${countFiles(SKILLS_SRC)} 个 skills`);
30
+ console.log(` 目标项目: ${PROJECT_DIR}\n`);
31
+
32
+ let installed = 0;
33
+
34
+ for (const target of TARGETS) {
35
+ const configDir = resolve(PROJECT_DIR, target.dir.split('/')[0]);
36
+ // 只安装到已存在配置目录的工具,或者全部安装
37
+ const dest = resolve(PROJECT_DIR, target.dir);
38
+
39
+ if (existsSync(configDir) || installed === 0) {
40
+ mkdirSync(dest, { recursive: true });
41
+ cpSync(SKILLS_SRC, dest, { recursive: true });
42
+ const count = countFiles(dest);
43
+ console.log(` ✅ ${target.name}: ${count} 个 skills -> ${dest}`);
44
+ installed++;
45
+
46
+ // 为 Claude Code 额外安装 agents
47
+ if (target.name === 'Claude Code' && existsSync(AGENTS_SRC)) {
48
+ const agentsDest = resolve(PROJECT_DIR, '.claude', 'agents');
49
+ mkdirSync(agentsDest, { recursive: true });
50
+ cpSync(AGENTS_SRC, agentsDest, { recursive: true });
51
+ }
52
+ }
53
+ }
54
+
55
+ if (installed === 0) {
56
+ // 默认安装到 .claude/skills
57
+ const dest = resolve(PROJECT_DIR, '.claude', 'skills');
58
+ mkdirSync(dest, { recursive: true });
59
+ cpSync(SKILLS_SRC, dest, { recursive: true });
60
+ console.log(` ✅ 默认安装: ${countFiles(dest)} 个 skills -> ${dest}`);
61
+ }
62
+
63
+ console.log('\n 安装完成!重启你的 AI 编程工具即可生效。\n');
64
+ }
65
+
66
+ install();
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: "已弃用 - 请改用 superpowers:brainstorming 技能"
3
+ ---
4
+
5
+ 告诉你的搭档这个命令已弃用,将在下个主要版本中移除。他们应该让你使用"superpowers brainstorming"技能。
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: "已弃用 - 请改用 superpowers:executing-plans 技能"
3
+ ---
4
+
5
+ 告诉你的搭档这个命令已弃用,将在下个主要版本中移除。他们应该让你使用"superpowers executing-plans"技能。
@@ -0,0 +1,5 @@
1
+ ---
2
+ description: "已弃用 - 请改用 superpowers:writing-plans 技能"
3
+ ---
4
+
5
+ 告诉你的搭档这个命令已弃用,将在下个主要版本中移除。他们应该让你使用"superpowers writing-plans"技能。
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "superpowers",
3
+ "description": "Core skills library: TDD, debugging, collaboration patterns, and proven techniques",
4
+ "version": "5.0.0",
5
+ "contextFileName": "GEMINI.md"
6
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 1,
3
+ "hooks": {
4
+ "sessionStart": [
5
+ {
6
+ "command": "./hooks/session-start"
7
+ }
8
+ ]
9
+ }
10
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "hooks": {
3
+ "SessionStart": [
4
+ {
5
+ "matcher": "startup|clear|compact",
6
+ "hooks": [
7
+ {
8
+ "type": "command",
9
+ "command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/run-hook.cmd\" session-start",
10
+ "async": false
11
+ }
12
+ ]
13
+ }
14
+ ]
15
+ }
16
+ }