@xenonbyte/da-vinci-workflow 0.1.9 → 0.1.11

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 (40) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +88 -6
  3. package/README.zh-CN.md +84 -3
  4. package/SKILL.md +68 -8
  5. package/docs/codex-natural-language-usage.md +4 -0
  6. package/docs/mode-use-cases.md +32 -11
  7. package/docs/prompt-entrypoints.md +4 -0
  8. package/docs/prompt-presets/README.md +27 -0
  9. package/docs/prompt-presets/desktop-app.md +46 -0
  10. package/docs/prompt-presets/mobile-app.md +46 -0
  11. package/docs/prompt-presets/tablet-app.md +46 -0
  12. package/docs/prompt-presets/web-app.md +47 -0
  13. package/docs/visual-adapters.md +82 -0
  14. package/docs/visual-assist-presets/README.md +11 -0
  15. package/docs/visual-assist-presets/desktop-app.md +1 -0
  16. package/docs/visual-assist-presets/mobile-app.md +1 -0
  17. package/docs/visual-assist-presets/tablet-app.md +1 -0
  18. package/docs/visual-assist-presets/web-app.md +1 -0
  19. package/docs/workflow-examples.md +17 -5
  20. package/docs/zh-CN/codex-natural-language-usage.md +4 -0
  21. package/docs/zh-CN/mode-use-cases.md +17 -4
  22. package/docs/zh-CN/prompt-entrypoints.md +4 -0
  23. package/docs/zh-CN/prompt-presets/README.md +27 -0
  24. package/docs/zh-CN/prompt-presets/desktop-app.md +46 -0
  25. package/docs/zh-CN/prompt-presets/mobile-app.md +46 -0
  26. package/docs/zh-CN/prompt-presets/tablet-app.md +46 -0
  27. package/docs/zh-CN/prompt-presets/web-app.md +47 -0
  28. package/docs/zh-CN/visual-adapters.md +82 -0
  29. package/docs/zh-CN/visual-assist-presets/README.md +11 -0
  30. package/docs/zh-CN/visual-assist-presets/desktop-app.md +1 -0
  31. package/docs/zh-CN/visual-assist-presets/mobile-app.md +1 -0
  32. package/docs/zh-CN/visual-assist-presets/tablet-app.md +1 -0
  33. package/docs/zh-CN/visual-assist-presets/web-app.md +1 -0
  34. package/docs/zh-CN/workflow-examples.md +17 -5
  35. package/package.json +1 -1
  36. package/references/artifact-templates.md +19 -3
  37. package/references/checkpoints.md +35 -4
  38. package/references/design-inputs.md +30 -1
  39. package/references/page-mapping.md +12 -0
  40. package/references/pencil-design-to-code.md +7 -1
@@ -0,0 +1,46 @@
1
+ # Desktop App Prompt Preset
2
+
3
+ Recommended when the product is a desktop-first tool or workspace.
4
+
5
+ Pair with:
6
+
7
+ - `docs/visual-assist-presets/desktop-app.md`
8
+
9
+ Use this when the workflow needs:
10
+
11
+ - dense workspace hierarchy
12
+ - clear tool panels and primary working surfaces
13
+ - disciplined modal and secondary-panel treatment
14
+ - decomposition of complex screens into meaningful surfaces
15
+
16
+ Recommended prompt:
17
+
18
+ ```text
19
+ $da-vinci use redesign-from-code to redesign this existing desktop product.
20
+
21
+ Existing code is the behavior source of truth, not the layout truth.
22
+ Preserve behavior, flows, integrations, and validation rules unless explicitly required otherwise.
23
+ Inventory primary workspaces, side panels, secondary panels, dialogs, settings flows, overlays, and important states before broad Pencil work.
24
+ Decompose complex screens into primary surfaces, secondary surfaces, overlays, and materially different states.
25
+ Use the Visual Assist preferences declared in DA-VINCI.md.
26
+ Do not pass design checkpoint if the result is just a boxed-up recolor of the old UI or if panel hierarchy remains unclear.
27
+ Persist project-local Pencil files under .da-vinci/designs/.
28
+ ```
29
+
30
+ When to switch to `intake` first:
31
+
32
+ - the desktop architecture is large
33
+ - modules and workspace boundaries are unclear
34
+ - there are multiple existing design references or mixed product surfaces
35
+
36
+ `intake` variant:
37
+
38
+ ```text
39
+ $da-vinci use intake for this existing desktop product.
40
+
41
+ I need to redesign the UI while preserving current behavior.
42
+ Existing code is the behavior source of truth, not the layout truth.
43
+ Inventory workspaces, panels, dialogs, overlays, settings flows, and important states.
44
+ Decompose complex screens before Pencil work.
45
+ Generate the best executable Da Vinci workflow prompt for the next step.
46
+ ```
@@ -0,0 +1,46 @@
1
+ # Mobile App Prompt Preset
2
+
3
+ Recommended when the project is a phone-first product surface.
4
+
5
+ Pair with:
6
+
7
+ - `docs/visual-assist-presets/mobile-app.md`
8
+
9
+ Use this when the workflow needs:
10
+
11
+ - app-first hierarchy
12
+ - touch-first interaction surfaces
13
+ - strong state decomposition
14
+ - clear treatment of sheets, dialogs, tabs, and nested navigation
15
+
16
+ Recommended prompt:
17
+
18
+ ```text
19
+ $da-vinci use redesign-from-code to redesign this existing mobile app.
20
+
21
+ Existing code is the behavior source of truth, not the layout truth.
22
+ Preserve business logic, navigation, permissions, integrations, validations, and state transitions unless explicitly required otherwise.
23
+ Inventory routes, screens, tabs, dialogs, bottom sheets, nested flows, and important states before broad Pencil work.
24
+ Decompose complex screens into subpages, overlays, materially different states, and implementation surfaces.
25
+ Use the Visual Assist preferences declared in DA-VINCI.md.
26
+ Do not pass design checkpoint if the result is a skin-swap of the old UI, a generic card grid, or a weak mobile hierarchy.
27
+ Persist project-local Pencil files under .da-vinci/designs/.
28
+ ```
29
+
30
+ When to switch to `intake` first:
31
+
32
+ - the project has multiple truth sources
33
+ - the UI stack is unclear
34
+ - the redesign spans many modules and the first workflow prompt is hard to phrase
35
+
36
+ `intake` variant:
37
+
38
+ ```text
39
+ $da-vinci use intake for this existing mobile app.
40
+
41
+ I need to redesign the UI while preserving current behavior.
42
+ Existing code is the behavior source of truth, not the layout truth.
43
+ Inventory screens, tabs, dialogs, bottom sheets, nested flows, and important states.
44
+ Decompose complex screens before Pencil work.
45
+ Generate the best executable Da Vinci workflow prompt for the next step.
46
+ ```
@@ -0,0 +1,46 @@
1
+ # Tablet App Prompt Preset
2
+
3
+ Recommended when the product is tablet-first or relies on expanded touch surfaces.
4
+
5
+ Pair with:
6
+
7
+ - `docs/visual-assist-presets/tablet-app.md`
8
+
9
+ Use this when the workflow needs:
10
+
11
+ - split-pane or multi-column composition
12
+ - orientation-aware design thinking
13
+ - decomposition of tool surfaces, side regions, and overlays
14
+ - treatment of both touch-first and canvas-first interaction patterns
15
+
16
+ Recommended prompt:
17
+
18
+ ```text
19
+ $da-vinci use redesign-from-code to redesign this existing tablet product.
20
+
21
+ Existing code is the behavior source of truth, not the layout truth.
22
+ Preserve behavior, permissions, integrations, validations, and state transitions unless explicitly required otherwise.
23
+ Inventory split-pane regions, sidebars, expanded canvases, dialogs, sheets, orientation-driven changes, and important states before broad Pencil work.
24
+ Decompose complex pages into multi-region surfaces, overlays, materially different states, and implementation surfaces.
25
+ Use the Visual Assist preferences declared in DA-VINCI.md.
26
+ Do not pass design checkpoint if the result ignores tablet-scale composition or collapses into a stretched phone layout.
27
+ Persist project-local Pencil files under .da-vinci/designs/.
28
+ ```
29
+
30
+ When to switch to `intake` first:
31
+
32
+ - the product has both phone and tablet surfaces
33
+ - orientation or multi-pane logic is complicated
34
+ - the design references do not map cleanly to the real implementation surfaces
35
+
36
+ `intake` variant:
37
+
38
+ ```text
39
+ $da-vinci use intake for this existing tablet product.
40
+
41
+ I need to redesign the UI while preserving current behavior.
42
+ Existing code is the behavior source of truth, not the layout truth.
43
+ Inventory split-pane regions, sidebars, dialogs, sheets, orientation changes, and important states.
44
+ Decompose complex pages before Pencil work.
45
+ Generate the best executable Da Vinci workflow prompt for the next step.
46
+ ```
@@ -0,0 +1,47 @@
1
+ # Web App Prompt Preset
2
+
3
+ Recommended when the product is a browser-based application or product website with app-like surfaces.
4
+
5
+ Pair with:
6
+
7
+ - `docs/visual-assist-presets/web-app.md`
8
+
9
+ Use this when the workflow needs:
10
+
11
+ - responsive page hierarchy
12
+ - separation between marketing and product surfaces
13
+ - careful handling of empty, loading, error, and authenticated states
14
+ - decomposition of complex flows into real surfaces instead of one oversized page
15
+
16
+ Recommended prompt:
17
+
18
+ ```text
19
+ $da-vinci use redesign-from-code to redesign this existing web product.
20
+
21
+ Existing code is the behavior source of truth, not the layout truth.
22
+ Preserve current business logic, routes, permissions, integrations, validations, and state transitions unless explicitly required otherwise.
23
+ Inventory responsive surfaces, authenticated areas, settings pages, dialogs, drawers, overlays, and important states before broad Pencil work.
24
+ Separate marketing-style surfaces from product-workflow surfaces when they require different visual treatment.
25
+ Decompose complex pages into subpages, overlays, materially different states, and implementation surfaces.
26
+ Use the Visual Assist preferences declared in DA-VINCI.md.
27
+ Do not pass design checkpoint if the result is a generic SaaS card grid or a recolor of the old interface.
28
+ Persist project-local Pencil files under .da-vinci/designs/.
29
+ ```
30
+
31
+ When to switch to `intake` first:
32
+
33
+ - the product mixes marketing, auth, onboarding, and app surfaces
34
+ - the first workflow prompt is hard to phrase cleanly
35
+ - there are external design references that must stay subordinate to existing behavior
36
+
37
+ `intake` variant:
38
+
39
+ ```text
40
+ $da-vinci use intake for this existing web product.
41
+
42
+ I need to redesign the UI while preserving current behavior.
43
+ Existing code is the behavior source of truth, not the layout truth.
44
+ Inventory product surfaces, marketing surfaces, overlays, and important states.
45
+ Decompose complex pages before Pencil work.
46
+ Generate the best executable Da Vinci workflow prompt for the next step.
47
+ ```
@@ -28,6 +28,15 @@ Those still come from requirements, existing code, `page-map.md`, and `pencil-bi
28
28
 
29
29
  Configure visual-adapter preferences inside `DA-VINCI.md`.
30
30
 
31
+ Start from one of these two setups:
32
+
33
+ - balanced default
34
+ - keep delivery non-blocking
35
+ - better for most app and dashboard work
36
+ - quality-first redesign
37
+ - raise the visual bar
38
+ - better when prior outputs were generic, ugly, or too close to the old UI
39
+
31
40
  Recommended shape:
32
41
 
33
42
  ```md
@@ -49,6 +58,56 @@ Recommended shape:
49
58
 
50
59
  Use `Require Adapter: true` only when the workflow must stop if the preferred adapter is unavailable locally.
51
60
 
61
+ ## Quick-Start Configurations
62
+
63
+ Balanced default:
64
+
65
+ ```md
66
+ ## Visual Assist
67
+ - Preferred adapters:
68
+ - ui-ux-pro-max
69
+ - frontend-skill
70
+ - Scope:
71
+ - visual contract refinement
72
+ - page composition
73
+ - hierarchy and spacing
74
+ - Pencil design refinement
75
+ - Fallback:
76
+ - native-da-vinci
77
+ - Require Adapter:
78
+ - false
79
+ ```
80
+
81
+ Use this when:
82
+
83
+ - the project is an app, dashboard, desktop tool, or dense product surface
84
+ - you want stronger layout discipline but still want the workflow to continue without a local helper
85
+
86
+ Quality-first redesign:
87
+
88
+ ```md
89
+ ## Visual Assist
90
+ - Preferred adapters:
91
+ - frontend-skill
92
+ - ui-ux-pro-max
93
+ - Scope:
94
+ - visual contract refinement
95
+ - page composition
96
+ - hierarchy and spacing
97
+ - motion guidance
98
+ - Pencil design refinement
99
+ - Fallback:
100
+ - native-da-vinci
101
+ - Require Adapter:
102
+ - true
103
+ ```
104
+
105
+ Use this when:
106
+
107
+ - the project is design-sensitive or premium-facing
108
+ - the previous redesign attempt produced generic card grids, weak anchors, or a skin-swap of the old UI
109
+ - you would rather stop than silently continue without a strong local design helper
110
+
52
111
  ## What Each Field Means
53
112
 
54
113
  Use the fields like this:
@@ -75,6 +134,27 @@ Recommended default:
75
134
  - use `Fallback: native-da-vinci`
76
135
  - keep `Scope` narrowly focused on visual-quality decisions
77
136
 
137
+ Adapter-selection rule of thumb:
138
+
139
+ - `ui-ux-pro-max` first for dense app, dashboard, and admin surfaces when the visual bar is moderate
140
+ - `frontend-skill` first when art direction, composition quality, and visual restraint matter more than speed or density tuning
141
+
142
+ ## When The Output Still Looks Weak
143
+
144
+ If the workflow is functionally correct but the Pencil result still looks generic or ugly:
145
+
146
+ - move `frontend-skill` to the front of `Preferred adapters`
147
+ - set a stronger visual direction in `DA-VINCI.md` instead of leaving it broad
148
+ - treat `Require Adapter: true` as acceptable for design-critical work where plain fallback quality is not good enough
149
+ - tighten the `Scope` toward composition, hierarchy, and Pencil refinement rather than vague style language
150
+ - use the design checkpoint to block generic card mosaics, weak anchors, and decorative clutter
151
+
152
+ For `redesign-from-code`, also do this:
153
+
154
+ - restate that existing code is behavior truth, not layout truth
155
+ - decompose complex activities, fragments, tabs, overlays, and materially different states before broad Pencil work
156
+ - explicitly require fresh composition instead of recoloring or slightly rearranging the old UI
157
+
78
158
  ## Resolution Order
79
159
 
80
160
  Resolve adapters in this order:
@@ -163,6 +243,8 @@ Persist project-local Pencil files under .da-vinci/designs/.
163
243
  - `native-da-vinci`
164
244
  - use when no adapter is available or when the project only needs the built-in workflow rules
165
245
 
246
+ If the output quality bar is especially high, promote `frontend-skill` to the first slot even for app surfaces and use `native-da-vinci` only as a fallback.
247
+
166
248
  ## Scenario Presets
167
249
 
168
250
  Ready-to-copy presets live here:
@@ -9,6 +9,17 @@ Each preset is intentionally conservative:
9
9
  - clear scope boundaries
10
10
  - non-blocking behavior by default
11
11
 
12
+ Use them together with:
13
+
14
+ - `docs/prompt-presets/`
15
+
16
+ If the project is design-critical or previous outputs were weak, generic, or too close to the old UI:
17
+
18
+ - keep the same preset family
19
+ - move `frontend-skill` to the first slot
20
+ - consider `Require Adapter: true`
21
+ - raise the design checkpoint bar before broad Pencil generation
22
+
12
23
  Available presets:
13
24
 
14
25
  - `mobile-app.md`
@@ -33,3 +33,4 @@ Notes:
33
33
  - prefer `ui-ux-pro-max` first for dense app layout decisions
34
34
  - keep section hierarchy stronger than decorative treatment
35
35
  - use `frontend-skill` only as a secondary visual-quality helper, not as a marketing-style override
36
+ - if the result looks flat, over-boxed, or too generic, move `frontend-skill` to the first slot and raise the design checkpoint bar
@@ -33,3 +33,4 @@ Notes:
33
33
  - prefer `ui-ux-pro-max` first for app-surface density and control balance
34
34
  - keep motion guidance light and purposeful
35
35
  - do not let the adapter turn routine mobile product UI into a marketing page
36
+ - if the output keeps collapsing into generic cards or weak hierarchy, move `frontend-skill` to the first slot and consider `Require Adapter: true`
@@ -33,3 +33,4 @@ Notes:
33
33
  - keep spacing more generous than desktop but more structured than phone UI
34
34
  - use adapter guidance to improve split layouts, canvases, and workspace balance
35
35
  - avoid over-compressing content into phone-like stacking
36
+ - if the result still feels bland or over-framed, move `frontend-skill` to the first slot and require a stronger visual thesis before Pencil work
@@ -33,3 +33,4 @@ Notes:
33
33
  - keep `ui-ux-pro-max` first for product surfaces, dashboards, and operational UI
34
34
  - if the project is more brand-led than tool-led, swap the order and put `frontend-skill` first
35
35
  - do not let responsive polish erase product clarity
36
+ - if the output feels like generic SaaS filler, switch `frontend-skill` to first and tighten the visual direction in `DA-VINCI.md`
@@ -78,11 +78,23 @@ Expected flow:
78
78
  3. register current `.pen` sources and visual-adapter resolution in `design-registry.md`
79
79
  4. define redesign scope in `proposal.md`
80
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
81
+ 6. rebuild or refine `page-map.md`, including subpages, overlays, and materially different states
82
+ 7. create new or updated Pencil pages from fresh composition rather than a recolor of the old UI, preferring persistence under `.da-vinci/designs/`
83
+ 8. run `design-source checkpoint` to confirm the registered project-local `.pen` path, the active Pencil source, and the shell-visible file all agree
84
+ 9. bind routes and pages to Pencil screens
85
+ 10. generate tasks aligned to the redesign slices
86
+ 11. build and verify
87
+
88
+ ### Complex Android example
89
+
90
+ ```text
91
+ $da-vinci use redesign-from-code to redesign this existing Android app.
92
+
93
+ Existing code is the behavior source of truth, not the layout truth.
94
+ Inventory activities, fragments, tabs, dialogs, bottom sheets, nested flows, and important states.
95
+ Decompose complex screens into separate design surfaces before Pencil work.
96
+ Do not pass design checkpoint if the result is just a skin-swap of the old UI.
97
+ ```
86
98
 
87
99
  ## 4. `feature-change`
88
100
 
@@ -70,6 +70,10 @@ $da-vinci use <mode> to <goal>
70
70
 
71
71
  ## 场景模板
72
72
 
73
+ 如果你想直接按产品形态选提示词,也可以看:
74
+
75
+ - `docs/zh-CN/prompt-presets/`
76
+
73
77
  ### 1. 新项目,需求清晰
74
78
 
75
79
  ```text
@@ -86,10 +86,11 @@ Da Vinci 应该:
86
86
  4. 生成 `specs/<capability>/spec.md`
87
87
  5. 生成 `page-map.md`
88
88
  6. 生成 `design-registry.md`
89
+ - 先解析出工作流自动维护的项目内 `.pen` 路径
89
90
  - 优先登记 `.da-vinci/designs/` 下的本地 `.pen` 路径
90
91
  7. 生成 `design.md`
91
92
  8. 生成 `pencil-design.md`
92
- - 在可行时把当前 `.pen` 文件保存或导出到 `.da-vinci/designs/`
93
+ - 确保当前设计真正落到登记好的 `.da-vinci/designs/` 路径
93
94
  9. 生成 `pencil-bindings.md`
94
95
  10. 生成 `tasks.md`
95
96
  11. 进入实现
@@ -110,7 +111,7 @@ Da Vinci 应该:
110
111
  5. 生成 `specs/<capability>/spec.md`
111
112
  6. 生成 `page-map.md`
112
113
  7. 继续到设计、绑定、任务和实现
113
- - 在可行时把当前 `.pen` 文件保存或导出到 `.da-vinci/designs/`
114
+ - 把当前设计真正落到登记好的 `.da-vinci/designs/` 路径
114
115
 
115
116
  ## 3. `redesign-from-code`
116
117
 
@@ -126,16 +127,28 @@ Da Vinci 应该:
126
127
  2. 生成或对齐 `DA-VINCI.md`
127
128
  3. 生成 `design-registry.md`
128
129
  - 如已有本地 `.pen` 文件,优先登记 `.da-vinci/designs/` 下的路径
130
+ - 为这次重设计解析一个工作流自动维护的项目内 `.pen` 路径
129
131
  4. 生成 `proposal.md`
130
132
  5. 按 redesign slice 拆分 `specs/`
131
133
  6. 重建或更新 `page-map.md`
134
+ - 把复杂页面拆成 subpage、state、overlay、fragment surface
132
135
  7. 生成 `design.md`
133
136
  8. 生成 `pencil-design.md`
134
- - 在可行时把新的 Pencil 基线持久化到 `.da-vinci/designs/`
137
+ - 把新的 Pencil 基线真正落到登记好的 `.da-vinci/designs/` 路径
135
138
  9. 生成 `pencil-bindings.md`
136
139
  10. 生成 `tasks.md`
137
140
  11. 进入实现
138
141
 
142
+ 关键规则:
143
+
144
+ - 现有代码决定 behavior,不决定新的视觉布局
145
+ - `redesign-from-code` 默认应该基于页面职责和状态重新构图
146
+ - 不能把“旧页面换个配色、换点间距、挪一点位置”当成真正的重设计
147
+ - 一个实现页如果包含多个 Fragment、多个 tab、多个状态或多个 overlay,应该拆成多个设计 surface
148
+ - `design-registry.md` 里的首选 `.pen` 路径由工作流自动维护,不应该依赖用户手工填写
149
+ - 不要因为当前 Pencil 里正好打开了一个文档,就直接在那个文档上继续做重设计
150
+ - 如果 Pencil MCP 没有自动把登记路径的 `.pen` 文件落到磁盘,就应该先补写这个项目内文件,再把 mapping 或 implementation 视为完成
151
+
139
152
  ## 4. `feature-change`
140
153
 
141
154
  适合:
@@ -150,7 +163,7 @@ Da Vinci 应该:
150
163
  4. 复用或更新 `design-registry.md`
151
164
  - 如果已有项目内 `.pen` 文件,优先登记 `.da-vinci/designs/` 下的路径
152
165
  5. 生成 `pencil-design.md` 增量
153
- - 在可行时把更新后的 `.pen` 文件保存或导出到 `.da-vinci/designs/`
166
+ - 把更新后的 `.pen` 文件真正落到登记好的 `.da-vinci/designs/` 路径
154
167
  6. 更新 `pencil-bindings.md`
155
168
  7. 生成 `tasks.md`
156
169
  8. 进入实现
@@ -77,6 +77,10 @@
77
77
 
78
78
  ## 平台语法
79
79
 
80
+ 如果你只想直接复制不同场景的起始提示词,也可以看:
81
+
82
+ - `docs/zh-CN/prompt-presets/`
83
+
80
84
  ### Codex
81
85
 
82
86
  ```text
@@ -0,0 +1,27 @@
1
+ # 场景提示词模板
2
+
3
+ 这些模板用于在不同产品形态下,快速拿到可直接执行的起始提示词。
4
+
5
+ 它们建议和下面这组文档配合使用:
6
+
7
+ - `docs/zh-CN/visual-assist-presets/`
8
+
9
+ 推荐使用方式:
10
+
11
+ 1. 先选最接近产品形态的提示词模板
12
+ 2. 再选对应的 `Visual Assist` 模板
13
+ 3. 两者一起放进工作流设置
14
+ 4. 只有在项目存在特殊真相源或平台约束时,再继续收紧提示词
15
+
16
+ 可用模板:
17
+
18
+ - `mobile-app.md`
19
+ - `desktop-app.md`
20
+ - `web-app.md`
21
+ - `tablet-app.md`
22
+
23
+ 设计规则:
24
+
25
+ - 提示词模板负责定义工作流意图、拆分规则和真相源处理方式
26
+ - `Visual Assist` 模板负责定义 UI 设计增强偏好
27
+ - 两者一起使用,结果通常更稳
@@ -0,0 +1,46 @@
1
+ # 桌面端应用提示词模板
2
+
3
+ 适用于桌面优先的工具型或工作台型产品。
4
+
5
+ 建议搭配:
6
+
7
+ - `docs/zh-CN/visual-assist-presets/desktop-app.md`
8
+
9
+ 适合这种需求:
10
+
11
+ - 高密度工作区层级
12
+ - 明确的工具面板和主工作面
13
+ - 克制的 modal 和 secondary panel 处理
14
+ - 把复杂页面拆成真正有意义的 surface
15
+
16
+ 推荐提示词:
17
+
18
+ ```text
19
+ $da-vinci use redesign-from-code to redesign this existing desktop product.
20
+
21
+ Existing code is the behavior source of truth, not the layout truth.
22
+ Preserve behavior, flows, integrations, and validation rules unless explicitly required otherwise.
23
+ Inventory primary workspaces, side panels, secondary panels, dialogs, settings flows, overlays, and important states before broad Pencil work.
24
+ Decompose complex screens into primary surfaces, secondary surfaces, overlays, and materially different states.
25
+ Use the Visual Assist preferences declared in DA-VINCI.md.
26
+ Do not pass design checkpoint if the result is just a boxed-up recolor of the old UI or if panel hierarchy remains unclear.
27
+ Persist project-local Pencil files under .da-vinci/designs/.
28
+ ```
29
+
30
+ 什么时候先走 `intake`:
31
+
32
+ - 桌面端架构较大
33
+ - 模块和 workspace 边界不够清晰
34
+ - 存在多个设计参考源或混合产品形态
35
+
36
+ `intake` 版本:
37
+
38
+ ```text
39
+ $da-vinci use intake for this existing desktop product.
40
+
41
+ I need to redesign the UI while preserving current behavior.
42
+ Existing code is the behavior source of truth, not the layout truth.
43
+ Inventory workspaces, panels, dialogs, overlays, settings flows, and important states.
44
+ Decompose complex screens before Pencil work.
45
+ Generate the best executable Da Vinci workflow prompt for the next step.
46
+ ```
@@ -0,0 +1,46 @@
1
+ # 移动端 App 提示词模板
2
+
3
+ 适用于以手机为主的产品界面。
4
+
5
+ 建议搭配:
6
+
7
+ - `docs/zh-CN/visual-assist-presets/mobile-app.md`
8
+
9
+ 适合这种需求:
10
+
11
+ - app-first 的层级结构
12
+ - touch-first 的交互界面
13
+ - 强状态拆分
14
+ - 明确处理 sheets、dialogs、tabs 和 nested navigation
15
+
16
+ 推荐提示词:
17
+
18
+ ```text
19
+ $da-vinci use redesign-from-code to redesign this existing mobile app.
20
+
21
+ Existing code is the behavior source of truth, not the layout truth.
22
+ Preserve business logic, navigation, permissions, integrations, validations, and state transitions unless explicitly required otherwise.
23
+ Inventory routes, screens, tabs, dialogs, bottom sheets, nested flows, and important states before broad Pencil work.
24
+ Decompose complex screens into subpages, overlays, materially different states, and implementation surfaces.
25
+ Use the Visual Assist preferences declared in DA-VINCI.md.
26
+ Do not pass design checkpoint if the result is a skin-swap of the old UI, a generic card grid, or a weak mobile hierarchy.
27
+ Persist project-local Pencil files under .da-vinci/designs/.
28
+ ```
29
+
30
+ 什么时候先走 `intake`:
31
+
32
+ - 项目有多个真相源
33
+ - UI 栈不清晰
34
+ - 重设计跨度大,第一条提示词很难一次说对
35
+
36
+ `intake` 版本:
37
+
38
+ ```text
39
+ $da-vinci use intake for this existing mobile app.
40
+
41
+ I need to redesign the UI while preserving current behavior.
42
+ Existing code is the behavior source of truth, not the layout truth.
43
+ Inventory screens, tabs, dialogs, bottom sheets, nested flows, and important states.
44
+ Decompose complex screens before Pencil work.
45
+ Generate the best executable Da Vinci workflow prompt for the next step.
46
+ ```
@@ -0,0 +1,46 @@
1
+ # 平板应用提示词模板
2
+
3
+ 适用于平板优先,或强依赖扩展触控区域的产品。
4
+
5
+ 建议搭配:
6
+
7
+ - `docs/zh-CN/visual-assist-presets/tablet-app.md`
8
+
9
+ 适合这种需求:
10
+
11
+ - split-pane 或 multi-column 构图
12
+ - orientation-aware 的设计思路
13
+ - 拆分工具区、侧边区域和 overlays
14
+ - 同时考虑 touch-first 和 canvas-first 的交互
15
+
16
+ 推荐提示词:
17
+
18
+ ```text
19
+ $da-vinci use redesign-from-code to redesign this existing tablet product.
20
+
21
+ Existing code is the behavior source of truth, not the layout truth.
22
+ Preserve behavior, permissions, integrations, validations, and state transitions unless explicitly required otherwise.
23
+ Inventory split-pane regions, sidebars, expanded canvases, dialogs, sheets, orientation-driven changes, and important states before broad Pencil work.
24
+ Decompose complex pages into multi-region surfaces, overlays, materially different states, and implementation surfaces.
25
+ Use the Visual Assist preferences declared in DA-VINCI.md.
26
+ Do not pass design checkpoint if the result ignores tablet-scale composition or collapses into a stretched phone layout.
27
+ Persist project-local Pencil files under .da-vinci/designs/.
28
+ ```
29
+
30
+ 什么时候先走 `intake`:
31
+
32
+ - 产品同时有 phone 和 tablet surface
33
+ - orientation 或 multi-pane 逻辑很复杂
34
+ - 设计参考与真实实现 surface 对不上
35
+
36
+ `intake` 版本:
37
+
38
+ ```text
39
+ $da-vinci use intake for this existing tablet product.
40
+
41
+ I need to redesign the UI while preserving current behavior.
42
+ Existing code is the behavior source of truth, not the layout truth.
43
+ Inventory split-pane regions, sidebars, dialogs, sheets, orientation changes, and important states.
44
+ Decompose complex pages before Pencil work.
45
+ Generate the best executable Da Vinci workflow prompt for the next step.
46
+ ```
@@ -0,0 +1,47 @@
1
+ # Web 应用提示词模板
2
+
3
+ 适用于浏览器中的产品型界面,或带有 app surface 的 Web 产品。
4
+
5
+ 建议搭配:
6
+
7
+ - `docs/zh-CN/visual-assist-presets/web-app.md`
8
+
9
+ 适合这种需求:
10
+
11
+ - responsive 页面层级
12
+ - marketing 与 product surface 的区分
13
+ - 明确处理 empty、loading、error、authenticated states
14
+ - 把复杂流程拆成真实的设计 surface,而不是一个大页面
15
+
16
+ 推荐提示词:
17
+
18
+ ```text
19
+ $da-vinci use redesign-from-code to redesign this existing web product.
20
+
21
+ Existing code is the behavior source of truth, not the layout truth.
22
+ Preserve current business logic, routes, permissions, integrations, validations, and state transitions unless explicitly required otherwise.
23
+ Inventory responsive surfaces, authenticated areas, settings pages, dialogs, drawers, overlays, and important states before broad Pencil work.
24
+ Separate marketing-style surfaces from product-workflow surfaces when they require different visual treatment.
25
+ Decompose complex pages into subpages, overlays, materially different states, and implementation surfaces.
26
+ Use the Visual Assist preferences declared in DA-VINCI.md.
27
+ Do not pass design checkpoint if the result is a generic SaaS card grid or a recolor of the old interface.
28
+ Persist project-local Pencil files under .da-vinci/designs/.
29
+ ```
30
+
31
+ 什么时候先走 `intake`:
32
+
33
+ - 同时混合 marketing、auth、onboarding 和 app surfaces
34
+ - 第一条提示词很难一次说清
35
+ - 存在外部设计参考,但它们必须服从现有行为真相
36
+
37
+ `intake` 版本:
38
+
39
+ ```text
40
+ $da-vinci use intake for this existing web product.
41
+
42
+ I need to redesign the UI while preserving current behavior.
43
+ Existing code is the behavior source of truth, not the layout truth.
44
+ Inventory product surfaces, marketing surfaces, overlays, and important states.
45
+ Decompose complex pages before Pencil work.
46
+ Generate the best executable Da Vinci workflow prompt for the next step.
47
+ ```