@xenonbyte/da-vinci-workflow 0.1.8 → 0.1.9

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 CHANGED
@@ -4,6 +4,16 @@
4
4
 
5
5
  - No unreleased changes yet.
6
6
 
7
+ ## v0.1.9 - 2026-03-27
8
+
9
+ ### Added
10
+ - `docs/visual-adapters.md` and `docs/zh-CN/visual-adapters.md` to explain visual-adapter configuration, resolution, and fallback behavior
11
+ - `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
12
+
13
+ ### Changed
14
+ - forward-test example artifacts now show `Visual Assist`, `Visual Adapter Resolution`, and project-local `.pen` persistence patterns
15
+ - workflow examples and README navigation now point to the new visual-adapter and preset documentation
16
+
7
17
  ## v0.1.8 - 2026-03-27
8
18
 
9
19
  ### Added
package/README.md CHANGED
@@ -27,10 +27,13 @@ This workflow is intended for:
27
27
 
28
28
  Latest published npm package:
29
29
 
30
- - `@xenonbyte/da-vinci-workflow@0.1.8`
30
+ - `@xenonbyte/da-vinci-workflow@0.1.9`
31
31
 
32
32
  Release highlights:
33
33
 
34
+ - visual-adapter configuration is now documented explicitly, including field meanings, resolution order, and fallback behavior
35
+ - ready-to-copy `Visual Assist` presets are now included for mobile, desktop, web, and tablet scenarios
36
+ - the repo-local forward test now shows how `Visual Assist`, adapter resolution, and persisted `.pen` paths should be recorded
34
37
  - Codex natural-language usage is now documented explicitly, including `intake`, `prompt`, `continue`, and direct mode entry patterns
35
38
  - project-local Pencil `.pen` files are now documented to persist under `.da-vinci/designs/`
36
39
  - design registry and artifact templates now record preferred persisted `.pen` paths for project-local reuse
@@ -230,6 +233,14 @@ Rules:
230
233
  - `page-map.md` is the source of truth for implementation pages
231
234
  - `pencil-bindings.md` is the source of truth for implementation page -> Pencil page mapping
232
235
 
236
+ Optional visual-adapter policy:
237
+
238
+ - `DA-VINCI.md` may declare preferred visual adapters for design assistance
239
+ - visual adapters are optional helpers for composition, hierarchy, spacing, and motion guidance
240
+ - they may refine `DA-VINCI.md`, `design.md`, and `pencil-design.md`
241
+ - they must not override behavior truth, route truth, page-state truth, or acceptance rules
242
+ - if a requested adapter is unavailable locally, Da Vinci should continue with native design rules and record the fallback in `design-registry.md`
243
+
233
244
  When a relevant mapping already exists:
234
245
 
235
246
  - iterate on the mapped Pencil source
@@ -256,6 +267,7 @@ Before generating Pencil designs for a greenfield project, Da Vinci should colle
256
267
  - density
257
268
  - brand direction
258
269
  - responsive priority
270
+ - optional visual-adapter preferences
259
271
 
260
272
  Preferred inference order:
261
273
 
@@ -270,6 +282,12 @@ If `DA-VINCI.md` does not exist:
270
282
  - generate it from stable user preferences, existing project signals, or inferred defaults
271
283
  - save it before generating many project pages, so later pages do not drift stylistically
272
284
 
285
+ If the project requests visual adapters:
286
+
287
+ - resolve them from the user request first, then `DA-VINCI.md`, then locally available skills
288
+ - choose one primary adapter when multiple helpers are available
289
+ - treat them as non-blocking unless the user explicitly requires a specific adapter
290
+
273
291
  ## Installation
274
292
 
275
293
  Install the package:
@@ -417,6 +435,8 @@ See:
417
435
 
418
436
  - `docs/prompt-entrypoints.md`
419
437
  - `docs/codex-natural-language-usage.md`
438
+ - `docs/visual-adapters.md`
439
+ - `docs/visual-assist-presets/`
420
440
  - `docs/workflow-examples.md`
421
441
  - `docs/mode-use-cases.md`
422
442
 
@@ -425,6 +445,8 @@ See:
425
445
  Chinese companion documents are included in this repository:
426
446
 
427
447
  - `README.zh-CN.md`
448
+ - `docs/zh-CN/visual-adapters.md`
449
+ - `docs/zh-CN/visual-assist-presets/`
428
450
  - `docs/zh-CN/`
429
451
 
430
452
  ## Repository layout
package/README.zh-CN.md CHANGED
@@ -29,10 +29,13 @@ Da Vinci 是一个把产品需求一路推进到结构化规格、Pencil 设计
29
29
 
30
30
  最新已发布 npm 包:
31
31
 
32
- - `@xenonbyte/da-vinci-workflow@0.1.8`
32
+ - `@xenonbyte/da-vinci-workflow@0.1.9`
33
33
 
34
34
  已发布版本重点:
35
35
 
36
+ - visual adapter 的配置字段、解析顺序和回退行为现在有单独文档说明
37
+ - 现在提供按移动端、桌面端、Web、平板拆分的 `Visual Assist` 可复制模板
38
+ - 仓库内的 forward test 示例现在展示了 `Visual Assist`、adapter 解析结果和 `.pen` 持久化记录方式
36
39
  - Codex 的自然语言用法现在有单独文档,明确说明 `intake`、`prompt`、`continue` 和直接 mode 调用方式
37
40
  - 项目内 Pencil `.pen` 文件现在明确约定默认持久化到 `.da-vinci/designs/`
38
41
  - 设计源登记和工件模板现在会记录项目内优先使用的 `.pen` 路径
@@ -183,6 +186,14 @@ project/
183
186
  - `page-map.md` 是实现页面和状态的真相源
184
187
  - `pencil-bindings.md` 是实现页面到 Pencil 页面绑定的真相源
185
188
 
189
+ 可选 visual adapter 规则:
190
+
191
+ - `DA-VINCI.md` 可以声明期望使用的 visual adapter 来辅助设计
192
+ - visual adapter 只用于增强构图、层级、留白、节奏和 motion 判断
193
+ - 它可以影响 `DA-VINCI.md`、`design.md`、`pencil-design.md`
194
+ - 它不能覆盖 behavior truth、路由真相、页面状态真相或验收规则
195
+ - 如果本地没有请求的 adapter,Da Vinci 应继续使用原生设计规则,并在 `design-registry.md` 里记录回退结果
196
+
186
197
  当已有页面映射存在时:
187
198
 
188
199
  - 优先复用已绑定的 Pencil 设计源
@@ -200,6 +211,13 @@ project/
200
211
  - 在可行时把基线保存到 `.da-vinci/designs/`
201
212
  - 并在 `design-registry.md` 里记录准确路径
202
213
 
214
+ 如果项目声明了 visual adapter:
215
+
216
+ - 先看用户请求,其次看 `DA-VINCI.md`,再看本地可用 skill
217
+ - 如果存在多个可用辅助 skill,收敛出一个 primary adapter,必要时再保留 secondary helpers
218
+ - 默认把它当成非阻塞增强层
219
+ - 只有用户明确要求必须使用某个 adapter 时,缺失才应阻塞工作流
220
+
203
221
  ## 安装
204
222
 
205
223
  安装 npm 包:
@@ -330,6 +348,8 @@ Continue into full-delivery.
330
348
 
331
349
  - `docs/codex-natural-language-usage.md`
332
350
  - `docs/prompt-entrypoints.md`
351
+ - `docs/visual-adapters.md`
352
+ - `docs/visual-assist-presets/`
333
353
  - `docs/workflow-examples.md`
334
354
  - `docs/mode-use-cases.md`
335
355
  - `references/`
@@ -337,6 +357,8 @@ Continue into full-delivery.
337
357
  中文文档:
338
358
 
339
359
  - `README.zh-CN.md`
360
+ - `docs/zh-CN/visual-adapters.md`
361
+ - `docs/zh-CN/visual-assist-presets/`
340
362
  - `docs/zh-CN/`
341
363
 
342
364
  ## 仓库布局
package/SKILL.md CHANGED
@@ -151,6 +151,7 @@ Before generating new Pencil designs for a greenfield project, collect or infer:
151
151
  - detect whether `DA-VINCI.md` already exists
152
152
  - if it exists, treat it as the visual baseline for future pages
153
153
  - if it does not exist, generate it from stable user preferences, existing project signals, or inferred defaults before broad Pencil page generation
154
+ - if it declares preferred visual adapters, treat them as optional design-assist preferences, not as behavior truth
154
155
 
155
156
  1. product form factor
156
157
  - desktop software
@@ -180,6 +181,13 @@ Use this priority order:
180
181
 
181
182
  Do not repeatedly ask for inputs that are already stable in the artifacts.
182
183
 
184
+ Treat visual adapters as optional design-assist layers.
185
+
186
+ - resolve them from the user request first, then `DA-VINCI.md`, then locally available skills
187
+ - use them to improve visual contract quality, composition, hierarchy, spacing, and motion guidance
188
+ - do not let them redefine behavior, page truth, route truth, or acceptance rules
189
+ - if a requested adapter is unavailable locally, continue with native Da Vinci design rules and record the fallback
190
+
183
191
  ## Default Workflow
184
192
 
185
193
  Run the workflow in this order:
@@ -396,6 +404,13 @@ Use `DA-VINCI.md` as the project-level visual source of truth for:
396
404
  - typography direction
397
405
  - component tone
398
406
  - rules for cross-page consistency
407
+ - optional visual adapter preferences
408
+
409
+ Treat visual adapters as optional helpers for presentation quality only.
410
+
411
+ - they may refine `DA-VINCI.md`, `design.md`, and `pencil-design.md`
412
+ - they must not override behavior truth from requirements or existing code
413
+ - they must not replace `page-map.md`, `design-registry.md`, or `pencil-bindings.md`
399
414
 
400
415
  When a relevant mapping already exists:
401
416
 
@@ -407,6 +422,7 @@ When `DA-VINCI.md` already exists:
407
422
 
408
423
  - use it as the baseline visual contract
409
424
  - do not regenerate visual direction from scratch unless the change explicitly rebrands or resets the product style
425
+ - if it declares preferred visual adapters, try to resolve them without blocking the workflow
410
426
 
411
427
  When page-to-Pencil bindings already exist:
412
428
 
@@ -435,6 +451,13 @@ When a Pencil session cannot yet be exported locally:
435
451
  - record why local persistence is pending
436
452
  - do not hide the lack of a project-local `.pen` path
437
453
 
454
+ When visual adapters are requested:
455
+
456
+ - resolve them from local availability when possible
457
+ - choose one primary adapter when multiple helpers are available
458
+ - record the requested adapters, resolved primary adapter, any secondary helpers, and fallback status in `design-registry.md`
459
+ - continue with native Da Vinci design rules when no adapter is available unless the user explicitly requires a specific adapter
460
+
438
461
  If the request is too vague to design or implement safely, ask a short clarification question before generating artifacts.
439
462
 
440
463
  ## Pencil Design Rules
@@ -446,6 +469,7 @@ When creating or editing Pencil designs:
446
469
  - Build the pages required by the current scope, not an abstract moodboard
447
470
  - follow `page-map.md` as the canonical page list
448
471
  - follow `design-brief.md` for form factor and visual direction when it exists
472
+ - use the resolved visual adapter, when available, for composition, hierarchy, restraint, and motion guidance
449
473
  - Keep page names, section names, and labels aligned with the specs
450
474
  - Make important states explicit when they change implementation: empty, loading, success, error, restricted, unavailable
451
475
  - Prefer layout clarity and information hierarchy over decorative complexity
@@ -505,6 +505,7 @@ Use it like this:
505
505
  - reuse it
506
506
  - avoid asking duplicate style questions
507
507
  - avoid page-by-page style reinvention
508
+ - read any declared visual-adapter preferences as optional design-assist guidance
508
509
 
509
510
  2. if it does not exist
510
511
  - generate it from stable user preference, existing code signals, or prior design sources
@@ -514,6 +515,13 @@ Use it like this:
514
515
  - update `DA-VINCI.md`
515
516
  - then propagate the new baseline through Pencil and implementation
516
517
 
518
+ Recommended `DA-VINCI.md` pattern:
519
+
520
+ - keep visual-adapter preferences inside `DA-VINCI.md`
521
+ - treat them as optional presentation helpers
522
+ - examples can include local skills such as `frontend-skill` or `ui-ux-pro-max`
523
+ - if the preferred adapter is unavailable locally, continue with native Da Vinci design rules and record the fallback in `design-registry.md`
524
+
517
525
  ---
518
526
 
519
527
  ## How to choose between design sources
@@ -0,0 +1,173 @@
1
+ # Visual Adapters
2
+
3
+ Use this document when a project wants optional UI-design assistance from local skills such as `frontend-skill` or `ui-ux-pro-max`.
4
+
5
+ ## What A Visual Adapter Is
6
+
7
+ A visual adapter is an optional presentation-quality helper.
8
+
9
+ It may improve:
10
+
11
+ - visual-contract quality
12
+ - composition
13
+ - hierarchy
14
+ - spacing discipline
15
+ - motion guidance
16
+ - Pencil page refinement
17
+
18
+ It must not redefine:
19
+
20
+ - behavior truth
21
+ - route truth
22
+ - page-state truth
23
+ - acceptance criteria
24
+
25
+ Those still come from requirements, existing code, `page-map.md`, and `pencil-bindings.md`.
26
+
27
+ ## Where To Configure It
28
+
29
+ Configure visual-adapter preferences inside `DA-VINCI.md`.
30
+
31
+ Recommended shape:
32
+
33
+ ```md
34
+ ## Visual Assist
35
+ - Preferred adapters:
36
+ - frontend-skill
37
+ - ui-ux-pro-max
38
+ - Scope:
39
+ - visual contract refinement
40
+ - page composition
41
+ - hierarchy and spacing
42
+ - motion guidance
43
+ - Pencil design refinement
44
+ - Fallback:
45
+ - native-da-vinci
46
+ - Require Adapter:
47
+ - false
48
+ ```
49
+
50
+ Use `Require Adapter: true` only when the workflow must stop if the preferred adapter is unavailable locally.
51
+
52
+ ## What Each Field Means
53
+
54
+ Use the fields like this:
55
+
56
+ - `Preferred adapters`
57
+ - the priority list of local skills you want Da Vinci to try first
58
+ - order matters
59
+ - if multiple listed skills are available, Da Vinci should still resolve one primary adapter
60
+ - `Scope`
61
+ - the only areas where adapters are allowed to influence the workflow
62
+ - keep this limited to presentation-quality work such as composition, spacing, and Pencil refinement
63
+ - do not use this field to delegate behavior, routes, or state truth
64
+ - `Fallback`
65
+ - what Da Vinci should do if the preferred adapters are unavailable locally
66
+ - `native-da-vinci` means continue with the built-in rules instead of stopping
67
+ - `Require Adapter`
68
+ - whether adapter availability is a hard requirement
69
+ - `false` means adapter use is optional and should not block delivery
70
+ - `true` means the workflow should stop if no acceptable adapter is available
71
+
72
+ Recommended default:
73
+
74
+ - use `Require Adapter: false`
75
+ - use `Fallback: native-da-vinci`
76
+ - keep `Scope` narrowly focused on visual-quality decisions
77
+
78
+ ## Resolution Order
79
+
80
+ Resolve adapters in this order:
81
+
82
+ 1. explicit user request
83
+ 2. `DA-VINCI.md`
84
+ 3. locally available skills
85
+ 4. native Da Vinci rules
86
+
87
+ When multiple helpers are available:
88
+
89
+ - choose one primary adapter
90
+ - keep secondary helpers only when they serve a clear non-conflicting role
91
+
92
+ ## Where To Record The Result
93
+
94
+ Record runtime resolution in `design-registry.md`.
95
+
96
+ Recommended fields:
97
+
98
+ ```md
99
+ ## Visual Adapter Resolution
100
+ - Requested adapters: frontend-skill, ui-ux-pro-max
101
+ - Resolved primary adapter: frontend-skill
102
+ - Secondary helpers: none
103
+ - Status: active
104
+ - Scope: DA-VINCI.md, design.md, pencil-design.md
105
+ - Fallback reason if native Da Vinci rules were used: none
106
+ ```
107
+
108
+ If no adapter is available:
109
+
110
+ ```md
111
+ ## Visual Adapter Resolution
112
+ - Requested adapters: frontend-skill
113
+ - Resolved primary adapter: native-da-vinci
114
+ - Secondary helpers: none
115
+ - Status: fallback
116
+ - Scope: DA-VINCI.md, design.md, pencil-design.md
117
+ - Fallback reason if native Da Vinci rules were used: requested adapter unavailable locally
118
+ ```
119
+
120
+ ## How It Affects Pencil Work
121
+
122
+ When a visual adapter is active:
123
+
124
+ - use it before or during Pencil work to sharpen composition and hierarchy
125
+ - keep page names and states aligned with `page-map.md`
126
+ - keep final `.pen` decisions grounded in Pencil, not in adapter prose
127
+
128
+ Record the outcome in `pencil-design.md`.
129
+
130
+ Recommended fields:
131
+
132
+ ```md
133
+ ## Visual Adapter Use
134
+ - Resolved primary adapter: frontend-skill
135
+ - Secondary helpers: none
136
+ - How it affected composition, hierarchy, or motion guidance:
137
+ - stronger hero anchor
138
+ - fewer card treatments
139
+ - more deliberate CTA placement
140
+ - Whether native Da Vinci fallback was used: no
141
+ ```
142
+
143
+ ## Typical Use
144
+
145
+ Example request:
146
+
147
+ ```text
148
+ $da-vinci use redesign-from-code to globally replace the UI of this existing Android project.
149
+
150
+ Existing Android code is the behavior source of truth.
151
+ Use the visual-adapter preferences declared in DA-VINCI.md.
152
+ If frontend-skill is available, use it as the primary visual adapter.
153
+ If it is unavailable, fall back to native Da Vinci design rules and continue.
154
+ Persist project-local Pencil files under .da-vinci/designs/.
155
+ ```
156
+
157
+ ## Suggested Adapter Choices
158
+
159
+ - `frontend-skill`
160
+ - better for strong art direction, composition, and premium landing or brand surfaces
161
+ - `ui-ux-pro-max`
162
+ - better for app surfaces, dashboards, admin UI, and dense product workflows
163
+ - `native-da-vinci`
164
+ - use when no adapter is available or when the project only needs the built-in workflow rules
165
+
166
+ ## Scenario Presets
167
+
168
+ Ready-to-copy presets live here:
169
+
170
+ - `docs/visual-assist-presets/mobile-app.md`
171
+ - `docs/visual-assist-presets/desktop-app.md`
172
+ - `docs/visual-assist-presets/web-app.md`
173
+ - `docs/visual-assist-presets/tablet-app.md`
@@ -0,0 +1,24 @@
1
+ # Visual Assist Presets
2
+
3
+ Use these presets as starting points for the `## Visual Assist` section inside `DA-VINCI.md`.
4
+
5
+ Each preset is intentionally conservative:
6
+
7
+ - one primary adapter direction
8
+ - one fallback direction
9
+ - clear scope boundaries
10
+ - non-blocking behavior by default
11
+
12
+ Available presets:
13
+
14
+ - `mobile-app.md`
15
+ - `desktop-app.md`
16
+ - `web-app.md`
17
+ - `tablet-app.md`
18
+
19
+ How to use them:
20
+
21
+ 1. choose the preset closest to the product surface
22
+ 2. copy the `## Visual Assist` block into `DA-VINCI.md`
23
+ 3. adjust adapter order only if the project clearly needs a different visual bias
24
+ 4. keep `Require Adapter: false` unless the project truly must stop without a specific local skill
@@ -0,0 +1,35 @@
1
+ # Desktop App Preset
2
+
3
+ Recommended when the product surface is desktop software or a dense productivity workspace.
4
+
5
+ Use this when the UI needs:
6
+
7
+ - high information density
8
+ - strong workspace hierarchy
9
+ - restrained chrome
10
+ - panel and inspector judgment
11
+
12
+ Recommended `DA-VINCI.md` block:
13
+
14
+ ```md
15
+ ## Visual Assist
16
+ - Preferred adapters:
17
+ - ui-ux-pro-max
18
+ - frontend-skill
19
+ - Scope:
20
+ - visual contract refinement
21
+ - workspace composition
22
+ - hierarchy and spacing
23
+ - motion guidance
24
+ - Pencil design refinement
25
+ - Fallback:
26
+ - native-da-vinci
27
+ - Require Adapter:
28
+ - false
29
+ ```
30
+
31
+ Notes:
32
+
33
+ - prefer `ui-ux-pro-max` first for dense app layout decisions
34
+ - keep section hierarchy stronger than decorative treatment
35
+ - use `frontend-skill` only as a secondary visual-quality helper, not as a marketing-style override
@@ -0,0 +1,35 @@
1
+ # Mobile App Preset
2
+
3
+ Recommended when the product surface is a phone-first app.
4
+
5
+ Use this when the UI needs:
6
+
7
+ - compact but readable mobile hierarchy
8
+ - strong tap-target discipline
9
+ - restrained motion
10
+ - app-first component judgment rather than brand-poster composition
11
+
12
+ Recommended `DA-VINCI.md` block:
13
+
14
+ ```md
15
+ ## Visual Assist
16
+ - Preferred adapters:
17
+ - ui-ux-pro-max
18
+ - frontend-skill
19
+ - Scope:
20
+ - visual contract refinement
21
+ - mobile page composition
22
+ - hierarchy and spacing
23
+ - touch-first motion guidance
24
+ - Pencil design refinement
25
+ - Fallback:
26
+ - native-da-vinci
27
+ - Require Adapter:
28
+ - false
29
+ ```
30
+
31
+ Notes:
32
+
33
+ - prefer `ui-ux-pro-max` first for app-surface density and control balance
34
+ - keep motion guidance light and purposeful
35
+ - do not let the adapter turn routine mobile product UI into a marketing page
@@ -0,0 +1,35 @@
1
+ # Tablet App Preset
2
+
3
+ Recommended when the product surface is tablet-first or must work across tablet-heavy flows.
4
+
5
+ Use this when the UI needs:
6
+
7
+ - touch-aware spacing
8
+ - larger compositional regions than phone UI
9
+ - more balanced density than desktop software
10
+ - strong split-pane or canvas-area judgment
11
+
12
+ Recommended `DA-VINCI.md` block:
13
+
14
+ ```md
15
+ ## Visual Assist
16
+ - Preferred adapters:
17
+ - ui-ux-pro-max
18
+ - frontend-skill
19
+ - Scope:
20
+ - visual contract refinement
21
+ - tablet page composition
22
+ - hierarchy and spacing
23
+ - touch-aware motion guidance
24
+ - Pencil design refinement
25
+ - Fallback:
26
+ - native-da-vinci
27
+ - Require Adapter:
28
+ - false
29
+ ```
30
+
31
+ Notes:
32
+
33
+ - keep spacing more generous than desktop but more structured than phone UI
34
+ - use adapter guidance to improve split layouts, canvases, and workspace balance
35
+ - avoid over-compressing content into phone-like stacking
@@ -0,0 +1,35 @@
1
+ # Web App Preset
2
+
3
+ Recommended when the product surface is a browser-based app, SaaS workspace, or hybrid product UI.
4
+
5
+ Use this when the UI needs:
6
+
7
+ - balanced density
8
+ - clear workspace structure
9
+ - stronger marketing-to-product bridge than a pure desktop tool
10
+ - responsive layout judgment
11
+
12
+ Recommended `DA-VINCI.md` block:
13
+
14
+ ```md
15
+ ## Visual Assist
16
+ - Preferred adapters:
17
+ - ui-ux-pro-max
18
+ - frontend-skill
19
+ - Scope:
20
+ - visual contract refinement
21
+ - page composition
22
+ - hierarchy and spacing
23
+ - responsive motion guidance
24
+ - Pencil design refinement
25
+ - Fallback:
26
+ - native-da-vinci
27
+ - Require Adapter:
28
+ - false
29
+ ```
30
+
31
+ Notes:
32
+
33
+ - keep `ui-ux-pro-max` first for product surfaces, dashboards, and operational UI
34
+ - if the project is more brand-led than tool-led, swap the order and put `frontend-skill` first
35
+ - do not let responsive polish erase product clarity
@@ -31,11 +31,12 @@ Expected flow:
31
31
  2. create `proposal.md`
32
32
  3. create `specs/<capability>/spec.md`
33
33
  4. create `page-map.md`
34
- 5. register `.pen` sources in `design-registry.md`
35
- 6. create Pencil pages and record them in `pencil-design.md`
36
- 7. bind implementation pages in `pencil-bindings.md`
37
- 8. generate `tasks.md`
38
- 9. build and verify
34
+ 5. configure any optional visual-adapter preferences in `DA-VINCI.md`
35
+ 6. register `.pen` sources and visual-adapter resolution in `design-registry.md`
36
+ 7. create Pencil pages, persist the preferred `.pen` path, and record adapter use in `pencil-design.md`
37
+ 8. bind implementation pages in `pencil-bindings.md`
38
+ 9. generate `tasks.md`
39
+ 10. build and verify
39
40
 
40
41
  ## 2. `greenfield-brainstorm`
41
42
 
@@ -54,10 +55,11 @@ Expected flow:
54
55
  3. stabilize scope in `proposal.md`
55
56
  4. write behavior in `specs/<capability>/spec.md`
56
57
  5. define pages in `page-map.md`
57
- 6. register and generate Pencil sources
58
- 7. bind implementation pages to Pencil pages
59
- 8. generate tasks
60
- 9. build and verify
58
+ 6. resolve any requested visual adapter and record it in `design-registry.md`
59
+ 7. register and generate Pencil sources
60
+ 8. bind implementation pages to Pencil pages
61
+ 9. generate tasks
62
+ 10. build and verify
61
63
 
62
64
  ## 3. `redesign-from-code`
63
65
 
@@ -72,14 +74,15 @@ $da-vinci use redesign-from-code to inventory the current app, identify current
72
74
  Expected flow:
73
75
 
74
76
  1. scan the existing product into `project-inventory.md`
75
- 2. register any current `.pen` sources in `design-registry.md`
76
- 3. define redesign scope in `proposal.md`
77
- 4. split broad redesign work into `specs/<slice>/spec.md` files when one large `ui-refresh` spec would be too coarse
78
- 5. rebuild or refine `page-map.md`
79
- 6. create new or updated Pencil pages
80
- 7. bind routes and pages to Pencil screens
81
- 8. generate tasks aligned to the redesign slices
82
- 9. build and verify
77
+ 2. read any visual-adapter preference from the request or `DA-VINCI.md`
78
+ 3. register current `.pen` sources and visual-adapter resolution in `design-registry.md`
79
+ 4. define redesign scope in `proposal.md`
80
+ 5. split broad redesign work into `specs/<slice>/spec.md` files when one large `ui-refresh` spec would be too coarse
81
+ 6. rebuild or refine `page-map.md`
82
+ 7. create new or updated Pencil pages, preferring persistence under `.da-vinci/designs/`
83
+ 8. bind routes and pages to Pencil screens
84
+ 9. generate tasks aligned to the redesign slices
85
+ 10. build and verify
83
86
 
84
87
  ## 4. `feature-change`
85
88
 
@@ -96,12 +99,26 @@ Expected flow:
96
99
  1. define the change in `proposal.md`
97
100
  2. write affected behavior in `specs/<capability>/spec.md`
98
101
  3. update the affected subset of `page-map.md`
99
- 4. reuse or update the active design source in `design-registry.md`
102
+ 4. reuse or update the active design source and visual-adapter resolution in `design-registry.md`
100
103
  5. create the Pencil delta in `pencil-design.md`
101
104
  6. update `pencil-bindings.md`
102
105
  7. generate tasks
103
106
  8. build and verify
104
107
 
108
+ ## Visual-adapter helper example
109
+
110
+ When the project wants optional UI-design help from local skills:
111
+
112
+ ```text
113
+ $da-vinci use redesign-from-code to redesign the current product UI.
114
+
115
+ Existing code is the behavior source of truth.
116
+ Use the visual-adapter preferences declared in DA-VINCI.md.
117
+ If frontend-skill is available, use it as the primary visual adapter.
118
+ If it is unavailable, fall back to native Da Vinci design rules and continue.
119
+ Persist project-local Pencil files under .da-vinci/designs/.
120
+ ```
121
+
105
122
  ## Cross-mode rule
106
123
 
107
124
  In every mode:
@@ -113,7 +130,9 @@ In every mode:
113
130
  And in every mode:
114
131
 
115
132
  - `design-registry.md` tracks the available `.pen` sources
133
+ - `design-registry.md` also records visual-adapter resolution when one is requested
116
134
  - `pencil-bindings.md` tracks implementation page to Pencil page mapping
135
+ - `pencil-design.md` records how the resolved adapter influenced the design pass when relevant
117
136
  - the workflow runs as `autonomous-by-default` unless a real blocker exists
118
137
 
119
138
  ## Complex redesign helper example
@@ -154,3 +154,11 @@ Da Vinci 应该:
154
154
  6. 更新 `pencil-bindings.md`
155
155
  7. 生成 `tasks.md`
156
156
  8. 进入实现
157
+
158
+ ## `DA-VINCI.md` 里的 visual adapter 应该怎么用
159
+
160
+ - 把 visual adapter 偏好写在 `DA-VINCI.md` 里,而不是单独再造一个配置文件
161
+ - 把它当成可选的 presentation 增强层
162
+ - 可以用来辅助 `DA-VINCI.md`、`design.md`、`pencil-design.md`
163
+ - 例如本地 skill 里的 `frontend-skill` 或 `ui-ux-pro-max`
164
+ - 如果本地没有对应 adapter,就回退到 Da Vinci 原生设计规则,并把结果记录到 `design-registry.md`