@xenonbyte/da-vinci-workflow 0.1.8 → 0.1.10
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/CHANGELOG.md +18 -0
- package/README.md +97 -1
- package/README.zh-CN.md +97 -1
- package/SKILL.md +57 -0
- package/docs/mode-use-cases.md +29 -7
- package/docs/visual-adapters.md +255 -0
- package/docs/visual-assist-presets/README.md +31 -0
- package/docs/visual-assist-presets/desktop-app.md +36 -0
- package/docs/visual-assist-presets/mobile-app.md +36 -0
- package/docs/visual-assist-presets/tablet-app.md +36 -0
- package/docs/visual-assist-presets/web-app.md +36 -0
- package/docs/workflow-examples.md +48 -18
- package/docs/zh-CN/mode-use-cases.md +16 -0
- package/docs/zh-CN/visual-adapters.md +257 -0
- package/docs/zh-CN/visual-assist-presets/README.md +31 -0
- package/docs/zh-CN/visual-assist-presets/desktop-app.md +32 -0
- package/docs/zh-CN/visual-assist-presets/mobile-app.md +31 -0
- package/docs/zh-CN/visual-assist-presets/tablet-app.md +31 -0
- package/docs/zh-CN/visual-assist-presets/web-app.md +32 -0
- package/docs/zh-CN/workflow-examples.md +48 -18
- package/examples/greenfield-spec-markupflow/DA-VINCI.md +14 -0
- package/examples/greenfield-spec-markupflow/README.md +9 -2
- package/examples/greenfield-spec-markupflow/design-registry.md +13 -4
- package/examples/greenfield-spec-markupflow/pencil-bindings.md +4 -4
- package/examples/greenfield-spec-markupflow/pencil-design.md +15 -2
- package/package.json +1 -1
- package/references/artifact-templates.md +38 -0
- package/references/checkpoints.md +9 -2
- package/references/design-inputs.md +13 -0
- package/references/page-mapping.md +12 -0
- package/references/pencil-design-to-code.md +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,24 @@
|
|
|
4
4
|
|
|
5
5
|
- No unreleased changes yet.
|
|
6
6
|
|
|
7
|
+
## v0.1.10 - 2026-03-27
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- `redesign-from-code` now documents a stricter contract: existing code is behavior truth, not layout truth
|
|
11
|
+
- complex screens are now documented to decompose into subpages, overlays, materially different states, and implementation surfaces before broad Pencil redesign
|
|
12
|
+
- design-checkpoint guidance now explicitly blocks skin-swap redesigns, generic card mosaics, weak visual anchors, and decorative clutter
|
|
13
|
+
- `Visual Assist` documentation and README guidance now include clearer field explanations, quick-start recommendations, quality-first configuration advice, and stronger usage examples for Android-style redesign work
|
|
14
|
+
|
|
15
|
+
## v0.1.9 - 2026-03-27
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
- `docs/visual-adapters.md` and `docs/zh-CN/visual-adapters.md` to explain visual-adapter configuration, resolution, and fallback behavior
|
|
19
|
+
- `docs/visual-assist-presets/` and `docs/zh-CN/visual-assist-presets/` with ready-to-copy `Visual Assist` presets for mobile, desktop, web, and tablet product surfaces
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
- forward-test example artifacts now show `Visual Assist`, `Visual Adapter Resolution`, and project-local `.pen` persistence patterns
|
|
23
|
+
- workflow examples and README navigation now point to the new visual-adapter and preset documentation
|
|
24
|
+
|
|
7
25
|
## v0.1.8 - 2026-03-27
|
|
8
26
|
|
|
9
27
|
### Added
|
package/README.md
CHANGED
|
@@ -27,10 +27,17 @@ This workflow is intended for:
|
|
|
27
27
|
|
|
28
28
|
Latest published npm package:
|
|
29
29
|
|
|
30
|
-
- `@xenonbyte/da-vinci-workflow@0.1.
|
|
30
|
+
- `@xenonbyte/da-vinci-workflow@0.1.10`
|
|
31
31
|
|
|
32
32
|
Release highlights:
|
|
33
33
|
|
|
34
|
+
- `redesign-from-code` now states explicitly that existing code is behavior truth, not layout truth
|
|
35
|
+
- complex pages are now expected to decompose into subpages, overlays, materially different states, and implementation surfaces before broad Pencil redesign
|
|
36
|
+
- design-checkpoint guidance now explicitly blocks skin-swap redesigns, generic card mosaics, weak visual anchors, and decorative clutter
|
|
37
|
+
- `Visual Assist` docs now include quick-start recommendations and a quality-first configuration for design-critical work
|
|
38
|
+
- visual-adapter configuration is now documented explicitly, including field meanings, resolution order, and fallback behavior
|
|
39
|
+
- ready-to-copy `Visual Assist` presets are now included for mobile, desktop, web, and tablet scenarios
|
|
40
|
+
- the repo-local forward test now shows how `Visual Assist`, adapter resolution, and persisted `.pen` paths should be recorded
|
|
34
41
|
- Codex natural-language usage is now documented explicitly, including `intake`, `prompt`, `continue`, and direct mode entry patterns
|
|
35
42
|
- project-local Pencil `.pen` files are now documented to persist under `.da-vinci/designs/`
|
|
36
43
|
- design registry and artifact templates now record preferred persisted `.pen` paths for project-local reuse
|
|
@@ -83,6 +90,67 @@ Route discipline:
|
|
|
83
90
|
- they should not default the user into `build`
|
|
84
91
|
- `build` remains a direct expert route for workflows that are already implementation-ready
|
|
85
92
|
|
|
93
|
+
## Visual Assist Quick Start
|
|
94
|
+
|
|
95
|
+
Use `Visual Assist` when the project wants optional help from local UI-design skills such as `frontend-skill` or `ui-ux-pro-max`.
|
|
96
|
+
|
|
97
|
+
Recommended default:
|
|
98
|
+
|
|
99
|
+
```md
|
|
100
|
+
## Visual Assist
|
|
101
|
+
- Preferred adapters:
|
|
102
|
+
- ui-ux-pro-max
|
|
103
|
+
- frontend-skill
|
|
104
|
+
- Scope:
|
|
105
|
+
- visual contract refinement
|
|
106
|
+
- page composition
|
|
107
|
+
- hierarchy and spacing
|
|
108
|
+
- Pencil design refinement
|
|
109
|
+
- Fallback:
|
|
110
|
+
- native-da-vinci
|
|
111
|
+
- Require Adapter:
|
|
112
|
+
- false
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Use this when:
|
|
116
|
+
|
|
117
|
+
- the project is an app, dashboard, desktop tool, or other product surface
|
|
118
|
+
- the workflow should continue even if no local adapter is installed
|
|
119
|
+
- you want better composition and hierarchy without turning adapter availability into a blocker
|
|
120
|
+
|
|
121
|
+
Quality-first redesign configuration:
|
|
122
|
+
|
|
123
|
+
```md
|
|
124
|
+
## Visual Assist
|
|
125
|
+
- Preferred adapters:
|
|
126
|
+
- frontend-skill
|
|
127
|
+
- ui-ux-pro-max
|
|
128
|
+
- Scope:
|
|
129
|
+
- visual contract refinement
|
|
130
|
+
- page composition
|
|
131
|
+
- hierarchy and spacing
|
|
132
|
+
- motion guidance
|
|
133
|
+
- Pencil design refinement
|
|
134
|
+
- Fallback:
|
|
135
|
+
- native-da-vinci
|
|
136
|
+
- Require Adapter:
|
|
137
|
+
- true
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
Use this when:
|
|
141
|
+
|
|
142
|
+
- the project is visually sensitive and plain fallback quality is not acceptable
|
|
143
|
+
- prior redesign attempts drifted into generic card grids, weak anchors, or skin-swap outputs
|
|
144
|
+
- you want the workflow to stop instead of silently continuing without a strong local design helper
|
|
145
|
+
|
|
146
|
+
Selection rules:
|
|
147
|
+
|
|
148
|
+
- keep `ui-ux-pro-max` first for dense app and dashboard surfaces when the visual bar is moderate
|
|
149
|
+
- move `frontend-skill` to the first slot when art direction, composition quality, and premium visual hierarchy matter more
|
|
150
|
+
- keep `Fallback: native-da-vinci` unless you explicitly want missing adapters to block the workflow
|
|
151
|
+
- keep `Require Adapter: false` by default and raise it to `true` only for design-critical work
|
|
152
|
+
- keep `Scope` limited to presentation quality; do not use it to delegate behavior, routes, or state truth
|
|
153
|
+
|
|
86
154
|
## Core workflow
|
|
87
155
|
|
|
88
156
|
Da Vinci runs in this order:
|
|
@@ -229,6 +297,22 @@ Rules:
|
|
|
229
297
|
- `.da-vinci/designs/` is the default project-local location for persisted `.pen` files
|
|
230
298
|
- `page-map.md` is the source of truth for implementation pages
|
|
231
299
|
- `pencil-bindings.md` is the source of truth for implementation page -> Pencil page mapping
|
|
300
|
+
- in `redesign-from-code`, existing code is behavior truth, not layout truth
|
|
301
|
+
- complex pages should be decomposed into subpages, states, overlays, and implementation surfaces before Pencil redesign is treated as final
|
|
302
|
+
|
|
303
|
+
Optional visual-adapter policy:
|
|
304
|
+
|
|
305
|
+
- `DA-VINCI.md` may declare preferred visual adapters for design assistance
|
|
306
|
+
- visual adapters are optional helpers for composition, hierarchy, spacing, and motion guidance
|
|
307
|
+
- they may refine `DA-VINCI.md`, `design.md`, and `pencil-design.md`
|
|
308
|
+
- they must not override behavior truth, route truth, page-state truth, or acceptance rules
|
|
309
|
+
- if a requested adapter is unavailable locally, Da Vinci should continue with native design rules and record the fallback in `design-registry.md`
|
|
310
|
+
|
|
311
|
+
Recommended practice:
|
|
312
|
+
|
|
313
|
+
- configure `Visual Assist` in `DA-VINCI.md` before broad Pencil generation begins
|
|
314
|
+
- for complex Android redesigns, ask Da Vinci to decompose activities, fragments, tabs, sheets, dialogs, and materially different states before design work expands
|
|
315
|
+
- if the output quality is weak, promote `frontend-skill`, tighten the design checkpoint bar, and prefer a fresh composition over a recolor of the old UI
|
|
232
316
|
|
|
233
317
|
When a relevant mapping already exists:
|
|
234
318
|
|
|
@@ -239,6 +323,7 @@ When mappings do not exist but local code exists:
|
|
|
239
323
|
|
|
240
324
|
- reconstruct the baseline from the local project
|
|
241
325
|
- rebuild inventory, page map, and design registry
|
|
326
|
+
- decompose complex containers into real design surfaces before broad Pencil generation
|
|
242
327
|
- save or export the rebuilt Pencil baseline into `.da-vinci/designs/` when possible
|
|
243
328
|
|
|
244
329
|
When neither mappings nor usable design sources exist:
|
|
@@ -256,6 +341,7 @@ Before generating Pencil designs for a greenfield project, Da Vinci should colle
|
|
|
256
341
|
- density
|
|
257
342
|
- brand direction
|
|
258
343
|
- responsive priority
|
|
344
|
+
- optional visual-adapter preferences
|
|
259
345
|
|
|
260
346
|
Preferred inference order:
|
|
261
347
|
|
|
@@ -270,6 +356,12 @@ If `DA-VINCI.md` does not exist:
|
|
|
270
356
|
- generate it from stable user preferences, existing project signals, or inferred defaults
|
|
271
357
|
- save it before generating many project pages, so later pages do not drift stylistically
|
|
272
358
|
|
|
359
|
+
If the project requests visual adapters:
|
|
360
|
+
|
|
361
|
+
- resolve them from the user request first, then `DA-VINCI.md`, then locally available skills
|
|
362
|
+
- choose one primary adapter when multiple helpers are available
|
|
363
|
+
- treat them as non-blocking unless the user explicitly requires a specific adapter
|
|
364
|
+
|
|
273
365
|
## Installation
|
|
274
366
|
|
|
275
367
|
Install the package:
|
|
@@ -417,6 +509,8 @@ See:
|
|
|
417
509
|
|
|
418
510
|
- `docs/prompt-entrypoints.md`
|
|
419
511
|
- `docs/codex-natural-language-usage.md`
|
|
512
|
+
- `docs/visual-adapters.md`
|
|
513
|
+
- `docs/visual-assist-presets/`
|
|
420
514
|
- `docs/workflow-examples.md`
|
|
421
515
|
- `docs/mode-use-cases.md`
|
|
422
516
|
|
|
@@ -425,6 +519,8 @@ See:
|
|
|
425
519
|
Chinese companion documents are included in this repository:
|
|
426
520
|
|
|
427
521
|
- `README.zh-CN.md`
|
|
522
|
+
- `docs/zh-CN/visual-adapters.md`
|
|
523
|
+
- `docs/zh-CN/visual-assist-presets/`
|
|
428
524
|
- `docs/zh-CN/`
|
|
429
525
|
|
|
430
526
|
## Repository layout
|
package/README.zh-CN.md
CHANGED
|
@@ -29,10 +29,17 @@ Da Vinci 是一个把产品需求一路推进到结构化规格、Pencil 设计
|
|
|
29
29
|
|
|
30
30
|
最新已发布 npm 包:
|
|
31
31
|
|
|
32
|
-
- `@xenonbyte/da-vinci-workflow@0.1.
|
|
32
|
+
- `@xenonbyte/da-vinci-workflow@0.1.10`
|
|
33
33
|
|
|
34
34
|
已发布版本重点:
|
|
35
35
|
|
|
36
|
+
- `redesign-from-code` 现在明确写清:现有代码只是真相行为,不是真相布局
|
|
37
|
+
- 复杂页面现在明确要求在大规模 Pencil 重设计前拆成 subpage、overlay、明显不同 state 和 implementation surface
|
|
38
|
+
- design checkpoint 现在明确会拦截旧 UI 换皮、通用卡片拼贴、弱视觉锚点和装饰性噪音
|
|
39
|
+
- `Visual Assist` 文档现在补了快速上手建议和“设计质量优先”配置
|
|
40
|
+
- visual adapter 的配置字段、解析顺序和回退行为现在有单独文档说明
|
|
41
|
+
- 现在提供按移动端、桌面端、Web、平板拆分的 `Visual Assist` 可复制模板
|
|
42
|
+
- 仓库内的 forward test 示例现在展示了 `Visual Assist`、adapter 解析结果和 `.pen` 持久化记录方式
|
|
36
43
|
- Codex 的自然语言用法现在有单独文档,明确说明 `intake`、`prompt`、`continue` 和直接 mode 调用方式
|
|
37
44
|
- 项目内 Pencil `.pen` 文件现在明确约定默认持久化到 `.da-vinci/designs/`
|
|
38
45
|
- 设计源登记和工件模板现在会记录项目内优先使用的 `.pen` 路径
|
|
@@ -88,6 +95,67 @@ Da Vinci V2 支持四种模式:
|
|
|
88
95
|
- 它们不应该默认把用户直接导向 `build`
|
|
89
96
|
- `build` 仍然保留,但它是给已经实现就绪的高级直接入口
|
|
90
97
|
|
|
98
|
+
## Visual Assist 快速上手
|
|
99
|
+
|
|
100
|
+
当项目想借助本地 UI 设计 skill,例如 `frontend-skill` 或 `ui-ux-pro-max`,来提升设计质量时,就配置 `Visual Assist`。
|
|
101
|
+
|
|
102
|
+
推荐默认配置:
|
|
103
|
+
|
|
104
|
+
```md
|
|
105
|
+
## Visual Assist
|
|
106
|
+
- Preferred adapters:
|
|
107
|
+
- ui-ux-pro-max
|
|
108
|
+
- frontend-skill
|
|
109
|
+
- Scope:
|
|
110
|
+
- visual contract refinement
|
|
111
|
+
- page composition
|
|
112
|
+
- hierarchy and spacing
|
|
113
|
+
- Pencil design refinement
|
|
114
|
+
- Fallback:
|
|
115
|
+
- native-da-vinci
|
|
116
|
+
- Require Adapter:
|
|
117
|
+
- false
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
适用场景:
|
|
121
|
+
|
|
122
|
+
- app、dashboard、桌面工具等产品型界面
|
|
123
|
+
- 本地没有 adapter 时工作流也应该继续
|
|
124
|
+
- 想提升构图和层级,但不希望 adapter 缺失变成阻塞
|
|
125
|
+
|
|
126
|
+
设计质量优先配置:
|
|
127
|
+
|
|
128
|
+
```md
|
|
129
|
+
## Visual Assist
|
|
130
|
+
- Preferred adapters:
|
|
131
|
+
- frontend-skill
|
|
132
|
+
- ui-ux-pro-max
|
|
133
|
+
- Scope:
|
|
134
|
+
- visual contract refinement
|
|
135
|
+
- page composition
|
|
136
|
+
- hierarchy and spacing
|
|
137
|
+
- motion guidance
|
|
138
|
+
- Pencil design refinement
|
|
139
|
+
- Fallback:
|
|
140
|
+
- native-da-vinci
|
|
141
|
+
- Require Adapter:
|
|
142
|
+
- true
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
适用场景:
|
|
146
|
+
|
|
147
|
+
- 页面视觉质量要求高,不能接受普通 fallback 质量
|
|
148
|
+
- 之前的重设计已经出现“堆卡片、弱锚点、只是旧 UI 换皮”这类问题
|
|
149
|
+
- 你希望没有强设计辅助 skill 时直接停下,而不是继续生成普通结果
|
|
150
|
+
|
|
151
|
+
选择建议:
|
|
152
|
+
|
|
153
|
+
- 高密度 app、dashboard、工具型界面,且视觉要求中等时,优先把 `ui-ux-pro-max` 放第一位
|
|
154
|
+
- 如果更重视 art direction、构图和高级感,就把 `frontend-skill` 放第一位
|
|
155
|
+
- 默认保留 `Fallback: native-da-vinci`
|
|
156
|
+
- `Require Adapter` 默认保持 `false`,只有设计要求很高时再改成 `true`
|
|
157
|
+
- `Scope` 只管 presentation 质量,不要拿它去定义 behavior、route 或 state truth
|
|
158
|
+
|
|
91
159
|
## 核心工作流顺序
|
|
92
160
|
|
|
93
161
|
Da Vinci 的默认顺序是:
|
|
@@ -182,6 +250,22 @@ project/
|
|
|
182
250
|
- `.da-vinci/designs/` 是项目内持久化 `.pen` 文件的默认位置
|
|
183
251
|
- `page-map.md` 是实现页面和状态的真相源
|
|
184
252
|
- `pencil-bindings.md` 是实现页面到 Pencil 页面绑定的真相源
|
|
253
|
+
- 在 `redesign-from-code` 里,现有代码只是真相行为,不是真相布局
|
|
254
|
+
- 复杂页面在 Pencil 重设计前应该先拆成 subpage、state、overlay 和 implementation surface
|
|
255
|
+
|
|
256
|
+
可选 visual adapter 规则:
|
|
257
|
+
|
|
258
|
+
- `DA-VINCI.md` 可以声明期望使用的 visual adapter 来辅助设计
|
|
259
|
+
- visual adapter 只用于增强构图、层级、留白、节奏和 motion 判断
|
|
260
|
+
- 它可以影响 `DA-VINCI.md`、`design.md`、`pencil-design.md`
|
|
261
|
+
- 它不能覆盖 behavior truth、路由真相、页面状态真相或验收规则
|
|
262
|
+
- 如果本地没有请求的 adapter,Da Vinci 应继续使用原生设计规则,并在 `design-registry.md` 里记录回退结果
|
|
263
|
+
|
|
264
|
+
建议做法:
|
|
265
|
+
|
|
266
|
+
- 在开始大规模 Pencil 设计前,就在 `DA-VINCI.md` 里写好 `Visual Assist`
|
|
267
|
+
- 面对复杂 Android 重设计时,先要求 Da Vinci 把 activities、fragments、tabs、sheets、dialogs 和明显不同的 states 拆开
|
|
268
|
+
- 如果结果很丑,就把 `frontend-skill` 提到第一位,收紧 design checkpoint,并明确要求 fresh composition,而不是旧 UI 改色
|
|
185
269
|
|
|
186
270
|
当已有页面映射存在时:
|
|
187
271
|
|
|
@@ -192,6 +276,7 @@ project/
|
|
|
192
276
|
|
|
193
277
|
- 先从当前项目重建设计基线
|
|
194
278
|
- 重建 inventory、page-map、design-registry
|
|
279
|
+
- 先把复杂容器拆成真实的设计 surface,再进入大规模 Pencil 设计
|
|
195
280
|
- 在可行时把新的 Pencil 基线保存或导出到 `.da-vinci/designs/`
|
|
196
281
|
|
|
197
282
|
当既没有映射也没有可用设计源时:
|
|
@@ -200,6 +285,13 @@ project/
|
|
|
200
285
|
- 在可行时把基线保存到 `.da-vinci/designs/`
|
|
201
286
|
- 并在 `design-registry.md` 里记录准确路径
|
|
202
287
|
|
|
288
|
+
如果项目声明了 visual adapter:
|
|
289
|
+
|
|
290
|
+
- 先看用户请求,其次看 `DA-VINCI.md`,再看本地可用 skill
|
|
291
|
+
- 如果存在多个可用辅助 skill,收敛出一个 primary adapter,必要时再保留 secondary helpers
|
|
292
|
+
- 默认把它当成非阻塞增强层
|
|
293
|
+
- 只有用户明确要求必须使用某个 adapter 时,缺失才应阻塞工作流
|
|
294
|
+
|
|
203
295
|
## 安装
|
|
204
296
|
|
|
205
297
|
安装 npm 包:
|
|
@@ -330,6 +422,8 @@ Continue into full-delivery.
|
|
|
330
422
|
|
|
331
423
|
- `docs/codex-natural-language-usage.md`
|
|
332
424
|
- `docs/prompt-entrypoints.md`
|
|
425
|
+
- `docs/visual-adapters.md`
|
|
426
|
+
- `docs/visual-assist-presets/`
|
|
333
427
|
- `docs/workflow-examples.md`
|
|
334
428
|
- `docs/mode-use-cases.md`
|
|
335
429
|
- `references/`
|
|
@@ -337,6 +431,8 @@ Continue into full-delivery.
|
|
|
337
431
|
中文文档:
|
|
338
432
|
|
|
339
433
|
- `README.zh-CN.md`
|
|
434
|
+
- `docs/zh-CN/visual-adapters.md`
|
|
435
|
+
- `docs/zh-CN/visual-assist-presets/`
|
|
340
436
|
- `docs/zh-CN/`
|
|
341
437
|
|
|
342
438
|
## 仓库布局
|
package/SKILL.md
CHANGED
|
@@ -15,6 +15,7 @@ Keep these rules fixed:
|
|
|
15
15
|
- Pencil decides presentation.
|
|
16
16
|
- Tasks decide implementation order.
|
|
17
17
|
- Code must follow both requirements and Pencil data.
|
|
18
|
+
- Existing code is behavior truth, not layout truth, during `redesign-from-code`.
|
|
18
19
|
- When requirements and Pencil drift apart, stop and update the source artifacts before continuing implementation.
|
|
19
20
|
|
|
20
21
|
## Execution Policy
|
|
@@ -151,6 +152,7 @@ Before generating new Pencil designs for a greenfield project, collect or infer:
|
|
|
151
152
|
- detect whether `DA-VINCI.md` already exists
|
|
152
153
|
- if it exists, treat it as the visual baseline for future pages
|
|
153
154
|
- if it does not exist, generate it from stable user preferences, existing project signals, or inferred defaults before broad Pencil page generation
|
|
155
|
+
- if it declares preferred visual adapters, treat them as optional design-assist preferences, not as behavior truth
|
|
154
156
|
|
|
155
157
|
1. product form factor
|
|
156
158
|
- desktop software
|
|
@@ -180,6 +182,13 @@ Use this priority order:
|
|
|
180
182
|
|
|
181
183
|
Do not repeatedly ask for inputs that are already stable in the artifacts.
|
|
182
184
|
|
|
185
|
+
Treat visual adapters as optional design-assist layers.
|
|
186
|
+
|
|
187
|
+
- resolve them from the user request first, then `DA-VINCI.md`, then locally available skills
|
|
188
|
+
- use them to improve visual contract quality, composition, hierarchy, spacing, and motion guidance
|
|
189
|
+
- do not let them redefine behavior, page truth, route truth, or acceptance rules
|
|
190
|
+
- if a requested adapter is unavailable locally, continue with native Da Vinci design rules and record the fallback
|
|
191
|
+
|
|
183
192
|
## Default Workflow
|
|
184
193
|
|
|
185
194
|
Run the workflow in this order:
|
|
@@ -348,6 +357,8 @@ If the active mode is `redesign-from-code`:
|
|
|
348
357
|
|
|
349
358
|
- inventory current routes, pages, and modules before redefining page structure
|
|
350
359
|
- distinguish preserved behavior from replaced presentation
|
|
360
|
+
- treat existing code as behavior truth and implementation-surface discovery, not as a visual-layout baseline
|
|
361
|
+
- default to fresh visual composition unless the user explicitly asks to preserve the current layout skeleton
|
|
351
362
|
- partition specs by redesign slice when one oversized `ui-refresh` spec would hide important implementation boundaries
|
|
352
363
|
|
|
353
364
|
## Spec Partitioning Rules
|
|
@@ -396,6 +407,13 @@ Use `DA-VINCI.md` as the project-level visual source of truth for:
|
|
|
396
407
|
- typography direction
|
|
397
408
|
- component tone
|
|
398
409
|
- rules for cross-page consistency
|
|
410
|
+
- optional visual adapter preferences
|
|
411
|
+
|
|
412
|
+
Treat visual adapters as optional helpers for presentation quality only.
|
|
413
|
+
|
|
414
|
+
- they may refine `DA-VINCI.md`, `design.md`, and `pencil-design.md`
|
|
415
|
+
- they must not override behavior truth from requirements or existing code
|
|
416
|
+
- they must not replace `page-map.md`, `design-registry.md`, or `pencil-bindings.md`
|
|
399
417
|
|
|
400
418
|
When a relevant mapping already exists:
|
|
401
419
|
|
|
@@ -407,6 +425,7 @@ When `DA-VINCI.md` already exists:
|
|
|
407
425
|
|
|
408
426
|
- use it as the baseline visual contract
|
|
409
427
|
- do not regenerate visual direction from scratch unless the change explicitly rebrands or resets the product style
|
|
428
|
+
- if it declares preferred visual adapters, try to resolve them without blocking the workflow
|
|
410
429
|
|
|
411
430
|
When page-to-Pencil bindings already exist:
|
|
412
431
|
|
|
@@ -435,8 +454,42 @@ When a Pencil session cannot yet be exported locally:
|
|
|
435
454
|
- record why local persistence is pending
|
|
436
455
|
- do not hide the lack of a project-local `.pen` path
|
|
437
456
|
|
|
457
|
+
When visual adapters are requested:
|
|
458
|
+
|
|
459
|
+
- resolve them from local availability when possible
|
|
460
|
+
- choose one primary adapter when multiple helpers are available
|
|
461
|
+
- record the requested adapters, resolved primary adapter, any secondary helpers, and fallback status in `design-registry.md`
|
|
462
|
+
- continue with native Da Vinci design rules when no adapter is available unless the user explicitly requires a specific adapter
|
|
463
|
+
|
|
438
464
|
If the request is too vague to design or implement safely, ask a short clarification question before generating artifacts.
|
|
439
465
|
|
|
466
|
+
## Surface Decomposition Rules
|
|
467
|
+
|
|
468
|
+
Do not treat one implementation container as one design surface by default.
|
|
469
|
+
|
|
470
|
+
For complex products, decompose by:
|
|
471
|
+
|
|
472
|
+
- canonical page
|
|
473
|
+
- subpage
|
|
474
|
+
- state
|
|
475
|
+
- overlay
|
|
476
|
+
- shared shell region
|
|
477
|
+
- implementation surface such as activity, fragment, tab, bottom sheet, dialog, or full-screen mode
|
|
478
|
+
|
|
479
|
+
When an Android screen contains multiple fragments, tabs, nested flows, or materially different states:
|
|
480
|
+
|
|
481
|
+
- split them into distinct design surfaces in `page-map.md`
|
|
482
|
+
- give each meaningful state or subpage its own Pencil target when the layout materially changes
|
|
483
|
+
- avoid collapsing them into one overloaded redesign screen
|
|
484
|
+
|
|
485
|
+
One implementation page may legitimately map to:
|
|
486
|
+
|
|
487
|
+
- multiple Pencil screens
|
|
488
|
+
- multiple states of one Pencil page
|
|
489
|
+
- one shared shell plus several detail surfaces
|
|
490
|
+
|
|
491
|
+
Treat surface decomposition as required when visual structure changes materially across states or subflows.
|
|
492
|
+
|
|
440
493
|
## Pencil Design Rules
|
|
441
494
|
|
|
442
495
|
Use Pencil as a structured UI source, not as a static image source.
|
|
@@ -446,9 +499,13 @@ When creating or editing Pencil designs:
|
|
|
446
499
|
- Build the pages required by the current scope, not an abstract moodboard
|
|
447
500
|
- follow `page-map.md` as the canonical page list
|
|
448
501
|
- follow `design-brief.md` for form factor and visual direction when it exists
|
|
502
|
+
- use the resolved visual adapter, when available, for composition, hierarchy, restraint, and motion guidance
|
|
503
|
+
- before broad page generation, write a visual thesis, a content plan, and an interaction thesis for the current surface
|
|
449
504
|
- Keep page names, section names, and labels aligned with the specs
|
|
450
505
|
- Make important states explicit when they change implementation: empty, loading, success, error, restricted, unavailable
|
|
451
506
|
- Prefer layout clarity and information hierarchy over decorative complexity
|
|
507
|
+
- Reject generic UI patterns such as dashboard-card mosaics, weak visual anchors, decorative clutter, or motion with no hierarchy value
|
|
508
|
+
- For `redesign-from-code`, redesign from page responsibilities and state decomposition, not by recoloring or slightly rearranging the old UI
|
|
452
509
|
- After changes, inspect the result visually before treating it as implementation-ready
|
|
453
510
|
|
|
454
511
|
When multiple pages exist:
|
package/docs/mode-use-cases.md
CHANGED
|
@@ -341,9 +341,22 @@ Register the design sources, extract DA-VINCI.md from them, bind covered pages,
|
|
|
341
341
|
For redesign work:
|
|
342
342
|
|
|
343
343
|
- current code decides behavior
|
|
344
|
+
- current code does not decide the new layout or visual composition
|
|
344
345
|
- `DA-VINCI.md` decides the new visual contract
|
|
345
346
|
- Pencil decides page-by-page presentation
|
|
346
347
|
|
|
348
|
+
Fresh-layout rule:
|
|
349
|
+
|
|
350
|
+
- default to fresh visual composition driven by page purpose and state coverage
|
|
351
|
+
- do not treat the old UI as the design baseline unless the user explicitly asks to preserve the layout skeleton
|
|
352
|
+
- a recolor, light rearrangement, or minor spacing pass on the old UI is not enough for a true redesign
|
|
353
|
+
|
|
354
|
+
Complex-surface rule:
|
|
355
|
+
|
|
356
|
+
- if one screen contains multiple fragments, tabs, overlays, or materially different states, split it into multiple design surfaces
|
|
357
|
+
- one implementation page may map to several Pencil screens or states
|
|
358
|
+
- do not hide that complexity inside one oversized redesign page
|
|
359
|
+
|
|
347
360
|
### Spec partitioning rule
|
|
348
361
|
|
|
349
362
|
For broad refreshes, do not keep everything inside one `ui-refresh/spec.md` unless the project surface is genuinely small or the change is mostly cosmetic.
|
|
@@ -409,13 +422,14 @@ Please inventory the current pages and shared layouts, register the HTML drafts
|
|
|
409
422
|
Expected behavior:
|
|
410
423
|
|
|
411
424
|
1. inventory current pages and shared regions
|
|
412
|
-
2.
|
|
413
|
-
3.
|
|
414
|
-
4.
|
|
415
|
-
5.
|
|
416
|
-
6.
|
|
417
|
-
7.
|
|
418
|
-
8.
|
|
425
|
+
2. decompose complex containers into real design surfaces, subpages, overlays, and states
|
|
426
|
+
3. register the HTML drafts as design references
|
|
427
|
+
4. extract a stable `DA-VINCI.md`
|
|
428
|
+
5. split broad redesign work into multiple spec slices when needed
|
|
429
|
+
6. create or refine Pencil redesign screens
|
|
430
|
+
7. bind implementation pages to redesign screens
|
|
431
|
+
8. generate `tasks.md` aligned to the redesign slices
|
|
432
|
+
9. continue into code changes without stopping at "next recommended step"
|
|
419
433
|
|
|
420
434
|
### Best fit
|
|
421
435
|
|
|
@@ -505,6 +519,7 @@ Use it like this:
|
|
|
505
519
|
- reuse it
|
|
506
520
|
- avoid asking duplicate style questions
|
|
507
521
|
- avoid page-by-page style reinvention
|
|
522
|
+
- read any declared visual-adapter preferences as optional design-assist guidance
|
|
508
523
|
|
|
509
524
|
2. if it does not exist
|
|
510
525
|
- generate it from stable user preference, existing code signals, or prior design sources
|
|
@@ -514,6 +529,13 @@ Use it like this:
|
|
|
514
529
|
- update `DA-VINCI.md`
|
|
515
530
|
- then propagate the new baseline through Pencil and implementation
|
|
516
531
|
|
|
532
|
+
Recommended `DA-VINCI.md` pattern:
|
|
533
|
+
|
|
534
|
+
- keep visual-adapter preferences inside `DA-VINCI.md`
|
|
535
|
+
- treat them as optional presentation helpers
|
|
536
|
+
- examples can include local skills such as `frontend-skill` or `ui-ux-pro-max`
|
|
537
|
+
- if the preferred adapter is unavailable locally, continue with native Da Vinci design rules and record the fallback in `design-registry.md`
|
|
538
|
+
|
|
517
539
|
---
|
|
518
540
|
|
|
519
541
|
## How to choose between design sources
|