@xenonbyte/da-vinci-workflow 0.1.17 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +33 -2
  3. package/README.zh-CN.md +31 -2
  4. package/SKILL.md +59 -1
  5. package/commands/claude/da-vinci.md +1 -0
  6. package/commands/claude/dv/continue.md +2 -0
  7. package/commands/claude/dv/intake.md +2 -0
  8. package/commands/codex/prompts/da-vinci.md +1 -0
  9. package/commands/codex/prompts/dv-continue.md +2 -0
  10. package/commands/codex/prompts/dv-intake.md +2 -1
  11. package/commands/gemini/da-vinci.toml +1 -0
  12. package/commands/gemini/dv/continue.toml +2 -0
  13. package/commands/gemini/dv/intake.toml +2 -0
  14. package/docs/codex-natural-language-usage.md +8 -0
  15. package/docs/dv-command-reference.md +401 -0
  16. package/docs/mode-use-cases.md +94 -2
  17. package/docs/pencil-rendering-workflow.md +231 -0
  18. package/docs/prompt-entrypoints.md +25 -0
  19. package/docs/prompt-presets/README.md +80 -0
  20. package/docs/prompt-presets/desktop-app.md +58 -0
  21. package/docs/prompt-presets/mobile-app.md +58 -0
  22. package/docs/prompt-presets/tablet-app.md +58 -0
  23. package/docs/prompt-presets/web-app.md +58 -0
  24. package/docs/visual-adapters.md +12 -0
  25. package/docs/workflow-examples.md +25 -1
  26. package/docs/workflow-overview.md +231 -0
  27. package/docs/zh-CN/codex-natural-language-usage.md +8 -0
  28. package/docs/zh-CN/dv-command-reference.md +401 -0
  29. package/docs/zh-CN/mode-use-cases.md +47 -2
  30. package/docs/zh-CN/pencil-rendering-workflow.md +233 -0
  31. package/docs/zh-CN/prompt-entrypoints.md +23 -0
  32. package/docs/zh-CN/prompt-presets/README.md +80 -0
  33. package/docs/zh-CN/prompt-presets/desktop-app.md +58 -0
  34. package/docs/zh-CN/prompt-presets/mobile-app.md +58 -0
  35. package/docs/zh-CN/prompt-presets/tablet-app.md +58 -0
  36. package/docs/zh-CN/prompt-presets/web-app.md +58 -0
  37. package/docs/zh-CN/visual-adapters.md +12 -0
  38. package/docs/zh-CN/workflow-examples.md +28 -1
  39. package/docs/zh-CN/workflow-overview.md +233 -0
  40. package/package.json +2 -1
  41. package/references/artifact-templates.md +46 -0
  42. package/references/checkpoints.md +15 -0
  43. package/references/design-inputs.md +6 -0
  44. package/references/modes.md +34 -0
  45. package/references/page-mapping.md +58 -0
  46. package/references/pencil-design-to-code.md +6 -0
  47. package/references/platform-adapters.md +1 -0
  48. package/references/prompt-recipes.md +39 -0
  49. package/scripts/test-mode-consistency.js +155 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.1.18 - 2026-03-28
4
+
5
+ ### Added
6
+ - `overhaul-from-code` as a fifth workflow mode for broad existing-product rewrites where the current codebase remains migration evidence, but new `proposal.md` and `specs/` become the target behavior truth
7
+ - `migration-contract.md` as a first-class change artifact for preserve / revise / retire / unknown decisions in overhaul work
8
+ - `docs/dv-command-reference.md` and `docs/zh-CN/dv-command-reference.md` to explain route responsibilities, stateful next-step recommendations, and verify rollback behavior
9
+
10
+ ### Changed
11
+ - intake, mode guides, prompt recipes, workflow examples, and natural-language usage now distinguish `overhaul-from-code` from `redesign-from-code` instead of forcing large product rewrites into UI-only redesign semantics
12
+ - workflow, checkpoint, and design-input guidance now require overhaul runs to stabilize `proposal.md`, `migration-contract.md`, target `specs/`, and `page-map.md` before broad Pencil generation
13
+ - visual-adapter and Pencil design guidance now explain how `overhaul-from-code` keeps current code as reference evidence while using the new truth sources to drive design and implementation
14
+ - prompt preset docs now include dedicated `overhaul-from-code` intake, breakdown, design, and continue templates for mobile, desktop, web, and tablet surfaces
15
+ - page-mapping, checkpoint, and command-reference docs now explain how to recover when bindings still exist but either implementation or the design source is missing
16
+
3
17
  ## v0.1.17 - 2026-03-28
4
18
 
5
19
  ### Added
package/README.md CHANGED
@@ -21,13 +21,14 @@ This workflow is intended for:
21
21
  - 0-to-1 product delivery
22
22
  - brainstorm-to-product delivery
23
23
  - redesign from existing code
24
+ - large existing-product overhauls where flows and logic also change
24
25
  - scoped feature delivery on an existing product
25
26
 
26
27
  ## Current release
27
28
 
28
29
  Latest published npm package:
29
30
 
30
- - `@xenonbyte/da-vinci-workflow@0.1.16`
31
+ - `@xenonbyte/da-vinci-workflow@0.1.18`
31
32
 
32
33
  Release highlights:
33
34
 
@@ -70,7 +71,7 @@ Release highlights:
70
71
 
71
72
  ## Supported workflow modes
72
73
 
73
- Da Vinci V2 supports four modes.
74
+ Da Vinci currently supports five modes.
74
75
 
75
76
  ### `greenfield-spec`
76
77
 
@@ -84,6 +85,10 @@ Use when the project is new but the inputs come from multiple rounds of rough pr
84
85
 
85
86
  Use when an existing project already has routes, pages, and UI, and the goal is a broad redesign or UI replacement.
86
87
 
88
+ ### `overhaul-from-code`
89
+
90
+ Use when an existing project is undergoing a broad system-level rewrite and current code is still valuable as migration evidence, but no longer the complete target behavior truth.
91
+
87
92
  ### `feature-change`
88
93
 
89
94
  Use when an existing product needs a scoped requirement change, page addition, or page update.
@@ -225,6 +230,7 @@ Depending on the mode, the workflow may use these artifacts:
225
230
  - `project-inventory.md`: current routes, pages, and UI patterns from an existing codebase
226
231
  - `DA-VINCI.md`: project-level visual contract for theme, palette, typography direction, component tone, and page-consistency rules
227
232
  - `design-brief.md`: form factor, style, density, brand constraints, and layout preferences
233
+ - `migration-contract.md`: preserve / revise / retire / unknown boundaries for existing-system overhaul work
228
234
  - `design-registry.md`: project-level `.pen` source inventory
229
235
  - `.da-vinci/designs/`: project-local persisted Pencil sources such as `project-baseline.pen` or change-specific `.pen` files
230
236
  - `page-map.md`: canonical page list and page responsibilities
@@ -242,6 +248,8 @@ Use specs as capability or redesign-slice boundaries, not as page counters.
242
248
 
243
249
  For broad `redesign-from-code` work, prefer multiple `specs/<slice>/spec.md` files over one oversized `ui-refresh/spec.md`.
244
250
 
251
+ For broad `overhaul-from-code` work, prefer multiple `specs/<slice>/spec.md` files plus one `migration-contract.md` over one oversized rewrite spec that mixes preserved and retired system behavior.
252
+
245
253
  ## Artifact placement
246
254
 
247
255
  Recommended project layout:
@@ -260,6 +268,7 @@ project/
260
268
  └── <change-id>/
261
269
  ├── brainstorm.md
262
270
  ├── design-brief.md
271
+ ├── migration-contract.md
263
272
  ├── proposal.md
264
273
  ├── design.md
265
274
  ├── pencil-design.md
@@ -332,6 +341,7 @@ Rules:
332
341
  - `page-map.md` is the source of truth for implementation pages
333
342
  - `pencil-bindings.md` is the source of truth for implementation page -> Pencil page mapping
334
343
  - in `redesign-from-code`, existing code is behavior truth, not layout truth
344
+ - in `overhaul-from-code`, existing code is reference evidence and migration baseline, not automatic final behavior truth
335
345
  - complex pages should be decomposed into subpages, states, overlays, and implementation surfaces before Pencil redesign is treated as final
336
346
  - the preferred `.pen` path recorded in `design-registry.md` is workflow-owned state, not user-authored config
337
347
  - when Pencil work starts, Da Vinci should use or create that exact project-local `.pen` path instead of relying on whichever Pencil document happens to be active
@@ -562,6 +572,12 @@ $da-vinci use greenfield-brainstorm to turn several product ideas into a page ma
562
572
  $da-vinci use redesign-from-code to inventory the existing app, identify current pages, and generate a new Pencil-backed UI plan
563
573
  ```
564
574
 
575
+ ### Overhaul from code
576
+
577
+ ```text
578
+ $da-vinci use overhaul-from-code to inventory the current product, define preserve/revise/retire boundaries, rewrite the target flows and specs, and generate a Pencil-backed overhaul plan
579
+ ```
580
+
565
581
  ### Feature change
566
582
 
567
583
  ```text
@@ -587,13 +603,25 @@ Use the existing Da Vinci artifacts.
587
603
  Continue into full-delivery.
588
604
  ```
589
605
 
606
+ ### Continue after overhaul planning
607
+
608
+ ```text
609
+ $da-vinci use continue for this existing overhaul-from-code workflow.
610
+
611
+ Use the existing Da Vinci artifacts.
612
+ Continue from proposal, migration-contract, and target specs into design or implementation.
613
+ ```
614
+
590
615
  ## Workflow examples
591
616
 
592
617
  See:
593
618
 
594
619
  - `docs/prompt-entrypoints.md`
620
+ - `docs/dv-command-reference.md`
595
621
  - `docs/prompt-presets/`
596
622
  - includes `Simple redesign`, `Complex redesign`, `Design-only`, and `Continue` variants in each surface file
623
+ - `docs/workflow-overview.md`
624
+ - `docs/pencil-rendering-workflow.md`
597
625
  - `docs/codex-natural-language-usage.md`
598
626
  - `docs/visual-adapters.md`
599
627
  - `docs/visual-assist-presets/`
@@ -605,8 +633,11 @@ See:
605
633
  Chinese companion documents are included in this repository:
606
634
 
607
635
  - `README.zh-CN.md`
636
+ - `docs/zh-CN/dv-command-reference.md`
608
637
  - `docs/zh-CN/prompt-presets/`
609
638
  - each surface file also includes `Simple redesign`, `Complex redesign`, `Design-only`, and `Continue`
639
+ - `docs/zh-CN/workflow-overview.md`
640
+ - `docs/zh-CN/pencil-rendering-workflow.md`
610
641
  - `docs/zh-CN/visual-adapters.md`
611
642
  - `docs/zh-CN/visual-assist-presets/`
612
643
  - `docs/zh-CN/`
package/README.zh-CN.md CHANGED
@@ -23,13 +23,14 @@ Da Vinci 是一个把产品需求一路推进到结构化规格、Pencil 设计
23
23
  - 0 到 1 的产品交付
24
24
  - 从 brainstorming 走向可实施产品
25
25
  - 基于现有代码做全局 UI 重设计
26
+ - 基于现有代码做流程、逻辑和 UI 一起变化的大改版
26
27
  - 在现有产品上做范围明确的 feature-change
27
28
 
28
29
  ## 当前发布状态
29
30
 
30
31
  最新已发布 npm 包:
31
32
 
32
- - `@xenonbyte/da-vinci-workflow@0.1.16`
33
+ - `@xenonbyte/da-vinci-workflow@0.1.18`
33
34
 
34
35
  已发布版本重点:
35
36
 
@@ -72,7 +73,7 @@ Da Vinci 是一个把产品需求一路推进到结构化规格、Pencil 设计
72
73
 
73
74
  ## 支持的工作流模式
74
75
 
75
- Da Vinci V2 支持四种模式:
76
+ Da Vinci 当前支持五种模式:
76
77
 
77
78
  ### `greenfield-spec`
78
79
 
@@ -86,6 +87,10 @@ Da Vinci V2 支持四种模式:
86
87
 
87
88
  已有项目,代码和行为已存在,目标是做广泛或全局的 UI 重设计。
88
89
 
90
+ ### `overhaul-from-code`
91
+
92
+ 已有项目,但目标是做系统级大改版;现有代码仍然是迁移基线和参考证据,但不再天然等于新版本的最终行为真相。
93
+
89
94
  ### `feature-change`
90
95
 
91
96
  已有项目,只做某个功能、页面、流程的局部修改。
@@ -230,6 +235,7 @@ Da Vinci 的默认顺序是:
230
235
  - `project-inventory.md`:现有代码库里的路由、页面、UI 结构盘点
231
236
  - `DA-VINCI.md`:项目级视觉契约
232
237
  - `design-brief.md`:设计方向、形态、密度、品牌和限制条件
238
+ - `migration-contract.md`:存量系统在大改版中哪些保留、修改、废弃、待确认的边界
233
239
  - `design-registry.md`:项目级 `.pen` 设计源登记
234
240
  - `.da-vinci/designs/`:项目内持久化的 Pencil 设计源,例如 `project-baseline.pen` 或按 change 保存的 `.pen` 文件
235
241
  - `page-map.md`:页面、职责、状态和共享区域
@@ -259,6 +265,7 @@ project/
259
265
  └── <change-id>/
260
266
  ├── brainstorm.md
261
267
  ├── design-brief.md
268
+ ├── migration-contract.md
262
269
  ├── proposal.md
263
270
  ├── design.md
264
271
  ├── pencil-design.md
@@ -284,6 +291,7 @@ project/
284
291
  - `page-map.md` 是实现页面和状态的真相源
285
292
  - `pencil-bindings.md` 是实现页面到 Pencil 页面绑定的真相源
286
293
  - 在 `redesign-from-code` 里,现有代码只是真相行为,不是真相布局
294
+ - 在 `overhaul-from-code` 里,现有代码是参考基线和迁移约束,不是新系统天然的最终行为真相
287
295
  - 复杂页面在 Pencil 重设计前应该先拆成 subpage、state、overlay 和 implementation surface
288
296
  - `design-registry.md` 里登记的首选 `.pen` 路径属于工作流自动维护的状态,不应该依赖用户手工填写
289
297
  - 一旦进入 Pencil 设计,Da Vinci 应该使用或创建这个项目内 `.pen` 路径,而不是继续沿用当前随手打开的 Pencil 文档
@@ -474,6 +482,12 @@ $da-vinci use greenfield-brainstorm to turn several product ideas into a page ma
474
482
  $da-vinci use redesign-from-code to inventory the existing app, identify current pages, and generate a new Pencil-backed UI plan
475
483
  ```
476
484
 
485
+ ### Overhaul from code
486
+
487
+ ```text
488
+ $da-vinci use overhaul-from-code to inventory the current product, define preserve/revise/retire boundaries, rewrite the target flows and specs, and generate a Pencil-backed overhaul plan
489
+ ```
490
+
477
491
  ### Feature change
478
492
 
479
493
  ```text
@@ -499,14 +513,26 @@ Use the existing Da Vinci artifacts.
499
513
  Continue into full-delivery.
500
514
  ```
501
515
 
516
+ ### 大改版场景继续推进
517
+
518
+ ```text
519
+ $da-vinci use continue for this existing overhaul-from-code workflow.
520
+
521
+ Use the existing Da Vinci artifacts.
522
+ Continue from proposal, migration-contract, and target specs into design or implementation.
523
+ ```
524
+
502
525
  ## 文档导航
503
526
 
504
527
  英文文档:
505
528
 
506
529
  - `docs/codex-natural-language-usage.md`
530
+ - `docs/dv-command-reference.md`
507
531
  - `docs/prompt-entrypoints.md`
508
532
  - `docs/prompt-presets/`
509
533
  - 每个场景文件都包含 `Simple redesign`、`Complex redesign`、`Design-only`、`Continue`
534
+ - `docs/workflow-overview.md`
535
+ - `docs/pencil-rendering-workflow.md`
510
536
  - `docs/visual-adapters.md`
511
537
  - `docs/visual-assist-presets/`
512
538
  - `docs/workflow-examples.md`
@@ -516,8 +542,11 @@ Continue into full-delivery.
516
542
  中文文档:
517
543
 
518
544
  - `README.zh-CN.md`
545
+ - `docs/zh-CN/dv-command-reference.md`
519
546
  - `docs/zh-CN/prompt-presets/`
520
547
  - 每个场景文件也都包含 `Simple redesign`、`Complex redesign`、`Design-only`、`Continue`
548
+ - `docs/zh-CN/workflow-overview.md`
549
+ - `docs/zh-CN/pencil-rendering-workflow.md`
521
550
  - `docs/zh-CN/visual-adapters.md`
522
551
  - `docs/zh-CN/visual-assist-presets/`
523
552
  - `docs/zh-CN/`
package/SKILL.md CHANGED
@@ -16,6 +16,7 @@ Keep these rules fixed:
16
16
  - Tasks decide implementation order.
17
17
  - Code must follow both requirements and Pencil data.
18
18
  - Existing code is behavior truth, not layout truth, during `redesign-from-code`.
19
+ - Existing code is reference evidence and migration baseline, not default final behavior truth, during `overhaul-from-code`.
19
20
  - When requirements and Pencil drift apart, stop and update the source artifacts before continuing implementation.
20
21
 
21
22
  ## Execution Policy
@@ -75,6 +76,25 @@ Do not stop merely because:
75
76
 
76
77
  Those are warnings unless they prevent safe implementation of the current in-scope work.
77
78
 
79
+ ## Next-Step Recommendation Discipline
80
+
81
+ When Da Vinci reports a "next recommended step" or offers route suggestions, make the recommendation stateful rather than listing every possible command as if they were equally valid.
82
+
83
+ Use this order:
84
+
85
+ - if discovery or design-source artifacts are still missing, recommend the missing discovery or design work first
86
+ - if design is still blocking, recommend `design`
87
+ - if design is ready enough for implementation planning but `.da-vinci/changes/<change-id>/tasks.md` does not exist yet, recommend `tasks`
88
+ - if `tasks.md` exists and `task checkpoint` is at least `PASS` or an explicitly accepted `WARN`, recommend `build`
89
+ - if implementation is already underway or complete enough to check drift, recommend `verify`
90
+
91
+ Hard rules:
92
+
93
+ - do not present `build` as a co-equal next step when `tasks.md` does not exist yet
94
+ - do not present `build` as the primary next step immediately after design completion unless task generation is already done and implementation readiness is clear
95
+ - if design is complete but more in-scope surfaces still need design work, `design` may remain an optional branch, but `tasks` stays the primary next step before `build`
96
+ - if multiple commands are shown, clearly mark only one as the primary next step for the current workflow state
97
+
78
98
  ## Invocation Model
79
99
 
80
100
  Canonical workflow name is `da-vinci`.
@@ -134,7 +154,10 @@ Supported modes:
134
154
  3. `redesign-from-code`
135
155
  - use when an existing product already has code and the UI must be redesigned globally or broadly
136
156
 
137
- 4. `feature-change`
157
+ 4. `overhaul-from-code`
158
+ - use when an existing product needs a broad system-level rewrite where flows, logic, information architecture, and UI may all change
159
+
160
+ 5. `feature-change`
138
161
  - use when an existing product needs a scoped requirement change, page addition, or page update
139
162
 
140
163
  If the user does not specify a mode:
@@ -142,6 +165,7 @@ If the user does not specify a mode:
142
165
  - choose `greenfield-spec` for new projects with clear requirements
143
166
  - choose `greenfield-brainstorm` for exploratory new product ideation
144
167
  - choose `redesign-from-code` for broad UI replacement on existing code
168
+ - choose `overhaul-from-code` for broad existing-project rewrites where old code is no longer the full behavior truth
145
169
  - choose `feature-change` for incremental product work
146
170
 
147
171
  ## Design Input Collection
@@ -378,6 +402,12 @@ Use these minimum flows:
378
402
 
379
403
  For broad refreshes, treat `.da-vinci/changes/<change-id>/specs/` as a redesign-slice directory, not as a single-file location.
380
404
 
405
+ ### `overhaul-from-code`
406
+
407
+ `.da-vinci/project-inventory` -> `.da-vinci/changes/<change-id>/proposal` -> `.da-vinci/changes/<change-id>/migration-contract` -> `.da-vinci/changes/<change-id>/specs` -> `.da-vinci/page-map` -> `DA-VINCI` -> `.da-vinci/design-registry` -> `.da-vinci/changes/<change-id>/design-brief` -> `.da-vinci/changes/<change-id>/design` -> `.da-vinci/changes/<change-id>/pencil-design` -> `.da-vinci/changes/<change-id>/pencil-bindings` -> `.da-vinci/changes/<change-id>/tasks` -> `.da-vinci/changes/<change-id>/verification`
408
+
409
+ For broad overhauls, treat `.da-vinci/changes/<change-id>/specs/` as an overhaul-slice directory and keep `migration-contract.md` singular for preserve/revise/retire decisions.
410
+
381
411
  ### `feature-change`
382
412
 
383
413
  `.da-vinci/changes/<change-id>/proposal` -> `.da-vinci/changes/<change-id>/specs` -> `.da-vinci/page-map` for affected pages -> `DA-VINCI` -> `.da-vinci/design-registry` -> `.da-vinci/changes/<change-id>/design` -> `.da-vinci/changes/<change-id>/pencil-design` delta -> `.da-vinci/changes/<change-id>/pencil-bindings` delta -> `.da-vinci/changes/<change-id>/tasks` -> `.da-vinci/changes/<change-id>/verification`
@@ -405,6 +435,15 @@ If the active mode is `redesign-from-code`:
405
435
  - default to fresh visual composition unless the user explicitly asks to preserve the current layout skeleton
406
436
  - partition specs by redesign slice when one oversized `ui-refresh` spec would hide important implementation boundaries
407
437
 
438
+ If the active mode is `overhaul-from-code`:
439
+
440
+ - inventory current routes, pages, modules, key flows, integrations, and permission boundaries before redefining the target product
441
+ - treat existing code as reference evidence and migration baseline rather than default final behavior truth
442
+ - classify current system areas into `preserve`, `revise`, `retire`, and `unknown` in `migration-contract.md`
443
+ - stabilize new `proposal.md` and `specs/` before broad Pencil design or implementation
444
+ - update `page-map.md` to reflect the new target page set, not only the old route tree
445
+ - route verify failures back to `migration-contract.md`, `page-map.md`, or specs when overhaul truth is still unstable
446
+
408
447
  ## Spec Partitioning Rules
409
448
 
410
449
  Do not default to one oversized `ui-refresh` spec for broad redesign work.
@@ -438,6 +477,24 @@ One redesign spec is acceptable when the refresh is mostly cosmetic, narrow, or
438
477
 
439
478
  Do not split page-by-page unless the product is unusually fragmented. Prefer implementable redesign slices over raw page counts.
440
479
 
480
+ For `overhaul-from-code`:
481
+
482
+ - keep one overall `proposal.md`
483
+ - keep one `migration-contract.md`
484
+ - keep one project-level `DA-VINCI.md`
485
+ - keep one project-level `project-inventory.md`
486
+ - keep one project-level `design-registry.md`
487
+ - keep one project-level `page-map.md`
488
+ - split `specs/` by overhaul slice when the rewrite spans multiple implementation or migration boundaries
489
+
490
+ Preferred overhaul slices:
491
+
492
+ - `shell-and-navigation`
493
+ - `core-flows`
494
+ - `account-and-settings`
495
+ - `legacy-migration`
496
+ - `admin-or-restricted`
497
+
441
498
  ## Design Source Rules
442
499
 
443
500
  Use `design-registry.md` as the project-level inventory of `.pen` sources.
@@ -698,3 +755,4 @@ After meaningful work, report:
698
755
  5. blockers or drift
699
756
 
700
757
  Keep updates concise and operational.
758
+ Make `next recommended step` follow the state rules above; do not list `build` next to `tasks` as if they were equivalent when task generation has not happened yet.
@@ -22,6 +22,7 @@ Notes:
22
22
  - Requirements decide behavior.
23
23
  - Pencil decides presentation.
24
24
  - Code must follow both.
25
+ - After design but before `tasks.md` exists, prefer `/dv:tasks` as the next route; treat `/dv:build` as implementation-ready only.
25
26
  - If `Visual Assist` is configured, resolve and state the actual primary visual adapter for this environment instead of assuming cross-platform skill equivalence.
26
27
  - Keep `.da-vinci/designs/` reserved for `.pen` files only.
27
28
  - On complex redesigns, design 1-3 anchor surfaces first and treat screenshot review as a binding gate before broad expansion.
@@ -21,4 +21,6 @@ Output should include:
21
21
  Route discipline:
22
22
  - do not restart discovery if the current artifacts already contain enough truth
23
23
  - do not default the user into `/dv:build` unless the project is clearly implementation-ready
24
+ - if design artifacts exist but `tasks.md` does not, prefer a continuation prompt that moves into `/dv:tasks`
25
+ - only prefer `/dv:build` once task generation and implementation readiness are already clear
24
26
  - continuation prompts should usually target the main workflow entry so Da Vinci can resume the full state machine
@@ -24,3 +24,5 @@ Output should include:
24
24
  Route discipline:
25
25
  - do not default the user into `/dv:build`
26
26
  - `intake` should usually produce a main workflow prompt, not a build-only prompt
27
+ - prefer `redesign-from-code`, `overhaul-from-code`, or `feature-change` when the request starts from an existing project
28
+ - prefer `overhaul-from-code` when an existing project is redefining flows or logic rather than only replacing UI
@@ -21,6 +21,7 @@ Available routes:
21
21
 
22
22
  Important:
23
23
  - Treat `/prompts:*` as action selectors in Codex.
24
+ - After design but before `tasks.md` exists, prefer `/prompts:dv-tasks` as the next route; treat `/prompts:dv-build` as implementation-ready only.
24
25
  - If `Visual Assist` is configured, resolve and state the actual primary visual adapter for this environment instead of assuming cross-platform skill equivalence.
25
26
  - Keep `.da-vinci/designs/` reserved for `.pen` files only.
26
27
  - On complex redesigns, design 1-3 anchor surfaces first and treat screenshot review as a binding gate before broad expansion.
@@ -21,4 +21,6 @@ Output should include:
21
21
  Route discipline:
22
22
  - do not restart discovery if the current artifacts already contain enough truth
23
23
  - do not default the user into `/prompts:dv-build` unless the project is clearly implementation-ready
24
+ - if design artifacts exist but `tasks.md` does not, prefer a continuation prompt that moves into `/prompts:dv-tasks`
25
+ - only prefer `/prompts:dv-build` once task generation and implementation readiness are already clear
24
26
  - continuation prompts should usually target the main workflow entry so Da Vinci can resume the full state machine
@@ -24,4 +24,5 @@ Output should include:
24
24
  Route discipline:
25
25
  - do not default the user into `/prompts:dv-build`
26
26
  - `intake` should usually produce a main workflow prompt, not a build-only prompt
27
- - prefer `redesign-from-code` or `feature-change` when the request starts from an existing project
27
+ - prefer `redesign-from-code`, `overhaul-from-code`, or `feature-change` when the request starts from an existing project
28
+ - prefer `overhaul-from-code` when an existing project is redefining flows or logic rather than only replacing UI
@@ -24,6 +24,7 @@ Notes:
24
24
  - Requirements decide behavior.
25
25
  - Pencil decides presentation.
26
26
  - Code must follow both.
27
+ - After design but before `tasks.md` exists, prefer `/dv:tasks` as the next route; treat `/dv:build` as implementation-ready only.
27
28
  - If `Visual Assist` is configured, resolve and state the actual primary visual adapter for this environment instead of assuming cross-platform skill equivalence.
28
29
  - Keep `.da-vinci/designs/` reserved for `.pen` files only.
29
30
  - On complex redesigns, design 1-3 anchor surfaces first and treat screenshot review as a binding gate before broad expansion.
@@ -20,5 +20,7 @@ Output should include:
20
20
  Route discipline:
21
21
  - do not restart discovery if the current artifacts already contain enough truth
22
22
  - do not default the user into `/dv:build` unless the project is clearly implementation-ready
23
+ - if design artifacts exist but `tasks.md` does not, prefer a continuation prompt that moves into `/dv:tasks`
24
+ - only prefer `/dv:build` once task generation and implementation readiness are already clear
23
25
  - continuation prompts should usually target the main workflow entry so Da Vinci can resume the full state machine
24
26
  """
@@ -23,4 +23,6 @@ Output should include:
23
23
  Route discipline:
24
24
  - do not default the user into `/dv:build`
25
25
  - `intake` should usually produce a main workflow prompt, not a build-only prompt
26
+ - prefer `redesign-from-code`, `overhaul-from-code`, or `feature-change` when the request starts from an existing project
27
+ - prefer `overhaul-from-code` when an existing project is redefining flows or logic rather than only replacing UI
26
28
  """
@@ -65,6 +65,7 @@ Supported modes:
65
65
  - `greenfield-spec`
66
66
  - `greenfield-brainstorm`
67
67
  - `redesign-from-code`
68
+ - `overhaul-from-code`
68
69
  - `feature-change`
69
70
 
70
71
  ## Scenario Recipes
@@ -104,6 +105,12 @@ $da-vinci use redesign-from-code to inventory the current product, preserve exis
104
105
  $da-vinci use feature-change to add or update one scoped feature, generate any required Pencil design delta, and implement the change safely.
105
106
  ```
106
107
 
108
+ ### 5. Existing product with a large overhaul
109
+
110
+ ```text
111
+ $da-vinci use overhaul-from-code to inventory the current product, define preserve/revise/retire boundaries, rewrite the target flows and specs, and then generate Pencil-backed design work and implementation tasks.
112
+ ```
113
+
107
114
  ### 5. Existing Android project with global UI replacement
108
115
 
109
116
  ```text
@@ -175,4 +182,5 @@ Prefer:
175
182
 
176
183
  - `use intake` for unclear starts
177
184
  - `use redesign-from-code` for broad UI replacement
185
+ - `use overhaul-from-code` for broad existing-product rewrites where new specs replace old behavior truth
178
186
  - `use feature-change` for narrow existing-product work