@xenonbyte/da-vinci-workflow 0.1.8 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/README.md +97 -1
- package/README.zh-CN.md +97 -1
- package/SKILL.md +57 -0
- package/docs/mode-use-cases.md +29 -7
- package/docs/visual-adapters.md +255 -0
- package/docs/visual-assist-presets/README.md +31 -0
- package/docs/visual-assist-presets/desktop-app.md +36 -0
- package/docs/visual-assist-presets/mobile-app.md +36 -0
- package/docs/visual-assist-presets/tablet-app.md +36 -0
- package/docs/visual-assist-presets/web-app.md +36 -0
- package/docs/workflow-examples.md +48 -18
- package/docs/zh-CN/mode-use-cases.md +16 -0
- package/docs/zh-CN/visual-adapters.md +257 -0
- package/docs/zh-CN/visual-assist-presets/README.md +31 -0
- package/docs/zh-CN/visual-assist-presets/desktop-app.md +32 -0
- package/docs/zh-CN/visual-assist-presets/mobile-app.md +31 -0
- package/docs/zh-CN/visual-assist-presets/tablet-app.md +31 -0
- package/docs/zh-CN/visual-assist-presets/web-app.md +32 -0
- package/docs/zh-CN/workflow-examples.md +48 -18
- package/examples/greenfield-spec-markupflow/DA-VINCI.md +14 -0
- package/examples/greenfield-spec-markupflow/README.md +9 -2
- package/examples/greenfield-spec-markupflow/design-registry.md +13 -4
- package/examples/greenfield-spec-markupflow/pencil-bindings.md +4 -4
- package/examples/greenfield-spec-markupflow/pencil-design.md +15 -2
- package/package.json +1 -1
- package/references/artifact-templates.md +38 -0
- package/references/checkpoints.md +9 -2
- package/references/design-inputs.md +13 -0
- package/references/page-mapping.md +12 -0
- package/references/pencil-design-to-code.md +8 -0
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
# Visual Adapters
|
|
2
|
+
|
|
3
|
+
Use this document when a project wants optional UI-design assistance from local skills such as `frontend-skill` or `ui-ux-pro-max`.
|
|
4
|
+
|
|
5
|
+
## What A Visual Adapter Is
|
|
6
|
+
|
|
7
|
+
A visual adapter is an optional presentation-quality helper.
|
|
8
|
+
|
|
9
|
+
It may improve:
|
|
10
|
+
|
|
11
|
+
- visual-contract quality
|
|
12
|
+
- composition
|
|
13
|
+
- hierarchy
|
|
14
|
+
- spacing discipline
|
|
15
|
+
- motion guidance
|
|
16
|
+
- Pencil page refinement
|
|
17
|
+
|
|
18
|
+
It must not redefine:
|
|
19
|
+
|
|
20
|
+
- behavior truth
|
|
21
|
+
- route truth
|
|
22
|
+
- page-state truth
|
|
23
|
+
- acceptance criteria
|
|
24
|
+
|
|
25
|
+
Those still come from requirements, existing code, `page-map.md`, and `pencil-bindings.md`.
|
|
26
|
+
|
|
27
|
+
## Where To Configure It
|
|
28
|
+
|
|
29
|
+
Configure visual-adapter preferences inside `DA-VINCI.md`.
|
|
30
|
+
|
|
31
|
+
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
|
+
|
|
40
|
+
Recommended shape:
|
|
41
|
+
|
|
42
|
+
```md
|
|
43
|
+
## Visual Assist
|
|
44
|
+
- Preferred adapters:
|
|
45
|
+
- frontend-skill
|
|
46
|
+
- ui-ux-pro-max
|
|
47
|
+
- Scope:
|
|
48
|
+
- visual contract refinement
|
|
49
|
+
- page composition
|
|
50
|
+
- hierarchy and spacing
|
|
51
|
+
- motion guidance
|
|
52
|
+
- Pencil design refinement
|
|
53
|
+
- Fallback:
|
|
54
|
+
- native-da-vinci
|
|
55
|
+
- Require Adapter:
|
|
56
|
+
- false
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Use `Require Adapter: true` only when the workflow must stop if the preferred adapter is unavailable locally.
|
|
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
|
+
|
|
111
|
+
## What Each Field Means
|
|
112
|
+
|
|
113
|
+
Use the fields like this:
|
|
114
|
+
|
|
115
|
+
- `Preferred adapters`
|
|
116
|
+
- the priority list of local skills you want Da Vinci to try first
|
|
117
|
+
- order matters
|
|
118
|
+
- if multiple listed skills are available, Da Vinci should still resolve one primary adapter
|
|
119
|
+
- `Scope`
|
|
120
|
+
- the only areas where adapters are allowed to influence the workflow
|
|
121
|
+
- keep this limited to presentation-quality work such as composition, spacing, and Pencil refinement
|
|
122
|
+
- do not use this field to delegate behavior, routes, or state truth
|
|
123
|
+
- `Fallback`
|
|
124
|
+
- what Da Vinci should do if the preferred adapters are unavailable locally
|
|
125
|
+
- `native-da-vinci` means continue with the built-in rules instead of stopping
|
|
126
|
+
- `Require Adapter`
|
|
127
|
+
- whether adapter availability is a hard requirement
|
|
128
|
+
- `false` means adapter use is optional and should not block delivery
|
|
129
|
+
- `true` means the workflow should stop if no acceptable adapter is available
|
|
130
|
+
|
|
131
|
+
Recommended default:
|
|
132
|
+
|
|
133
|
+
- use `Require Adapter: false`
|
|
134
|
+
- use `Fallback: native-da-vinci`
|
|
135
|
+
- keep `Scope` narrowly focused on visual-quality decisions
|
|
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
|
+
|
|
158
|
+
## Resolution Order
|
|
159
|
+
|
|
160
|
+
Resolve adapters in this order:
|
|
161
|
+
|
|
162
|
+
1. explicit user request
|
|
163
|
+
2. `DA-VINCI.md`
|
|
164
|
+
3. locally available skills
|
|
165
|
+
4. native Da Vinci rules
|
|
166
|
+
|
|
167
|
+
When multiple helpers are available:
|
|
168
|
+
|
|
169
|
+
- choose one primary adapter
|
|
170
|
+
- keep secondary helpers only when they serve a clear non-conflicting role
|
|
171
|
+
|
|
172
|
+
## Where To Record The Result
|
|
173
|
+
|
|
174
|
+
Record runtime resolution in `design-registry.md`.
|
|
175
|
+
|
|
176
|
+
Recommended fields:
|
|
177
|
+
|
|
178
|
+
```md
|
|
179
|
+
## Visual Adapter Resolution
|
|
180
|
+
- Requested adapters: frontend-skill, ui-ux-pro-max
|
|
181
|
+
- Resolved primary adapter: frontend-skill
|
|
182
|
+
- Secondary helpers: none
|
|
183
|
+
- Status: active
|
|
184
|
+
- Scope: DA-VINCI.md, design.md, pencil-design.md
|
|
185
|
+
- Fallback reason if native Da Vinci rules were used: none
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
If no adapter is available:
|
|
189
|
+
|
|
190
|
+
```md
|
|
191
|
+
## Visual Adapter Resolution
|
|
192
|
+
- Requested adapters: frontend-skill
|
|
193
|
+
- Resolved primary adapter: native-da-vinci
|
|
194
|
+
- Secondary helpers: none
|
|
195
|
+
- Status: fallback
|
|
196
|
+
- Scope: DA-VINCI.md, design.md, pencil-design.md
|
|
197
|
+
- Fallback reason if native Da Vinci rules were used: requested adapter unavailable locally
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
## How It Affects Pencil Work
|
|
201
|
+
|
|
202
|
+
When a visual adapter is active:
|
|
203
|
+
|
|
204
|
+
- use it before or during Pencil work to sharpen composition and hierarchy
|
|
205
|
+
- keep page names and states aligned with `page-map.md`
|
|
206
|
+
- keep final `.pen` decisions grounded in Pencil, not in adapter prose
|
|
207
|
+
|
|
208
|
+
Record the outcome in `pencil-design.md`.
|
|
209
|
+
|
|
210
|
+
Recommended fields:
|
|
211
|
+
|
|
212
|
+
```md
|
|
213
|
+
## Visual Adapter Use
|
|
214
|
+
- Resolved primary adapter: frontend-skill
|
|
215
|
+
- Secondary helpers: none
|
|
216
|
+
- How it affected composition, hierarchy, or motion guidance:
|
|
217
|
+
- stronger hero anchor
|
|
218
|
+
- fewer card treatments
|
|
219
|
+
- more deliberate CTA placement
|
|
220
|
+
- Whether native Da Vinci fallback was used: no
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
## Typical Use
|
|
224
|
+
|
|
225
|
+
Example request:
|
|
226
|
+
|
|
227
|
+
```text
|
|
228
|
+
$da-vinci use redesign-from-code to globally replace the UI of this existing Android project.
|
|
229
|
+
|
|
230
|
+
Existing Android code is the behavior source of truth.
|
|
231
|
+
Use the visual-adapter preferences declared in DA-VINCI.md.
|
|
232
|
+
If frontend-skill is available, use it as the primary visual adapter.
|
|
233
|
+
If it is unavailable, fall back to native Da Vinci design rules and continue.
|
|
234
|
+
Persist project-local Pencil files under .da-vinci/designs/.
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
## Suggested Adapter Choices
|
|
238
|
+
|
|
239
|
+
- `frontend-skill`
|
|
240
|
+
- better for strong art direction, composition, and premium landing or brand surfaces
|
|
241
|
+
- `ui-ux-pro-max`
|
|
242
|
+
- better for app surfaces, dashboards, admin UI, and dense product workflows
|
|
243
|
+
- `native-da-vinci`
|
|
244
|
+
- use when no adapter is available or when the project only needs the built-in workflow rules
|
|
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
|
+
|
|
248
|
+
## Scenario Presets
|
|
249
|
+
|
|
250
|
+
Ready-to-copy presets live here:
|
|
251
|
+
|
|
252
|
+
- `docs/visual-assist-presets/mobile-app.md`
|
|
253
|
+
- `docs/visual-assist-presets/desktop-app.md`
|
|
254
|
+
- `docs/visual-assist-presets/web-app.md`
|
|
255
|
+
- `docs/visual-assist-presets/tablet-app.md`
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Visual Assist Presets
|
|
2
|
+
|
|
3
|
+
Use these presets as starting points for the `## Visual Assist` section inside `DA-VINCI.md`.
|
|
4
|
+
|
|
5
|
+
Each preset is intentionally conservative:
|
|
6
|
+
|
|
7
|
+
- one primary adapter direction
|
|
8
|
+
- one fallback direction
|
|
9
|
+
- clear scope boundaries
|
|
10
|
+
- non-blocking behavior by default
|
|
11
|
+
|
|
12
|
+
If the project is design-critical or previous outputs were weak, generic, or too close to the old UI:
|
|
13
|
+
|
|
14
|
+
- keep the same preset family
|
|
15
|
+
- move `frontend-skill` to the first slot
|
|
16
|
+
- consider `Require Adapter: true`
|
|
17
|
+
- raise the design checkpoint bar before broad Pencil generation
|
|
18
|
+
|
|
19
|
+
Available presets:
|
|
20
|
+
|
|
21
|
+
- `mobile-app.md`
|
|
22
|
+
- `desktop-app.md`
|
|
23
|
+
- `web-app.md`
|
|
24
|
+
- `tablet-app.md`
|
|
25
|
+
|
|
26
|
+
How to use them:
|
|
27
|
+
|
|
28
|
+
1. choose the preset closest to the product surface
|
|
29
|
+
2. copy the `## Visual Assist` block into `DA-VINCI.md`
|
|
30
|
+
3. adjust adapter order only if the project clearly needs a different visual bias
|
|
31
|
+
4. keep `Require Adapter: false` unless the project truly must stop without a specific local skill
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Desktop App Preset
|
|
2
|
+
|
|
3
|
+
Recommended when the product surface is desktop software or a dense productivity workspace.
|
|
4
|
+
|
|
5
|
+
Use this when the UI needs:
|
|
6
|
+
|
|
7
|
+
- high information density
|
|
8
|
+
- strong workspace hierarchy
|
|
9
|
+
- restrained chrome
|
|
10
|
+
- panel and inspector judgment
|
|
11
|
+
|
|
12
|
+
Recommended `DA-VINCI.md` block:
|
|
13
|
+
|
|
14
|
+
```md
|
|
15
|
+
## Visual Assist
|
|
16
|
+
- Preferred adapters:
|
|
17
|
+
- ui-ux-pro-max
|
|
18
|
+
- frontend-skill
|
|
19
|
+
- Scope:
|
|
20
|
+
- visual contract refinement
|
|
21
|
+
- workspace composition
|
|
22
|
+
- hierarchy and spacing
|
|
23
|
+
- motion guidance
|
|
24
|
+
- Pencil design refinement
|
|
25
|
+
- Fallback:
|
|
26
|
+
- native-da-vinci
|
|
27
|
+
- Require Adapter:
|
|
28
|
+
- false
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Notes:
|
|
32
|
+
|
|
33
|
+
- prefer `ui-ux-pro-max` first for dense app layout decisions
|
|
34
|
+
- keep section hierarchy stronger than decorative treatment
|
|
35
|
+
- use `frontend-skill` only as a secondary visual-quality helper, not as a marketing-style override
|
|
36
|
+
- if the result looks flat, over-boxed, or too generic, move `frontend-skill` to the first slot and raise the design checkpoint bar
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Mobile App Preset
|
|
2
|
+
|
|
3
|
+
Recommended when the product surface is a phone-first app.
|
|
4
|
+
|
|
5
|
+
Use this when the UI needs:
|
|
6
|
+
|
|
7
|
+
- compact but readable mobile hierarchy
|
|
8
|
+
- strong tap-target discipline
|
|
9
|
+
- restrained motion
|
|
10
|
+
- app-first component judgment rather than brand-poster composition
|
|
11
|
+
|
|
12
|
+
Recommended `DA-VINCI.md` block:
|
|
13
|
+
|
|
14
|
+
```md
|
|
15
|
+
## Visual Assist
|
|
16
|
+
- Preferred adapters:
|
|
17
|
+
- ui-ux-pro-max
|
|
18
|
+
- frontend-skill
|
|
19
|
+
- Scope:
|
|
20
|
+
- visual contract refinement
|
|
21
|
+
- mobile page composition
|
|
22
|
+
- hierarchy and spacing
|
|
23
|
+
- touch-first motion guidance
|
|
24
|
+
- Pencil design refinement
|
|
25
|
+
- Fallback:
|
|
26
|
+
- native-da-vinci
|
|
27
|
+
- Require Adapter:
|
|
28
|
+
- false
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Notes:
|
|
32
|
+
|
|
33
|
+
- prefer `ui-ux-pro-max` first for app-surface density and control balance
|
|
34
|
+
- keep motion guidance light and purposeful
|
|
35
|
+
- do not let the adapter turn routine mobile product UI into a marketing page
|
|
36
|
+
- if the output keeps collapsing into generic cards or weak hierarchy, move `frontend-skill` to the first slot and consider `Require Adapter: true`
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Tablet App Preset
|
|
2
|
+
|
|
3
|
+
Recommended when the product surface is tablet-first or must work across tablet-heavy flows.
|
|
4
|
+
|
|
5
|
+
Use this when the UI needs:
|
|
6
|
+
|
|
7
|
+
- touch-aware spacing
|
|
8
|
+
- larger compositional regions than phone UI
|
|
9
|
+
- more balanced density than desktop software
|
|
10
|
+
- strong split-pane or canvas-area judgment
|
|
11
|
+
|
|
12
|
+
Recommended `DA-VINCI.md` block:
|
|
13
|
+
|
|
14
|
+
```md
|
|
15
|
+
## Visual Assist
|
|
16
|
+
- Preferred adapters:
|
|
17
|
+
- ui-ux-pro-max
|
|
18
|
+
- frontend-skill
|
|
19
|
+
- Scope:
|
|
20
|
+
- visual contract refinement
|
|
21
|
+
- tablet page composition
|
|
22
|
+
- hierarchy and spacing
|
|
23
|
+
- touch-aware motion guidance
|
|
24
|
+
- Pencil design refinement
|
|
25
|
+
- Fallback:
|
|
26
|
+
- native-da-vinci
|
|
27
|
+
- Require Adapter:
|
|
28
|
+
- false
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Notes:
|
|
32
|
+
|
|
33
|
+
- keep spacing more generous than desktop but more structured than phone UI
|
|
34
|
+
- use adapter guidance to improve split layouts, canvases, and workspace balance
|
|
35
|
+
- avoid over-compressing content into phone-like stacking
|
|
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
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Web App Preset
|
|
2
|
+
|
|
3
|
+
Recommended when the product surface is a browser-based app, SaaS workspace, or hybrid product UI.
|
|
4
|
+
|
|
5
|
+
Use this when the UI needs:
|
|
6
|
+
|
|
7
|
+
- balanced density
|
|
8
|
+
- clear workspace structure
|
|
9
|
+
- stronger marketing-to-product bridge than a pure desktop tool
|
|
10
|
+
- responsive layout judgment
|
|
11
|
+
|
|
12
|
+
Recommended `DA-VINCI.md` block:
|
|
13
|
+
|
|
14
|
+
```md
|
|
15
|
+
## Visual Assist
|
|
16
|
+
- Preferred adapters:
|
|
17
|
+
- ui-ux-pro-max
|
|
18
|
+
- frontend-skill
|
|
19
|
+
- Scope:
|
|
20
|
+
- visual contract refinement
|
|
21
|
+
- page composition
|
|
22
|
+
- hierarchy and spacing
|
|
23
|
+
- responsive motion guidance
|
|
24
|
+
- Pencil design refinement
|
|
25
|
+
- Fallback:
|
|
26
|
+
- native-da-vinci
|
|
27
|
+
- Require Adapter:
|
|
28
|
+
- false
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Notes:
|
|
32
|
+
|
|
33
|
+
- keep `ui-ux-pro-max` first for product surfaces, dashboards, and operational UI
|
|
34
|
+
- if the project is more brand-led than tool-led, swap the order and put `frontend-skill` first
|
|
35
|
+
- do not let responsive polish erase product clarity
|
|
36
|
+
- if the output feels like generic SaaS filler, switch `frontend-skill` to first and tighten the visual direction in `DA-VINCI.md`
|
|
@@ -31,11 +31,12 @@ Expected flow:
|
|
|
31
31
|
2. create `proposal.md`
|
|
32
32
|
3. create `specs/<capability>/spec.md`
|
|
33
33
|
4. create `page-map.md`
|
|
34
|
-
5.
|
|
35
|
-
6.
|
|
36
|
-
7.
|
|
37
|
-
8.
|
|
38
|
-
9.
|
|
34
|
+
5. configure any optional visual-adapter preferences in `DA-VINCI.md`
|
|
35
|
+
6. register `.pen` sources and visual-adapter resolution in `design-registry.md`
|
|
36
|
+
7. create Pencil pages, persist the preferred `.pen` path, and record adapter use in `pencil-design.md`
|
|
37
|
+
8. bind implementation pages in `pencil-bindings.md`
|
|
38
|
+
9. generate `tasks.md`
|
|
39
|
+
10. build and verify
|
|
39
40
|
|
|
40
41
|
## 2. `greenfield-brainstorm`
|
|
41
42
|
|
|
@@ -54,10 +55,11 @@ Expected flow:
|
|
|
54
55
|
3. stabilize scope in `proposal.md`
|
|
55
56
|
4. write behavior in `specs/<capability>/spec.md`
|
|
56
57
|
5. define pages in `page-map.md`
|
|
57
|
-
6.
|
|
58
|
-
7.
|
|
59
|
-
8.
|
|
60
|
-
9.
|
|
58
|
+
6. resolve any requested visual adapter and record it in `design-registry.md`
|
|
59
|
+
7. register and generate Pencil sources
|
|
60
|
+
8. bind implementation pages to Pencil pages
|
|
61
|
+
9. generate tasks
|
|
62
|
+
10. build and verify
|
|
61
63
|
|
|
62
64
|
## 3. `redesign-from-code`
|
|
63
65
|
|
|
@@ -72,14 +74,26 @@ $da-vinci use redesign-from-code to inventory the current app, identify current
|
|
|
72
74
|
Expected flow:
|
|
73
75
|
|
|
74
76
|
1. scan the existing product into `project-inventory.md`
|
|
75
|
-
2.
|
|
76
|
-
3.
|
|
77
|
-
4.
|
|
78
|
-
5.
|
|
79
|
-
6.
|
|
80
|
-
7.
|
|
81
|
-
8.
|
|
82
|
-
9.
|
|
77
|
+
2. read any visual-adapter preference from the request or `DA-VINCI.md`
|
|
78
|
+
3. register current `.pen` sources and visual-adapter resolution in `design-registry.md`
|
|
79
|
+
4. define redesign scope in `proposal.md`
|
|
80
|
+
5. split broad redesign work into `specs/<slice>/spec.md` files when one large `ui-refresh` spec would be too coarse
|
|
81
|
+
6. rebuild or refine `page-map.md`, 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. bind routes and pages to Pencil screens
|
|
84
|
+
9. generate tasks aligned to the redesign slices
|
|
85
|
+
10. build and verify
|
|
86
|
+
|
|
87
|
+
### Complex Android example
|
|
88
|
+
|
|
89
|
+
```text
|
|
90
|
+
$da-vinci use redesign-from-code to redesign this existing Android app.
|
|
91
|
+
|
|
92
|
+
Existing code is the behavior source of truth, not the layout truth.
|
|
93
|
+
Inventory activities, fragments, tabs, dialogs, bottom sheets, nested flows, and important states.
|
|
94
|
+
Decompose complex screens into separate design surfaces before Pencil work.
|
|
95
|
+
Do not pass design checkpoint if the result is just a skin-swap of the old UI.
|
|
96
|
+
```
|
|
83
97
|
|
|
84
98
|
## 4. `feature-change`
|
|
85
99
|
|
|
@@ -96,12 +110,26 @@ Expected flow:
|
|
|
96
110
|
1. define the change in `proposal.md`
|
|
97
111
|
2. write affected behavior in `specs/<capability>/spec.md`
|
|
98
112
|
3. update the affected subset of `page-map.md`
|
|
99
|
-
4. reuse or update the active design source in `design-registry.md`
|
|
113
|
+
4. reuse or update the active design source and visual-adapter resolution in `design-registry.md`
|
|
100
114
|
5. create the Pencil delta in `pencil-design.md`
|
|
101
115
|
6. update `pencil-bindings.md`
|
|
102
116
|
7. generate tasks
|
|
103
117
|
8. build and verify
|
|
104
118
|
|
|
119
|
+
## Visual-adapter helper example
|
|
120
|
+
|
|
121
|
+
When the project wants optional UI-design help from local skills:
|
|
122
|
+
|
|
123
|
+
```text
|
|
124
|
+
$da-vinci use redesign-from-code to redesign the current product UI.
|
|
125
|
+
|
|
126
|
+
Existing code is the behavior source of truth.
|
|
127
|
+
Use the visual-adapter preferences declared in DA-VINCI.md.
|
|
128
|
+
If frontend-skill is available, use it as the primary visual adapter.
|
|
129
|
+
If it is unavailable, fall back to native Da Vinci design rules and continue.
|
|
130
|
+
Persist project-local Pencil files under .da-vinci/designs/.
|
|
131
|
+
```
|
|
132
|
+
|
|
105
133
|
## Cross-mode rule
|
|
106
134
|
|
|
107
135
|
In every mode:
|
|
@@ -113,7 +141,9 @@ In every mode:
|
|
|
113
141
|
And in every mode:
|
|
114
142
|
|
|
115
143
|
- `design-registry.md` tracks the available `.pen` sources
|
|
144
|
+
- `design-registry.md` also records visual-adapter resolution when one is requested
|
|
116
145
|
- `pencil-bindings.md` tracks implementation page to Pencil page mapping
|
|
146
|
+
- `pencil-design.md` records how the resolved adapter influenced the design pass when relevant
|
|
117
147
|
- the workflow runs as `autonomous-by-default` unless a real blocker exists
|
|
118
148
|
|
|
119
149
|
## Complex redesign helper example
|
|
@@ -129,6 +129,7 @@ Da Vinci 应该:
|
|
|
129
129
|
4. 生成 `proposal.md`
|
|
130
130
|
5. 按 redesign slice 拆分 `specs/`
|
|
131
131
|
6. 重建或更新 `page-map.md`
|
|
132
|
+
- 把复杂页面拆成 subpage、state、overlay、fragment surface
|
|
132
133
|
7. 生成 `design.md`
|
|
133
134
|
8. 生成 `pencil-design.md`
|
|
134
135
|
- 在可行时把新的 Pencil 基线持久化到 `.da-vinci/designs/`
|
|
@@ -136,6 +137,13 @@ Da Vinci 应该:
|
|
|
136
137
|
10. 生成 `tasks.md`
|
|
137
138
|
11. 进入实现
|
|
138
139
|
|
|
140
|
+
关键规则:
|
|
141
|
+
|
|
142
|
+
- 现有代码决定 behavior,不决定新的视觉布局
|
|
143
|
+
- `redesign-from-code` 默认应该基于页面职责和状态重新构图
|
|
144
|
+
- 不能把“旧页面换个配色、换点间距、挪一点位置”当成真正的重设计
|
|
145
|
+
- 一个实现页如果包含多个 Fragment、多个 tab、多个状态或多个 overlay,应该拆成多个设计 surface
|
|
146
|
+
|
|
139
147
|
## 4. `feature-change`
|
|
140
148
|
|
|
141
149
|
适合:
|
|
@@ -154,3 +162,11 @@ Da Vinci 应该:
|
|
|
154
162
|
6. 更新 `pencil-bindings.md`
|
|
155
163
|
7. 生成 `tasks.md`
|
|
156
164
|
8. 进入实现
|
|
165
|
+
|
|
166
|
+
## `DA-VINCI.md` 里的 visual adapter 应该怎么用
|
|
167
|
+
|
|
168
|
+
- 把 visual adapter 偏好写在 `DA-VINCI.md` 里,而不是单独再造一个配置文件
|
|
169
|
+
- 把它当成可选的 presentation 增强层
|
|
170
|
+
- 可以用来辅助 `DA-VINCI.md`、`design.md`、`pencil-design.md`
|
|
171
|
+
- 例如本地 skill 里的 `frontend-skill` 或 `ui-ux-pro-max`
|
|
172
|
+
- 如果本地没有对应 adapter,就回退到 Da Vinci 原生设计规则,并把结果记录到 `design-registry.md`
|