Skip to content

Commit 4778006

Browse files
committed
feat: 添加 Claw Code 支持(第 17 款工具)+ CNB 平台支持
- 新增 Claw Code(Rust 版 AI CLI):auto-detect `.claw/` 或 `CLAW.md`,支持 `--tool claw/claw-code/clawcode` - chinese-git-workflow skill 新增 CNB(腾讯云原生构建)平台适配,含 `.cnb.yml` CI 示例(#6) - 版本 1.1.7 → 1.1.8
1 parent fb08e88 commit 4778006

7 files changed

Lines changed: 75 additions & 30 deletions

File tree

.claude-plugin/marketplace.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "superpowers-zh",
3-
"description": "AI 编程超能力中文增强版:20 个 skills,支持 Claude Code / Hermes Agent / Cursor 等 16 款工具",
3+
"description": "AI 编程超能力中文增强版:20 个 skills,支持 Claude Code / Hermes Agent / Cursor / Claw Code 等 17 款工具",
44
"owner": {
55
"name": "jnMetaCode",
66
"url": "https://github.com/jnMetaCode"
77
},
88
"plugins": [
99
{
1010
"name": "superpowers-zh",
11-
"description": "AI 编程超能力中文增强版:20 个 skills(14 翻译 + 6 中国原创),支持 Claude Code / Hermes Agent / Cursor 等 16 款工具",
12-
"version": "1.1.7",
11+
"description": "AI 编程超能力中文增强版:20 个 skills(14 翻译 + 6 中国原创),支持 Claude Code / Hermes Agent / Cursor / Claw Code 等 17 款工具",
12+
"version": "1.1.8",
1313
"source": "./",
1414
"author": {
1515
"name": "jnMetaCode",

.claude-plugin/plugin.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "superpowers-zh",
3-
"description": "AI 编程超能力中文增强版:20 个 skills(14 翻译 + 6 中国原创),支持 Claude Code / Hermes Agent / Cursor 等 16 款工具",
4-
"version": "1.1.7",
3+
"description": "AI 编程超能力中文增强版:20 个 skills(14 翻译 + 6 中国原创),支持 Claude Code / Hermes Agent / Cursor / Claw Code 等 17 款工具",
4+
"version": "1.1.8",
55
"author": {
66
"name": "jnMetaCode",
77
"url": "https://github.com/jnMetaCode"

.cursor-plugin/plugin.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "superpowers-zh",
33
"displayName": "Superpowers 中文版",
4-
"description": "AI 编程超能力中文增强版:20 个 skills(14 翻译 + 6 中国原创),支持 Cursor / Claude Code / Hermes Agent 等 16 款工具",
5-
"version": "1.1.7",
4+
"description": "AI 编程超能力中文增强版:20 个 skills(14 翻译 + 6 中国原创),支持 Cursor / Claude Code / Hermes Agent / Claw Code 等 17 款工具",
5+
"version": "1.1.8",
66
"author": {
77
"name": "jnMetaCode",
88
"url": "https://github.com/jnMetaCode"

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
🌐 **简体中文** | [English (upstream)](https://github.com/obra/superpowers)
44

5-
> 🦸 **superpowers(116k+ ⭐)完整汉化 + 6 个中国原创 skills** — 让 Claude Code / Copilot CLI / Hermes Agent / Cursor / Windsurf / Kiro / Gemini CLI 等 **16 款 AI 编程工具**真正会干活。从头脑风暴到代码审查,从 TDD 到调试,每个 skill 都是经过实战验证的工作方法论。
5+
> 🦸 **superpowers(116k+ ⭐)完整汉化 + 6 个中国原创 skills** — 让 Claude Code / Copilot CLI / Hermes Agent / Cursor / Windsurf / Kiro / Gemini CLI 等 **17 款 AI 编程工具**真正会干活。从头脑风暴到代码审查,从 TDD 到调试,每个 skill 都是经过实战验证的工作方法论。
66
77
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.
88

@@ -43,7 +43,7 @@ AI:在开始实现之前,我需要了解几个关键问题:
4343

4444
| 📦 翻译 Skills | 🇨🇳 中国特色 Skills | 🤖 支持工具 |
4545
|:---:|:---:|:---:|
46-
| **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** |
46+
| **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** |
4747

4848
---
4949

@@ -53,7 +53,7 @@ AI:在开始实现之前,我需要了解几个关键问题:
5353

5454
**superpowers-zh** 在完整翻译的基础上,新增了面向中国开发者的特色 skills。
5555

56-
### 🤖 支持 16 款主流 AI 编程工具
56+
### 🤖 支持 17 款主流 AI 编程工具
5757

5858
| 工具 | 类型 | 一键安装 | 手动安装 |
5959
|------|------|:---:|:---:|
@@ -73,6 +73,7 @@ AI:在开始实现之前,我需要了解几个关键问题:
7373
| [OpenClaw](https://github.com/anthropics/openclaw) | CLI | `npx superpowers-zh` | `skills/` |
7474
| [Qwen Code](https://tongyi.aliyun.com/lingma) (通义灵码) | IDE 插件 | `npx superpowers-zh` | `.qwen/skills/` |
7575
| [Antigravity](https://github.com/anthropics/antigravity) | CLI | `npx superpowers-zh` | `.antigravity/skills/` |
76+
| [Claw Code](https://github.com/ultraworkers/claw-code) | CLI (Rust) | `npx superpowers-zh` | `.claw/skills/` |
7677

7778
> 运行 `npx superpowers-zh` 会自动检测你项目中使用的工具,将 20 个 skills 安装到正确位置。
7879
@@ -139,6 +140,7 @@ cp -r superpowers-zh/skills /your/project/.gemini/skills # Gemini CLI
139140
cp -r superpowers-zh/skills /your/project/.aider/skills # Aider
140141
cp -r superpowers-zh/skills /your/project/.opencode/skills # OpenCode
141142
cp -r superpowers-zh/skills /your/project/.qwen/skills # Qwen Code
143+
cp -r superpowers-zh/skills /your/project/.claw/skills # Claw Code(Rust 版)
142144
```
143145

144146
### 方式三:在配置文件中引用
@@ -163,6 +165,7 @@ cp -r superpowers-zh/skills /your/project/.qwen/skills # Qwen Code
163165
| OpenCode | `.opencode/skills/*/SKILL.md` | 项目级 skills 目录 |
164166
| Hermes Agent | `.hermes/skills/*/SKILL.md` | 项目级 skills 目录 |
165167
| Qwen Code | `.qwen/skills/*/SKILL.md` | 项目级 skills 目录 |
168+
| Claw Code | `.claw/skills/*/SKILL.md` | Rust 版 CLI agent,兼容 Claude Code 的 SKILL.md 格式 |
166169

167170
> **详细安装指南**[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)
168171
@@ -230,7 +233,7 @@ MIT License — 自由使用,商业或个人均可。
230233

231234
<div align="center">
232235

233-
**🦸 AI 编程超能力:让 Claude Code / Hermes Agent / Cursor 等 16 款工具真正会干活**
236+
**🦸 AI 编程超能力:让 Claude Code / Hermes Agent / Cursor / Claw Code 等 17 款工具真正会干活**
234237

235238
[Star 本项目](https://github.com/jnMetaCode/superpowers-zh) · [提交 Issue](https://github.com/jnMetaCode/superpowers-zh/issues) · [贡献代码](https://github.com/jnMetaCode/superpowers-zh/pulls)
236239

bin/superpowers-zh.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ const TARGETS = [
5656
{ name: 'OpenCode', dir: '.opencode/skills', detect: '.opencode' },
5757
{ name: 'Qwen Code', dir: '.qwen/skills', detect: '.qwen' },
5858
{ name: 'Hermes Agent', dir: '.hermes/skills', detect: ['.hermes', 'HERMES.md', '.hermes.md'] },
59+
{ name: 'Claw Code', dir: '.claw/skills', detect: ['.claw', 'CLAW.md'] },
5960
];
6061

6162
function countDirs(dir) {
@@ -323,6 +324,9 @@ const TOOL_ALIASES = {
323324
'qwen-code': 'Qwen Code',
324325
'hermes': 'Hermes Agent',
325326
'hermes-agent': 'Hermes Agent',
327+
'claw': 'Claw Code',
328+
'claw-code': 'Claw Code',
329+
'clawcode': 'Claw Code',
326330
};
327331

328332
function showHelp() {

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "superpowers-zh",
3-
"version": "1.1.7",
3+
"version": "1.1.8",
44
"engines": {
55
"node": ">=14.0.0"
66
},
7-
"description": "AI 编程超能力中文增强版 — superpowers(99k+ ⭐)完整汉化 + 6 个中国原创 skills,支持 Claude Code / Copilot CLI / Hermes Agent / Cursor / Windsurf / Kiro / Gemini CLI 等 16 款工具",
7+
"description": "AI 编程超能力中文增强版 — superpowers(99k+ ⭐)完整汉化 + 6 个中国原创 skills,支持 Claude Code / Copilot CLI / Hermes Agent / Cursor / Claw Code / Windsurf / Kiro / Gemini CLI 等 17 款工具",
88
"type": "module",
99
"main": ".opencode/plugins/superpowers.js",
1010
"bin": {
@@ -46,6 +46,7 @@
4646
"copilot",
4747
"hermes",
4848
"hermes-agent",
49+
"claw-code",
4950
"ai-coding",
5051
"skills",
5152
"chinese",

skills/chinese-git-workflow/SKILL.md

Lines changed: 54 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: chinese-git-workflow
3-
description: 适配国内 Git 平台和团队习惯的工作流规范——Gitee、Coding、极狐 GitLab 全覆盖
3+
description: 适配国内 Git 平台和团队习惯的工作流规范——Gitee、Coding、极狐 GitLab、CNB 全覆盖
44
---
55

66
# 国内 Git 工作流规范
@@ -15,14 +15,14 @@ description: 适配国内 Git 平台和团队习惯的工作流规范——Gitee
1515

1616
### 平台对比
1717

18-
| 特性 | Gitee | Coding.net | 极狐 GitLab | GitHub |
19-
|------|-------|------------|-------------|--------|
20-
| 国内访问 |||| 不稳定 |
21-
| 免费私有仓库 |||||
22-
| CI/CD | Gitee Go | Coding CI | 内置 GitLab CI | GitHub Actions |
23-
| 代码审查 | PR | MR | MR | PR |
24-
| 制品库 | 有限 | 完整 | 完整 | Packages |
25-
| 适合场景 | 开源/小团队 | 中大型团队 | 企业私有化 | 国际项目 |
18+
| 特性 | Gitee | Coding.net | 极狐 GitLab | CNB | GitHub |
19+
|------|-------|------------|-------------|-----|--------|
20+
| 国内访问 |||| | 不稳定 |
21+
| 免费私有仓库 ||||||
22+
| CI/CD | Gitee Go | Coding CI | 内置 GitLab CI | 内置(.cnb.yml) | GitHub Actions |
23+
| 代码审查 | PR | MR | MR | MR | PR |
24+
| 制品库 | 有限 | 完整 | 完整 | 完整 | Packages |
25+
| 适合场景 | 开源/小团队 | 中大型团队 | 企业私有化 | 云原生 / Docker 流水线 | 国际项目 |
2626

2727
### Gitee 特有配置
2828

@@ -63,6 +63,17 @@ git remote add origin https://jihulab.com/<group>/<repo>.git
6363
git remote add origin https://gitlab.yourcompany.com/<group>/<repo>.git
6464
```
6565

66+
### CNB(Cloud Native Build)特有配置
67+
68+
```bash
69+
# CNB 仓库地址(仅支持 HTTPS,不提供 SSH 协议)
70+
git remote add origin https://cnb.cool/<org>/<repo>.git
71+
72+
# HTTPS 认证:用户名固定为 cnb,密码为个人访问令牌(Access Token)
73+
# 在 CNB 平台 → 个人设置 → 访问令牌 中生成
74+
git config credential.helper store
75+
```
76+
6677
## 工作流选择
6778

6879
### 方案一:主干开发(Trunk-Based Development)
@@ -372,16 +383,42 @@ variables:
372383
when: manual # 生产环境手动触发
373384
```
374385
386+
### CNB(Cloud Native Build)
387+
388+
```yaml
389+
# .cnb.yml — branch-first 结构,直接指定 Docker 镜像跑流水线
390+
main:
391+
push:
392+
- docker:
393+
image: node:20
394+
stages:
395+
- npm ci
396+
- npm test
397+
- npm run build
398+
pull_request:
399+
- docker:
400+
image: node:20
401+
stages:
402+
- npm run lint
403+
- npm test
404+
```
405+
406+
**特点:**
407+
- 每个流水线独立指定 Docker 镜像,天然云原生
408+
- 支持 `push` / `pull_request` 触发
409+
- 同一事件可并行多条流水线
410+
- `stages` 也支持 `- name: xxx` + `script:` 的展开形式,复杂场景见官方文档
411+
375412
### GitHub Actions 国内替代方案对照
376413

377-
| GitHub Actions 功能 | Gitee Go | Coding CI | 极狐 GitLab CI |
378-
|---------------------|----------|-----------|----------------|
379-
| 触发条件 | triggers | Jenkinsfile triggers | only/rules |
380-
| 缓存依赖 | cache step | stash/unstash | cache |
381-
| 制品存储 | artifacts | 制品库 | artifacts |
382-
| 环境变量 | env | environment | variables |
383-
| 密钥管理 | 环境变量配置 | 凭据管理 | CI/CD Variables |
384-
| 手动触发 | 手动运行 | 手动触发 | when: manual |
414+
| GitHub Actions 功能 | Gitee Go | Coding CI | 极狐 GitLab CI | CNB |
415+
|---------------------|----------|-----------|----------------|-----|
416+
| 触发条件 | triggers | Jenkinsfile triggers | only/rules | push / pull_request |
417+
| 缓存依赖 | cache step | stash/unstash | cache | 见官方文档 |
418+
| 制品存储 | artifacts | 制品库 | artifacts | 见官方文档 |
419+
| 环境变量 | env | environment | variables | env |
420+
| 密钥管理 | 环境变量配置 | 凭据管理 | CI/CD Variables | Access Token |
421+
| 手动触发 | 手动运行 | 手动触发 | when: manual | 页面手动运行 |
385422

386423
## PR/MR 描述模板
387424

0 commit comments

Comments
 (0)