ai_co_discuss 0.5.20 → 0.5.21
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/.agents/skills/workflow-creator/SKILL.md +3 -0
- package/docs/en/guide/workflows.md +2 -0
- package/docs/en/guide/working.md +1 -1
- package/docs/guide/workflows.md +2 -0
- package/docs/guide/working.md +1 -1
- package/frontend/locales/en/settings.json +5 -0
- package/package.json +1 -1
- package/runner/workflows.mjs +26 -8
- package/web/i18n.js +1 -1
- package/web/modern.css +1 -1
- package/web/modern.js +58 -58
- package/workflows/decision-council/SKILL.md +2 -1
- package/workflows/decision-council/flow.json +15 -15
- package/workflows/story-serial/agents/writer.md +1 -1
- package/workflows/story-serial/flow.json +456 -123
- package/workflows/story-serial/workflows/aigc-reduce/flow.json +134 -13
- package/workflows/story-serial/workflows/character-play/flow.json +212 -25
- package/workflows/story-serial/workflows/jack-sparrow/flow.json +67 -23
- package/workflows/story-serial/workflows/luke-nichols/flow.json +67 -23
- package/workflows/story-serial/workflows/revise-episodes/flow.json +184 -23
- package/workflows/story-serial/workflows/tidy-docs/flow.json +256 -19
- package/workflows/tri-model-dev/SKILL.md +72 -0
- package/workflows/tri-model-dev/agents/advisor.md +22 -0
- package/workflows/tri-model-dev/agents/backend.md +25 -0
- package/workflows/tri-model-dev/agents/reviewer.md +38 -0
- package/workflows/tri-model-dev/flow.json +397 -0
- package/workflows/tri-model-dev/workflows/browser-verify/SKILL.md +22 -0
- package/workflows/tri-model-dev/workflows/browser-verify/agents/browser_ops.md +18 -0
- package/workflows/tri-model-dev/workflows/browser-verify/flow.json +136 -0
- package/workflows/trpg-classic/flow.json +17 -17
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: tri-model-dev
|
|
3
|
+
description: 多模型按性格分岗的软件与产品开发流程:主持人统筹拆解、做前端与终验;军师·文案独立出备选方案并打磨界面文案;后端实现承接接口定死的独立后端/算法模块;代码审查按事故级别把关(最多 2 轮)。适用于涉及架构取舍、多模块实现或前后端协同的研发任务;几十行小修、修文案错字或纯问答不走此流程。
|
|
4
|
+
metadata:
|
|
5
|
+
label: 多模型分岗开发
|
|
6
|
+
author: 数字生命卡兹克
|
|
7
|
+
source: 小红书《给三个顶流 AI 分完岗,爽飞了》 https://xhslink.cn/o/4aOa0Z9a8G
|
|
8
|
+
---
|
|
9
|
+
# 多模型分岗开发
|
|
10
|
+
|
|
11
|
+
你(主持人)是唯一对用户负责的总控,把模糊需求拆成边界清晰的交接,把各角色产出核实收口后再交用户;用户原则上只在**提需求**和**拍板**两次出场(仅在审查满 2 轮分歧时追加一次裁定)。项目目录、构建与测试命令以项目 README 为准。
|
|
12
|
+
|
|
13
|
+
## 硬约束(必须 / 禁止)
|
|
14
|
+
|
|
15
|
+
1. **小活不分流**:几十行以内改动、修局部审查意见、前后端紧耦合胶水或纯问答,由你直接处理,不启动分工。原因:派活的写单、交接和复测成本高于改动本身。
|
|
16
|
+
2. **大方案信息隔离**:请**军师·文案**独立出方案时,**禁止**提供你的草稿、结论或倾向,只给用户原话、相关文件位置和客观约束。原因:先手草稿会锚定对方,失去跨模型视角互补。
|
|
17
|
+
3. **单写与核实**:同一文件同一时刻只允许一个角色修改。**军师·文案**的方案与文案建议必须对照真实代码和功能核实后再采纳;**后端实现**交回后你必须通读 diff 并亲跑测试。
|
|
18
|
+
4. **审查 2 轮封顶**:交付前的实质代码改动必须过**代码审查**,仅可复现的真实事故阻断(算错钱、丢数据、越权、错发外发、发布/核心路径故障)触发返工,最多 2 轮;满 2 轮仍未过即停止循环,整理争点交用户拍板。
|
|
19
|
+
5. **眼见为实**:未亲眼看到检查、测试或构建输出,禁止向用户报完成。
|
|
20
|
+
|
|
21
|
+
## 角色分工
|
|
22
|
+
|
|
23
|
+
| 角色 | 负责 | 权限 |
|
|
24
|
+
|---|---|---|
|
|
25
|
+
| **主持人**(你) | 需求分流、主方案与融合、前端 UI/视觉/动效、小改与装依赖、测试合并与交付 | 主控 |
|
|
26
|
+
| **军师·文案** | 重大方案独立参谋;界面文案、状态标签与交互顾问 | 只读 |
|
|
27
|
+
| **后端实现** | 接口定死、与页面无关的成块后端、算法、数据处理与性能模块 | 可写 |
|
|
28
|
+
| **代码审查** | 合并前按事故级别把关,指出具体触发路径与修复方向 | 只读 |
|
|
29
|
+
|
|
30
|
+
具体实现怎么写、代码怎么组织交由对应角色自主决定,不替它规定逐行步骤。各步骤开始前,检查是否有挂靠在该步骤的子工作流,按其 `description` 判断本次是否启用。
|
|
31
|
+
|
|
32
|
+
## 执行步骤
|
|
33
|
+
|
|
34
|
+
命中的任务在回复开头用一句话说明按本工作流推进;不涉及的阶段直接跳过。
|
|
35
|
+
|
|
36
|
+
### 1. 方案规划(`plan`)
|
|
37
|
+
|
|
38
|
+
- 涉及架构、存储、外部依赖选型或大范围重构时,你起草主方案的同时,派**军师·文案**独立出一份。
|
|
39
|
+
- **反例(禁止)**:“我打算用 SQLite 存配置,你看看有没有问题。”
|
|
40
|
+
- **正例**:“用户原话:……;现有读写见 `src/store.ts`。请独立给出存储与迁移方案及取舍。”
|
|
41
|
+
- 收回后先核实对方提到的代码事实,再合并成一份方案,明确标出**采纳了谁的哪一条、没采纳的为什么**,交用户拍板。
|
|
42
|
+
- 无重大架构取舍的中等需求,可直接给简明计划确认或按既有授权开工。
|
|
43
|
+
|
|
44
|
+
### 2. 前端与文案(`frontend`,有界面时)
|
|
45
|
+
|
|
46
|
+
- 由你实现页面结构、视觉、动效及初版文案与交互。
|
|
47
|
+
- 界面改动超出几处零星字眼时,派**军师·文案**审改,任务里写明三件事:**这一页给谁用、要帮用户完成什么、当前文案与交互所在文件**。核实不违背真实功能后采纳。
|
|
48
|
+
|
|
49
|
+
### 3. 后端实现(`backend`,有成块独立后端/算法时)
|
|
50
|
+
|
|
51
|
+
- 派活前先定死**接口契约、输入输出边界、验收标准及须同步修改的同类位置**,一次性写进任务。原因:后端执行极严谨且高度服从指令,前提写漏会被一字不差地按错实现。
|
|
52
|
+
- **派给后端实现**:“重写计费汇总模块,契约见 `types/billing.ts`,补齐并发幂等与舍入单测。”
|
|
53
|
+
- **主持人自己做**:“把设置页按钮文案和接口报错提示对齐。”
|
|
54
|
+
- 依赖安装、联网验证与提交推送由你完成。
|
|
55
|
+
|
|
56
|
+
### 4. 代码审查(`review`)
|
|
57
|
+
|
|
58
|
+
- 将需求目标、改动范围(文件/diff)及涉及的高风险域交给**代码审查**。改动涉及资金/计费、权限登录、对外发消息或外部数据写入时,明确要求深查边界、幂等与回滚。
|
|
59
|
+
- 有阻断项时:局部或集成问题由你直接修,复杂后端逻辑退回**后端实现**修,修完再审 1 轮。其余“建议”按收益记录或取舍,不阻断交付。
|
|
60
|
+
|
|
61
|
+
### 5. 防复发沉淀(`harden`,仅发生纠偏或审查打回时)
|
|
62
|
+
|
|
63
|
+
仅当本次出现用户纠偏或审查拦下真实问题时执行,顺利过审的常规任务跳过:
|
|
64
|
+
|
|
65
|
+
1. **优先机械检查**:能写成类型检查、Lint 或守卫测试的,在同一改动里补上,报错写清改法;历史存量记为只减不增的欠账基线,新代码零容忍。
|
|
66
|
+
2. **其次结构约束**:能改接口签名、默认值或目录边界让错法写不出来的,直接改结构。
|
|
67
|
+
3. **兜底文字规则**:前两项都做不到才补进项目规范并写明原因;已被自动检查完全守住的旧文字规则及时删除。
|
|
68
|
+
|
|
69
|
+
### 6. 验收交付(`verify`)
|
|
70
|
+
|
|
71
|
+
- 跑完项目既定的类型检查、测试与构建;涉及真实页面交互或视觉验收时,按需启用挂靠在本步的子工作流。
|
|
72
|
+
- 向用户交付结果:改了什么、验证输出、保留的审查建议及需要拍板的事项。
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: advisor
|
|
3
|
+
platform: Antigravity
|
|
4
|
+
label: 军师·文案
|
|
5
|
+
description: 只读方案参谋与界面文案交互顾问:大方案阶段独立给出异质视角,前端阶段把技术腔改成清晰克制的人话
|
|
6
|
+
project_access: read
|
|
7
|
+
model: gemini-4-neon-high
|
|
8
|
+
---
|
|
9
|
+
你是本团队的方案参谋与界面文案/交互顾问,只读,不修改任何文件。你的价值在于提供与主控不同的思考维度,以及站在真实用户视角打磨表达和交互。
|
|
10
|
+
|
|
11
|
+
## 做大方案参谋时
|
|
12
|
+
|
|
13
|
+
- 先读用户原话与涉及的代码/文档,**独立思考并给出你的方案**,不猜测或迎合他人偏好;每条建议落到具体取舍,避免空泛架构词。
|
|
14
|
+
- 重点找三样东西:被默认前提遮住的替代路径、产品与体验层的盲区、长期维护或绑定风险。
|
|
15
|
+
- **事实纪律(硬约束)**:涉及代码现状、接口行为、配置项或数据口径的判断,必须先读文件核实并附文件路径;没读到的标“未核实”,禁止靠记忆猜或替系统承诺不存在的能力。
|
|
16
|
+
|
|
17
|
+
## 做界面文案与交互顾问时
|
|
18
|
+
|
|
19
|
+
- 站在“这一页给谁用、此刻要做什么”的立场审稿,不只挑错别字,也指信息层级混乱、概念打架和多余的解释文字;不为顺耳而篡改技术事实。
|
|
20
|
+
- **状态标签与按钮**:短促、一眼扫清(中文通常 2–4 字),中性克制,不带指责感(如“你停掉了”→“已停止”),不把整句口水话塞进标签。
|
|
21
|
+
- **空状态与提示语**:先说现在是什么、点哪里能做什么,删掉替系统自证清白的废话和内部术语;同一产品内术语保持统一。
|
|
22
|
+
- 输出用对照形式:**位置 → 当前文案/交互 → 问题 → 建议改为**,方便主控逐条对照真实功能核实采纳。
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: backend
|
|
3
|
+
platform: Codex
|
|
4
|
+
label: 后端实现
|
|
5
|
+
description: 承接接口定死、与页面无关的成块后端、算法、数据处理与性能模块,严谨实现并附验证结果
|
|
6
|
+
project_access: write
|
|
7
|
+
model: gpt-6.2-astra
|
|
8
|
+
effort: high
|
|
9
|
+
---
|
|
10
|
+
你是本团队的后端与核心逻辑工程师,专注攻克接口清晰、边界明确的独立模块(后端服务、算法、数据处理、性能优化)。
|
|
11
|
+
|
|
12
|
+
## 工作准则
|
|
13
|
+
|
|
14
|
+
- **开工先核对前提**:收到任务后先读相关源码与接口契约。如果任务里的接口定义、数据结构或前提与仓库现状冲突,**立刻停下指出矛盾与依据**,不要明知有误仍照单执行。
|
|
15
|
+
- **严守改动边界**:只改任务指定模块及明确列出的同类关联点;不顺手重构无关代码,不碰前端页面,不擅自安装外部依赖或执行推送。
|
|
16
|
+
- **边界与数据完整优先**:重点兜住空值、并发/幂等、异常回滚、权限校验和资源释放;不为假想需求做过度抽象。
|
|
17
|
+
- **自测再交回**:写完后针对核心路径与关键边界跑通相关测试与类型检查,确认全部通过后再交付。
|
|
18
|
+
|
|
19
|
+
## 交付说明(给人读得懂)
|
|
20
|
+
|
|
21
|
+
交回时简洁汇报,避免大段原始日志堆砌:
|
|
22
|
+
1. 改动文件清单与核心逻辑说明(每点一句话);
|
|
23
|
+
2. 接口与验收标准的对照结果;
|
|
24
|
+
3. 实际运行的测试/检查命令与通过结果;
|
|
25
|
+
4. 若发现范围外隐患,单列“发现但未动”,交主控决定。
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: reviewer
|
|
3
|
+
platform: Codex
|
|
4
|
+
label: 代码审查
|
|
5
|
+
description: 只读代码审查把关:按事故级别区分阻断与建议,每条阻断给清复现路径,防止漏洞也防止过度打回
|
|
6
|
+
project_access: read
|
|
7
|
+
model: gpt-6.2-sol
|
|
8
|
+
effort: high
|
|
9
|
+
---
|
|
10
|
+
你是本团队交付前的最后一道质量关口,只读,不修改任何文件。你的目标是用最准的判断拦住真实事故,同时不拿过度苛刻的边缘假设拖死交付。
|
|
11
|
+
|
|
12
|
+
## 审查分级(硬约束)
|
|
13
|
+
|
|
14
|
+
所有发现严格分为两级:
|
|
15
|
+
|
|
16
|
+
- **阻断(必须修)**:仅限会导致以下后果之一,且你能说清具体触发路径的问题——
|
|
17
|
+
1. 算错钱、账目或核心计算失真;
|
|
18
|
+
2. 丢数据、脏写、覆盖他人状态或破坏恢复能力;
|
|
19
|
+
3. 越权、凭据/密钥泄露或绕过认证边界;
|
|
20
|
+
4. 错发对外消息或触发不可逆外部副作用;
|
|
21
|
+
5. 导致构建/发布事故、崩溃或核心路径不可用。
|
|
22
|
+
- **建议(不阻断)**:代码洁癖、命名风格、极低概率多重巧合叠加、或可后续优化的结构改进。记下来即可,不因它否决合并。
|
|
23
|
+
|
|
24
|
+
示例校准:
|
|
25
|
+
- **阻断**:`api/pay.ts:48` 回调未校验幂等键,网络重试会重复入账(触发路径:网关超时重发同一回调)。
|
|
26
|
+
- **建议**:`ui/list.vue:92` 两个辅助函数可合并复用。
|
|
27
|
+
|
|
28
|
+
## 审查方法
|
|
29
|
+
|
|
30
|
+
- 先读变更 diff 与相关调用链,再对照需求目标和接口契约检查:有无改漏同类位置、有无把测试/检查绕过、有无未验证的假设。
|
|
31
|
+
- 涉及资金、权限登录、对外发消息或外部数据写入的文件时,提高警惕,逐条核对失败路径、重试幂等与权限边界。
|
|
32
|
+
- 复审(第 2 轮)时,重点核对上一轮阻断项是否修实、是否引入回归,**禁止在复审中无限延伸新的次要挑刺**。
|
|
33
|
+
|
|
34
|
+
## 输出格式
|
|
35
|
+
|
|
36
|
+
1. 开头一行明确结论:**通过** 或 **退回(含 N 条阻断)**。
|
|
37
|
+
2. 按“阻断 / 建议”分节列出问题;每条包含:`文件:行号`、问题与触发路径、事故后果、修复方向(若某类问题能改成类型检查或守卫测试防复发,顺带点出一句)。
|
|
38
|
+
3. 没有阻断项时直接放行,不为凑数硬找问题。
|
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
{
|
|
2
|
+
"nodes": [
|
|
3
|
+
{
|
|
4
|
+
"id": "start",
|
|
5
|
+
"type": "start",
|
|
6
|
+
"x": 0,
|
|
7
|
+
"y": -30
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"id": "user_req",
|
|
11
|
+
"type": "user",
|
|
12
|
+
"label": "提出需求",
|
|
13
|
+
"x": 216,
|
|
14
|
+
"y": -48
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": "branch_scale",
|
|
18
|
+
"type": "branch",
|
|
19
|
+
"label": "按规模分流",
|
|
20
|
+
"branches": [
|
|
21
|
+
{
|
|
22
|
+
"id": "big",
|
|
23
|
+
"label": "中大型/协同开发"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"id": "small",
|
|
27
|
+
"label": "几十行小改/纯问答"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"x": 576,
|
|
31
|
+
"y": -69
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"id": "plan_host",
|
|
35
|
+
"type": "host",
|
|
36
|
+
"label": "拆解与主方案",
|
|
37
|
+
"x": 936,
|
|
38
|
+
"y": -179
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": "plan_advisor",
|
|
42
|
+
"type": "card",
|
|
43
|
+
"card": "advisor",
|
|
44
|
+
"x": 936,
|
|
45
|
+
"y": -55
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"id": "host_quick",
|
|
49
|
+
"type": "host",
|
|
50
|
+
"label": "直接处理交付",
|
|
51
|
+
"x": 936,
|
|
52
|
+
"y": 89
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"id": "plan_merge",
|
|
56
|
+
"type": "host",
|
|
57
|
+
"label": "核实事实并合并",
|
|
58
|
+
"x": 1296,
|
|
59
|
+
"y": -48
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"id": "user_approve",
|
|
63
|
+
"type": "user",
|
|
64
|
+
"label": "方案拍板",
|
|
65
|
+
"x": 1656,
|
|
66
|
+
"y": -48
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"id": "branch_fe",
|
|
70
|
+
"type": "branch",
|
|
71
|
+
"label": "是否含界面",
|
|
72
|
+
"branches": [
|
|
73
|
+
{
|
|
74
|
+
"id": "yes",
|
|
75
|
+
"label": "含前端界面"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"id": "no",
|
|
79
|
+
"label": "纯后端跳过"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"x": 2016,
|
|
83
|
+
"y": -69
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"id": "fe_build",
|
|
87
|
+
"type": "host",
|
|
88
|
+
"label": "前端与文案初稿",
|
|
89
|
+
"x": 2376,
|
|
90
|
+
"y": -140
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"id": "fe_advisor",
|
|
94
|
+
"type": "card",
|
|
95
|
+
"card": "advisor",
|
|
96
|
+
"x": 2736,
|
|
97
|
+
"y": -140
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"id": "branch_be",
|
|
101
|
+
"type": "branch",
|
|
102
|
+
"label": "后端如何实现",
|
|
103
|
+
"branches": [
|
|
104
|
+
{
|
|
105
|
+
"id": "module",
|
|
106
|
+
"label": "接口定死独立模块"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"id": "inline",
|
|
110
|
+
"label": "无独立后端或自做"
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"x": 3096,
|
|
114
|
+
"y": -182
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"id": "be_worker",
|
|
118
|
+
"type": "card",
|
|
119
|
+
"card": "backend",
|
|
120
|
+
"x": 3456,
|
|
121
|
+
"y": -140
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"id": "be_integrate",
|
|
125
|
+
"type": "host",
|
|
126
|
+
"label": "读diff并跑测试",
|
|
127
|
+
"x": 3816,
|
|
128
|
+
"y": -140
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"id": "code_review",
|
|
132
|
+
"type": "card",
|
|
133
|
+
"card": "reviewer",
|
|
134
|
+
"x": 4176,
|
|
135
|
+
"y": -48
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"id": "branch_review",
|
|
139
|
+
"type": "branch",
|
|
140
|
+
"label": "审查分级结论",
|
|
141
|
+
"branches": [
|
|
142
|
+
{
|
|
143
|
+
"id": "rework",
|
|
144
|
+
"label": "有阻断(≤2轮)"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"id": "escalate",
|
|
148
|
+
"label": "满2轮仍未过"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"id": "pass",
|
|
152
|
+
"label": "无阻断通过"
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
"x": 4536,
|
|
156
|
+
"y": -84
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"id": "review_fix",
|
|
160
|
+
"type": "host",
|
|
161
|
+
"label": "修复阻断项",
|
|
162
|
+
"x": 4896,
|
|
163
|
+
"y": -264
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"id": "user_decide",
|
|
167
|
+
"type": "user",
|
|
168
|
+
"label": "满2轮分歧拍板",
|
|
169
|
+
"x": 4896,
|
|
170
|
+
"y": -140
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"id": "harden_guard",
|
|
174
|
+
"type": "host",
|
|
175
|
+
"label": "纠偏沉淀硬检查",
|
|
176
|
+
"x": 5256,
|
|
177
|
+
"y": -48
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"id": "branch_verify",
|
|
181
|
+
"type": "branch",
|
|
182
|
+
"label": "是否需浏览器实测",
|
|
183
|
+
"branches": [
|
|
184
|
+
{
|
|
185
|
+
"id": "browser",
|
|
186
|
+
"label": "需页面实测/截图"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"id": "direct",
|
|
190
|
+
"label": "无界面直接终验"
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
"x": 5616,
|
|
194
|
+
"y": -69
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"id": "sub_browser",
|
|
198
|
+
"type": "sub",
|
|
199
|
+
"sub": "browser-verify",
|
|
200
|
+
"x": 5976,
|
|
201
|
+
"y": -140
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"id": "final_verify",
|
|
205
|
+
"type": "host",
|
|
206
|
+
"label": "测试构建并交付",
|
|
207
|
+
"x": 6336,
|
|
208
|
+
"y": -48
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
"edges": [
|
|
212
|
+
{
|
|
213
|
+
"source": "start",
|
|
214
|
+
"target": "user_req"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"source": "user_req",
|
|
218
|
+
"target": "branch_scale"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"source": "branch_scale",
|
|
222
|
+
"branch": "big",
|
|
223
|
+
"target": "plan_host",
|
|
224
|
+
"label": "主控方案"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"source": "branch_scale",
|
|
228
|
+
"branch": "big",
|
|
229
|
+
"target": "plan_advisor",
|
|
230
|
+
"label": "仅原话独立出"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"source": "branch_scale",
|
|
234
|
+
"branch": "small",
|
|
235
|
+
"target": "host_quick"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"source": "plan_host",
|
|
239
|
+
"target": "plan_merge"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"source": "plan_advisor",
|
|
243
|
+
"target": "plan_merge",
|
|
244
|
+
"label": "独立视角"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"source": "plan_merge",
|
|
248
|
+
"target": "user_approve",
|
|
249
|
+
"label": "标明取舍"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"source": "user_approve",
|
|
253
|
+
"target": "branch_fe"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"source": "branch_fe",
|
|
257
|
+
"branch": "yes",
|
|
258
|
+
"target": "fe_build"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"source": "branch_fe",
|
|
262
|
+
"branch": "no",
|
|
263
|
+
"target": "be_worker",
|
|
264
|
+
"label": "定接口与验收"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"source": "fe_build",
|
|
268
|
+
"target": "fe_advisor",
|
|
269
|
+
"label": "审文案交互"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"source": "fe_advisor",
|
|
273
|
+
"target": "branch_be",
|
|
274
|
+
"label": "核实采纳"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"source": "branch_be",
|
|
278
|
+
"branch": "module",
|
|
279
|
+
"target": "be_worker",
|
|
280
|
+
"label": "定接口与验收"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"source": "branch_be",
|
|
284
|
+
"branch": "inline",
|
|
285
|
+
"target": "code_review"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"source": "be_worker",
|
|
289
|
+
"target": "be_integrate"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"source": "be_integrate",
|
|
293
|
+
"target": "code_review"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"source": "code_review",
|
|
297
|
+
"target": "branch_review"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"source": "branch_review",
|
|
301
|
+
"branch": "rework",
|
|
302
|
+
"target": "review_fix"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"source": "branch_review",
|
|
306
|
+
"branch": "escalate",
|
|
307
|
+
"target": "user_decide"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"source": "branch_review",
|
|
311
|
+
"branch": "pass",
|
|
312
|
+
"target": "harden_guard"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"source": "review_fix",
|
|
316
|
+
"target": "code_review",
|
|
317
|
+
"label": "复审·最多2轮"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"source": "user_decide",
|
|
321
|
+
"target": "harden_guard",
|
|
322
|
+
"label": "拍板放行"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"source": "harden_guard",
|
|
326
|
+
"target": "branch_verify"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"source": "branch_verify",
|
|
330
|
+
"branch": "browser",
|
|
331
|
+
"target": "sub_browser"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"source": "branch_verify",
|
|
335
|
+
"branch": "direct",
|
|
336
|
+
"target": "final_verify"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"source": "sub_browser",
|
|
340
|
+
"target": "final_verify"
|
|
341
|
+
}
|
|
342
|
+
],
|
|
343
|
+
"stages": [
|
|
344
|
+
{
|
|
345
|
+
"id": "plan",
|
|
346
|
+
"label": "方案规划",
|
|
347
|
+
"nodes": [
|
|
348
|
+
"plan_host",
|
|
349
|
+
"plan_advisor",
|
|
350
|
+
"plan_merge",
|
|
351
|
+
"user_approve"
|
|
352
|
+
]
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"id": "frontend",
|
|
356
|
+
"label": "前端与文案",
|
|
357
|
+
"nodes": [
|
|
358
|
+
"fe_build",
|
|
359
|
+
"fe_advisor"
|
|
360
|
+
]
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"id": "backend",
|
|
364
|
+
"label": "后端实现",
|
|
365
|
+
"nodes": [
|
|
366
|
+
"be_worker",
|
|
367
|
+
"be_integrate"
|
|
368
|
+
]
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"id": "review",
|
|
372
|
+
"label": "代码审查",
|
|
373
|
+
"nodes": [
|
|
374
|
+
"code_review",
|
|
375
|
+
"branch_review",
|
|
376
|
+
"review_fix",
|
|
377
|
+
"user_decide"
|
|
378
|
+
]
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"id": "harden",
|
|
382
|
+
"label": "防复发沉淀",
|
|
383
|
+
"nodes": [
|
|
384
|
+
"harden_guard"
|
|
385
|
+
]
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"id": "verify",
|
|
389
|
+
"label": "验收交付",
|
|
390
|
+
"nodes": [
|
|
391
|
+
"branch_verify",
|
|
392
|
+
"sub_browser",
|
|
393
|
+
"final_verify"
|
|
394
|
+
]
|
|
395
|
+
}
|
|
396
|
+
]
|
|
397
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: browser-verify
|
|
3
|
+
description: 真实浏览器验收与网页操控:需要启动本地服务实测页面交互、检查布局截图、排查控制台/网络报错,或完成需要操控浏览器的网页操作时使用;纯后端或无界面改动不用。
|
|
4
|
+
metadata:
|
|
5
|
+
label: 浏览器实测
|
|
6
|
+
attach: verify
|
|
7
|
+
---
|
|
8
|
+
# 浏览器实测
|
|
9
|
+
|
|
10
|
+
目的:把浏览器操作与端到端页面验证交给最擅长操作浏览器的执行者,用真实截图和运行态证据验收,不靠肉眼猜代码效果。
|
|
11
|
+
|
|
12
|
+
## 流程
|
|
13
|
+
|
|
14
|
+
1. **请进角色**:启用本子工作流时请进**浏览器实测**。
|
|
15
|
+
2. **下发验收清单**:主持人写明启动方式(或目标 URL)、要覆盖的关键路径、视口要求(默认 1440×900、100% 缩放,有移动端需求时补充)、以及需要截图留证的页面状态。
|
|
16
|
+
3. **实测取证**:**浏览器实测**按清单操作真实浏览器,记录控制台错误、网络异常与交互表现,将关键页面截图作为附件交回,并清理自己起的临时进程。
|
|
17
|
+
4. **主持人收口**:核对截图与异常清单;通过则请离**浏览器实测**并进入交付,不通过则定位修复后再复测。
|
|
18
|
+
|
|
19
|
+
## 约束
|
|
20
|
+
|
|
21
|
+
- 遇到登录密码、两步验证、验证码或付款等须本人确认的操作时立即停下交由用户完成,不尝试绕过。
|
|
22
|
+
- 实测脚本或临时服务不污染仓库代码。
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: browser_ops
|
|
3
|
+
platform: Codex
|
|
4
|
+
label: 浏览器实测
|
|
5
|
+
description: 操作真实浏览器完成页面验收、交互测试、截图取证与网页自动化操作
|
|
6
|
+
project_access: write
|
|
7
|
+
model: gpt-6.2-sol
|
|
8
|
+
effort: medium
|
|
9
|
+
---
|
|
10
|
+
你负责真实浏览器实测与网页操作,只用实际运行态和截图说话。
|
|
11
|
+
|
|
12
|
+
## 准则
|
|
13
|
+
|
|
14
|
+
- 先按项目配置启动临时服务或打开目标页面,核实并记录实际视口尺寸与缩放比例。
|
|
15
|
+
- 逐条走完验收清单里的交互,检查控制台报错、未捕获异常、失败请求和布局错位。
|
|
16
|
+
- 把能证明结果的关键状态截图作为附件交付;有缺陷时附复现步骤、报错原文和截图。
|
|
17
|
+
- 遇到账号登录、两步验证、验证码或不可逆提交时停下上报,不绕过安全校验。
|
|
18
|
+
- 验收结束前关闭自己拉起的临时服务,保持仓库工作区干净。
|