ccg-workflow 2.0.0 → 2.1.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.
- package/dist/cli.mjs +2 -2
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +2 -2
- package/dist/shared/{ccg-workflow.iK6lgCG3.mjs → ccg-workflow.CP2pPVul.mjs} +213 -12
- package/package.json +1 -1
- package/templates/commands/analyze.md +6 -9
- package/templates/commands/backend.md +11 -11
- package/templates/commands/codex-exec.md +13 -16
- package/templates/commands/debug.md +9 -9
- package/templates/commands/execute.md +6 -9
- package/templates/commands/feat.md +2 -5
- package/templates/commands/frontend.md +11 -11
- package/templates/commands/optimize.md +6 -9
- package/templates/commands/plan.md +5 -8
- package/templates/commands/review.md +3 -6
- package/templates/commands/spec-impl.md +7 -9
- package/templates/commands/spec-init.md +3 -3
- package/templates/commands/spec-plan.md +6 -6
- package/templates/commands/spec-research.md +6 -6
- package/templates/commands/spec-review.md +6 -6
- package/templates/commands/team-plan.md +6 -6
- package/templates/commands/team-research.md +6 -6
- package/templates/commands/team-review.md +6 -6
- package/templates/commands/test.md +11 -14
- package/templates/commands/workflow.md +6 -9
|
@@ -22,23 +22,23 @@ description: 'Agent Teams 审查 - 双模型交叉审查并行实施的产出,
|
|
|
22
22
|
- **CRITICAL**: 必须在一条消息中同时发起两个 Bash 调用。
|
|
23
23
|
- **工作目录**:`{{WORKDIR}}` **必须通过 Bash 执行 `pwd`(Unix)或 `cd`(Windows CMD)获取当前工作目录的绝对路径**,禁止从 `$HOME` 或环境变量推断。
|
|
24
24
|
|
|
25
|
-
**FIRST Bash call (
|
|
25
|
+
**FIRST Bash call ({{BACKEND_PRIMARY}})**:
|
|
26
26
|
```
|
|
27
27
|
Bash({
|
|
28
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend
|
|
28
|
+
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend {{BACKEND_PRIMARY}} {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'\nROLE_FILE: ~/.claude/.ccg/prompts/codex/reviewer.md\n<TASK>\n审查以下变更:\n<git diff 输出或变更文件列表>\n</TASK>\nOUTPUT (JSON):\n{\n \"findings\": [\n {\n \"severity\": \"Critical|Warning|Info\",\n \"dimension\": \"logic|security|performance|error_handling\",\n \"file\": \"path/to/file\",\n \"line\": 42,\n \"description\": \"问题描述\",\n \"fix_suggestion\": \"修复建议\"\n }\n ],\n \"passed_checks\": [\"已验证的检查项\"],\n \"summary\": \"总体评估\"\n}\nEOF",
|
|
29
29
|
run_in_background: true,
|
|
30
30
|
timeout: 3600000,
|
|
31
|
-
description: "
|
|
31
|
+
description: "{{BACKEND_PRIMARY}} 后端审查"
|
|
32
32
|
})
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
**SECOND Bash call (
|
|
35
|
+
**SECOND Bash call ({{FRONTEND_PRIMARY}}) - IN THE SAME MESSAGE**:
|
|
36
36
|
```
|
|
37
37
|
Bash({
|
|
38
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend
|
|
38
|
+
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend {{FRONTEND_PRIMARY}} {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'\nROLE_FILE: ~/.claude/.ccg/prompts/gemini/reviewer.md\n<TASK>\n审查以下变更:\n<git diff 输出或变更文件列表>\n</TASK>\nOUTPUT (JSON):\n{\n \"findings\": [\n {\n \"severity\": \"Critical|Warning|Info\",\n \"dimension\": \"patterns|maintainability|accessibility|ux|frontend_security\",\n \"file\": \"path/to/file\",\n \"line\": 42,\n \"description\": \"问题描述\",\n \"fix_suggestion\": \"修复建议\"\n }\n ],\n \"passed_checks\": [\"已验证的检查项\"],\n \"summary\": \"总体评估\"\n}\nEOF",
|
|
39
39
|
run_in_background: true,
|
|
40
40
|
timeout: 3600000,
|
|
41
|
-
description: "
|
|
41
|
+
description: "{{FRONTEND_PRIMARY}} 前端审查"
|
|
42
42
|
})
|
|
43
43
|
```
|
|
44
44
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: '多模型测试生成:智能路由
|
|
2
|
+
description: '多模型测试生成:智能路由 {{BACKEND_PRIMARY}} 后端测试 / {{FRONTEND_PRIMARY}} 前端测试'
|
|
3
3
|
---
|
|
4
4
|
|
|
5
5
|
# Test - 多模型测试生成
|
|
@@ -15,14 +15,14 @@ description: '多模型测试生成:智能路由 Codex 后端测试 / Gemini
|
|
|
15
15
|
## 上下文
|
|
16
16
|
|
|
17
17
|
- 测试目标:$ARGUMENTS
|
|
18
|
-
- 智能路由:后端 →
|
|
18
|
+
- 智能路由:后端 → {{BACKEND_PRIMARY}},前端 → {{FRONTEND_PRIMARY}},全栈 → 并行
|
|
19
19
|
- 遵循项目现有测试框架和风格
|
|
20
20
|
|
|
21
21
|
## 你的角色
|
|
22
22
|
|
|
23
23
|
你是**测试工程师**,编排测试生成流程:
|
|
24
|
-
- **
|
|
25
|
-
- **
|
|
24
|
+
- **{{BACKEND_PRIMARY}}** – 后端测试生成(**后端权威**)
|
|
25
|
+
- **{{FRONTEND_PRIMARY}}** – 前端测试生成(**前端权威**)
|
|
26
26
|
- **Claude (自己)** – 整合测试、验证运行
|
|
27
27
|
|
|
28
28
|
---
|
|
@@ -38,7 +38,7 @@ description: '多模型测试生成:智能路由 Codex 后端测试 / Gemini
|
|
|
38
38
|
|
|
39
39
|
```
|
|
40
40
|
Bash({
|
|
41
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <
|
|
41
|
+
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <{{BACKEND_PRIMARY}}|{{FRONTEND_PRIMARY}}> {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'
|
|
42
42
|
ROLE_FILE: <角色提示词路径>
|
|
43
43
|
<TASK>
|
|
44
44
|
需求:为以下代码生成测试
|
|
@@ -56,9 +56,6 @@ EOF",
|
|
|
56
56
|
})
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
**模型参数说明**:
|
|
60
|
-
- `{{GEMINI_MODEL_FLAG}}`:当使用 `--backend gemini` 时,替换为 `--gemini-model gemini-3.1-pro-preview `(注意末尾空格);使用 codex 时替换为空字符串
|
|
61
|
-
|
|
62
59
|
**角色提示词**:
|
|
63
60
|
|
|
64
61
|
| 模型 | 提示词 |
|
|
@@ -70,8 +67,8 @@ EOF",
|
|
|
70
67
|
|
|
71
68
|
| 代码类型 | 路由 |
|
|
72
69
|
|---------|------|
|
|
73
|
-
| 后端 |
|
|
74
|
-
| 前端 |
|
|
70
|
+
| 后端 | {{BACKEND_PRIMARY}} |
|
|
71
|
+
| 前端 | {{FRONTEND_PRIMARY}} |
|
|
75
72
|
| 全栈 | 并行执行两者 |
|
|
76
73
|
|
|
77
74
|
**并行调用**:使用 `run_in_background: true` 启动,用 `TaskOutput` 等待结果。**必须等所有模型返回后才能进入下一阶段**。
|
|
@@ -114,14 +111,14 @@ TaskOutput({ task_id: "<task_id>", block: true, timeout: 600000 })
|
|
|
114
111
|
|
|
115
112
|
**⚠️ 根据代码类型必须调用对应模型**(参照上方调用规范):
|
|
116
113
|
|
|
117
|
-
- **后端代码** → `Bash({ command: "...--backend
|
|
114
|
+
- **后端代码** → `Bash({ command: "...--backend {{BACKEND_PRIMARY}}...", run_in_background: false })`
|
|
118
115
|
- ROLE_FILE: `~/.claude/.ccg/prompts/codex/tester.md`
|
|
119
|
-
- **前端代码** → `Bash({ command: "...--backend
|
|
116
|
+
- **前端代码** → `Bash({ command: "...--backend {{FRONTEND_PRIMARY}}...", run_in_background: false })`
|
|
120
117
|
- ROLE_FILE: `~/.claude/.ccg/prompts/gemini/tester.md`
|
|
121
118
|
- **全栈代码** → 并行调用两者:
|
|
122
|
-
1. `Bash({ command: "...--backend
|
|
119
|
+
1. `Bash({ command: "...--backend {{BACKEND_PRIMARY}}...", run_in_background: true })`
|
|
123
120
|
- ROLE_FILE: `~/.claude/.ccg/prompts/codex/tester.md`
|
|
124
|
-
2. `Bash({ command: "...--backend
|
|
121
|
+
2. `Bash({ command: "...--backend {{FRONTEND_PRIMARY}}...", run_in_background: true })`
|
|
125
122
|
- ROLE_FILE: `~/.claude/.ccg/prompts/gemini/tester.md`
|
|
126
123
|
用 `TaskOutput` 等待结果
|
|
127
124
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: '多模型协作开发工作流(研究→构思→计划→执行→优化→评审),智能路由前端→
|
|
2
|
+
description: '多模型协作开发工作流(研究→构思→计划→执行→优化→评审),智能路由前端→{{FRONTEND_PRIMARY}}、后端→{{BACKEND_PRIMARY}}'
|
|
3
3
|
---
|
|
4
4
|
|
|
5
5
|
# Workflow - 多模型协作开发
|
|
@@ -16,7 +16,7 @@ description: '多模型协作开发工作流(研究→构思→计划→执行
|
|
|
16
16
|
|
|
17
17
|
- 要开发的任务:$ARGUMENTS
|
|
18
18
|
- 带质量把关的结构化 6 阶段工作流
|
|
19
|
-
- 多模型协作:
|
|
19
|
+
- 多模型协作:{{BACKEND_PRIMARY}}(后端)+ {{FRONTEND_PRIMARY}}(前端)+ Claude(编排)
|
|
20
20
|
- MCP 服务集成(ace-tool)以增强功能
|
|
21
21
|
|
|
22
22
|
## 你的角色
|
|
@@ -24,8 +24,8 @@ description: '多模型协作开发工作流(研究→构思→计划→执行
|
|
|
24
24
|
你是**编排者**,协调多模型协作系统(研究 → 构思 → 计划 → 执行 → 优化 → 评审),用中文协助用户,面向专业程序员,交互应简洁专业,避免不必要解释。
|
|
25
25
|
|
|
26
26
|
**协作模型**:
|
|
27
|
-
- **
|
|
28
|
-
- **
|
|
27
|
+
- **{{BACKEND_PRIMARY}}** – 后端逻辑、算法、调试(**后端权威,可信赖**)
|
|
28
|
+
- **{{FRONTEND_PRIMARY}}** – 前端 UI/UX、视觉设计(**前端高手,后端意见仅供参考**)
|
|
29
29
|
- **Claude (自己)** – 编排、计划、执行、交付
|
|
30
30
|
|
|
31
31
|
---
|
|
@@ -42,7 +42,7 @@ description: '多模型协作开发工作流(研究→构思→计划→执行
|
|
|
42
42
|
```
|
|
43
43
|
# 新会话调用
|
|
44
44
|
Bash({
|
|
45
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <
|
|
45
|
+
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <{{BACKEND_PRIMARY}}|{{FRONTEND_PRIMARY}}> {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'
|
|
46
46
|
ROLE_FILE: <角色提示词路径>
|
|
47
47
|
<TASK>
|
|
48
48
|
需求:<增强后的需求(如未增强则用 $ARGUMENTS)>
|
|
@@ -57,7 +57,7 @@ EOF",
|
|
|
57
57
|
|
|
58
58
|
# 复用会话调用
|
|
59
59
|
Bash({
|
|
60
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <
|
|
60
|
+
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <{{BACKEND_PRIMARY}}|{{FRONTEND_PRIMARY}}> {{GEMINI_MODEL_FLAG}}resume <SESSION_ID> - \"{{WORKDIR}}\" <<'EOF'
|
|
61
61
|
ROLE_FILE: <角色提示词路径>
|
|
62
62
|
<TASK>
|
|
63
63
|
需求:<增强后的需求(如未增强则用 $ARGUMENTS)>
|
|
@@ -71,9 +71,6 @@ EOF",
|
|
|
71
71
|
})
|
|
72
72
|
```
|
|
73
73
|
|
|
74
|
-
**模型参数说明**:
|
|
75
|
-
- `{{GEMINI_MODEL_FLAG}}`:当使用 `--backend gemini` 时,替换为 `--gemini-model gemini-3.1-pro-preview `(注意末尾空格);使用 codex 时替换为空字符串
|
|
76
|
-
|
|
77
74
|
**角色提示词**:
|
|
78
75
|
|
|
79
76
|
| 阶段 | Codex | Gemini |
|