@xenonbyte/da-vinci-workflow 0.1.12 → 0.1.14

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 (44) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +21 -1
  3. package/README.zh-CN.md +21 -1
  4. package/SKILL.md +16 -0
  5. package/commands/claude/da-vinci.md +3 -0
  6. package/commands/codex/prompts/da-vinci.md +3 -0
  7. package/commands/gemini/da-vinci.toml +3 -0
  8. package/docs/mode-use-cases.md +11 -0
  9. package/docs/prompt-presets/README.md +1 -0
  10. package/docs/prompt-presets/desktop-app.md +1 -0
  11. package/docs/prompt-presets/mobile-app.md +9 -0
  12. package/docs/prompt-presets/tablet-app.md +1 -0
  13. package/docs/prompt-presets/web-app.md +1 -0
  14. package/docs/visual-adapters.md +18 -0
  15. package/docs/visual-assist-presets/README.md +4 -2
  16. package/docs/visual-assist-presets/desktop-app.md +2 -0
  17. package/docs/visual-assist-presets/mobile-app.md +2 -0
  18. package/docs/visual-assist-presets/tablet-app.md +2 -0
  19. package/docs/visual-assist-presets/web-app.md +2 -0
  20. package/docs/workflow-examples.md +15 -5
  21. package/docs/zh-CN/mode-use-cases.md +11 -0
  22. package/docs/zh-CN/prompt-presets/README.md +1 -0
  23. package/docs/zh-CN/prompt-presets/desktop-app.md +1 -0
  24. package/docs/zh-CN/prompt-presets/mobile-app.md +9 -0
  25. package/docs/zh-CN/prompt-presets/tablet-app.md +1 -0
  26. package/docs/zh-CN/prompt-presets/web-app.md +1 -0
  27. package/docs/zh-CN/visual-adapters.md +18 -0
  28. package/docs/zh-CN/visual-assist-presets/README.md +5 -3
  29. package/docs/zh-CN/visual-assist-presets/desktop-app.md +2 -0
  30. package/docs/zh-CN/visual-assist-presets/mobile-app.md +2 -0
  31. package/docs/zh-CN/visual-assist-presets/tablet-app.md +2 -0
  32. package/docs/zh-CN/visual-assist-presets/web-app.md +2 -0
  33. package/docs/zh-CN/workflow-examples.md +15 -5
  34. package/examples/greenfield-spec-markupflow/DA-VINCI.md +1 -0
  35. package/examples/greenfield-spec-markupflow/README.md +3 -0
  36. package/examples/greenfield-spec-markupflow/design-registry.md +3 -0
  37. package/examples/greenfield-spec-markupflow/pencil-design.md +4 -0
  38. package/package.json +1 -1
  39. package/references/artifact-templates.md +49 -2
  40. package/references/checkpoints.md +13 -1
  41. package/references/design-inputs.md +16 -1
  42. package/references/layout-hygiene.md +117 -0
  43. package/references/pencil-design-to-code.md +19 -0
  44. package/references/platform-adapters.md +6 -0
package/CHANGELOG.md CHANGED
@@ -4,6 +4,26 @@
4
4
 
5
5
  - No unreleased changes yet.
6
6
 
7
+ ## v0.1.14 - 2026-03-27
8
+
9
+ ### Added
10
+ - `references/layout-hygiene.md` as the central form-factor-specific layout hygiene gate for mobile, tablet, desktop, and web screenshot review
11
+
12
+ ### Changed
13
+ - screenshot-review and design-checkpoint guidance now apply a resolved layout-hygiene profile per reviewed surface instead of relying on generic spacing checks alone
14
+ - design-input and artifact-template guidance now records the resolved layout-hygiene profile and blocker classes in `design-brief.md` and `pencil-design.md`
15
+ - visual-adapter docs now state explicitly that `Visual Assist` does not replace form-factor-specific layout hygiene
16
+ - prompt presets for mobile, tablet, desktop, and web now point to the form-factor-specific layout hygiene gate before screenshot review passes
17
+ - Chinese documentation now matches the new layout-hygiene guidance instead of mixing untranslated preset instructions
18
+
19
+ ## v0.1.13 - 2026-03-27
20
+
21
+ ### Changed
22
+ - visual-adapter execution now requires explicit runtime declaration of the resolved primary adapter, available and unavailable requested adapters, and pre-anchor thesis writing instead of relying on artifact metadata alone
23
+ - redesign guidance now requires anchor-surface structural-delta notes, shared primitives before broad page expansion, and screenshot review that cannot auto-pass when analysis reports hierarchy, spacing, clarity, or inconsistency issues
24
+ - `.da-vinci/designs/` is now documented more strictly as a `.pen`-only directory, and design-source guidance now expects shell-visible `.pen` persistence immediately after the first successful Pencil write
25
+ - Pencil workflow guidance now explicitly rejects web-only properties such as `flex` and `margin`, and platform-adapter docs now warn against assuming cross-platform equivalence between near-name visual adapters
26
+
7
27
  ## v0.1.12 - 2026-03-27
8
28
 
9
29
  ### Changed
package/README.md CHANGED
@@ -27,10 +27,18 @@ This workflow is intended for:
27
27
 
28
28
  Latest published npm package:
29
29
 
30
- - `@xenonbyte/da-vinci-workflow@0.1.12`
30
+ - `@xenonbyte/da-vinci-workflow@0.1.14`
31
31
 
32
32
  Release highlights:
33
33
 
34
+ - visual-adapter execution now requires explicit runtime declaration of the resolved primary adapter and any unavailable requested adapters
35
+ - cross-platform near-name adapters such as `frontend-skill` and `frontend-design` are now treated as distinct unless the current environment explicitly resolves them
36
+ - complex `redesign-from-code` runs now require a visual thesis, content plan, interaction thesis, and anchor-surface structural-delta notes before broad Pencil generation
37
+ - screenshot review is now documented as a binding gate; analysis that reports hierarchy, spacing, clarity, or inconsistency issues cannot be treated as an automatic pass
38
+ - form-factor-specific layout hygiene is now documented as a separate hard gate from `Visual Assist`, with blocker conditions for mobile, tablet, desktop, and web review
39
+ - `.da-vinci/designs/` is now documented more strictly as a `.pen`-only directory, and project-local `.pen` persistence must be verified as shell-visible immediately after the first Pencil write
40
+ - multi-surface redesign guidance now requires a shared primitive family to be defined from approved anchor surfaces before broad page expansion
41
+ - Pencil generation guidance now explicitly rejects web-only properties such as `flex` and `margin`
34
42
  - visual-adapter resolution now requires the resolved primary adapter to actively lead the first design pass
35
43
  - complex redesigns now default to anchor-first Pencil generation: design 1-3 anchor surfaces, review screenshots, then expand
36
44
  - design checkpoint now explicitly blocks placeholder-heavy repeated scaffolds and premature broad multi-screen generation
@@ -109,6 +117,7 @@ Recommended default:
109
117
  - visual contract refinement
110
118
  - page composition
111
119
  - hierarchy and spacing
120
+ - anchor-surface composition
112
121
  - Pencil design refinement
113
122
  - Fallback:
114
123
  - native-da-vinci
@@ -134,6 +143,7 @@ Quality-first redesign configuration:
134
143
  - page composition
135
144
  - hierarchy and spacing
136
145
  - motion guidance
146
+ - anchor-surface composition
137
147
  - Pencil design refinement
138
148
  - Fallback:
139
149
  - native-da-vinci
@@ -151,9 +161,19 @@ Selection rules:
151
161
 
152
162
  - keep `ui-ux-pro-max` first for dense app and dashboard surfaces when the visual bar is moderate
153
163
  - move `frontend-skill` to the first slot when art direction, composition quality, and premium visual hierarchy matter more
164
+ - write actual installed adapter names for the current environment instead of assuming cross-platform aliases
154
165
  - when `Preferred adapters` are configured, the resolved primary adapter should actively lead the first design pass instead of being recorded only for traceability
166
+ - state the resolved primary adapter explicitly at runtime and name any requested adapters that are unavailable
167
+ - treat form-factor-specific layout hygiene as a separate hard gate from `Visual Assist`; adapter choice does not override mobile/tablet/desktop/web review failures
168
+ - do not assume cross-platform equivalence between near-name adapters
169
+ - write a visual thesis, content plan, and interaction thesis before the first anchor surface
155
170
  - use Pencil guides as platform/buildability constraints, not as the main art-direction source
156
171
  - on complex redesigns, design 1-3 anchor surfaces first and review screenshots before broad multi-screen generation
172
+ - for each anchor surface, explain how the new composition differs structurally from the current layout
173
+ - do not auto-pass screenshot review when analysis reports hierarchy, spacing, clarity, inconsistency, or unresolved-placeholder issues
174
+ - define shared primitives from the approved anchor surfaces before broad page expansion
175
+ - keep `.da-vinci/designs/` reserved for `.pen` files only and verify the registered `.pen` path is shell-visible after the first Pencil write
176
+ - use only Pencil-supported properties; do not rely on web-only props such as `flex` or `margin`
157
177
  - keep `Fallback: native-da-vinci` unless you explicitly want missing adapters to block the workflow
158
178
  - keep `Require Adapter: false` by default and raise it to `true` only for design-critical work
159
179
  - keep `Scope` limited to presentation quality; do not use it to delegate behavior, routes, or state truth
package/README.zh-CN.md CHANGED
@@ -29,10 +29,18 @@ Da Vinci 是一个把产品需求一路推进到结构化规格、Pencil 设计
29
29
 
30
30
  最新已发布 npm 包:
31
31
 
32
- - `@xenonbyte/da-vinci-workflow@0.1.12`
32
+ - `@xenonbyte/da-vinci-workflow@0.1.14`
33
33
 
34
34
  已发布版本重点:
35
35
 
36
+ - visual adapter 的执行现在要求在运行时明确声明解析出来的主 adapter,以及哪些请求的 adapter 当前不可用
37
+ - `frontend-skill`、`frontend-design` 这类跨平台近名 adapter 现在明确视为不同能力源,除非当前环境真的解析到了它们
38
+ - 复杂 `redesign-from-code` 现在要求在大规模 Pencil 设计前先写 visual thesis、content plan、interaction thesis 和 anchor surface 的 structural-delta 说明
39
+ - screenshot review 现在被明确强调为硬闸门;只要分析指出 hierarchy、spacing、clarity 或 inconsistency 问题,就不能自动判通过
40
+ - form factor 专用的 layout hygiene 现在被定义成独立于 `Visual Assist` 的硬闸门,mobile、tablet、desktop、web 都有各自的 blocker 条件
41
+ - `.da-vinci/designs/` 现在更明确只用于放 `.pen` 文件,而且第一次 Pencil 写入后就要验证对应 `.pen` 已经成为 shell 可见文件
42
+ - 多 surface 重设计现在要求先从已通过的 anchor surface 中抽出 shared primitive family,再扩展更多页面
43
+ - Pencil 生成规则现在明确拒绝 `flex`、`margin` 这类 Web 属性
36
44
  - visual adapter 解析现在要求“解析出来的主 adapter 必须真正主导首轮设计”,而不是只登记在工件里
37
45
  - 复杂重设计现在默认采用 anchor-first 的 Pencil 生成策略:先做 1 到 3 个 anchor surface,截图审查后再扩展
38
46
  - design checkpoint 现在会明确拦截大量空占位、重复模板和过早的大批量多页面脚手架
@@ -114,6 +122,7 @@ Da Vinci V2 支持四种模式:
114
122
  - visual contract refinement
115
123
  - page composition
116
124
  - hierarchy and spacing
125
+ - anchor-surface composition
117
126
  - Pencil design refinement
118
127
  - Fallback:
119
128
  - native-da-vinci
@@ -139,6 +148,7 @@ Da Vinci V2 支持四种模式:
139
148
  - page composition
140
149
  - hierarchy and spacing
141
150
  - motion guidance
151
+ - anchor-surface composition
142
152
  - Pencil design refinement
143
153
  - Fallback:
144
154
  - native-da-vinci
@@ -156,9 +166,19 @@ Da Vinci V2 支持四种模式:
156
166
 
157
167
  - 高密度 app、dashboard、工具型界面,且视觉要求中等时,优先把 `ui-ux-pro-max` 放第一位
158
168
  - 如果更重视 art direction、构图和高级感,就把 `frontend-skill` 放第一位
169
+ - `Preferred adapters` 里要写当前环境里真实存在的 adapter 名,不要默认套用跨平台别名
159
170
  - 一旦配置了 `Preferred adapters`,解析出来的主 adapter 应该真正主导首轮设计,而不是只登记在工件里
171
+ - 运行时必须明确写出解析出来的主 adapter,以及哪些请求的 adapter 当前不可用
172
+ - form factor 专用的 layout hygiene 是独立于 `Visual Assist` 的硬闸门;adapter 选择不能覆盖 mobile、tablet、desktop、web 的版式失败条件
173
+ - 不要默认把跨平台的近名 adapter 当成同一个能力源
174
+ - 在第一个 anchor surface 之前,先写 visual thesis、content plan 和 interaction thesis
160
175
  - Pencil 的 guide 只应该约束平台布局和可实现性,不应该替代主 adapter 成为设计方向来源
161
176
  - 面对复杂重设计时,先做 1 到 3 个 anchor surface,并完成截图审查,再扩展到更多页面
177
+ - 对每个 anchor surface,都要说明“新的构图和当前布局结构相比,具体改了什么”
178
+ - 如果截图分析指出 hierarchy、spacing、clarity、inconsistency 或 unresolved placeholder 问题,就不能自动判通过
179
+ - 在扩展更多页面前,先从已通过的 anchor surface 中抽出 shared primitives
180
+ - `.da-vinci/designs/` 只应该放 `.pen` 文件,并且第一次 Pencil 写入后就要验证登记路径已经成为 shell 可见文件
181
+ - 只使用 Pencil 支持的属性,不要继续使用 `flex`、`margin` 这类 Web 属性
162
182
  - 默认保留 `Fallback: native-da-vinci`
163
183
  - `Require Adapter` 默认保持 `false`,只有设计要求很高时再改成 `true`
164
184
  - `Scope` 只管 presentation 质量,不要拿它去定义 behavior、route 或 state truth
package/SKILL.md CHANGED
@@ -185,7 +185,10 @@ Do not repeatedly ask for inputs that are already stable in the artifacts.
185
185
  Treat visual adapters as optional design-assist layers.
186
186
 
187
187
  - resolve them from the user request first, then `DA-VINCI.md`, then locally available skills
188
+ - do not assume cross-platform equivalence between near-name adapters such as `frontend-skill` and `frontend-design`; only resolve adapters that are explicitly named and actually installed in the current environment
189
+ - record which requested adapters were available, which were unavailable, and which adapter became the resolved primary adapter
188
190
  - when `DA-VINCI.md` or the request declares `Preferred adapters`, the resolved primary adapter must actively lead first-pass design reasoning instead of being recorded only for traceability
191
+ - when a resolved primary adapter is available, state that runtime resolution explicitly before the first anchor-screen design pass and let it drive the visual thesis, content plan, and interaction thesis
189
192
  - use them to improve visual contract quality, composition, hierarchy, spacing, and motion guidance
190
193
  - use Pencil guides and platform constraints as buildability aids only; they must not replace the resolved primary adapter as the art-direction source
191
194
  - do not let them redefine behavior, page truth, route truth, or acceptance rules
@@ -213,6 +216,18 @@ Default completion rule:
213
216
  - if the request is `design-only`, stop after design artifacts and bindings
214
217
  - otherwise assume `full-delivery` and continue through implementation and verification
215
218
 
219
+ ## Pencil Generation Rules
220
+
221
+ During active Pencil work:
222
+
223
+ - keep `.da-vinci/designs/` reserved for project-local `.pen` files; do not write workflow markdown such as inventories, proposals, or checkpoints into that directory
224
+ - on `redesign-from-code`, write a short structural-delta note for each anchor surface explaining how the new composition differs from the current XML or layout grouping
225
+ - after the first successful Pencil write, verify that the registered project-local `.pen` path exists as a shell-visible file before treating the design source as persistent
226
+ - use only Pencil-supported properties; do not emit web- or CSS-only layout properties such as `flex` or `margin`
227
+ - on complex redesigns, turn approved anchor surfaces into a small shared primitive family before broad page expansion
228
+ - apply the resolved form-factor-specific layout hygiene profile before passing screenshot review on any anchor surface or other approval candidate
229
+ - screenshot review is binding: if the review calls out hierarchy, spacing, clarity, inconsistency, or unresolved-placeholder issues, revise the screen before treating the checkpoint as `PASS`
230
+
216
231
  ## Load References On Demand
217
232
 
218
233
  Load only the reference that matches the current step:
@@ -221,6 +236,7 @@ Load only the reference that matches the current step:
221
236
  - Read `references/artifact-templates.md` when creating or updating workflow artifacts
222
237
  - Read `references/checkpoints.md` when running or reporting checkpoints
223
238
  - Read `references/design-inputs.md` when collecting product form factor, style, and constraints
239
+ - Read `references/layout-hygiene.md` when screenshot review or the design checkpoint needs form-factor-specific layout hygiene rules
224
240
  - Read `references/page-mapping.md` when defining project pages, Pencil pages, and route-to-screen bindings
225
241
  - Read `references/pencil-design-to-code.md` when turning Pencil data into implementation
226
242
  - Read `references/platform-adapters.md` when guiding users on Codex, Claude, or Gemini invocation patterns
@@ -22,6 +22,9 @@ Notes:
22
22
  - Requirements decide behavior.
23
23
  - Pencil decides presentation.
24
24
  - Code must follow both.
25
+ - If `Visual Assist` is configured, resolve and state the actual primary visual adapter for this environment instead of assuming cross-platform skill equivalence.
26
+ - Keep `.da-vinci/designs/` reserved for `.pen` files only.
27
+ - On complex redesigns, design 1-3 anchor surfaces first and treat screenshot review as a binding gate before broad expansion.
25
28
  - Use `intake` when the user needs help phrasing the first workflow request.
26
29
  - Use `continue` when `.da-vinci/` artifacts already exist and the workflow must resume.
27
30
  - Keep workflow semantics shared across Codex, Claude, and Gemini.
@@ -21,6 +21,9 @@ Available routes:
21
21
 
22
22
  Important:
23
23
  - Treat `/prompts:*` as action selectors in Codex.
24
+ - If `Visual Assist` is configured, resolve and state the actual primary visual adapter for this environment instead of assuming cross-platform skill equivalence.
25
+ - Keep `.da-vinci/designs/` reserved for `.pen` files only.
26
+ - On complex redesigns, design 1-3 anchor surfaces first and treat screenshot review as a binding gate before broad expansion.
24
27
  - Use `intake` when the user does not know how to phrase the first request.
25
28
  - Use `continue` when `.da-vinci/` artifacts already exist and the workflow must resume.
26
29
  - If details are still needed after route selection, provide them in the next message.
@@ -24,6 +24,9 @@ Notes:
24
24
  - Requirements decide behavior.
25
25
  - Pencil decides presentation.
26
26
  - Code must follow both.
27
+ - If `Visual Assist` is configured, resolve and state the actual primary visual adapter for this environment instead of assuming cross-platform skill equivalence.
28
+ - Keep `.da-vinci/designs/` reserved for `.pen` files only.
29
+ - On complex redesigns, design 1-3 anchor surfaces first and treat screenshot review as a binding gate before broad expansion.
27
30
  - Use `intake` when the user needs help phrasing the first workflow request.
28
31
  - Use `continue` when `.da-vinci/` artifacts already exist and the workflow must resume.
29
32
  - Keep workflow semantics shared across Claude, Codex, and Gemini.
@@ -42,6 +42,7 @@ Rule:
42
42
  - only `DA-VINCI.md` belongs at the project root
43
43
  - all other workflow outputs should stay under `.da-vinci/`
44
44
  - persisted project-local Pencil files should stay under `.da-vinci/designs/`
45
+ - `.da-vinci/designs/` should contain `.pen` files only, not workflow markdown
45
46
 
46
47
  ## Quick mode selection
47
48
 
@@ -324,9 +325,11 @@ Register the design sources, extract DA-VINCI.md from them, bind covered pages,
324
325
 
325
326
  6. create or update `pencil-design.md`
326
327
  - build the new redesign baseline in Pencil
328
+ - write the visual thesis, content plan, interaction thesis, and structural-delta notes before broad anchor generation
327
329
  - design 1-3 anchor surfaces first before broad multi-screen expansion
328
330
  - let the resolved primary visual adapter lead that first pass
329
331
  - persist that baseline into the registered `.da-vinci/designs/` file
332
+ - verify that registered `.pen` path is shell-visible immediately after the first successful Pencil write
330
333
 
331
334
  7. create or update `pencil-bindings.md`
332
335
  - bind pages to redesign screens
@@ -342,9 +345,16 @@ Register the design sources, extract DA-VINCI.md from them, bind covered pages,
342
345
  ### Critical rule in this mode
343
346
 
344
347
  - treat the resolved primary visual adapter as the first-pass design lead when `Preferred adapters` are configured
348
+ - state the resolved primary adapter explicitly at runtime, including which requested adapters were unavailable
349
+ - do not assume cross-platform equivalence between near-name adapters; resolve the installed adapter names for the current environment
350
+ - when a primary adapter is active, write the visual thesis, content plan, and interaction thesis before the first anchor screen
345
351
  - do not let Pencil guides or generic style packs replace that adapter as the art-direction source
346
352
  - do not start broad redesign work by scaffolding many empty screens
347
353
  - for complex products, get 1-3 anchor surfaces through screenshot review before expanding the rest of the redesign
354
+ - for each anchor surface, explain briefly how the new composition differs from the current layout grouping
355
+ - do not auto-pass screenshot review if the analysis reports hierarchy, spacing, clarity, inconsistency, or unresolved-placeholder issues
356
+ - define a small shared primitive family from the approved anchor surfaces before broad page expansion
357
+ - use only Pencil-supported properties; do not rely on web-only props such as `flex` or `margin`
348
358
 
349
359
  For redesign work:
350
360
 
@@ -362,6 +372,7 @@ Fresh-layout rule:
362
372
  Project-local `.pen` rule:
363
373
 
364
374
  - the preferred `.pen` path in `design-registry.md` is owned by the workflow, not by user hand-editing
375
+ - keep `.da-vinci/designs/` reserved for `.pen` files rather than workflow markdown
365
376
  - do not keep redesign work inside an unrelated active Pencil editor just because it is currently open
366
377
  - if Pencil MCP does not materialize the registered shell-visible file automatically, reconstruct and write that `.pen` file before mapping or implementation is treated as complete
367
378
 
@@ -25,6 +25,7 @@ Design rule:
25
25
 
26
26
  - prompt presets define workflow intent, decomposition rules, and truth-source handling
27
27
  - visual-assist presets define UI-design helper preferences
28
+ - form-factor-specific layout hygiene remains a separate hard gate that screenshot review must apply before a screen passes
28
29
  - use both together for the strongest result
29
30
 
30
31
  Each scene preset should now include:
@@ -46,6 +46,7 @@ Treat the resolved primary visual adapter as the first-pass design lead.
46
46
  Use Pencil guides only as workspace constraints, not as the design direction.
47
47
  Do not start with broad multi-screen scaffolding.
48
48
  Design 1-3 anchor surfaces first, review screenshots, then expand.
49
+ Apply the form-factor-specific layout hygiene rules for desktop before passing screenshot review.
49
50
  Do not pass design checkpoint if the result is a repeated placeholder scaffold, flat panel soup, or a recolor of the old desktop shell.
50
51
  Persist project-local Pencil files under .da-vinci/designs/.
51
52
  ```
@@ -43,9 +43,18 @@ Inventory activities, fragments, tabs, dialogs, bottom sheets, nested flows, ove
43
43
  Decompose complex screens into subpages, overlays, materially different states, and implementation surfaces.
44
44
  Use the Visual Assist preferences declared in DA-VINCI.md.
45
45
  Treat the resolved primary visual adapter as the first-pass design lead.
46
+ State the resolved primary visual adapter explicitly in the log and name any requested adapters that are unavailable.
47
+ Before the first anchor surface, write a visual thesis, content plan, and interaction thesis.
46
48
  Use Pencil guides only as layout constraints, not as the design direction.
47
49
  Do not start with broad multi-screen scaffolding.
48
50
  Design 1-3 anchor surfaces first, review screenshots, then expand.
51
+ For each anchor surface, explain how the new composition differs structurally from the current layout.
52
+ Do not treat screenshot analysis as an automatic pass if it reports hierarchy, spacing, clarity, or inconsistency issues.
53
+ Apply the form-factor-specific layout hygiene rules for mobile before passing screenshot review.
54
+ Use only Pencil-supported properties; do not use web-only props like flex or margin.
55
+ Verify the registered project-local `.pen` file exists as a shell-visible file after the first Pencil write.
56
+ Keep non-`.pen` workflow artifacts out of `.da-vinci/designs/`.
57
+ Define shared primitives from the approved anchor surfaces before broad page expansion.
49
58
  Do not pass design checkpoint if the result is a skin-swap of the old UI, a generic card grid, repeated placeholder templates, or weak visual anchors.
50
59
  Persist project-local Pencil files under .da-vinci/designs/.
51
60
  ```
@@ -46,6 +46,7 @@ Treat the resolved primary visual adapter as the first-pass design lead.
46
46
  Use Pencil guides only as tablet-layout constraints, not as the design direction.
47
47
  Do not start with broad multi-screen scaffolding.
48
48
  Design 1-3 anchor surfaces first, review screenshots, then expand.
49
+ Apply the form-factor-specific layout hygiene rules for tablet before passing screenshot review.
49
50
  Do not pass design checkpoint if the result collapses into a stretched phone layout, repeated placeholders, or weak multi-region hierarchy.
50
51
  Persist project-local Pencil files under .da-vinci/designs/.
51
52
  ```
@@ -47,6 +47,7 @@ Treat the resolved primary visual adapter as the first-pass design lead.
47
47
  Use Pencil guides only as responsive layout constraints, not as the design direction.
48
48
  Do not start with broad multi-screen scaffolding.
49
49
  Design 1-3 anchor surfaces first, review screenshots, then expand.
50
+ Apply the form-factor-specific layout hygiene rules for web before passing screenshot review.
50
51
  Do not pass design checkpoint if the result is a generic SaaS card grid, repeated placeholder scaffolds, or a recolor of the old interface.
51
52
  Persist project-local Pencil files under .da-vinci/designs/.
52
53
  ```
@@ -24,6 +24,11 @@ It must not redefine:
24
24
 
25
25
  Those still come from requirements, existing code, `page-map.md`, and `pencil-bindings.md`.
26
26
 
27
+ Visual adapters also do not replace form-factor-specific layout-hygiene rules.
28
+
29
+ - adapters shape art direction
30
+ - layout hygiene decides whether a reviewed screen is structurally sound for its form factor
31
+
27
32
  ## Where To Configure It
28
33
 
29
34
  Configure visual-adapter preferences inside `DA-VINCI.md`.
@@ -49,6 +54,7 @@ Recommended shape:
49
54
  - page composition
50
55
  - hierarchy and spacing
51
56
  - motion guidance
57
+ - anchor-surface composition
52
58
  - Pencil design refinement
53
59
  - Fallback:
54
60
  - native-da-vinci
@@ -71,6 +77,7 @@ Balanced default:
71
77
  - visual contract refinement
72
78
  - page composition
73
79
  - hierarchy and spacing
80
+ - anchor-surface composition
74
81
  - Pencil design refinement
75
82
  - Fallback:
76
83
  - native-da-vinci
@@ -95,6 +102,7 @@ Quality-first redesign:
95
102
  - page composition
96
103
  - hierarchy and spacing
97
104
  - motion guidance
105
+ - anchor-surface composition
98
106
  - Pencil design refinement
99
107
  - Fallback:
100
108
  - native-da-vinci
@@ -116,9 +124,11 @@ Use the fields like this:
116
124
  - the priority list of local skills you want Da Vinci to try first
117
125
  - order matters
118
126
  - if multiple listed skills are available, Da Vinci should still resolve one primary adapter
127
+ - do not assume cross-platform equivalence between near-name adapters such as `frontend-skill` and `frontend-design`; resolve the actual installed adapter names for the current environment
119
128
  - `Scope`
120
129
  - the only areas where adapters are allowed to influence the workflow
121
130
  - keep this limited to presentation-quality work such as composition, spacing, and Pencil refinement
131
+ - include anchor-surface composition when the redesign depends on a strong first-pass visual direction
122
132
  - do not use this field to delegate behavior, routes, or state truth
123
133
  - `Fallback`
124
134
  - what Da Vinci should do if the preferred adapters are unavailable locally
@@ -178,9 +188,12 @@ Recommended fields:
178
188
  ```md
179
189
  ## Visual Adapter Resolution
180
190
  - Requested adapters: frontend-skill, ui-ux-pro-max
191
+ - Available requested adapters: frontend-skill
192
+ - Unavailable requested adapters: none
181
193
  - Resolved primary adapter: frontend-skill
182
194
  - Secondary helpers: none
183
195
  - Status: active
196
+ - Runtime declaration: explicitly stated before first anchor pass
184
197
  - Scope: DA-VINCI.md, design.md, pencil-design.md
185
198
  - Fallback reason if native Da Vinci rules were used: none
186
199
  ```
@@ -203,6 +216,8 @@ When a visual adapter is active:
203
216
 
204
217
  - use it before or during Pencil work to sharpen composition and hierarchy
205
218
  - treat the resolved primary adapter as the art-direction lead for the first pass, not as a note that merely gets copied into `design-registry.md`
219
+ - explicitly state the resolved primary adapter in the runtime log before the first anchor-screen pass
220
+ - write a visual thesis, content plan, and interaction thesis before the first anchor-screen pass under that adapter's lead
206
221
  - keep page names and states aligned with `page-map.md`
207
222
  - keep final `.pen` decisions grounded in Pencil, not in adapter prose
208
223
 
@@ -211,7 +226,10 @@ For complex redesigns:
211
226
  - do not start by scaffolding many screens with empty placeholders
212
227
  - design 1-3 anchor surfaces first
213
228
  - make each anchor surface fully composed before broad expansion
229
+ - for each anchor surface, explain briefly how the new composition differs structurally from the current layout
214
230
  - use screenshot review on each anchor surface before cloning variants or expanding the rest of the product
231
+ - do not treat screenshot analysis as an automatic pass; if the review flags hierarchy, spacing, clarity, inconsistency, or unresolved-placeholder issues, revise before expanding
232
+ - define a small shared primitive family from the approved anchor surfaces before broad page expansion
215
233
  - if the output is still placeholder-heavy or repetitious, mark `design checkpoint` as `BLOCK` and reset from the anchor surfaces instead of layering more screens on top
216
234
 
217
235
  Record the outcome in `pencil-design.md`.
@@ -20,6 +20,7 @@ If the project is design-critical or previous outputs were weak, generic, or too
20
20
  - consider `Require Adapter: true`
21
21
  - raise the design checkpoint bar before broad Pencil generation
22
22
  - switch to anchor-first generation: design 1-3 anchor surfaces, review screenshots, then expand
23
+ - update `Preferred adapters` to the actual installed names for the current environment instead of assuming cross-platform aliases
23
24
 
24
25
  Available presets:
25
26
 
@@ -33,5 +34,6 @@ How to use them:
33
34
  1. choose the preset closest to the product surface
34
35
  2. copy the `## Visual Assist` block into `DA-VINCI.md`
35
36
  3. adjust adapter order only if the project clearly needs a different visual bias
36
- 4. keep `Require Adapter: false` unless the project truly must stop without a specific local skill
37
- 5. for complex redesigns, do not treat the preset alone as enough; pair it with anchor-first Pencil generation and screenshot review
37
+ 4. replace adapter names with the actual installed names for the current environment when they differ
38
+ 5. keep `Require Adapter: false` unless the project truly must stop without a specific local skill
39
+ 6. for complex redesigns, do not treat the preset alone as enough; pair it with anchor-first Pencil generation and screenshot review
@@ -21,6 +21,7 @@ Recommended `DA-VINCI.md` block:
21
21
  - workspace composition
22
22
  - hierarchy and spacing
23
23
  - motion guidance
24
+ - anchor-surface composition
24
25
  - Pencil design refinement
25
26
  - Fallback:
26
27
  - native-da-vinci
@@ -31,6 +32,7 @@ Recommended `DA-VINCI.md` block:
31
32
  Notes:
32
33
 
33
34
  - prefer `ui-ux-pro-max` first for dense app layout decisions
35
+ - replace adapter names with the actual installed names for the current environment when they differ
34
36
  - keep section hierarchy stronger than decorative treatment
35
37
  - use `frontend-skill` only as a secondary visual-quality helper, not as a marketing-style override
36
38
  - if the result looks flat, over-boxed, or too generic, move `frontend-skill` to the first slot and raise the design checkpoint bar
@@ -21,6 +21,7 @@ Recommended `DA-VINCI.md` block:
21
21
  - mobile page composition
22
22
  - hierarchy and spacing
23
23
  - touch-first motion guidance
24
+ - anchor-surface composition
24
25
  - Pencil design refinement
25
26
  - Fallback:
26
27
  - native-da-vinci
@@ -31,6 +32,7 @@ Recommended `DA-VINCI.md` block:
31
32
  Notes:
32
33
 
33
34
  - prefer `ui-ux-pro-max` first for app-surface density and control balance
35
+ - replace adapter names with the actual installed names for the current environment when they differ
34
36
  - keep motion guidance light and purposeful
35
37
  - do not let the adapter turn routine mobile product UI into a marketing page
36
38
  - if the output keeps collapsing into generic cards or weak hierarchy, move `frontend-skill` to the first slot and consider `Require Adapter: true`
@@ -21,6 +21,7 @@ Recommended `DA-VINCI.md` block:
21
21
  - tablet page composition
22
22
  - hierarchy and spacing
23
23
  - touch-aware motion guidance
24
+ - anchor-surface composition
24
25
  - Pencil design refinement
25
26
  - Fallback:
26
27
  - native-da-vinci
@@ -31,6 +32,7 @@ Recommended `DA-VINCI.md` block:
31
32
  Notes:
32
33
 
33
34
  - keep spacing more generous than desktop but more structured than phone UI
35
+ - replace adapter names with the actual installed names for the current environment when they differ
34
36
  - use adapter guidance to improve split layouts, canvases, and workspace balance
35
37
  - avoid over-compressing content into phone-like stacking
36
38
  - 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
@@ -21,6 +21,7 @@ Recommended `DA-VINCI.md` block:
21
21
  - page composition
22
22
  - hierarchy and spacing
23
23
  - responsive motion guidance
24
+ - anchor-surface composition
24
25
  - Pencil design refinement
25
26
  - Fallback:
26
27
  - native-da-vinci
@@ -31,6 +32,7 @@ Recommended `DA-VINCI.md` block:
31
32
  Notes:
32
33
 
33
34
  - keep `ui-ux-pro-max` first for product surfaces, dashboards, and operational UI
35
+ - replace adapter names with the actual installed names for the current environment when they differ
34
36
  - if the project is more brand-led than tool-led, swap the order and put `frontend-skill` first
35
37
  - do not let responsive polish erase product clarity
36
38
  - if the output feels like generic SaaS filler, switch `frontend-skill` to first and tighten the visual direction in `DA-VINCI.md`
@@ -80,11 +80,13 @@ Expected flow:
80
80
  4. define redesign scope in `proposal.md`
81
81
  5. split broad redesign work into `specs/<slice>/spec.md` files when one large `ui-refresh` spec would be too coarse
82
82
  6. rebuild or refine `page-map.md`, including subpages, overlays, and materially different states
83
- 7. create new or updated Pencil pages from fresh composition rather than a recolor of the old UI, preferring persistence under `.da-vinci/designs/`
84
- 8. run `design-source checkpoint` to confirm the registered project-local `.pen` path, the active Pencil source, and the shell-visible file all agree
85
- 9. bind routes and pages to Pencil screens
86
- 10. generate tasks aligned to the redesign slices
87
- 11. build and verify
83
+ 7. write the visual thesis, content plan, interaction thesis, and structural-delta notes for the anchor surfaces
84
+ 8. create new or updated Pencil pages from fresh composition rather than a recolor of the old UI, preferring persistence under `.da-vinci/designs/`
85
+ 9. verify the registered project-local `.pen` path becomes shell-visible immediately after the first successful Pencil write
86
+ 10. run `design-source checkpoint` to confirm the registered project-local `.pen` path, the active Pencil source, and the shell-visible file all agree
87
+ 11. bind routes and pages to Pencil screens
88
+ 12. generate tasks aligned to the redesign slices
89
+ 13. build and verify
88
90
 
89
91
  ### Complex Android example
90
92
 
@@ -95,8 +97,16 @@ Existing code is the behavior source of truth, not the layout truth.
95
97
  Inventory activities, fragments, tabs, dialogs, bottom sheets, nested flows, and important states.
96
98
  Decompose complex screens into separate design surfaces before Pencil work.
97
99
  Use frontend-skill explicitly as the primary visual reasoning source.
100
+ State the resolved primary visual adapter explicitly in the log before the first anchor surface.
101
+ Write a visual thesis, content plan, and interaction thesis before the first anchor surface.
102
+ Use Pencil guides only as layout constraints, not as the design direction.
98
103
  Do not start with broad multi-screen scaffolding.
99
104
  Design 1-3 anchor surfaces first, review screenshots, then expand.
105
+ For each anchor surface, explain how the new composition differs structurally from the current layout.
106
+ Do not treat screenshot analysis as an automatic pass if it reports hierarchy, spacing, clarity, or inconsistency issues.
107
+ Use only Pencil-supported properties; do not use web-only props like flex or margin.
108
+ Verify the registered project-local `.pen` file exists as a shell-visible file after the first Pencil write.
109
+ Keep `.da-vinci/designs/` reserved for `.pen` files only.
100
110
  Do not pass design checkpoint if the result is just a skin-swap of the old UI.
101
111
  ```
102
112
 
@@ -35,6 +35,7 @@ project/
35
35
  - `DA-VINCI.md` 放根目录
36
36
  - 其他工作流工件放 `.da-vinci/`
37
37
  - 项目内持久化的 Pencil `.pen` 文件默认放 `.da-vinci/designs/`
38
+ - `.da-vinci/designs/` 里只应该放 `.pen` 文件,不应该混入工作流 markdown
38
39
 
39
40
  ## 快速选 mode
40
41
 
@@ -134,9 +135,11 @@ Da Vinci 应该:
134
135
  - 把复杂页面拆成 subpage、state、overlay、fragment surface
135
136
  7. 生成 `design.md`
136
137
  8. 生成 `pencil-design.md`
138
+ - 在大规模 anchor 设计前,先写 visual thesis、content plan、interaction thesis 和 structural-delta 说明
137
139
  - 先做 1 到 3 个 anchor surface,再扩展更多页面
138
140
  - 首轮设计由解析出来的主 visual adapter 主导
139
141
  - 把新的 Pencil 基线真正落到登记好的 `.da-vinci/designs/` 路径
142
+ - 在第一次成功写入 Pencil 后,立即验证登记的 `.pen` 路径已经成为 shell 可见文件
140
143
  9. 生成 `pencil-bindings.md`
141
144
  10. 生成 `tasks.md`
142
145
  11. 进入实现
@@ -147,13 +150,21 @@ Da Vinci 应该:
147
150
  - `redesign-from-code` 默认应该基于页面职责和状态重新构图
148
151
  - 不能把“旧页面换个配色、换点间距、挪一点位置”当成真正的重设计
149
152
  - 一旦配置了 `Preferred adapters`,解析出来的主 adapter 应该主导首轮设计,而不是只登记不使用
153
+ - 运行时必须明确声明解析出来的主 adapter,以及哪些请求的 adapter 当前不可用
154
+ - 不要把跨平台的近名 adapter 默认当成同一个能力源,应该按当前环境里真实安装的名字解析
155
+ - 当主 adapter 生效时,先写 visual thesis、content plan 和 interaction thesis,再开始第一个 anchor screen
150
156
  - 不要让 Pencil 的 guide 或样式模板取代主 adapter 成为设计方向来源
151
157
  - 不要一上来就批量搭很多空 screen
152
158
  - 对复杂产品,先把 1 到 3 个 anchor surface 做到通过截图审查,再扩展其他页面
159
+ - 对每个 anchor surface,都要说明“新的构图与当前布局结构相比具体改了什么”
160
+ - 只要截图分析指出 hierarchy、spacing、clarity、inconsistency 或 unresolved placeholder 问题,就不能自动判通过
161
+ - 在扩展更多页面前,先从已通过的 anchor surface 中抽出一组 shared primitives
162
+ - 只使用 Pencil 支持的属性,不要继续使用 `flex`、`margin` 这类 Web/CSS 属性
153
163
  - 一个实现页如果包含多个 Fragment、多个 tab、多个状态或多个 overlay,应该拆成多个设计 surface
154
164
  - `design-registry.md` 里的首选 `.pen` 路径由工作流自动维护,不应该依赖用户手工填写
155
165
  - 不要因为当前 Pencil 里正好打开了一个文档,就直接在那个文档上继续做重设计
156
166
  - 如果 Pencil MCP 没有自动把登记路径的 `.pen` 文件落到磁盘,就应该先补写这个项目内文件,再把 mapping 或 implementation 视为完成
167
+ - `.da-vinci/designs/` 应该只作为 `.pen` 目录使用,不应该混入 inventory、proposal 之类的 markdown
157
168
 
158
169
  ## 4. `feature-change`
159
170
 
@@ -25,6 +25,7 @@
25
25
 
26
26
  - 提示词模板负责定义工作流意图、拆分规则和真相源处理方式
27
27
  - `Visual Assist` 模板负责定义 UI 设计增强偏好
28
+ - form factor 专用的 layout hygiene 仍然是独立硬闸门,screen 在通过 screenshot review 前必须应用对应规则
28
29
  - 两者一起使用,结果通常更稳
29
30
 
30
31
  现在每个场景模板里都固定包含:
@@ -46,6 +46,7 @@ Treat the resolved primary visual adapter as the first-pass design lead.
46
46
  Use Pencil guides only as workspace constraints, not as the design direction.
47
47
  Do not start with broad multi-screen scaffolding.
48
48
  Design 1-3 anchor surfaces first, review screenshots, then expand.
49
+ 在通过 screenshot review 之前,先应用桌面端专用的 form-factor layout hygiene 规则。
49
50
  Do not pass design checkpoint if the result is a repeated placeholder scaffold, flat panel soup, or a recolor of the old desktop shell.
50
51
  Persist project-local Pencil files under .da-vinci/designs/.
51
52
  ```
@@ -43,9 +43,18 @@ Inventory activities, fragments, tabs, dialogs, bottom sheets, nested flows, ove
43
43
  Decompose complex screens into subpages, overlays, materially different states, and implementation surfaces.
44
44
  Use the Visual Assist preferences declared in DA-VINCI.md.
45
45
  Treat the resolved primary visual adapter as the first-pass design lead.
46
+ State the resolved primary visual adapter explicitly in the log and name any requested adapters that are unavailable.
47
+ Before the first anchor surface, write a visual thesis, content plan, and interaction thesis.
46
48
  Use Pencil guides only as layout constraints, not as the design direction.
47
49
  Do not start with broad multi-screen scaffolding.
48
50
  Design 1-3 anchor surfaces first, review screenshots, then expand.
51
+ For each anchor surface, explain how the new composition differs structurally from the current layout.
52
+ Do not treat screenshot analysis as an automatic pass if it reports hierarchy, spacing, clarity, or inconsistency issues.
53
+ 在通过 screenshot review 之前,先应用移动端专用的 form-factor layout hygiene 规则。
54
+ Use only Pencil-supported properties; do not use web-only props like flex or margin.
55
+ Verify the registered project-local `.pen` file exists as a shell-visible file after the first Pencil write.
56
+ Keep non-`.pen` workflow artifacts out of `.da-vinci/designs/`.
57
+ Define shared primitives from the approved anchor surfaces before broad page expansion.
49
58
  Do not pass design checkpoint if the result is a skin-swap of the old UI, a generic card grid, repeated placeholder templates, or weak visual anchors.
50
59
  Persist project-local Pencil files under .da-vinci/designs/.
51
60
  ```
@@ -46,6 +46,7 @@ Treat the resolved primary visual adapter as the first-pass design lead.
46
46
  Use Pencil guides only as tablet-layout constraints, not as the design direction.
47
47
  Do not start with broad multi-screen scaffolding.
48
48
  Design 1-3 anchor surfaces first, review screenshots, then expand.
49
+ 在通过 screenshot review 之前,先应用平板端专用的 form-factor layout hygiene 规则。
49
50
  Do not pass design checkpoint if the result collapses into a stretched phone layout, repeated placeholders, or weak multi-region hierarchy.
50
51
  Persist project-local Pencil files under .da-vinci/designs/.
51
52
  ```
@@ -47,6 +47,7 @@ Treat the resolved primary visual adapter as the first-pass design lead.
47
47
  Use Pencil guides only as responsive layout constraints, not as the design direction.
48
48
  Do not start with broad multi-screen scaffolding.
49
49
  Design 1-3 anchor surfaces first, review screenshots, then expand.
50
+ 在通过 screenshot review 之前,先应用 Web 专用的 form-factor layout hygiene 规则。
50
51
  Do not pass design checkpoint if the result is a generic SaaS card grid, repeated placeholder scaffolds, or a recolor of the old interface.
51
52
  Persist project-local Pencil files under .da-vinci/designs/.
52
53
  ```