ccg-workflow 1.5.1 → 1.7.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/README.md +182 -351
- package/bin/codeagent-wrapper-linux-arm64 +0 -0
- package/bin/codeagent-wrapper-windows-arm64.exe +0 -0
- package/dist/cli.mjs +13 -4
- package/dist/index.d.mts +3 -10
- package/dist/index.d.ts +3 -10
- package/dist/index.mjs +2 -2
- package/dist/shared/{ccg-workflow.DSwxPZjT.mjs → ccg-workflow.BtBr1Jpn.mjs} +955 -838
- package/package.json +1 -1
- package/templates/commands/agents/planner.md +2 -2
- package/templates/commands/agents/ui-ux-designer.md +2 -2
- package/templates/commands/analyze.md +112 -57
- package/templates/commands/backend.md +110 -51
- package/templates/commands/clean-branches.md +81 -66
- package/templates/commands/commit.md +81 -117
- package/templates/commands/debug.md +88 -86
- package/templates/commands/feat.md +62 -283
- package/templates/commands/frontend.md +110 -50
- package/templates/commands/init.md +100 -36
- package/templates/commands/optimize.md +109 -68
- package/templates/commands/review.md +106 -63
- package/templates/commands/rollback.md +86 -60
- package/templates/commands/test.md +115 -52
- package/templates/commands/workflow.md +198 -0
- package/templates/commands/worktree.md +78 -226
- package/templates/commands/bugfix.md +0 -116
- package/templates/commands/code.md +0 -257
- package/templates/commands/dev.md +0 -174
- package/templates/commands/enhance.md +0 -52
- package/templates/commands/think.md +0 -104
- package/templates/config/shared-config.md +0 -87
|
@@ -1,158 +1,122 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
3
|
-
allowed-tools: Read(**), Exec(git status, git diff, git add, git restore --staged, git commit, git rev-parse, git config), Write(.git/COMMIT_EDITMSG)
|
|
4
|
-
argument-hint: [--no-verify] [--all] [--amend] [--signoff] [--emoji] [--scope <scope>] [--type <type>]
|
|
5
|
-
# examples:
|
|
6
|
-
# - /git-commit # 分析当前改动,生成提交信息
|
|
7
|
-
# - /git-commit --all # 暂存所有改动并提交
|
|
8
|
-
# - /git-commit --no-verify # 跳过 Git 钩子检查
|
|
9
|
-
# - /git-commit --emoji # 在提交信息中包含 emoji
|
|
10
|
-
# - /git-commit --scope ui --type feat # 指定作用域和类型
|
|
11
|
-
# - /git-commit --amend --signoff # 修补上次提交并签名
|
|
2
|
+
description: '智能 Git 提交:分析改动生成 Conventional Commit 信息,支持拆分建议'
|
|
12
3
|
---
|
|
13
4
|
|
|
14
|
-
#
|
|
5
|
+
# Commit - 智能 Git 提交
|
|
15
6
|
|
|
16
|
-
|
|
7
|
+
分析当前改动,生成 Conventional Commits 风格的提交信息。
|
|
17
8
|
|
|
18
|
-
|
|
19
|
-
- 判断是否需要**拆分为多次提交**
|
|
20
|
-
- 为每个提交生成 **Conventional Commits** 风格的信息(可选 emoji)
|
|
21
|
-
- 按需执行 `git add` 与 `git commit`(默认运行本地 Git 钩子;可 `--no-verify` 跳过)
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
## Usage
|
|
9
|
+
## 使用方法
|
|
26
10
|
|
|
27
11
|
```bash
|
|
28
|
-
/
|
|
29
|
-
/git-commit --no-verify
|
|
30
|
-
/git-commit --emoji
|
|
31
|
-
/git-commit --all --signoff
|
|
32
|
-
/git-commit --amend
|
|
33
|
-
/git-commit --scope ui --type feat --emoji
|
|
12
|
+
/commit [options]
|
|
34
13
|
```
|
|
35
14
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
- `--no-verify`:跳过本地 Git 钩子(`pre-commit`/`commit-msg` 等)。
|
|
39
|
-
- `--all`:当暂存区为空时,自动 `git add -A` 将所有改动纳入本次提交。
|
|
40
|
-
- `--amend`:在不创建新提交的情况下**修补**上一次提交(保持提交作者与时间,除非本地 Git 配置另有指定)。
|
|
41
|
-
- `--signoff`:附加 `Signed-off-by` 行(遵循 DCO 流程时使用)。
|
|
42
|
-
- `--emoji`:在提交信息中包含 emoji 前缀(省略则使用纯文本)。
|
|
43
|
-
- `--scope <scope>`:指定提交作用域(如 `ui`、`docs`、`api`),写入消息头部。
|
|
44
|
-
- `--type <type>`:强制提交类型(如 `feat`、`fix`、`docs` 等),覆盖自动判断。
|
|
15
|
+
## 选项
|
|
45
16
|
|
|
46
|
-
|
|
17
|
+
| 选项 | 说明 |
|
|
18
|
+
|------|------|
|
|
19
|
+
| `--no-verify` | 跳过 Git 钩子 |
|
|
20
|
+
| `--all` | 暂存所有改动 |
|
|
21
|
+
| `--amend` | 修补上次提交 |
|
|
22
|
+
| `--signoff` | 附加签名 |
|
|
23
|
+
| `--emoji` | 包含 emoji 前缀 |
|
|
24
|
+
| `--scope <scope>` | 指定作用域 |
|
|
25
|
+
| `--type <type>` | 指定提交类型 |
|
|
47
26
|
|
|
48
27
|
---
|
|
49
28
|
|
|
50
|
-
##
|
|
29
|
+
## 执行工作流
|
|
51
30
|
|
|
52
|
-
1
|
|
53
|
-
- 通过 `git rev-parse --is-inside-work-tree` 判断是否位于 Git 仓库。
|
|
54
|
-
- 读取当前分支/HEAD 状态;如处于 rebase/merge 冲突状态,先提示处理冲突后再继续。
|
|
31
|
+
### 🔍 阶段 1:仓库校验
|
|
55
32
|
|
|
56
|
-
|
|
57
|
-
- 用 `git status --porcelain` 与 `git diff` 获取已暂存与未暂存的改动。
|
|
58
|
-
- 若已暂存文件为 0:
|
|
59
|
-
- 若传入 `--all` → 执行 `git add -A`。
|
|
60
|
-
- 否则提示你选择:继续仅分析未暂存改动并给出**建议**,或取消命令后手动分组暂存。
|
|
33
|
+
`[模式:检查]`
|
|
61
34
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
35
|
+
1. 验证 Git 仓库状态
|
|
36
|
+
2. 检测 rebase/merge 冲突
|
|
37
|
+
3. 读取当前分支/HEAD 状态
|
|
65
38
|
|
|
66
|
-
|
|
67
|
-
- 自动推断 `type`(`feat`/`fix`/`docs`/`refactor`/`test`/`chore`/`perf`/`style`/`ci`/`revert` …)与可选 `scope`。
|
|
68
|
-
- 生成消息头:`[<emoji>] <type>(<scope>)?: <subject>`(首行 ≤ 72 字符,祈使语气,仅在使用 `--emoji` 时包含 emoji)。
|
|
69
|
-
- 生成消息体:要点列表(动机、实现要点、影响范围、BREAKING CHANGE 如有)。
|
|
70
|
-
- 根据 Git 历史提交的主要语言选择提交信息语言。优先检查最近提交主题(例如 `git log -n 50 --pretty=%s`)判断中文/英文;若无法判断,则回退到仓库主要语言或英文。
|
|
71
|
-
- 将草稿写入 `.git/COMMIT_EDITMSG`,并用于 `git commit`。
|
|
39
|
+
### 📋 阶段 2:改动检测
|
|
72
40
|
|
|
73
|
-
|
|
74
|
-
- 单提交场景:`git commit [-S] [--no-verify] [-s] -F .git/COMMIT_EDITMSG`
|
|
75
|
-
- 多提交场景(如接受拆分建议):按分组给出 `git add <paths> && git commit ...` 的明确指令;若允许执行则逐一完成。
|
|
41
|
+
`[模式:分析]`
|
|
76
42
|
|
|
77
|
-
|
|
78
|
-
|
|
43
|
+
1. 获取已暂存与未暂存改动
|
|
44
|
+
2. 若暂存区为空:
|
|
45
|
+
- `--all` → 执行 `git add -A`
|
|
46
|
+
- 否则提示选择
|
|
79
47
|
|
|
80
|
-
|
|
48
|
+
### ✂️ 阶段 3:拆分建议
|
|
81
49
|
|
|
82
|
-
|
|
50
|
+
`[模式:建议]`
|
|
83
51
|
|
|
84
|
-
|
|
85
|
-
-
|
|
86
|
-
-
|
|
87
|
-
-
|
|
88
|
-
- **遵循 Conventional Commits**:`<type>(<scope>): <subject>`。
|
|
52
|
+
按以下维度聚类:
|
|
53
|
+
- 关注点(源代码 vs 文档/测试)
|
|
54
|
+
- 文件模式(不同目录/包)
|
|
55
|
+
- 改动类型(新增 vs 删除)
|
|
89
56
|
|
|
90
|
-
|
|
57
|
+
若检测到多组独立变更(>300 行 / 跨多个顶级目录),建议拆分。
|
|
91
58
|
|
|
92
|
-
|
|
59
|
+
### ✍️ 阶段 4:生成提交信息
|
|
93
60
|
|
|
94
|
-
|
|
95
|
-
- 🐛 `fix`:缺陷修复(含 🔥 删除代码/文件、🚑️ 紧急修复、👽️ 适配外部 API 变更、🔒️ 安全修复、🚨 解决告警、💚 修复 CI)
|
|
96
|
-
- 📝 `docs`:文档与注释
|
|
97
|
-
- 🎨 `style`:风格/格式(不改语义)
|
|
98
|
-
- ♻️ `refactor`:重构(不新增功能、不修缺陷)
|
|
99
|
-
- ⚡️ `perf`:性能优化
|
|
100
|
-
- ✅ `test`:新增/修复测试、快照
|
|
101
|
-
- 🔧 `chore`:构建/工具/杂务(合并分支、更新配置、发布标记、依赖 pin、.gitignore 等)
|
|
102
|
-
- 👷 `ci`:CI/CD 配置与脚本
|
|
103
|
-
- ⏪️ `revert`:回滚提交
|
|
104
|
-
- 💥 `feat`:破坏性变更(`BREAKING CHANGE:` 段落中说明)
|
|
61
|
+
`[模式:生成]`
|
|
105
62
|
|
|
106
|
-
|
|
107
|
-
> 仅在指定 `--emoji` 标志时才会包含 emoji。
|
|
63
|
+
**格式**:`[emoji] <type>(<scope>): <subject>`
|
|
108
64
|
|
|
109
|
-
|
|
65
|
+
- 首行 ≤ 72 字符
|
|
66
|
+
- 祈使语气
|
|
67
|
+
- 消息体:动机、实现要点、影响范围
|
|
68
|
+
|
|
69
|
+
**语言**:根据最近 50 次提交判断中文/英文
|
|
110
70
|
|
|
111
|
-
|
|
71
|
+
### ✅ 阶段 5:执行提交
|
|
112
72
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
73
|
+
`[模式:执行]`
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
git commit [-S] [--no-verify] [-s] -F .git/COMMIT_EDITMSG
|
|
77
|
+
```
|
|
118
78
|
|
|
119
79
|
---
|
|
120
80
|
|
|
121
|
-
##
|
|
81
|
+
## Type 与 Emoji 映射
|
|
82
|
+
|
|
83
|
+
| Emoji | Type | 说明 |
|
|
84
|
+
|-------|------|------|
|
|
85
|
+
| ✨ | `feat` | 新增功能 |
|
|
86
|
+
| 🐛 | `fix` | 缺陷修复 |
|
|
87
|
+
| 📝 | `docs` | 文档更新 |
|
|
88
|
+
| 🎨 | `style` | 代码格式 |
|
|
89
|
+
| ♻️ | `refactor` | 重构 |
|
|
90
|
+
| ⚡️ | `perf` | 性能优化 |
|
|
91
|
+
| ✅ | `test` | 测试相关 |
|
|
92
|
+
| 🔧 | `chore` | 构建/工具 |
|
|
93
|
+
| 👷 | `ci` | CI/CD |
|
|
94
|
+
| ⏪️ | `revert` | 回滚 |
|
|
122
95
|
|
|
123
|
-
|
|
96
|
+
---
|
|
124
97
|
|
|
125
|
-
|
|
126
|
-
- 🐛 fix(api): handle token refresh race condition
|
|
127
|
-
- 📝 docs: update API usage examples
|
|
128
|
-
- ♻️ refactor(core): extract retry logic into helper
|
|
129
|
-
- ✅ test: add unit tests for rate limiter
|
|
130
|
-
- 🔧 chore: update git hooks and repository settings
|
|
131
|
-
- ⏪️ revert: revert "feat(core): introduce streaming API"
|
|
98
|
+
## 示例
|
|
132
99
|
|
|
133
|
-
|
|
100
|
+
```bash
|
|
101
|
+
# 基本提交
|
|
102
|
+
/commit
|
|
134
103
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
- docs: update API usage examples
|
|
138
|
-
- refactor(core): extract retry logic into helper
|
|
139
|
-
- test: add unit tests for rate limiter
|
|
140
|
-
- chore: update git hooks and repository settings
|
|
141
|
-
- revert: revert "feat(core): introduce streaming API"
|
|
104
|
+
# 暂存所有并提交
|
|
105
|
+
/commit --all
|
|
142
106
|
|
|
143
|
-
|
|
107
|
+
# 带 emoji 提交
|
|
108
|
+
/commit --emoji
|
|
144
109
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
- `test: add unit tests for payment types`
|
|
148
|
-
- `fix: address linter warnings in new files` ←(如你的仓库有钩子报错)
|
|
110
|
+
# 指定类型和作用域
|
|
111
|
+
/commit --scope ui --type feat --emoji
|
|
149
112
|
|
|
150
|
-
|
|
113
|
+
# 修补上次提交
|
|
114
|
+
/commit --amend --signoff
|
|
115
|
+
```
|
|
151
116
|
|
|
152
|
-
##
|
|
117
|
+
## 关键规则
|
|
153
118
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
- **可审可控**:如开启 `confirm: true`,每个实际 `git add`/`git commit` 步骤都会进行二次确认。
|
|
119
|
+
1. **仅使用 Git** – 不调用包管理器
|
|
120
|
+
2. **尊重钩子** – 默认执行,`--no-verify` 可跳过
|
|
121
|
+
3. **不改源码** – 只读写 `.git/COMMIT_EDITMSG`
|
|
122
|
+
4. **原子提交** – 一次提交只做一件事
|
|
@@ -1,135 +1,137 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
2
|
+
description: '多模型调试:Codex 后端诊断 + Gemini 前端诊断,交叉验证定位问题'
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
# Debug - 多模型调试
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
`/debug <问题描述>`
|
|
7
|
+
双模型并行诊断,交叉验证快速定位问题根因。
|
|
9
8
|
|
|
10
|
-
##
|
|
11
|
-
- 问题描述: $ARGUMENTS
|
|
12
|
-
- 使用 ace-tool 检索相关代码上下文
|
|
13
|
-
- Codex 专注后端/逻辑问题,Gemini 专注前端/UI问题
|
|
9
|
+
## 多模型调用语法
|
|
14
10
|
|
|
15
|
-
|
|
11
|
+
**⚠️ 必须使用 heredoc 语法调用外部模型**:
|
|
16
12
|
|
|
17
|
-
|
|
13
|
+
```bash
|
|
14
|
+
~/.claude/bin/codeagent-wrapper --backend <codex|gemini> - "$PWD" <<'EOF'
|
|
15
|
+
<任务内容>
|
|
16
|
+
EOF
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
- `--backend codex` – 后端/逻辑问题诊断
|
|
20
|
+
- `--backend gemini` – 前端/UI 问题诊断
|
|
21
|
+
- `$PWD` – 当前工作目录
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## 使用方法
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
/debug <问题描述>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## 你的角色
|
|
32
|
+
|
|
33
|
+
你是**调试协调者**,编排多模型诊断流程:
|
|
34
|
+
- **Codex** – 后端诊断(**后端问题权威**)
|
|
35
|
+
- **Gemini** – 前端诊断(**前端问题权威**)
|
|
36
|
+
- **Claude (自己)** – 综合诊断、执行修复
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## 执行工作流
|
|
41
|
+
|
|
42
|
+
**问题描述**:$ARGUMENTS
|
|
18
43
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
44
|
+
### 🔍 阶段 1:上下文收集
|
|
45
|
+
|
|
46
|
+
`[模式:研究]`
|
|
47
|
+
|
|
48
|
+
1. 调用 `mcp__ace-tool__search_context` 检索相关代码(如可用)
|
|
22
49
|
2. 收集错误日志、堆栈信息、复现步骤
|
|
23
|
-
3.
|
|
50
|
+
3. 识别问题类型:[后端/前端/全栈]
|
|
24
51
|
|
|
25
|
-
###
|
|
52
|
+
### 🔬 阶段 2:并行诊断
|
|
26
53
|
|
|
27
|
-
|
|
54
|
+
`[模式:诊断]`
|
|
28
55
|
|
|
29
|
-
|
|
56
|
+
**并行调用 Codex + Gemini**:
|
|
30
57
|
|
|
58
|
+
**执行步骤**:
|
|
59
|
+
1. 在**同一个 Bash 调用**中启动两个后台进程(不加 wait,立即返回):
|
|
31
60
|
```bash
|
|
32
61
|
# Codex 后端诊断
|
|
33
|
-
codeagent-wrapper --backend
|
|
34
|
-
|
|
62
|
+
~/.claude/bin/codeagent-wrapper --backend codex - "$PWD" <<'EOF' &
|
|
63
|
+
角色:后端调试专家
|
|
35
64
|
|
|
36
|
-
|
|
37
|
-
诊断问题: {{问题描述}}
|
|
38
|
-
Context: {{从 ace-tool 获取的相关代码}}
|
|
39
|
-
</TASK>
|
|
65
|
+
问题:$ARGUMENTS
|
|
40
66
|
|
|
41
|
-
|
|
67
|
+
任务:
|
|
68
|
+
1. 分析逻辑错误、数据流、异常处理
|
|
69
|
+
2. 检查 API、数据库、服务间通信
|
|
70
|
+
3. 输出诊断假设(按可能性排序)
|
|
42
71
|
EOF
|
|
43
|
-
```
|
|
44
72
|
|
|
45
|
-
```bash
|
|
46
73
|
# Gemini 前端诊断
|
|
47
|
-
codeagent-wrapper --backend
|
|
48
|
-
|
|
74
|
+
~/.claude/bin/codeagent-wrapper --backend gemini - "$PWD" <<'EOF' &
|
|
75
|
+
角色:前端调试专家
|
|
49
76
|
|
|
50
|
-
|
|
51
|
-
诊断问题: {{问题描述}}
|
|
52
|
-
Context: {{从 ace-tool 获取的相关代码}}
|
|
53
|
-
</TASK>
|
|
77
|
+
问题:$ARGUMENTS
|
|
54
78
|
|
|
55
|
-
|
|
79
|
+
任务:
|
|
80
|
+
1. 分析 UI 渲染、状态管理、事件绑定
|
|
81
|
+
2. 检查组件生命周期、样式冲突
|
|
82
|
+
3. 输出诊断假设(按可能性排序)
|
|
56
83
|
EOF
|
|
57
84
|
```
|
|
85
|
+
2. 使用 `TaskOutput` 监控并获取 2 个模型的诊断结果。
|
|
58
86
|
|
|
59
|
-
|
|
60
|
-
- **Gemini** + `debugger` 角色 → 前端诊断
|
|
87
|
+
**⚠️ 强制规则:必须等待 TaskOutput 返回两个模型的完整结果后才能进入下一阶段,禁止跳过或提前继续!**
|
|
61
88
|
|
|
62
|
-
###
|
|
89
|
+
### 🔀 阶段 3:假设整合
|
|
63
90
|
|
|
64
|
-
|
|
65
|
-
2. 交叉验证:识别重叠和互补的假设
|
|
66
|
-
3. **UltraThink 综合**:
|
|
67
|
-
- 整合所有假设,按可能性排序
|
|
68
|
-
- 筛选出 **Top 1-2 最可能原因**
|
|
69
|
-
- 设计验证策略
|
|
91
|
+
`[模式:验证]`
|
|
70
92
|
|
|
71
|
-
|
|
93
|
+
1. 交叉验证双方诊断结果
|
|
94
|
+
2. 筛选 **Top 1-2 最可能原因**
|
|
95
|
+
3. 设计验证策略
|
|
72
96
|
|
|
73
|
-
|
|
74
|
-
|
|
97
|
+
### ⛔ 阶段 4:用户确认(Hard Stop)
|
|
98
|
+
|
|
99
|
+
`[模式:确认]`
|
|
100
|
+
|
|
101
|
+
```markdown
|
|
75
102
|
## 🔍 诊断结果
|
|
76
103
|
|
|
77
104
|
### Codex 分析(后端视角)
|
|
78
|
-
|
|
105
|
+
<诊断摘要>
|
|
79
106
|
|
|
80
107
|
### Gemini 分析(前端视角)
|
|
81
|
-
|
|
108
|
+
<诊断摘要>
|
|
82
109
|
|
|
83
110
|
### 综合诊断
|
|
84
111
|
**最可能原因**:<具体诊断>
|
|
85
|
-
**证据**:<支持证据>
|
|
86
112
|
**验证方案**:<如何确认>
|
|
87
113
|
|
|
88
114
|
---
|
|
89
115
|
**确认后我将执行修复。是否继续?(Y/N)**
|
|
90
116
|
```
|
|
91
117
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
### Phase 5: 修复与验证
|
|
95
|
-
|
|
96
|
-
1. 根据确认的诊断实施修复
|
|
97
|
-
2. 修复完成后,**并行调用** Codex + Gemini + `reviewer` 角色审查修复
|
|
98
|
-
3. 综合审查意见,确认问题解决
|
|
99
|
-
|
|
100
|
-
## 输出格式
|
|
101
|
-
|
|
102
|
-
```
|
|
103
|
-
## Phase 1: 上下文检索
|
|
104
|
-
- 检索到 X 个相关文件
|
|
105
|
-
- 问题类型: [前端/后端/全栈]
|
|
106
|
-
|
|
107
|
-
## Phase 2: 并行诊断
|
|
108
|
-
### Codex 诊断
|
|
109
|
-
<诊断内容>
|
|
110
|
-
|
|
111
|
-
### Gemini 诊断
|
|
112
|
-
<诊断内容>
|
|
118
|
+
**⚠️ 必须等待用户确认后才能进入阶段 5**
|
|
113
119
|
|
|
114
|
-
|
|
115
|
-
### Top 假设
|
|
116
|
-
1. [最可能原因] - 可能性: High
|
|
117
|
-
2. [次可能原因] - 可能性: Medium
|
|
120
|
+
### 🔧 阶段 5:修复与验证
|
|
118
121
|
|
|
119
|
-
|
|
120
|
-
- [具体验证步骤]
|
|
122
|
+
`[模式:执行]`
|
|
121
123
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
+
用户确认后:
|
|
125
|
+
1. 根据诊断实施修复
|
|
126
|
+
2. 运行测试验证修复
|
|
127
|
+
3. **可选**:并行调用 Codex + Gemini 审查修复
|
|
124
128
|
|
|
125
|
-
|
|
126
|
-
- 修复内容: <具体修改>
|
|
127
|
-
- 双模型审查: <审查结果>
|
|
128
|
-
```
|
|
129
|
+
---
|
|
129
130
|
|
|
130
|
-
##
|
|
131
|
+
## 关键规则
|
|
131
132
|
|
|
132
|
-
1.
|
|
133
|
-
2.
|
|
134
|
-
3.
|
|
135
|
-
4.
|
|
133
|
+
1. **heredoc 语法** – 外部模型调用必须使用 heredoc
|
|
134
|
+
2. **使用后台进程 `&` + `TaskOutput` 获取结果**
|
|
135
|
+
3. **必须等待所有模型返回完整结果后才能进入下一阶段**,禁止跳过或提前继续
|
|
136
|
+
4. **用户确认** – 修复前必须获得确认
|
|
137
|
+
5. **信任规则** – 后端问题以 Codex 为准,前端问题以 Gemini 为准
|