ccg-workflow 1.4.0 → 1.4.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.md +500 -483
- package/dist/cli.mjs +67 -2
- package/dist/index.mjs +1 -1
- package/dist/shared/{ccg-workflow.DaI-Qubz.mjs → ccg-workflow.DrRf2eRd.mjs} +152 -42
- package/package.json +1 -1
- package/templates/commands/analyze.md +5 -5
- package/templates/commands/backend.md +5 -5
- package/templates/commands/bugfix.md +4 -4
- package/templates/commands/code.md +6 -6
- package/templates/commands/debug.md +2 -2
- package/templates/commands/dev.md +7 -7
- package/templates/commands/feat.md +2 -2
- package/templates/commands/frontend.md +5 -5
- package/templates/commands/optimize.md +2 -2
- package/templates/commands/review.md +5 -5
- package/templates/commands/test.md +2 -2
- package/templates/commands/think.md +2 -2
- package/templates/config/shared-config.md +2 -2
|
@@ -31,7 +31,7 @@ description: 多模型性能优化(Codex 后端优化 + Gemini 前端优化)
|
|
|
31
31
|
```bash
|
|
32
32
|
# Codex 后端性能分析
|
|
33
33
|
codeagent-wrapper --backend codex - $PROJECT_DIR <<'EOF'
|
|
34
|
-
ROLE_FILE: ~/.claude/prompts/
|
|
34
|
+
ROLE_FILE: ~/.claude/.ccg/prompts/codex/optimizer.md
|
|
35
35
|
|
|
36
36
|
<TASK>
|
|
37
37
|
性能优化: {{优化目标}}
|
|
@@ -45,7 +45,7 @@ EOF
|
|
|
45
45
|
```bash
|
|
46
46
|
# Gemini 前端性能分析
|
|
47
47
|
codeagent-wrapper --backend gemini - $PROJECT_DIR <<'EOF'
|
|
48
|
-
ROLE_FILE: ~/.claude/prompts/
|
|
48
|
+
ROLE_FILE: ~/.claude/.ccg/prompts/gemini/optimizer.md
|
|
49
49
|
|
|
50
50
|
<TASK>
|
|
51
51
|
性能优化: {{优化目标}}
|
|
@@ -13,7 +13,7 @@ description: 多模型代码审查(根据配置并行),无参数时自动
|
|
|
13
13
|
- Configured models review simultaneously for comprehensive feedback.
|
|
14
14
|
|
|
15
15
|
## 配置
|
|
16
|
-
**首先读取 `~/.ccg/config.toml` 获取审查模型配置**:
|
|
16
|
+
**首先读取 `~/.claude/.ccg/config.toml` 获取审查模型配置**:
|
|
17
17
|
```toml
|
|
18
18
|
[routing.review]
|
|
19
19
|
models = ["codex", "gemini"] # 用户配置的审查模型列表
|
|
@@ -34,7 +34,7 @@ You are the **Code Review Coordinator** orchestrating multi-model review. You di
|
|
|
34
34
|
|
|
35
35
|
### Step 1: 读取配置 + 获取待审查代码
|
|
36
36
|
|
|
37
|
-
1. **读取 `~/.ccg/config.toml`** 获取 `routing.review.models`
|
|
37
|
+
1. **读取 `~/.claude/.ccg/config.toml`** 获取 `routing.review.models`
|
|
38
38
|
2. 如果配置不存在,默认使用 `["codex", "gemini"]`
|
|
39
39
|
|
|
40
40
|
**If no arguments provided**, run git commands to get current changes:
|
|
@@ -59,7 +59,7 @@ Then call `mcp__ace-tool__search_context` to get related context:
|
|
|
59
59
|
```bash
|
|
60
60
|
# Codex 代码审查示例
|
|
61
61
|
codeagent-wrapper --backend codex - $PROJECT_DIR <<'EOF'
|
|
62
|
-
ROLE_FILE: ~/.claude/prompts/
|
|
62
|
+
ROLE_FILE: ~/.claude/.ccg/prompts/codex/reviewer.md
|
|
63
63
|
|
|
64
64
|
<TASK>
|
|
65
65
|
审查代码: {{待审查的代码变更}}
|
|
@@ -73,7 +73,7 @@ EOF
|
|
|
73
73
|
```bash
|
|
74
74
|
# Gemini 代码审查示例
|
|
75
75
|
codeagent-wrapper --backend gemini - $PROJECT_DIR <<'EOF'
|
|
76
|
-
ROLE_FILE: ~/.claude/prompts/
|
|
76
|
+
ROLE_FILE: ~/.claude/.ccg/prompts/gemini/reviewer.md
|
|
77
77
|
|
|
78
78
|
<TASK>
|
|
79
79
|
审查代码: {{待审查的代码变更}}
|
|
@@ -107,7 +107,7 @@ Provide unified review report to user with recommendations.
|
|
|
107
107
|
7. **Recommended Actions** – prioritized fix list
|
|
108
108
|
|
|
109
109
|
## 注意事项
|
|
110
|
-
- **首先读取 `~/.ccg/config.toml` 获取审查模型配置**
|
|
110
|
+
- **首先读取 `~/.claude/.ccg/config.toml` 获取审查模型配置**
|
|
111
111
|
- **No arguments** = auto-review git changes (`git diff HEAD`)
|
|
112
112
|
- **With arguments** = review specified content
|
|
113
113
|
- **Use `run_in_background: true` for parallel execution** to avoid blocking
|
|
@@ -35,7 +35,7 @@ description: 多模型测试生成(Codex 后端测试 + Gemini 前端测试)
|
|
|
35
35
|
```bash
|
|
36
36
|
# Codex 后端测试生成
|
|
37
37
|
codeagent-wrapper --backend codex - $PROJECT_DIR <<'EOF'
|
|
38
|
-
ROLE_FILE: ~/.claude/prompts/
|
|
38
|
+
ROLE_FILE: ~/.claude/.ccg/prompts/codex/tester.md
|
|
39
39
|
|
|
40
40
|
<TASK>
|
|
41
41
|
生成测试: {{需要测试的代码}}
|
|
@@ -49,7 +49,7 @@ EOF
|
|
|
49
49
|
```bash
|
|
50
50
|
# Gemini 前端测试生成
|
|
51
51
|
codeagent-wrapper --backend gemini - $PROJECT_DIR <<'EOF'
|
|
52
|
-
ROLE_FILE: ~/.claude/prompts/
|
|
52
|
+
ROLE_FILE: ~/.claude/.ccg/prompts/gemini/tester.md
|
|
53
53
|
|
|
54
54
|
<TASK>
|
|
55
55
|
生成测试: {{需要测试的代码}}
|
|
@@ -29,7 +29,7 @@ description: UltraThink 深度分析(双模型并行分析 + 综合见解)
|
|
|
29
29
|
```bash
|
|
30
30
|
# Codex 后端/系统视角分析
|
|
31
31
|
codeagent-wrapper --backend codex - $PROJECT_DIR <<'EOF'
|
|
32
|
-
ROLE_FILE: ~/.claude/prompts/
|
|
32
|
+
ROLE_FILE: ~/.claude/.ccg/prompts/codex/analyzer.md
|
|
33
33
|
|
|
34
34
|
<TASK>
|
|
35
35
|
深度分析: {{问题或场景}}
|
|
@@ -43,7 +43,7 @@ EOF
|
|
|
43
43
|
```bash
|
|
44
44
|
# Gemini 前端/用户视角分析
|
|
45
45
|
codeagent-wrapper --backend gemini - $PROJECT_DIR <<'EOF'
|
|
46
|
-
ROLE_FILE: ~/.claude/prompts/
|
|
46
|
+
ROLE_FILE: ~/.claude/.ccg/prompts/gemini/analyzer.md
|
|
47
47
|
|
|
48
48
|
<TASK>
|
|
49
49
|
深度分析: {{问题或场景}}
|
|
@@ -3,7 +3,7 @@ description: CCG 多模型协作系统 - 共享配置和调用规范
|
|
|
3
3
|
---
|
|
4
4
|
|
|
5
5
|
## 配置文件
|
|
6
|
-
路径: `~/.ccg/config.toml`
|
|
6
|
+
路径: `~/.claude/.ccg/config.toml`
|
|
7
7
|
|
|
8
8
|
```toml
|
|
9
9
|
[routing]
|
|
@@ -39,7 +39,7 @@ strategy = "parallel"
|
|
|
39
39
|
### 基础模式
|
|
40
40
|
```bash
|
|
41
41
|
codeagent-wrapper --backend <MODEL> - $PROJECT_DIR <<'EOF'
|
|
42
|
-
ROLE_FILE: ~/.claude/prompts
|
|
42
|
+
ROLE_FILE: ~/.claude/.ccg/prompts/<model>/<role>.md
|
|
43
43
|
|
|
44
44
|
<TASK>
|
|
45
45
|
{{任务描述}}
|