ccjk 1.5.0 → 2.0.2
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.ja.md +249 -297
- package/README.ko.md +241 -290
- package/README.md +222 -364
- package/README.zh-CN.md +553 -295
- package/dist/chunks/claude-code-config-manager.mjs +7 -7
- package/dist/chunks/claude-code-incremental-manager.mjs +1 -1
- package/dist/chunks/codex-config-switch.mjs +3 -3
- package/dist/chunks/codex-provider-manager.mjs +1 -1
- package/dist/chunks/codex-uninstaller.mjs +2 -2
- package/dist/chunks/commands.mjs +1 -1
- package/dist/chunks/features.mjs +10 -10
- package/dist/chunks/simple-config.mjs +321 -389
- package/dist/chunks/smart-guide.mjs +234 -0
- package/dist/cli.mjs +1795 -433
- package/dist/i18n/locales/en/configuration.json +12 -1
- package/dist/i18n/locales/en/marketplace.json +84 -0
- package/dist/i18n/locales/en/menu.json +38 -1
- package/dist/i18n/locales/en/skills.json +140 -0
- package/dist/i18n/locales/en/smartGuide.json +49 -0
- package/dist/i18n/locales/en/subagent.json +69 -0
- package/dist/i18n/locales/en/superpowers.json +58 -0
- package/dist/i18n/locales/zh-CN/configuration.json +12 -1
- package/dist/i18n/locales/zh-CN/marketplace.json +84 -0
- package/dist/i18n/locales/zh-CN/menu.json +38 -1
- package/dist/i18n/locales/zh-CN/skills.json +140 -0
- package/dist/i18n/locales/zh-CN/smartGuide.json +49 -0
- package/dist/i18n/locales/zh-CN/subagent.json +69 -0
- package/dist/i18n/locales/zh-CN/superpowers.json +58 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +366 -7
- package/package.json +26 -27
- package/templates/common/skills/en/brainstorming.md +64 -0
- package/templates/common/skills/en/code-review.md +81 -0
- package/templates/common/skills/en/documentation-gen.md +808 -0
- package/templates/common/skills/en/executing-plans.md +75 -0
- package/templates/common/skills/en/git-commit.md +216 -0
- package/templates/common/skills/en/interview.md +223 -0
- package/templates/common/skills/en/migration-assistant.md +312 -0
- package/templates/common/skills/en/performance-profiling.md +576 -0
- package/templates/common/skills/en/pr-review.md +341 -0
- package/templates/common/skills/en/refactoring.md +384 -0
- package/templates/common/skills/en/security-audit.md +462 -0
- package/templates/common/skills/en/systematic-debugging.md +82 -0
- package/templates/common/skills/en/tdd-workflow.md +93 -0
- package/templates/common/skills/en/verification.md +81 -0
- package/templates/common/skills/en/workflow.md +370 -0
- package/templates/common/skills/en/writing-plans.md +78 -0
- package/templates/common/skills/zh-CN/documentation-gen.md +807 -0
- package/templates/common/skills/zh-CN/migration-assistant.md +318 -0
- package/templates/common/skills/zh-CN/performance-profiling.md +746 -0
- package/templates/common/skills/zh-CN/pr-review.md +341 -0
- package/templates/common/skills/zh-CN/refactoring.md +384 -0
- package/templates/common/skills/zh-CN/security-audit.md +462 -0
- package/templates/common/smart-guide/en/smart-guide.md +72 -0
- package/templates/common/smart-guide/zh-CN/smart-guide.md +72 -0
package/README.zh-CN.md
CHANGED
|
@@ -1,40 +1,43 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
SEO Meta: CCJK - Claude Code 锦库 | 最强AI编程助手 | 11+AI代理 |
|
|
3
|
-
Description: CCJK
|
|
2
|
+
SEO Meta: CCJK - Claude Code 锦库 | 最强AI编程助手 | 智能技能系统 | 11+AI代理 | 热重载 | 零配置
|
|
3
|
+
Description: CCJK 2.0 是最先进的AI编程工具包。具有智能技能热重载、11+AI代理、上下文感知、子代理编排和权限系统。AI辅助开发的未来。
|
|
4
|
+
Keywords: claude code, AI编程助手, claude code扩展, AI开发工具, 代码自动化, AI代理, copilot替代品, cursor替代品, 免费AI编程, 开源AI工具
|
|
4
5
|
-->
|
|
5
6
|
|
|
6
7
|
<div align="center">
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
<img src="https://raw.githubusercontent.com/miounet11/ccjk/main/docs/assets/ccjk-logo.png" alt="CCJK Logo" width="200" />
|
|
9
|
+
<img src="https://raw.githubusercontent.com/anthropics/claude-code/main/.github/assets/claude-code-logo.png" alt="CCJK Logo" width="180" />
|
|
10
10
|
|
|
11
11
|
# CCJK - Claude Code 锦库
|
|
12
12
|
|
|
13
|
-
###
|
|
13
|
+
### 🚀 最先进的 AI 编程助手增强工具包
|
|
14
14
|
|
|
15
15
|
[![npm version][npm-version-src]][npm-version-href]
|
|
16
16
|
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
17
17
|
[![License][license-src]][license-href]
|
|
18
18
|
[![GitHub stars][stars-src]][stars-href]
|
|
19
|
-
[](https://github.com/
|
|
19
|
+
[](https://github.com/anthropics/claude-code/pulls)
|
|
20
20
|
|
|
21
21
|
**[English](README.md)** | **[简体中文](README.zh-CN.md)** | **[日本語](README.ja.md)** | **[한국어](README.ko.md)**
|
|
22
22
|
|
|
23
23
|
<br/>
|
|
24
24
|
|
|
25
|
-
## 🎉
|
|
25
|
+
## 🎉 v2.0.0 - 革命性技能系统!(2025年1月)
|
|
26
26
|
|
|
27
|
-
>
|
|
28
|
-
> - 🌟 **访谈驱动开发 (IDD)** - 现已成为推荐首选工作流!
|
|
29
|
-
> - 📋 精简工作流菜单,5个清晰选项
|
|
30
|
-
> - 🔧 新增必备工作流模板
|
|
31
|
-
> - 🌐 更新国际化支持 (中/英)
|
|
27
|
+
> **🧠 智能技能架构 - AI编程的未来**
|
|
32
28
|
>
|
|
33
|
-
>
|
|
29
|
+
> - 🔥 **智能技能热重载** - 编辑技能,即时生效,无需重启
|
|
30
|
+
> - 🤖 **子代理编排** - 并行/串行任务执行,多AI协作
|
|
31
|
+
> - 🛡️ **权限系统** - 细粒度访问控制,支持通配符模式
|
|
32
|
+
> - ⚡ **生命周期钩子** - before/after/error 完整控制流程
|
|
33
|
+
> - 🎯 **上下文感知激活** - 根据工作内容自动激活相关技能
|
|
34
|
+
> - 📦 **22+ 内置技能模板** - PR审查、安全审计、重构、文档生成等
|
|
35
|
+
>
|
|
36
|
+
> **⭐ 在 GitHub 上给我们 Star 支持项目!**
|
|
34
37
|
|
|
35
38
|
<br/>
|
|
36
39
|
|
|
37
|
-
> 💡
|
|
40
|
+
> 💡 **一条命令,超级增强你的AI编程体验**
|
|
38
41
|
>
|
|
39
42
|
> ```bash
|
|
40
43
|
> npx ccjk
|
|
@@ -42,29 +45,33 @@
|
|
|
42
45
|
|
|
43
46
|
<br/>
|
|
44
47
|
|
|
45
|
-
[📖 快速入门](#-快速入门) · [🚀
|
|
48
|
+
[📖 快速入门](#-快速入门) · [🚀 革命性功能](#-革命性功能) · [💬 社区支持](#-社区与支持) · [🤝 参与贡献](#-参与贡献)
|
|
46
49
|
|
|
47
50
|
</div>
|
|
48
51
|
|
|
49
52
|
---
|
|
50
53
|
|
|
51
|
-
## 🎯 什么是CCJK?
|
|
54
|
+
## 🎯 什么是 CCJK?
|
|
52
55
|
|
|
53
|
-
**CCJK
|
|
56
|
+
**CCJK (Claude Code 锦库)** 将 Claude Code 从简单的AI助手转变为**完整的AI开发强力引擎**。通过革命性的**智能技能系统**、11+专业AI代理和智能自动化,CCJK帮助你**10倍速**编写更好的代码。
|
|
54
57
|
|
|
55
58
|
<table>
|
|
56
59
|
<tr>
|
|
57
|
-
<td width="
|
|
60
|
+
<td width="25%" align="center">
|
|
61
|
+
<h3>🧠 智能技能</h3>
|
|
62
|
+
<p>热重载、上下文感知、自动激活</p>
|
|
63
|
+
</td>
|
|
64
|
+
<td width="25%" align="center">
|
|
58
65
|
<h3>🤖 11+ AI代理</h3>
|
|
59
|
-
<p>安全、性能、测试、DevOps
|
|
66
|
+
<p>安全、性能、测试、DevOps专家</p>
|
|
60
67
|
</td>
|
|
61
|
-
<td width="
|
|
68
|
+
<td width="25%" align="center">
|
|
62
69
|
<h3>⚡ 零配置</h3>
|
|
63
|
-
<p
|
|
70
|
+
<p>一条命令,即刻运行</p>
|
|
64
71
|
</td>
|
|
65
|
-
<td width="
|
|
66
|
-
<h3>🆓 100
|
|
67
|
-
<p
|
|
72
|
+
<td width="25%" align="center">
|
|
73
|
+
<h3>🆓 100% 免费</h3>
|
|
74
|
+
<p>开源项目,MIT许可证</p>
|
|
68
75
|
</td>
|
|
69
76
|
</tr>
|
|
70
77
|
</table>
|
|
@@ -73,329 +80,608 @@
|
|
|
73
80
|
|
|
74
81
|
## 🚀 快速入门
|
|
75
82
|
|
|
76
|
-
###
|
|
83
|
+
### 一键安装
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
# 推荐:交互式安装
|
|
87
|
+
npx ccjk
|
|
88
|
+
|
|
89
|
+
# 或全局安装
|
|
90
|
+
npm install -g ccjk
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### 🇨🇳 中国用户安装(国内镜像)
|
|
77
94
|
|
|
78
95
|
```bash
|
|
79
|
-
# 方式一:使用 npmmirror
|
|
96
|
+
# 方式一:使用 npmmirror 镜像(推荐,最快)
|
|
80
97
|
npm install -g ccjk --registry https://registry.npmmirror.com
|
|
81
98
|
|
|
82
|
-
# 方式二:使用 ghproxy
|
|
83
|
-
curl -fsSL https://ghproxy.com/https://raw.githubusercontent.com/
|
|
99
|
+
# 方式二:使用 ghproxy 代理
|
|
100
|
+
curl -fsSL https://ghproxy.com/https://raw.githubusercontent.com/anthropics/claude-code/main/install.sh | bash
|
|
84
101
|
|
|
85
102
|
# 方式三:使用 jsdelivr CDN
|
|
86
|
-
curl -fsSL https://cdn.jsdelivr.net/gh/
|
|
87
|
-
|
|
88
|
-
# 方式四:国际线路(需科学上网)
|
|
89
|
-
curl -fsSL https://raw.githubusercontent.com/miounet11/ccjk/main/install.sh | bash
|
|
103
|
+
curl -fsSL https://cdn.jsdelivr.net/gh/anthropics/claude-code@main/install.sh | bash
|
|
90
104
|
```
|
|
91
105
|
|
|
92
|
-
###
|
|
106
|
+
### 开始使用
|
|
93
107
|
|
|
94
108
|
```bash
|
|
95
|
-
#
|
|
96
|
-
|
|
97
|
-
cd ccjk && pnpm install && pnpm build && npm install -g .
|
|
98
|
-
|
|
99
|
-
# 方式B:从 GitHub 直接安装
|
|
100
|
-
npm install -g git+https://github.com/miounet11/ccjk.git
|
|
109
|
+
# 运行交互式菜单
|
|
110
|
+
ccjk
|
|
101
111
|
|
|
102
|
-
#
|
|
103
|
-
|
|
112
|
+
# 或直接启动增强版 Claude Code
|
|
113
|
+
claude
|
|
104
114
|
```
|
|
105
115
|
|
|
106
|
-
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## ✨ 革命性功能
|
|
119
|
+
|
|
120
|
+
### 🧠 智能技能系统 2.0(全新!)
|
|
107
121
|
|
|
108
|
-
|
|
122
|
+
AI编程助手领域最先进的技能系统:
|
|
109
123
|
|
|
110
124
|
```
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
126
|
+
│ 🧠 CCJK 智能技能架构 │
|
|
127
|
+
├─────────────────────────────────────────────────────────────────┤
|
|
128
|
+
│ │
|
|
129
|
+
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────────────────┐ │
|
|
130
|
+
│ │ 钩子 │ │ 子代理 │ │ 权限 │ │
|
|
131
|
+
│ │ 系统 │ │ 管理器 │ │ 系统 │ │
|
|
132
|
+
│ │ │ │ │ │ │ │
|
|
133
|
+
│ │ • before │ │ • 并行执行 │ │ • 允许/拒绝规则 │ │
|
|
134
|
+
│ │ • after │ │ • 串行执行 │ │ • 通配符匹配 │ │
|
|
135
|
+
│ │ • error │ │ • 执行记录 │ │ • 文件/命令控制 │ │
|
|
136
|
+
│ └──────┬──────┘ └──────┬──────┘ └───────────┬─────────────┘ │
|
|
137
|
+
│ │ │ │ │
|
|
138
|
+
│ └────────────────┼─────────────────────┘ │
|
|
139
|
+
│ │ │
|
|
140
|
+
│ ┌───────────▼───────────┐ │
|
|
141
|
+
│ │ 热重载引擎 │ │
|
|
142
|
+
│ │ │ │
|
|
143
|
+
│ │ • 文件监控 │ │
|
|
144
|
+
│ │ • 智能缓存 │ │
|
|
145
|
+
│ │ • 自动发现 │ │
|
|
146
|
+
│ │ • 即时激活 │ │
|
|
147
|
+
│ └───────────────────────┘ │
|
|
148
|
+
│ │
|
|
149
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
125
150
|
```
|
|
126
151
|
|
|
127
|
-
|
|
152
|
+
#### 🔥 热重载 - 编辑技能,即时生效
|
|
128
153
|
|
|
129
|
-
|
|
154
|
+
```yaml
|
|
155
|
+
# 编辑任何技能文件,更改立即生效!
|
|
156
|
+
# 无需重启,无需配置。
|
|
130
157
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
158
|
+
# 示例: ~/.ccjk/skills/my-skill.md
|
|
159
|
+
---
|
|
160
|
+
name: my-custom-skill
|
|
161
|
+
trigger: /my-skill
|
|
162
|
+
auto_activate:
|
|
163
|
+
file_patterns: ["*.ts", "*.tsx"]
|
|
164
|
+
keywords: ["重构", "优化"]
|
|
165
|
+
hooks:
|
|
166
|
+
before: validate-context
|
|
167
|
+
after: generate-report
|
|
168
|
+
---
|
|
135
169
|
|
|
136
|
-
|
|
170
|
+
你的技能指令写在这里...
|
|
171
|
+
```
|
|
137
172
|
|
|
138
|
-
|
|
173
|
+
#### 🤖 子代理编排
|
|
139
174
|
|
|
140
|
-
|
|
175
|
+
并行或串行运行多个AI代理,实现复杂任务自动化:
|
|
141
176
|
|
|
142
|
-
|
|
177
|
+
```yaml
|
|
178
|
+
subagents:
|
|
179
|
+
- name: security-scan
|
|
180
|
+
model: sonnet
|
|
181
|
+
task: "扫描安全漏洞"
|
|
182
|
+
- name: performance-check
|
|
183
|
+
model: haiku
|
|
184
|
+
task: "分析性能问题"
|
|
185
|
+
depends_on: security-scan # 串行执行,等待安全扫描完成
|
|
186
|
+
```
|
|
143
187
|
|
|
144
|
-
|
|
188
|
+
#### 🛡️ 权限系统
|
|
189
|
+
|
|
190
|
+
细粒度访问控制,保护敏感文件:
|
|
191
|
+
|
|
192
|
+
```yaml
|
|
193
|
+
permissions:
|
|
194
|
+
allow:
|
|
195
|
+
- "src/**/*.ts" # 允许所有 TypeScript 文件
|
|
196
|
+
- "!src/**/*.test.ts" # 排除测试文件
|
|
197
|
+
deny:
|
|
198
|
+
- ".env*" # 永不触碰环境变量文件
|
|
199
|
+
- "node_modules/**" # 跳过 node_modules
|
|
200
|
+
commands:
|
|
201
|
+
allow: ["npm test", "npm run build"]
|
|
202
|
+
deny: ["rm -rf", "sudo *"]
|
|
203
|
+
```
|
|
145
204
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
|
149
|
-
|
|
150
|
-
|
|
|
151
|
-
|
|
|
152
|
-
|
|
|
153
|
-
|
|
|
154
|
-
|
|
|
205
|
+
### 📦 22+ 内置技能模板
|
|
206
|
+
|
|
207
|
+
| 分类 | 技能 | 描述 |
|
|
208
|
+
|------|------|------|
|
|
209
|
+
| **代码质量** | `pr-review`, `code-review`, `refactoring` | 全面代码分析与审查 |
|
|
210
|
+
| **安全** | `security-audit`, `vulnerability-scan` | OWASP、CVE漏洞检测 |
|
|
211
|
+
| **性能** | `performance-profiling`, `optimization` | 速度和内存分析优化 |
|
|
212
|
+
| **文档** | `documentation-gen`, `api-docs` | 自动生成高质量文档 |
|
|
213
|
+
| **测试** | `tdd-workflow`, `test-generation` | 测试驱动开发支持 |
|
|
214
|
+
| **DevOps** | `git-commit`, `ci-cd-setup` | 自动化工作流配置 |
|
|
215
|
+
| **迁移** | `migration-assistant`, `upgrade-helper` | 框架版本迁移助手 |
|
|
216
|
+
| **规划** | `writing-plans`, `executing-plans` | 项目规划与执行 |
|
|
217
|
+
|
|
218
|
+
### 🤖 AI 代理军团
|
|
219
|
+
|
|
220
|
+
你的私人AI开发团队,24/7全天候服务:
|
|
221
|
+
|
|
222
|
+
| 代理 | 专长 | 使用场景 |
|
|
223
|
+
|------|------|----------|
|
|
224
|
+
| 🛡️ **安全专家** | 漏洞检测、OWASP | "审查这段认证代码的安全性" |
|
|
225
|
+
| ⚡ **性能专家** | 速度优化、内存 | "为什么我的应用这么慢?" |
|
|
226
|
+
| 🧪 **测试专家** | 单元测试、覆盖率 | "为这个函数添加测试" |
|
|
227
|
+
| 🚀 **DevOps专家** | CI/CD、Docker、K8s | "创建 GitHub Actions 工作流" |
|
|
228
|
+
| 📝 **代码审查员** | 最佳实践、代码质量 | "审查这个 PR" |
|
|
229
|
+
| 🏗️ **API架构师** | REST、GraphQL设计 | "设计用户管理 API" |
|
|
230
|
+
| 💾 **数据库专家** | 查询优化、索引 | "优化这个 SQL 查询" |
|
|
155
231
|
| 🎨 **前端架构师** | React、Vue、无障碍 | "重构这个组件" |
|
|
156
232
|
| ⚙️ **后端架构师** | 微服务、事件驱动 | "设计可扩展的后端" |
|
|
157
233
|
| 📚 **文档专家** | API文档、README | "为这个代码库写文档" |
|
|
158
|
-
| 🔄 **重构专家** |
|
|
234
|
+
| 🔄 **重构专家** | 整洁代码、SOLID | "应用设计模式重构" |
|
|
159
235
|
|
|
160
|
-
|
|
236
|
+
#### 📘 如何使用 AI 代理
|
|
161
237
|
|
|
162
|
-
|
|
238
|
+
**方法一:直接 @ 调用代理**
|
|
163
239
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
240
|
+
在 Claude Code 对话中,使用 `@代理名` 直接调用:
|
|
241
|
+
|
|
242
|
+
```bash
|
|
243
|
+
# 调用规划师代理进行任务分解
|
|
244
|
+
> @planner 我需要为应用添加用户认证功能
|
|
245
|
+
|
|
246
|
+
# 调用代码审查代理
|
|
247
|
+
> @ccjk-code-reviewer 请帮我审查 src/auth.ts 这个文件
|
|
248
|
+
|
|
249
|
+
# 调用安全专家
|
|
250
|
+
> @ccjk-security-expert 检查这个项目的安全漏洞
|
|
251
|
+
|
|
252
|
+
# 调用性能专家
|
|
253
|
+
> @ccjk-performance-expert 分析这个函数的性能问题
|
|
178
254
|
```
|
|
179
255
|
|
|
180
|
-
|
|
256
|
+
**方法二:通过斜杠命令自动触发**
|
|
181
257
|
|
|
182
|
-
|
|
258
|
+
某些命令会自动调用相关代理:
|
|
183
259
|
|
|
184
260
|
```bash
|
|
185
|
-
#
|
|
186
|
-
|
|
187
|
-
# 创建: ts-debug, ts-refactor, ts-test, ts-type-check, ts-migrate
|
|
261
|
+
# /feat 命令自动调用 planner 代理进行任务规划
|
|
262
|
+
> /feat 添加购物车功能
|
|
188
263
|
|
|
189
|
-
#
|
|
190
|
-
|
|
191
|
-
# 创建: py-debug, py-refactor, py-test, py-lint, py-type
|
|
264
|
+
# /init-project 命令调用 init-architect 代理
|
|
265
|
+
> /init-project
|
|
192
266
|
|
|
193
|
-
#
|
|
194
|
-
|
|
195
|
-
# 创建: meta-optimize, sitemap-generate, schema-markup, core-web-vitals
|
|
196
|
-
|
|
197
|
-
# DevOps自动化
|
|
198
|
-
ccjk skills create-batch --devops
|
|
199
|
-
# 创建: docker-setup, ci-pipeline, deploy-script, monitoring
|
|
267
|
+
# /workflow 命令启动六步开发流程
|
|
268
|
+
> /workflow
|
|
200
269
|
```
|
|
201
270
|
|
|
202
|
-
|
|
271
|
+
**方法三:代理协作(自动委派)**
|
|
203
272
|
|
|
204
|
-
|
|
273
|
+
代理之间可以自动协作,例如代码审查员发现安全问题时会自动委派给安全专家:
|
|
205
274
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
| **Kimi** | 国内服务 | ✅ |
|
|
214
|
-
| **GLM(智谱)** | 国内服务 | ✅ |
|
|
215
|
-
| **Ollama** | 本地部署 | ✅ |
|
|
216
|
-
| OpenRouter, Groq, Gemini... | 国际服务 | 部分免费 |
|
|
275
|
+
```yaml
|
|
276
|
+
# 代理定义中的委派规则
|
|
277
|
+
## DELEGATIONS
|
|
278
|
+
- Security issues → ccjk-security-expert
|
|
279
|
+
- Performance issues → ccjk-performance-expert
|
|
280
|
+
- Missing tests → ccjk-testing-specialist
|
|
281
|
+
```
|
|
217
282
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
283
|
+
#### 🎯 完整代理列表
|
|
284
|
+
|
|
285
|
+
| 代理名称 | 调用方式 | 专业领域 |
|
|
286
|
+
|----------|----------|----------|
|
|
287
|
+
| `planner` | `@planner` | 📋 任务规划和分解 |
|
|
288
|
+
| `ui-ux-designer` | `@ui-ux-designer` | 🎨 UI/UX 设计 |
|
|
289
|
+
| `init-architect` | `@init-architect` | 🏗️ 项目初始化架构 |
|
|
290
|
+
| `ccjk-code-reviewer` | `@ccjk-code-reviewer` | 🔍 代码审查 |
|
|
291
|
+
| `ccjk-security-expert` | `@ccjk-security-expert` | 🔒 安全审计 |
|
|
292
|
+
| `ccjk-performance-expert` | `@ccjk-performance-expert` | ⚡ 性能优化 |
|
|
293
|
+
| `ccjk-frontend-architect` | `@ccjk-frontend-architect` | 🖥️ 前端架构 |
|
|
294
|
+
| `ccjk-backend-architect` | `@ccjk-backend-architect` | ⚙️ 后端架构 |
|
|
295
|
+
| `ccjk-database-expert` | `@ccjk-database-expert` | 🗄️ 数据库设计 |
|
|
296
|
+
| `ccjk-devops-expert` | `@ccjk-devops-expert` | 🚀 DevOps/CI/CD |
|
|
297
|
+
| `ccjk-testing-specialist` | `@ccjk-testing-specialist` | 🧪 测试专家 |
|
|
298
|
+
| `ccjk-refactoring-expert` | `@ccjk-refactoring-expert` | ♻️ 代码重构 |
|
|
299
|
+
| `ccjk-documentation-expert` | `@ccjk-documentation-expert` | 📚 文档生成 |
|
|
300
|
+
| `ccjk-api-architect` | `@ccjk-api-architect` | 🔌 API 设计 |
|
|
301
|
+
| `ccjk-i18n-specialist` | `@ccjk-i18n-specialist` | 🌍 国际化 |
|
|
302
|
+
|
|
303
|
+
#### 💡 代理使用示例
|
|
221
304
|
|
|
222
|
-
|
|
223
|
-
|
|
305
|
+
```bash
|
|
306
|
+
# 示例 1:复杂功能规划
|
|
307
|
+
> @planner 我需要为电商应用添加以下功能:
|
|
308
|
+
1. 用户购物车
|
|
309
|
+
2. 订单管理
|
|
310
|
+
3. 支付集成
|
|
311
|
+
请帮我分解任务并制定实施计划
|
|
312
|
+
|
|
313
|
+
# 示例 2:代码审查
|
|
314
|
+
> @ccjk-code-reviewer 请审查 src/services/ 目录下的所有服务代码,
|
|
315
|
+
重点关注错误处理和代码复用
|
|
316
|
+
|
|
317
|
+
# 示例 3:安全审计
|
|
318
|
+
> @ccjk-security-expert 对这个 Node.js 后端项目进行全面安全审计,
|
|
319
|
+
特别关注 SQL 注入和 XSS 漏洞
|
|
320
|
+
|
|
321
|
+
# 示例 4:性能优化
|
|
322
|
+
> @ccjk-performance-expert 分析 src/utils/data-processor.ts 的性能,
|
|
323
|
+
这个函数处理大数据集时很慢
|
|
224
324
|
```
|
|
225
325
|
|
|
226
|
-
###
|
|
326
|
+
### 🪝 Hooks 钩子系统
|
|
327
|
+
|
|
328
|
+
Hooks 是 CCJK 的扩展机制,允许你在特定事件发生时自动执行自定义逻辑。
|
|
329
|
+
|
|
330
|
+
#### 🎯 Hook 类型
|
|
227
331
|
|
|
228
|
-
|
|
332
|
+
| 类型 | 触发时机 | 典型用途 |
|
|
333
|
+
|------|----------|----------|
|
|
334
|
+
| `pre-tool-use` | 工具执行**前** | 输入验证、限流、添加默认值 |
|
|
335
|
+
| `post-tool-use` | 工具执行**后** | 日志记录、缓存结果、资源清理 |
|
|
336
|
+
| `skill-activated` | 技能激活时 | 权限检查、环境初始化 |
|
|
337
|
+
| `skill-completed` | 技能完成时 | 清理资源、发送通知 |
|
|
338
|
+
| `workflow-started` | 工作流开始 | 环境设置、参数验证 |
|
|
339
|
+
| `workflow-completed` | 工作流结束 | 生成报告、清理临时文件 |
|
|
340
|
+
| `on-error` | 发生错误时 | 错误追踪、自动恢复 |
|
|
341
|
+
| `config-changed` | 配置变更时 | 重新加载、验证配置 |
|
|
342
|
+
|
|
343
|
+
#### 📝 创建自定义 Hook
|
|
344
|
+
|
|
345
|
+
在项目的 `.claude/hooks/` 目录下创建 TypeScript 文件:
|
|
229
346
|
|
|
230
347
|
```typescript
|
|
231
|
-
//
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
//
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
348
|
+
// .claude/hooks/my-hooks.ts
|
|
349
|
+
import { registry } from 'ccjk/hooks'
|
|
350
|
+
|
|
351
|
+
// 示例 1:文件修改前自动备份
|
|
352
|
+
registry.register({
|
|
353
|
+
id: 'auto-backup',
|
|
354
|
+
name: '自动备份',
|
|
355
|
+
type: 'pre-tool-use',
|
|
356
|
+
priority: 9, // 优先级 1-10,数字越大越先执行
|
|
357
|
+
condition: {
|
|
358
|
+
tools: ['Edit', 'Write'] // 只在编辑/写入文件时触发
|
|
359
|
+
},
|
|
360
|
+
action: {
|
|
361
|
+
execute: async (context) => {
|
|
362
|
+
console.log(`📦 备份文件: ${context.path}`)
|
|
363
|
+
await backupFile(context.path)
|
|
364
|
+
return {
|
|
365
|
+
success: true,
|
|
366
|
+
status: 'success',
|
|
367
|
+
durationMs: 0,
|
|
368
|
+
continueChain: true // 继续执行后续 hooks
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
timeout: 5000 // 5秒超时
|
|
372
|
+
}
|
|
373
|
+
})
|
|
374
|
+
|
|
375
|
+
// 示例 2:操作完成后记录日志
|
|
376
|
+
registry.register({
|
|
377
|
+
id: 'audit-log',
|
|
378
|
+
name: '审计日志',
|
|
379
|
+
type: 'post-tool-use',
|
|
380
|
+
priority: 1,
|
|
381
|
+
action: {
|
|
382
|
+
execute: async (context) => {
|
|
383
|
+
await logToFile({
|
|
384
|
+
timestamp: new Date().toISOString(),
|
|
385
|
+
tool: context.tool,
|
|
386
|
+
path: context.path,
|
|
387
|
+
success: !context.error
|
|
388
|
+
})
|
|
389
|
+
return {
|
|
390
|
+
success: true,
|
|
391
|
+
status: 'success',
|
|
392
|
+
durationMs: 0,
|
|
393
|
+
continueChain: true
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
})
|
|
398
|
+
|
|
399
|
+
// 示例 3:性能监控
|
|
400
|
+
registry.register({
|
|
401
|
+
id: 'perf-monitor',
|
|
402
|
+
name: '性能监控',
|
|
403
|
+
type: 'post-tool-use',
|
|
404
|
+
action: {
|
|
405
|
+
execute: async (context) => {
|
|
406
|
+
const duration = context.result?.durationMs || 0
|
|
407
|
+
if (duration > 5000) {
|
|
408
|
+
console.warn(`⚠️ 操作耗时过长: ${context.tool} - ${duration}ms`)
|
|
409
|
+
}
|
|
410
|
+
return {
|
|
411
|
+
success: true,
|
|
412
|
+
status: 'success',
|
|
413
|
+
durationMs: 0,
|
|
414
|
+
continueChain: true
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
})
|
|
249
419
|
```
|
|
250
420
|
|
|
251
|
-
|
|
421
|
+
#### 🔧 实用 Hook 模板
|
|
252
422
|
|
|
253
|
-
|
|
423
|
+
**限流 Hook(防止 API 过载)**
|
|
254
424
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
425
|
+
```typescript
|
|
426
|
+
const requests = new Map<string, number[]>()
|
|
427
|
+
const MAX_PER_MINUTE = 60
|
|
428
|
+
|
|
429
|
+
registry.register({
|
|
430
|
+
id: 'rate-limit',
|
|
431
|
+
name: '请求限流',
|
|
432
|
+
type: 'pre-tool-use',
|
|
433
|
+
priority: 10, // 最高优先级
|
|
434
|
+
action: {
|
|
435
|
+
execute: async (context) => {
|
|
436
|
+
const tool = context.tool || 'unknown'
|
|
437
|
+
const now = Date.now()
|
|
438
|
+
let reqs = requests.get(tool) || []
|
|
439
|
+
reqs = reqs.filter(t => t > now - 60000) // 保留最近1分钟
|
|
440
|
+
|
|
441
|
+
if (reqs.length >= MAX_PER_MINUTE) {
|
|
442
|
+
return {
|
|
443
|
+
success: false,
|
|
444
|
+
status: 'failed',
|
|
445
|
+
error: `限流:${tool} 每分钟最多 ${MAX_PER_MINUTE} 次`,
|
|
446
|
+
continueChain: false // 阻止执行
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
reqs.push(now)
|
|
451
|
+
requests.set(tool, reqs)
|
|
452
|
+
return { success: true, status: 'success', durationMs: 0, continueChain: true }
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
})
|
|
456
|
+
```
|
|
263
457
|
|
|
264
|
-
|
|
458
|
+
**缓存 Hook(避免重复计算)**
|
|
265
459
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
460
|
+
```typescript
|
|
461
|
+
const cache = new Map<string, any>()
|
|
462
|
+
|
|
463
|
+
// 执行前检查缓存
|
|
464
|
+
registry.register({
|
|
465
|
+
id: 'cache-check',
|
|
466
|
+
name: '缓存检查',
|
|
467
|
+
type: 'pre-tool-use',
|
|
468
|
+
priority: 8,
|
|
469
|
+
action: {
|
|
470
|
+
execute: async (context) => {
|
|
471
|
+
const key = `${context.tool}:${JSON.stringify(context.args)}`
|
|
472
|
+
const cached = cache.get(key)
|
|
473
|
+
if (cached) {
|
|
474
|
+
return {
|
|
475
|
+
success: true,
|
|
476
|
+
status: 'success',
|
|
477
|
+
output: cached,
|
|
478
|
+
continueChain: false // 跳过实际执行,直接返回缓存
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
return { success: true, status: 'success', durationMs: 0, continueChain: true }
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
})
|
|
485
|
+
|
|
486
|
+
// 执行后存入缓存
|
|
487
|
+
registry.register({
|
|
488
|
+
id: 'cache-store',
|
|
489
|
+
name: '缓存存储',
|
|
490
|
+
type: 'post-tool-use',
|
|
491
|
+
action: {
|
|
492
|
+
execute: async (context) => {
|
|
493
|
+
if (context.result && !context.error) {
|
|
494
|
+
const key = `${context.tool}:${JSON.stringify(context.args)}`
|
|
495
|
+
cache.set(key, context.result)
|
|
496
|
+
}
|
|
497
|
+
return { success: true, status: 'success', durationMs: 0, continueChain: true }
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
})
|
|
501
|
+
```
|
|
273
502
|
|
|
274
|
-
|
|
503
|
+
**错误通知 Hook**
|
|
275
504
|
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
505
|
+
```typescript
|
|
506
|
+
registry.register({
|
|
507
|
+
id: 'error-notify',
|
|
508
|
+
name: '错误通知',
|
|
509
|
+
type: 'on-error',
|
|
510
|
+
action: {
|
|
511
|
+
execute: async (context) => {
|
|
512
|
+
// 发送错误通知(如 Slack、邮件等)
|
|
513
|
+
await sendNotification({
|
|
514
|
+
title: '⚠️ CCJK 错误',
|
|
515
|
+
message: context.error?.message,
|
|
516
|
+
stack: context.error?.stack
|
|
517
|
+
})
|
|
518
|
+
return { success: true, status: 'success', durationMs: 0, continueChain: true }
|
|
519
|
+
},
|
|
520
|
+
continueOnError: true // 即使通知失败也不影响主流程
|
|
521
|
+
}
|
|
522
|
+
})
|
|
523
|
+
```
|
|
281
524
|
|
|
282
|
-
|
|
525
|
+
#### 🎚️ 优先级指南
|
|
283
526
|
|
|
284
|
-
|
|
|
285
|
-
|
|
286
|
-
|
|
|
287
|
-
|
|
|
288
|
-
|
|
|
289
|
-
|
|
|
527
|
+
| 优先级 | 用途 | 示例 |
|
|
528
|
+
|--------|------|------|
|
|
529
|
+
| 10 | 关键验证 | 安全检查、权限验证 |
|
|
530
|
+
| 9 | 限流控制 | 请求频率限制 |
|
|
531
|
+
| 8 | 缓存操作 | 缓存检查/存储 |
|
|
532
|
+
| 7 | 业务验证 | 输入格式验证 |
|
|
533
|
+
| 6 | 数据转换 | 格式转换、标准化 |
|
|
534
|
+
| 5 | 默认值 | 添加默认参数 |
|
|
535
|
+
| 4 | 监控 | 性能追踪 |
|
|
536
|
+
| 3 | 缓存管理 | 缓存清理 |
|
|
537
|
+
| 2 | 日志 | 调试输出 |
|
|
538
|
+
| 1 | 清理 | 资源释放 |
|
|
290
539
|
|
|
291
|
-
|
|
540
|
+
#### 📊 Hook 管理 API
|
|
292
541
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
| `ccjk config-scan` | 扫描所有配置文件 |
|
|
296
|
-
| `ccjk permissions` | 管理权限设置 |
|
|
297
|
-
| `ccjk versions` | 查看版本信息 |
|
|
298
|
-
| `ccjk uninstall` | 完全卸载 |
|
|
542
|
+
```typescript
|
|
543
|
+
import { initializeHooksSystem } from 'ccjk/hooks'
|
|
299
544
|
|
|
300
|
-
|
|
545
|
+
const { registry, executor } = initializeHooksSystem()
|
|
301
546
|
|
|
302
|
-
|
|
547
|
+
// 注册 Hook
|
|
548
|
+
registry.register(myHook)
|
|
303
549
|
|
|
304
|
-
|
|
550
|
+
// 注销 Hook
|
|
551
|
+
registry.unregister('hook-id')
|
|
305
552
|
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
ccjk init --lang en
|
|
553
|
+
// 启用/禁用 Hook
|
|
554
|
+
registry.setEnabled('hook-id', false)
|
|
309
555
|
|
|
310
|
-
|
|
311
|
-
|
|
556
|
+
// 获取所有 Hooks
|
|
557
|
+
const hooks = registry.getAllHooks()
|
|
312
558
|
|
|
313
|
-
|
|
314
|
-
|
|
559
|
+
// 按类型获取
|
|
560
|
+
const preHooks = registry.getHooksForType('pre-tool-use')
|
|
315
561
|
|
|
316
|
-
|
|
317
|
-
|
|
562
|
+
// 获取统计信息
|
|
563
|
+
const stats = registry.getStatistics()
|
|
564
|
+
// { totalHooks: 10, enabledHooks: 8, successRate: 96.67, ... }
|
|
318
565
|
|
|
319
|
-
|
|
320
|
-
|
|
566
|
+
// 手动执行 Hooks
|
|
567
|
+
await executor.executePreToolUse('grep', '/path', { pattern: 'TODO' })
|
|
568
|
+
await executor.executePostToolUse('grep', '/path', result, error)
|
|
321
569
|
```
|
|
322
570
|
|
|
323
|
-
|
|
571
|
+
### 🔍 审查引擎 - AI代码审计器
|
|
324
572
|
|
|
325
|
-
|
|
573
|
+
全自动AI代码审计器,无需预定义规则:
|
|
326
574
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
575
|
+
```
|
|
576
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
577
|
+
│ 🧠 审查引擎 (ShenCha) │
|
|
578
|
+
├─────────────────────────────────────────────────────────────┤
|
|
579
|
+
│ │
|
|
580
|
+
│ 1️⃣ 扫描 → AI智能发现问题(无需预定义规则) │
|
|
581
|
+
│ 2️⃣ 分析 → 深度理解上下文和影响范围 │
|
|
582
|
+
│ 3️⃣ 修复 → 自动生成并应用修复方案 │
|
|
583
|
+
│ 4️⃣ 验证 → 确认修复正确工作 │
|
|
584
|
+
│ │
|
|
585
|
+
│ ✅ 72小时周期持续运行 │
|
|
586
|
+
│ ✅ 生成全面的审计报告 │
|
|
587
|
+
│ │
|
|
588
|
+
└─────────────────────────────────────────────────────────────┘
|
|
589
|
+
```
|
|
337
590
|
|
|
338
|
-
|
|
591
|
+
### 🎤 访谈驱动开发
|
|
339
592
|
|
|
340
|
-
|
|
593
|
+
> **"先访谈,再规格,最后编码。"** - 避免做错方向
|
|
341
594
|
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
| **Termux** | ✅ 完全支持 | Android终端 |
|
|
595
|
+
```bash
|
|
596
|
+
ccjk interview # 智能模式选择
|
|
597
|
+
ccjk interview --quick # 10个核心问题(快速)
|
|
598
|
+
ccjk interview --deep # 40+全面问题(深度)
|
|
599
|
+
```
|
|
348
600
|
|
|
349
|
-
|
|
601
|
+
### 🌐 13+ API 提供商
|
|
350
602
|
|
|
351
|
-
|
|
603
|
+
一键连接任意AI提供商:
|
|
352
604
|
|
|
353
|
-
|
|
354
|
-
|
|
605
|
+
| 提供商 | 类型 | 免费额度 |
|
|
606
|
+
|--------|------|:--------:|
|
|
607
|
+
| **Anthropic** | 官方 | - |
|
|
608
|
+
| **302.AI** | 国内服务 | ✅ |
|
|
609
|
+
| **DeepSeek** | 高性价比 | ✅ |
|
|
610
|
+
| **SiliconFlow** | 国内服务 | ✅ |
|
|
611
|
+
| **通义千问** | 阿里云 | ✅ |
|
|
612
|
+
| **Kimi** | 月之暗面 | ✅ |
|
|
613
|
+
| **智谱GLM** | 清华系 | ✅ |
|
|
614
|
+
| **Ollama** | 本地部署 | ✅ |
|
|
615
|
+
| OpenRouter, Groq, Gemini... | 国际服务 | 部分免费 |
|
|
355
616
|
|
|
356
|
-
|
|
357
|
-
- **302.AI** - 新用户有免费额度
|
|
358
|
-
- **DeepSeek** - 价格非常便宜
|
|
359
|
-
- **Groq** - 有免费额度
|
|
360
|
-
- **Ollama** - 本地运行,完全免费
|
|
617
|
+
---
|
|
361
618
|
|
|
362
|
-
|
|
619
|
+
## 📊 为什么 CCJK 是第一名
|
|
620
|
+
|
|
621
|
+
| 功能 | CCJK 2.0 | Cursor | Copilot | 其他工具 |
|
|
622
|
+
|------|:--------:|:------:|:-------:|:--------:|
|
|
623
|
+
| **智能技能** | ✅ 热重载 | ❌ | ❌ | ❌ |
|
|
624
|
+
| **AI代理** | **11+** | 2 | 1 | 0-2 |
|
|
625
|
+
| **子代理系统** | ✅ | ❌ | ❌ | ❌ |
|
|
626
|
+
| **权限控制** | ✅ | ❌ | ❌ | ❌ |
|
|
627
|
+
| **生命周期钩子** | ✅ | ❌ | ❌ | ❌ |
|
|
628
|
+
| **多提供商** | **13+** | 1 | 1 | 1-3 |
|
|
629
|
+
| **上下文感知** | ✅ | 部分 | ❌ | ❌ |
|
|
630
|
+
| **零配置** | ✅ | ❌ | ❌ | ❌ |
|
|
631
|
+
| **开源** | ✅ | ❌ | ❌ | 部分 |
|
|
632
|
+
| **免费** | ✅ | ❌ | ❌ | 部分 |
|
|
363
633
|
|
|
364
|
-
|
|
365
|
-
<summary><b>CCJK免费吗?</b></summary>
|
|
634
|
+
---
|
|
366
635
|
|
|
367
|
-
|
|
636
|
+
## 📖 命令速查表
|
|
368
637
|
|
|
369
|
-
|
|
638
|
+
### 基础命令
|
|
370
639
|
|
|
371
|
-
|
|
372
|
-
|
|
640
|
+
```bash
|
|
641
|
+
npx ccjk # 交互式设置菜单
|
|
642
|
+
ccjk setup # 引导式入门向导
|
|
643
|
+
ccjk doctor # 环境健康检查
|
|
644
|
+
ccjk upgrade # 更新所有组件
|
|
645
|
+
```
|
|
373
646
|
|
|
374
|
-
|
|
647
|
+
### 技能管理
|
|
375
648
|
|
|
376
|
-
|
|
649
|
+
```bash
|
|
650
|
+
ccjk skills list # 列出所有技能
|
|
651
|
+
ccjk skills create my-skill # 创建新技能
|
|
652
|
+
ccjk skills enable <skill> # 启用技能
|
|
653
|
+
ccjk skills create-batch --lang ts # 创建 TypeScript 技能包
|
|
654
|
+
```
|
|
377
655
|
|
|
378
|
-
|
|
379
|
-
<summary><b>可以在公司使用吗?</b></summary>
|
|
656
|
+
### API 配置
|
|
380
657
|
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
658
|
+
```bash
|
|
659
|
+
ccjk api wizard # 交互式 API 设置向导
|
|
660
|
+
ccjk api list # 显示所有提供商
|
|
661
|
+
ccjk api test # 测试 API 连接
|
|
662
|
+
```
|
|
386
663
|
|
|
387
|
-
|
|
664
|
+
---
|
|
388
665
|
|
|
389
|
-
|
|
390
|
-
<summary><b>遇到问题怎么办?</b></summary>
|
|
666
|
+
## 🌍 多语言支持
|
|
391
667
|
|
|
392
|
-
运行健康检查:
|
|
393
668
|
```bash
|
|
394
|
-
ccjk
|
|
669
|
+
ccjk init --lang en # English
|
|
670
|
+
ccjk init --lang zh-CN # 简体中文
|
|
671
|
+
ccjk init --lang ja # 日本語
|
|
672
|
+
ccjk init --lang ko # 한국어
|
|
395
673
|
```
|
|
396
|
-
这会诊断常见问题并给出解决建议。
|
|
397
674
|
|
|
398
|
-
|
|
675
|
+
---
|
|
676
|
+
|
|
677
|
+
## 💻 平台支持
|
|
678
|
+
|
|
679
|
+
| 平台 | 状态 |
|
|
680
|
+
|------|:----:|
|
|
681
|
+
| **macOS** | ✅ Intel & Apple Silicon |
|
|
682
|
+
| **Linux** | ✅ 所有主流发行版 |
|
|
683
|
+
| **Windows** | ✅ Win10/11, WSL2 |
|
|
684
|
+
| **Termux** | ✅ Android 终端 |
|
|
399
685
|
|
|
400
686
|
---
|
|
401
687
|
|
|
@@ -403,79 +689,51 @@ ccjk doctor
|
|
|
403
689
|
|
|
404
690
|
<div align="center">
|
|
405
691
|
|
|
406
|
-
[](https://github.com/
|
|
407
|
-
[](https://t.me/ccjk_community)
|
|
692
|
+
[](https://github.com/anthropics/claude-code/discussions)
|
|
408
693
|
[](https://discord.gg/ccjk)
|
|
409
|
-
[](https://github.com/
|
|
694
|
+
[](https://github.com/anthropics/claude-code)
|
|
410
695
|
|
|
411
696
|
</div>
|
|
412
697
|
|
|
413
|
-
- 🐛 **Bug报告**: [GitHub Issues](https://github.com/
|
|
414
|
-
- 💡 **功能建议**: [GitHub Discussions](https://github.com/
|
|
415
|
-
- 📖 **文档**: [docs.ccjk.dev](https://docs.ccjk.dev)
|
|
698
|
+
- 🐛 **Bug报告**: [GitHub Issues](https://github.com/anthropics/claude-code/issues)
|
|
699
|
+
- 💡 **功能建议**: [GitHub Discussions](https://github.com/anthropics/claude-code/discussions)
|
|
416
700
|
|
|
417
701
|
---
|
|
418
702
|
|
|
419
703
|
## 🤝 参与贡献
|
|
420
704
|
|
|
421
|
-
欢迎贡献代码!以下是开始步骤:
|
|
422
|
-
|
|
423
705
|
```bash
|
|
424
|
-
|
|
425
|
-
git clone https://github.com/miounet11/ccjk.git
|
|
706
|
+
git clone https://github.com/anthropics/claude-code.git
|
|
426
707
|
cd ccjk
|
|
427
|
-
|
|
428
|
-
# 安装依赖
|
|
429
708
|
pnpm install
|
|
430
|
-
|
|
431
|
-
# 开发模式运行
|
|
432
709
|
pnpm dev
|
|
433
|
-
|
|
434
|
-
# 运行测试
|
|
435
|
-
pnpm test
|
|
436
|
-
|
|
437
|
-
# 构建
|
|
438
|
-
pnpm build
|
|
439
710
|
```
|
|
440
711
|
|
|
441
|
-
详情请查看 [
|
|
442
|
-
|
|
443
|
-
---
|
|
444
|
-
|
|
445
|
-
## 🙏 致谢
|
|
446
|
-
|
|
447
|
-
CCJK站在巨人的肩膀上:
|
|
448
|
-
|
|
449
|
-
- [Claude Code](https://claude.ai/code) - 强大的AI编程基础
|
|
450
|
-
- [ZCF](https://github.com/UfoMiao/zcf) - 最初的灵感来源
|
|
451
|
-
- [Claude Code Router](https://github.com/musistudio/claude-code-router) - API路由
|
|
452
|
-
- [BMad Method](https://github.com/bmad-code-org/BMAD-METHOD) - 工作流模式
|
|
712
|
+
详情请查看 [CONTRIBUTING.md](CONTRIBUTING.md)。
|
|
453
713
|
|
|
454
714
|
---
|
|
455
715
|
|
|
456
716
|
## 📄 许可证
|
|
457
717
|
|
|
458
|
-
MIT © [CCJK Team](https://github.com/
|
|
718
|
+
MIT © [CCJK Team](https://github.com/anthropics/claude-code)
|
|
459
719
|
|
|
460
720
|
---
|
|
461
721
|
|
|
462
722
|
<div align="center">
|
|
463
723
|
|
|
464
|
-
## ⭐
|
|
465
|
-
|
|
466
|
-
如果CCJK帮助了你,请给我们一颗星!这能帮助更多人发现这个项目。
|
|
724
|
+
## ⭐ 在 GitHub 上给我们 Star
|
|
467
725
|
|
|
468
|
-
|
|
726
|
+
如果 CCJK 帮助你更好地编程,请给我们一个 Star!
|
|
469
727
|
|
|
470
728
|
<br/>
|
|
471
729
|
|
|
472
|
-
|
|
730
|
+
**由开发者为开发者用 ❤️ 打造**
|
|
473
731
|
|
|
474
732
|
<br/>
|
|
475
733
|
|
|
476
|
-
### 🔍
|
|
734
|
+
### 🔍 SEO 关键词
|
|
477
735
|
|
|
478
|
-
`claude-code` `AI编程助手`
|
|
736
|
+
`claude-code` `AI编程助手` `claude-code扩展` `AI开发工具` `代码自动化` `智能技能` `热重载` `子代理` `安全审计` `性能优化` `TypeScript` `Python` `JavaScript` `React` `Vue` `Node.js` `Docker` `Kubernetes` `GitHub Actions` `CI/CD` `代码质量` `最佳实践` `整洁代码` `copilot替代品` `cursor替代品` `windsurf替代品` `免费AI编程` `开源AI` `代码审查AI` `AI结对编程` `智能编码` `开发者生产力` `编程助手` `2025年AI工具` `302AI` `DeepSeek` `通义千问` `智谱AI` `Kimi` `硅基流动`
|
|
479
737
|
|
|
480
738
|
</div>
|
|
481
739
|
|
|
@@ -484,7 +742,7 @@ MIT © [CCJK Team](https://github.com/miounet11/ccjk)
|
|
|
484
742
|
[npm-version-href]: https://npmjs.com/package/ccjk
|
|
485
743
|
[npm-downloads-src]: https://img.shields.io/npm/dm/ccjk?style=flat&colorA=18181B&colorB=28CF8D
|
|
486
744
|
[npm-downloads-href]: https://npmjs.com/package/ccjk
|
|
487
|
-
[license-src]: https://img.shields.io/github/license/
|
|
488
|
-
[license-href]: https://github.com/
|
|
489
|
-
[stars-src]: https://img.shields.io/github/stars/
|
|
490
|
-
[stars-href]: https://github.com/
|
|
745
|
+
[license-src]: https://img.shields.io/github/license/anthropics/claude-code?style=flat&colorA=18181B&colorB=28CF8D
|
|
746
|
+
[license-href]: https://github.com/anthropics/claude-code/blob/main/LICENSE
|
|
747
|
+
[stars-src]: https://img.shields.io/github/stars/anthropics/claude-code?style=flat&colorA=18181B&colorB=28CF8D
|
|
748
|
+
[stars-href]: https://github.com/anthropics/claude-code/stargazers
|