@xenonbyte/da-vinci-workflow 0.1.17 → 0.1.18

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.
Files changed (49) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +33 -2
  3. package/README.zh-CN.md +31 -2
  4. package/SKILL.md +59 -1
  5. package/commands/claude/da-vinci.md +1 -0
  6. package/commands/claude/dv/continue.md +2 -0
  7. package/commands/claude/dv/intake.md +2 -0
  8. package/commands/codex/prompts/da-vinci.md +1 -0
  9. package/commands/codex/prompts/dv-continue.md +2 -0
  10. package/commands/codex/prompts/dv-intake.md +2 -1
  11. package/commands/gemini/da-vinci.toml +1 -0
  12. package/commands/gemini/dv/continue.toml +2 -0
  13. package/commands/gemini/dv/intake.toml +2 -0
  14. package/docs/codex-natural-language-usage.md +8 -0
  15. package/docs/dv-command-reference.md +401 -0
  16. package/docs/mode-use-cases.md +94 -2
  17. package/docs/pencil-rendering-workflow.md +231 -0
  18. package/docs/prompt-entrypoints.md +25 -0
  19. package/docs/prompt-presets/README.md +80 -0
  20. package/docs/prompt-presets/desktop-app.md +58 -0
  21. package/docs/prompt-presets/mobile-app.md +58 -0
  22. package/docs/prompt-presets/tablet-app.md +58 -0
  23. package/docs/prompt-presets/web-app.md +58 -0
  24. package/docs/visual-adapters.md +12 -0
  25. package/docs/workflow-examples.md +25 -1
  26. package/docs/workflow-overview.md +231 -0
  27. package/docs/zh-CN/codex-natural-language-usage.md +8 -0
  28. package/docs/zh-CN/dv-command-reference.md +401 -0
  29. package/docs/zh-CN/mode-use-cases.md +47 -2
  30. package/docs/zh-CN/pencil-rendering-workflow.md +233 -0
  31. package/docs/zh-CN/prompt-entrypoints.md +23 -0
  32. package/docs/zh-CN/prompt-presets/README.md +80 -0
  33. package/docs/zh-CN/prompt-presets/desktop-app.md +58 -0
  34. package/docs/zh-CN/prompt-presets/mobile-app.md +58 -0
  35. package/docs/zh-CN/prompt-presets/tablet-app.md +58 -0
  36. package/docs/zh-CN/prompt-presets/web-app.md +58 -0
  37. package/docs/zh-CN/visual-adapters.md +12 -0
  38. package/docs/zh-CN/workflow-examples.md +28 -1
  39. package/docs/zh-CN/workflow-overview.md +233 -0
  40. package/package.json +2 -1
  41. package/references/artifact-templates.md +46 -0
  42. package/references/checkpoints.md +15 -0
  43. package/references/design-inputs.md +6 -0
  44. package/references/modes.md +34 -0
  45. package/references/page-mapping.md +58 -0
  46. package/references/pencil-design-to-code.md +6 -0
  47. package/references/platform-adapters.md +1 -0
  48. package/references/prompt-recipes.md +39 -0
  49. package/scripts/test-mode-consistency.js +155 -0
@@ -52,7 +52,12 @@ project/
52
52
  - 当前代码是行为真相
53
53
  - 目标是大范围或全局 UI 重设计
54
54
 
55
- 4. `feature-change`
55
+ 4. `overhaul-from-code`
56
+ - 现有项目
57
+ - 当前代码仍然是迁移基线和参考证据
58
+ - 流程、逻辑、信息架构或 UI 都要被大范围重写
59
+
60
+ 5. `feature-change`
56
61
  - 现有项目
57
62
  - 目标是局部功能、页面或流程改动
58
63
 
@@ -177,7 +182,47 @@ Da Vinci 应该:
177
182
  - 截图 PNG 只是审查产物,不能替代登记好的 `.pen` 设计源
178
183
  - 如果当前 Pencil editor 仍然是 `new` 或其他未命名 live document,就不能宣布工作流完成
179
184
 
180
- ## 4. `feature-change`
185
+ ## 4. `overhaul-from-code`
186
+
187
+ 适合:
188
+
189
+ - 已有产品,但不是单纯换 UI
190
+ - 旧系统里有一部分逻辑、流程或结构需要被整体重写
191
+ - 现有代码仍然重要,但不再天然等于新系统最终行为真相
192
+
193
+ Da Vinci 应该:
194
+
195
+ 1. 先做 `project-inventory.md`
196
+ - 盘点当前 routes、flows、integrations、permissions、legacy constraints
197
+ 2. 生成 `proposal.md`
198
+ - 定义新的目标产品方向、范围和非目标
199
+ 3. 生成 `migration-contract.md`
200
+ - 标记 `preserve`
201
+ - 标记 `revise`
202
+ - 标记 `retire`
203
+ - 标记 `unknown`
204
+ 4. 按 overhaul slice 写 `specs/<slice>/spec.md`
205
+ - 让新的 spec 成为目标行为真相
206
+ 5. 重建 `page-map.md`
207
+ - 描述目标产品页面集,而不是只复制旧 route tree
208
+ 6. 再进入:
209
+ - `DA-VINCI.md`
210
+ - `design-registry.md`
211
+ - `design-brief.md`
212
+ - `design.md`
213
+ - `pencil-design.md`
214
+ - `pencil-bindings.md`
215
+ - `tasks.md`
216
+ - `verification.md`
217
+
218
+ 它和 `redesign-from-code` 的区别:
219
+
220
+ - `redesign-from-code` 默认保留旧代码行为真相
221
+ - `overhaul-from-code` 默认把旧代码当成参考基线和迁移上下文
222
+ - `redesign-from-code` 更偏向广泛 UI 重设计
223
+ - `overhaul-from-code` 更偏向存量系统上的产品级重构
224
+
225
+ ## 5. `feature-change`
181
226
 
182
227
  适合:
183
228
 
@@ -0,0 +1,233 @@
1
+ # Pencil 渲染工作流
2
+
3
+ > 中文配套文档。若与英文原文存在差异,请以 `docs/pencil-rendering-workflow.md` 为准。
4
+
5
+ 这份文档专门描述 Da Vinci 里的 Pencil 渲染生命周期。
6
+
7
+ 适合在你需要理解下面这些内容时阅读:
8
+
9
+ - 项目内 `.pen` 的 seed 和恢复
10
+ - 通过 Pencil MCP 编辑
11
+ - live 改动如何持久化
12
+ - screenshot review
13
+ - runtime gate 和 filesystem audit
14
+
15
+ 如果你想看 `design`、`tasks`、`build`、`verify` 这些 `dv:` 路由之间怎么衔接,以及 `verify` 出问题后退回哪一层,请看 [dv-command-reference.md](/Users/xubo/x-skills/da-vinci/docs/zh-CN/dv-command-reference.md)。
16
+
17
+ ## 渲染真相模型
18
+
19
+ Da Vinci 把下面三类真相分开看:
20
+
21
+ - live truth:当前 Pencil MCP editor
22
+ - disk truth:登记好的项目内 `.pen`
23
+ - review truth:`.da-vinci/changes/<change-id>/exports/` 下的截图导出
24
+
25
+ PNG 只是审查产物,不是设计真相源。
26
+
27
+ `.da-vinci/designs/` 只允许放 `.pen` 文件。
28
+
29
+ ## 会话模型
30
+
31
+ Da Vinci 现在优先使用这组 session wrapper:
32
+
33
+ - `da-vinci pencil-session begin`
34
+ - `da-vinci pencil-session persist`
35
+ - `da-vinci pencil-session end`
36
+
37
+ 这组 wrapper 的作用,是把下面三件事变成强制步骤:
38
+
39
+ - seed 好的 `.pen` 所有权
40
+ - 串行化的 Pencil MCP 写权限
41
+ - 明确的 live-to-disk 持久化和同步校验
42
+
43
+ ## 首次运行路径
44
+
45
+ 如果项目里还没有登记好的 `.pen`:
46
+
47
+ 1. 先开始一个 Pencil session。
48
+ 2. seed 登记好的项目内 `.pen`。
49
+ 3. 拿到全局 Pencil 锁。
50
+ 4. 打开这个精确路径。
51
+ 5. 再开始 Pencil 编辑。
52
+
53
+ 工作流不应该从 `new` 开始做 anchor 渲染。
54
+
55
+ ## 继续迭代路径
56
+
57
+ 如果项目里已经有登记好的 `.pen`:
58
+
59
+ 1. 先对着已有路径开始 Pencil session。
60
+ 2. reopen 这个精确 `.pen`。
61
+ 3. 做 live MCP 编辑。
62
+ 4. 发生实质性改动后,把当前 MCP 快照重新覆盖写回同一路径。
63
+
64
+ Da Vinci 不会假设 live MCP 编辑已经被自动刷盘。
65
+
66
+ ## 持久化规则
67
+
68
+ Da Vinci 不把 headless interactive `save()` 当作权威持久化真相。
69
+
70
+ 正式持久化步骤是:
71
+
72
+ 1. 读取 MCP 可读的 node snapshot
73
+ 2. 读取 MCP 可读的 variable snapshot
74
+ 3. 写项目内 `.pen`
75
+ 4. reopen 校验
76
+ 5. 比较 live snapshot hash 和 persisted snapshot hash
77
+
78
+ 相关命令:
79
+
80
+ - `da-vinci write-pen`
81
+ - `da-vinci check-pen-sync`
82
+
83
+ `da-vinci snapshot-pen` 只用于 disk-to-disk,不是 live 编辑持久化路径。
84
+
85
+ ## 锁规则
86
+
87
+ Pencil MCP 的写操作通过全局锁串行化。
88
+
89
+ 可用:
90
+
91
+ - `da-vinci pencil-lock acquire`
92
+ - `da-vinci pencil-lock release`
93
+
94
+ 或者直接优先用 session wrapper,让它自动管理锁。
95
+
96
+ 这套锁的目的,是防止多个项目抢同一个 active editor。
97
+
98
+ ## 批次纪律
99
+
100
+ 在发送非小型 `batch_design` 前:
101
+
102
+ - 如果有 shell 能力,先跑 `da-vinci preflight-pencil --ops-file <path>`
103
+ - anchor 批次尽量小
104
+ - anchor surface 优先每批不超过 12 个操作
105
+ - 同一个 anchor 连续两次回滚后,切成每批不超过 6 个操作的微批次
106
+
107
+ 反复 schema rollback 不能算正常前进。
108
+
109
+ ## 审查门禁
110
+
111
+ ### Screenshot Review
112
+
113
+ 每个被批准的 surface 都需要明确的截图审查结果:
114
+
115
+ - `PASS`
116
+ - `WARN`
117
+ - `BLOCK`
118
+
119
+ 每条审查记录都必须包含:
120
+
121
+ - 问题列表
122
+ - 是否已回改
123
+
124
+ 像 “looks good” 这种自我肯定文本不算审查记录。
125
+
126
+ ### Layout Hygiene
127
+
128
+ 每个被审查的 surface 还必须满足当前 form factor 的 layout-hygiene 规则:
129
+
130
+ - mobile
131
+ - tablet
132
+ - desktop
133
+ - web
134
+
135
+ 这一层独立于 `Visual Assist`。
136
+
137
+ ### Design Checkpoint
138
+
139
+ 如果出现下面这些情况,渲染结果不能通过:
140
+
141
+ - 只是旧 UI 换皮
142
+ - 大量 placeholder scaffold
143
+ - 忽略 screenshot review 里的问题
144
+ - 仍然有明显 schema 不稳定
145
+
146
+ ## 设计源门禁
147
+
148
+ active Pencil 工作一旦存在,就要跑 `design-source checkpoint`。
149
+
150
+ 它会验证:
151
+
152
+ - `design-registry.md` 是否指向一个明确的 `.pen`
153
+ - active editor 是否就是这个 `.pen`
154
+ - shell 上是否真的存在这个 `.pen`
155
+ - 登记的 `.pen` 是否还停留在“只有内存,没有磁盘”
156
+ - `.da-vinci/designs/` 是否被 markdown 或 PNG 污染
157
+
158
+ ## MCP Runtime Gate
159
+
160
+ 如果启用了 Pencil MCP,Da Vinci 会把 runtime gate 结果记录到 `pencil-design.md`。
161
+
162
+ 它会验证:
163
+
164
+ - active editor 不是 `new`
165
+ - 注册 `.pen` 后没有继续用空 `filePath`
166
+ - claimed anchor id 在 active editor 中真实存在
167
+ - reviewed screenshot target 在 active editor 中真实存在
168
+ - completion 阶段 live snapshot hash 和 persisted hash 一致
169
+
170
+ ## Filesystem 审计
171
+
172
+ ### Integrity Audit
173
+
174
+ 工作中期运行:
175
+
176
+ ```text
177
+ da-vinci audit --mode integrity <project-path>
178
+ ```
179
+
180
+ 推荐时机:
181
+
182
+ - 第一次成功写入 `.pen` 后立刻跑
183
+ - 在 anchor surface 通过后、继续大范围扩展前再跑
184
+
185
+ ### Completion Audit
186
+
187
+ 任何终态完成声明前运行:
188
+
189
+ ```text
190
+ da-vinci audit --mode completion --change <change-id> <project-path>
191
+ ```
192
+
193
+ 这个审计现在还会检查 `.da-vinci/state/pencil-session.json`,要求它记录的 hash 与最新持久化 `.pen` 一致。
194
+
195
+ ## 推荐命令链
196
+
197
+ 典型自治流程:
198
+
199
+ 1. `da-vinci pencil-session begin --project <project-path> --pen <path>`
200
+ 2. Pencil MCP 编辑
201
+ 3. `da-vinci pencil-session persist --project <project-path> --pen <path> --nodes-file <nodes.json> --variables-file <vars.json> --version <version>`
202
+ 4. screenshot review + layout hygiene
203
+ 5. `da-vinci pencil-session end --project <project-path> --pen <path> --nodes-file <nodes.json> --variables-file <vars.json> --version <version>`
204
+ 6. `da-vinci audit --mode completion --change <change-id> <project-path>`
205
+
206
+ ## 流程图
207
+
208
+ ```mermaid
209
+ flowchart TD
210
+ A[开始 Pencil 设计] --> B{是否已有登记的 .pen?}
211
+ B -- 否 --> C[pencil-session begin 先 seed .pen 并拿全局锁]
212
+ B -- 是 --> D[pencil-session begin reopen 已有 .pen 并拿全局锁]
213
+ C --> E[对非小型 batch_design 做 preflight]
214
+ D --> E
215
+ E --> F[渲染或更新 anchor surface]
216
+ F --> G{同一 anchor 连续回滚两次?}
217
+ G -- 是 --> H[切换到 6 个操作以内的微批次]
218
+ G -- 否 --> I[截图并做审查]
219
+ H --> F
220
+ I --> J{Screenshot review 与 layout hygiene 通过?}
221
+ J -- 否 --> F
222
+ J -- 是 --> K[pencil-session persist 把 live MCP 快照写回 .pen]
223
+ K --> L[check-pen-sync 校验 live hash 与 persisted hash 一致]
224
+ L --> M{design-source checkpoint 和 runtime gate 通过?}
225
+ M -- 否 --> F
226
+ M -- 是 --> N{是否还要继续设计?}
227
+ N -- 是 --> E
228
+ N -- 否 --> O[pencil-session end 释放锁]
229
+ O --> P[completion audit]
230
+ P --> Q{completion audit 通过?}
231
+ Q -- 否 --> F
232
+ Q -- 是 --> R[design complete]
233
+ ```
@@ -75,6 +75,11 @@
75
75
 
76
76
  `build` 仍然有效,但它更适合已经明确进入实现阶段的高级直接调用。
77
77
 
78
+ 状态规则:
79
+
80
+ - 如果设计已经完成,但 `tasks.md` 还不存在,下一步主推荐通常应该是 `tasks`,而不是 `build`
81
+ - 只有任务和实现就绪度都已经明确时,才把 `build` 作为主推荐下一步
82
+
78
83
  ## 平台语法
79
84
 
80
85
  如果你只想直接复制不同场景的起始提示词,也可以看:
@@ -122,6 +127,24 @@ HTML references are in /abs/path/to/mockups.
122
127
  - 一条更保守的 planning-first 版本
123
128
  - 一条后续 continue 提示词
124
129
 
130
+ ## 示例:现有产品但流程和逻辑也要一起重做
131
+
132
+ ```text
133
+ $da-vinci use intake for this existing product.
134
+
135
+ This is a large overhaul, not only a UI refresh.
136
+ Current codebase is important reference evidence and migration baseline, but it should not be treated as the final target behavior truth.
137
+ We need to redefine flows, logic, and page structure while preserving selected integrations and constraints.
138
+ Generate the best executable Da Vinci workflow prompt for the next step.
139
+ ```
140
+
141
+ 预期输出:
142
+
143
+ - 推荐 mode:`overhaul-from-code`
144
+ - 一条主执行提示词
145
+ - 一条更保守的 planning-first 版本
146
+ - 一条后续 continue 提示词
147
+
125
148
  ## 示例:盘点完成后继续
126
149
 
127
150
  ```text
@@ -2,6 +2,9 @@
2
2
 
3
3
  这些模板用于在不同产品形态下,快速拿到可直接执行的起始提示词。
4
4
 
5
+ 这些模板主要服务于 screen 设计阶段。
6
+ 如果是存量系统的大改版,且流程或逻辑也会一起变化,应该先用 `overhaul-from-code` 搭配 `intake` 或自定义提示词把 `proposal.md`、`migration-contract.md` 和目标 `specs/` 稳定下来,再复用对应的设计模板。
7
+
5
8
  它们建议和下面这组文档配合使用:
6
9
 
7
10
  - `docs/zh-CN/visual-assist-presets/`
@@ -37,3 +40,80 @@
37
40
  - `Complex redesign`
38
41
  - `Design-only`
39
42
  - `Continue`
43
+
44
+ ## `overhaul-from-code` 提示词模板
45
+
46
+ 这组模板不是按 surface 划分的 redesign 预设。
47
+
48
+ 它们用于:项目已经存在,但目标流程或逻辑要重写,旧代码只能作为参考证据和迁移上下文,不能再默认当成最终行为真相。
49
+
50
+ ### 1. 进入大改版的 intake 提示词
51
+
52
+ 适合:
53
+
54
+ - 仓库已经存在
55
+ - 用户明确知道要大改版
56
+ - 但新的目标行为还没稳定
57
+
58
+ ```text
59
+ $da-vinci use intake for this existing product.
60
+
61
+ This is a broad overhaul, not only a UI refresh.
62
+ Current codebase is important reference evidence and migration baseline, but it should not be treated as the final target behavior truth.
63
+ We need to redefine flows, logic, page structure, and selected UI surfaces while preserving only the approved integrations, permissions, and constraints.
64
+ Recommend the best Da Vinci mode and generate the best executable next-step prompt.
65
+ ```
66
+
67
+ ### 2. `overhaul-from-code` 的需求拆解 / 规格稳定提示词
68
+
69
+ 适合:
70
+
71
+ - mode 已经明确
72
+ - 需要先盘点旧系统并划清迁移边界,再进入设计
73
+
74
+ ```text
75
+ $da-vinci use overhaul-from-code to inventory the current product, define preserve/revise/retire/unknown boundaries, and stabilize the new target requirements before broad design.
76
+
77
+ Current codebase is reference evidence and migration baseline, not the final target behavior truth.
78
+ Create or update:
79
+ - .da-vinci/project-inventory.md
80
+ - .da-vinci/changes/<change-id>/proposal.md
81
+ - .da-vinci/changes/<change-id>/migration-contract.md
82
+ - .da-vinci/changes/<change-id>/specs/
83
+ - .da-vinci/page-map.md
84
+
85
+ Do not start broad Pencil work until the new proposal, migration contract, target specs, and page map are stable enough to drive design.
86
+ ```
87
+
88
+ ### 3. Overhaul 规格稳定后的设计交接提示词
89
+
90
+ 适合:
91
+
92
+ - `proposal.md`、`migration-contract.md`、目标 `specs/`、`page-map.md` 已存在
93
+ - 现在准备开始做 Pencil-backed 的大改版设计
94
+
95
+ ```text
96
+ $da-vinci use overhaul-from-code to design the new target product surfaces from the approved overhaul artifacts.
97
+
98
+ Use the existing .da-vinci/project-inventory.md, proposal.md, migration-contract.md, target specs, page-map.md, DA-VINCI.md, and design-registry.md.
99
+ Treat the new proposal and specs as the target behavior truth.
100
+ Treat the old codebase only as reference evidence and migration context.
101
+ Design 1-3 anchor surfaces first, review screenshots, then expand.
102
+ Persist project-local Pencil files under .da-vinci/designs/.
103
+ Run the normal Pencil runtime gate and completion audit before terminal completion claims.
104
+ ```
105
+
106
+ ### 4. 已有 `overhaul-from-code` 工件后的继续提示词
107
+
108
+ 适合:
109
+
110
+ - 仓库里已经有 overhaul 工件
111
+ - 需要从当前真相状态继续推进
112
+
113
+ ```text
114
+ $da-vinci use continue for this existing overhaul-from-code workflow.
115
+
116
+ Use the existing Da Vinci artifacts.
117
+ Detect whether the workflow should return to breakdown, continue with design, generate tasks, continue implementation, or verify drift.
118
+ Prefer the artifact-backed next safe stage instead of restarting the overhaul from scratch.
119
+ ```
@@ -2,6 +2,9 @@
2
2
 
3
3
  适用于桌面优先的工具型或工作台型产品。
4
4
 
5
+ 这些提示词变体主要服务于设计驱动的 `redesign-from-code` 场景,前提是 workflow mode 已经明确。
6
+ 如果当前 mode 是 `overhaul-from-code`,应该先把 `proposal.md`、`migration-contract.md` 和目标 `specs/` 稳定下来,再按需要改写这个模板,而不是直接原样套用。
7
+
5
8
  建议搭配:
6
9
 
7
10
  - `docs/zh-CN/visual-assist-presets/desktop-app.md`
@@ -19,6 +22,61 @@
19
22
  - `Design-only` 适合先把设计链路和绑定做完,但暂时不改代码。
20
23
  - `Continue` 适合已经有 `.da-vinci/` 工件,需要继续推进的项目。
21
24
 
25
+ ## Overhaul From Code
26
+
27
+ 当桌面产品已经存在,但 workspace 模型、流程逻辑、导航方式或信息架构也要一起重写,而不是只做视觉翻新时,用这组模板。
28
+
29
+ ### Overhaul Intake
30
+
31
+ ```text
32
+ $da-vinci use intake for this existing desktop product.
33
+
34
+ This is a broad overhaul, not only a UI refresh.
35
+ Current desktop codebase is important reference evidence and migration baseline, but it should not be treated as the final target behavior truth.
36
+ We need to redefine flows, workspace structure, interaction model, and selected UI surfaces while preserving only approved integrations, permissions, and constraints.
37
+ Recommend the best Da Vinci mode and generate the best executable next-step prompt.
38
+ ```
39
+
40
+ ### Overhaul Breakdown
41
+
42
+ ```text
43
+ $da-vinci use overhaul-from-code to inventory the current desktop product, define preserve/revise/retire/unknown boundaries, and stabilize the new target requirements before broad design.
44
+
45
+ Current desktop codebase is reference evidence and migration baseline, not the final target behavior truth.
46
+ Create or update:
47
+ - .da-vinci/project-inventory.md
48
+ - .da-vinci/changes/<change-id>/proposal.md
49
+ - .da-vinci/changes/<change-id>/migration-contract.md
50
+ - .da-vinci/changes/<change-id>/specs/
51
+ - .da-vinci/page-map.md
52
+
53
+ Inventory workspaces, side panels, inspectors, dialogs, overlays, and materially different states before broad Pencil work.
54
+ Do not start broad Pencil work until the new proposal, migration contract, target specs, and page map are stable enough to drive design.
55
+ ```
56
+
57
+ ### Overhaul Design
58
+
59
+ ```text
60
+ $da-vinci use overhaul-from-code to design the new target desktop surfaces from the approved overhaul artifacts.
61
+
62
+ Use the existing .da-vinci/project-inventory.md, proposal.md, migration-contract.md, target specs, page-map.md, DA-VINCI.md, and design-registry.md.
63
+ Treat the new proposal and specs as the target behavior truth.
64
+ Treat the old desktop codebase only as reference evidence and migration context.
65
+ Design 1-3 anchor surfaces first, review screenshots, then expand.
66
+ Persist project-local Pencil files under .da-vinci/designs/.
67
+ Run the normal Pencil runtime gate and completion audit before terminal completion claims.
68
+ ```
69
+
70
+ ### Overhaul Continue
71
+
72
+ ```text
73
+ $da-vinci use continue for this existing overhaul-from-code desktop workflow.
74
+
75
+ Use the existing Da Vinci artifacts.
76
+ Detect whether the workflow should return to breakdown, continue with design, generate tasks, continue implementation, or verify drift.
77
+ Prefer the artifact-backed next safe stage instead of restarting the overhaul from scratch.
78
+ ```
79
+
22
80
  ## Simple Redesign
23
81
 
24
82
  ```text
@@ -2,6 +2,9 @@
2
2
 
3
3
  适用于以手机为主的产品界面。
4
4
 
5
+ 这些提示词变体主要服务于设计驱动的 `redesign-from-code` 场景,前提是 workflow mode 已经明确。
6
+ 如果当前 mode 是 `overhaul-from-code`,应该先把 `proposal.md`、`migration-contract.md` 和目标 `specs/` 稳定下来,再按需要改写这个模板,而不是直接原样套用。
7
+
5
8
  建议搭配:
6
9
 
7
10
  - `docs/zh-CN/visual-assist-presets/mobile-app.md`
@@ -19,6 +22,61 @@
19
22
  - `Design-only` 适合先把设计链路和绑定做完,但暂时不改代码。
20
23
  - `Continue` 适合已经有 `.da-vinci/` 工件,需要继续推进的项目。
21
24
 
25
+ ## Overhaul From Code
26
+
27
+ 当产品已经存在,但移动端流程、逻辑和页面结构也要一起重写,而不是只做换皮时,用这组模板。
28
+
29
+ ### Overhaul Intake
30
+
31
+ ```text
32
+ $da-vinci use intake for this existing mobile product.
33
+
34
+ This is a broad overhaul, not only a UI refresh.
35
+ Current Android or mobile code is important reference evidence and migration baseline, but it should not be treated as the final target behavior truth.
36
+ We need to redefine mobile flows, states, navigation structure, and selected surfaces while preserving only approved integrations, permissions, and constraints.
37
+ Recommend the best Da Vinci mode and generate the best executable next-step prompt.
38
+ ```
39
+
40
+ ### Overhaul Breakdown
41
+
42
+ ```text
43
+ $da-vinci use overhaul-from-code to inventory the current mobile product, define preserve/revise/retire/unknown boundaries, and stabilize the new target requirements before broad design.
44
+
45
+ Current mobile codebase is reference evidence and migration baseline, not the final target behavior truth.
46
+ Create or update:
47
+ - .da-vinci/project-inventory.md
48
+ - .da-vinci/changes/<change-id>/proposal.md
49
+ - .da-vinci/changes/<change-id>/migration-contract.md
50
+ - .da-vinci/changes/<change-id>/specs/
51
+ - .da-vinci/page-map.md
52
+
53
+ Inventory activities, fragments, tabs, dialogs, sheets, overlays, and materially different states before broad Pencil work.
54
+ Do not start broad Pencil work until the new proposal, migration contract, target specs, and page map are stable enough to drive design.
55
+ ```
56
+
57
+ ### Overhaul Design
58
+
59
+ ```text
60
+ $da-vinci use overhaul-from-code to design the new target mobile surfaces from the approved overhaul artifacts.
61
+
62
+ Use the existing .da-vinci/project-inventory.md, proposal.md, migration-contract.md, target specs, page-map.md, DA-VINCI.md, and design-registry.md.
63
+ Treat the new proposal and specs as the target behavior truth.
64
+ Treat the old mobile codebase only as reference evidence and migration context.
65
+ Design 1-3 anchor surfaces first, review screenshots, then expand.
66
+ Persist project-local Pencil files under .da-vinci/designs/.
67
+ Run the normal Pencil runtime gate and completion audit before terminal completion claims.
68
+ ```
69
+
70
+ ### Overhaul Continue
71
+
72
+ ```text
73
+ $da-vinci use continue for this existing overhaul-from-code mobile workflow.
74
+
75
+ Use the existing Da Vinci artifacts.
76
+ Detect whether the workflow should return to breakdown, continue with design, generate tasks, continue implementation, or verify drift.
77
+ Prefer the artifact-backed next safe stage instead of restarting the overhaul from scratch.
78
+ ```
79
+
22
80
  ## Simple Redesign
23
81
 
24
82
  ```text
@@ -2,6 +2,9 @@
2
2
 
3
3
  适用于平板优先,或强依赖扩展触控区域的产品。
4
4
 
5
+ 这些提示词变体主要服务于设计驱动的 `redesign-from-code` 场景,前提是 workflow mode 已经明确。
6
+ 如果当前 mode 是 `overhaul-from-code`,应该先把 `proposal.md`、`migration-contract.md` 和目标 `specs/` 稳定下来,再按需要改写这个模板,而不是直接原样套用。
7
+
5
8
  建议搭配:
6
9
 
7
10
  - `docs/zh-CN/visual-assist-presets/tablet-app.md`
@@ -19,6 +22,61 @@
19
22
  - `Design-only` 适合先把设计链路和绑定做完,但暂时不改代码。
20
23
  - `Continue` 适合已经有 `.da-vinci/` 工件,需要继续推进的项目。
21
24
 
25
+ ## Overhaul From Code
26
+
27
+ 当平板产品已经存在,但 split-pane 行为、流程逻辑、方向感知结构或页面职责也要一起重写,而不是只做视觉翻新时,用这组模板。
28
+
29
+ ### Overhaul Intake
30
+
31
+ ```text
32
+ $da-vinci use intake for this existing tablet product.
33
+
34
+ This is a broad overhaul, not only a UI refresh.
35
+ Current tablet codebase is important reference evidence and migration baseline, but it should not be treated as the final target behavior truth.
36
+ We need to redefine flows, orientation-aware structure, page responsibilities, and selected surfaces while preserving only approved integrations, permissions, and constraints.
37
+ Recommend the best Da Vinci mode and generate the best executable next-step prompt.
38
+ ```
39
+
40
+ ### Overhaul Breakdown
41
+
42
+ ```text
43
+ $da-vinci use overhaul-from-code to inventory the current tablet product, define preserve/revise/retire/unknown boundaries, and stabilize the new target requirements before broad design.
44
+
45
+ Current tablet codebase is reference evidence and migration baseline, not the final target behavior truth.
46
+ Create or update:
47
+ - .da-vinci/project-inventory.md
48
+ - .da-vinci/changes/<change-id>/proposal.md
49
+ - .da-vinci/changes/<change-id>/migration-contract.md
50
+ - .da-vinci/changes/<change-id>/specs/
51
+ - .da-vinci/page-map.md
52
+
53
+ Inventory split-pane regions, sidebars, expanded canvases, dialogs, sheets, orientation-driven changes, and materially different states before broad Pencil work.
54
+ Do not start broad Pencil work until the new proposal, migration contract, target specs, and page map are stable enough to drive design.
55
+ ```
56
+
57
+ ### Overhaul Design
58
+
59
+ ```text
60
+ $da-vinci use overhaul-from-code to design the new target tablet surfaces from the approved overhaul artifacts.
61
+
62
+ Use the existing .da-vinci/project-inventory.md, proposal.md, migration-contract.md, target specs, page-map.md, DA-VINCI.md, and design-registry.md.
63
+ Treat the new proposal and specs as the target behavior truth.
64
+ Treat the old tablet codebase only as reference evidence and migration context.
65
+ Design 1-3 anchor surfaces first, review screenshots, then expand.
66
+ Persist project-local Pencil files under .da-vinci/designs/.
67
+ Run the normal Pencil runtime gate and completion audit before terminal completion claims.
68
+ ```
69
+
70
+ ### Overhaul Continue
71
+
72
+ ```text
73
+ $da-vinci use continue for this existing overhaul-from-code tablet workflow.
74
+
75
+ Use the existing Da Vinci artifacts.
76
+ Detect whether the workflow should return to breakdown, continue with design, generate tasks, continue implementation, or verify drift.
77
+ Prefer the artifact-backed next safe stage instead of restarting the overhaul from scratch.
78
+ ```
79
+
22
80
  ## Simple Redesign
23
81
 
24
82
  ```text