@xenonbyte/da-vinci-workflow 0.1.2 → 0.1.4
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/README.md +87 -24
- package/SKILL.md +151 -28
- package/docs/mode-use-cases.md +540 -0
- package/docs/workflow-examples.md +2 -2
- package/examples/greenfield-spec-markupflow/DA-VINCI.md +49 -0
- package/examples/greenfield-spec-markupflow/README.md +2 -0
- package/examples/greenfield-spec-markupflow/tasks.md +2 -0
- package/examples/greenfield-spec-markupflow/verification.md +1 -0
- package/package.json +1 -1
- package/references/artifact-templates.md +141 -0
- package/references/checkpoints.md +54 -2
- package/references/design-inputs.md +15 -4
- package/references/modes.md +8 -1
|
@@ -4,6 +4,37 @@ Use these templates as the default artifact shapes for Da Vinci.
|
|
|
4
4
|
|
|
5
5
|
Keep headings stable unless the project requires a different schema.
|
|
6
6
|
|
|
7
|
+
## Placement Rule
|
|
8
|
+
|
|
9
|
+
Write artifacts into the target project using this rule:
|
|
10
|
+
|
|
11
|
+
- keep `DA-VINCI.md` at the project root
|
|
12
|
+
- keep project-level workflow files in `.da-vinci/`
|
|
13
|
+
- keep change-level workflow files in `.da-vinci/changes/<change-id>/`
|
|
14
|
+
|
|
15
|
+
Recommended placement:
|
|
16
|
+
|
|
17
|
+
```text
|
|
18
|
+
project/
|
|
19
|
+
├── DA-VINCI.md
|
|
20
|
+
└── .da-vinci/
|
|
21
|
+
├── project-inventory.md
|
|
22
|
+
├── design-registry.md
|
|
23
|
+
├── page-map.md
|
|
24
|
+
└── changes/
|
|
25
|
+
└── <change-id>/
|
|
26
|
+
├── brainstorm.md
|
|
27
|
+
├── design-brief.md
|
|
28
|
+
├── proposal.md
|
|
29
|
+
├── design.md
|
|
30
|
+
├── pencil-design.md
|
|
31
|
+
├── pencil-bindings.md
|
|
32
|
+
├── tasks.md
|
|
33
|
+
├── verification.md
|
|
34
|
+
└── specs/
|
|
35
|
+
└── <capability>/spec.md
|
|
36
|
+
```
|
|
37
|
+
|
|
7
38
|
## `brainstorm.md`
|
|
8
39
|
|
|
9
40
|
Use this structure:
|
|
@@ -33,6 +64,10 @@ Use this structure:
|
|
|
33
64
|
|
|
34
65
|
Use this artifact only when ideas are still being synthesized.
|
|
35
66
|
|
|
67
|
+
Recommended path:
|
|
68
|
+
|
|
69
|
+
- `.da-vinci/changes/<change-id>/brainstorm.md`
|
|
70
|
+
|
|
36
71
|
## `project-inventory.md`
|
|
37
72
|
|
|
38
73
|
Use this structure:
|
|
@@ -63,6 +98,72 @@ Use this structure:
|
|
|
63
98
|
|
|
64
99
|
Use this artifact when redesign starts from an existing codebase.
|
|
65
100
|
|
|
101
|
+
Recommended path:
|
|
102
|
+
|
|
103
|
+
- `.da-vinci/project-inventory.md`
|
|
104
|
+
|
|
105
|
+
## `DA-VINCI.md`
|
|
106
|
+
|
|
107
|
+
Use this structure:
|
|
108
|
+
|
|
109
|
+
```md
|
|
110
|
+
# DA-VINCI
|
|
111
|
+
|
|
112
|
+
## Product Surface
|
|
113
|
+
- desktop software
|
|
114
|
+
- web app
|
|
115
|
+
- tablet
|
|
116
|
+
- mobile app
|
|
117
|
+
|
|
118
|
+
## Visual Direction
|
|
119
|
+
- product tone
|
|
120
|
+
- density
|
|
121
|
+
- visual intent
|
|
122
|
+
|
|
123
|
+
## Theme
|
|
124
|
+
- primary color
|
|
125
|
+
- accent color
|
|
126
|
+
- background color
|
|
127
|
+
- panel color
|
|
128
|
+
- border color
|
|
129
|
+
- text hierarchy colors
|
|
130
|
+
|
|
131
|
+
## Typography
|
|
132
|
+
- display direction
|
|
133
|
+
- body direction
|
|
134
|
+
- mono usage
|
|
135
|
+
|
|
136
|
+
## Layout Rules
|
|
137
|
+
- desktop-first or mobile-first
|
|
138
|
+
- workspace density
|
|
139
|
+
- spacing tendency
|
|
140
|
+
- corner radius and shadow tendency
|
|
141
|
+
|
|
142
|
+
## Component Tone
|
|
143
|
+
- button tone
|
|
144
|
+
- panel tone
|
|
145
|
+
- CTA tone
|
|
146
|
+
- navigation tone
|
|
147
|
+
|
|
148
|
+
## Do
|
|
149
|
+
- approved stylistic moves
|
|
150
|
+
|
|
151
|
+
## Do Not
|
|
152
|
+
- disallowed stylistic moves
|
|
153
|
+
|
|
154
|
+
## Source Of Truth
|
|
155
|
+
- user preference
|
|
156
|
+
- existing codebase
|
|
157
|
+
- existing Pencil source
|
|
158
|
+
- inferred baseline
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
Use this artifact as a project-level visual contract. Generate it when the project does not already have one.
|
|
162
|
+
|
|
163
|
+
Recommended path:
|
|
164
|
+
|
|
165
|
+
- `DA-VINCI.md`
|
|
166
|
+
|
|
66
167
|
## `design-brief.md`
|
|
67
168
|
|
|
68
169
|
Use this structure:
|
|
@@ -98,6 +199,10 @@ Use this structure:
|
|
|
98
199
|
|
|
99
200
|
Use this artifact whenever the project is new or the design direction is not obvious from the existing product.
|
|
100
201
|
|
|
202
|
+
Recommended path:
|
|
203
|
+
|
|
204
|
+
- `.da-vinci/changes/<change-id>/design-brief.md`
|
|
205
|
+
|
|
101
206
|
## `design-registry.md`
|
|
102
207
|
|
|
103
208
|
Use this structure:
|
|
@@ -124,6 +229,10 @@ Use this structure:
|
|
|
124
229
|
|
|
125
230
|
Use this artifact whenever a project can have one or more Pencil sources.
|
|
126
231
|
|
|
232
|
+
Recommended path:
|
|
233
|
+
|
|
234
|
+
- `.da-vinci/design-registry.md`
|
|
235
|
+
|
|
127
236
|
## `page-map.md`
|
|
128
237
|
|
|
129
238
|
Use this structure:
|
|
@@ -156,6 +265,10 @@ Use this structure:
|
|
|
156
265
|
|
|
157
266
|
Use this artifact for every mode. It is the canonical page list.
|
|
158
267
|
|
|
268
|
+
Recommended path:
|
|
269
|
+
|
|
270
|
+
- `.da-vinci/page-map.md`
|
|
271
|
+
|
|
159
272
|
## `proposal.md`
|
|
160
273
|
|
|
161
274
|
Use this structure:
|
|
@@ -191,6 +304,10 @@ Use this structure:
|
|
|
191
304
|
- Observable outcomes
|
|
192
305
|
```
|
|
193
306
|
|
|
307
|
+
Recommended path:
|
|
308
|
+
|
|
309
|
+
- `.da-vinci/changes/<change-id>/proposal.md`
|
|
310
|
+
|
|
194
311
|
## `specs/<capability>/spec.md`
|
|
195
312
|
|
|
196
313
|
Use this structure:
|
|
@@ -229,6 +346,10 @@ Use this structure:
|
|
|
229
346
|
|
|
230
347
|
Write behavior in direct, testable language.
|
|
231
348
|
|
|
349
|
+
Recommended path:
|
|
350
|
+
|
|
351
|
+
- `.da-vinci/changes/<change-id>/specs/<capability>/spec.md`
|
|
352
|
+
|
|
232
353
|
## `design.md`
|
|
233
354
|
|
|
234
355
|
Use this structure:
|
|
@@ -260,6 +381,10 @@ Use this structure:
|
|
|
260
381
|
- Unresolved design decisions
|
|
261
382
|
```
|
|
262
383
|
|
|
384
|
+
Recommended path:
|
|
385
|
+
|
|
386
|
+
- `.da-vinci/changes/<change-id>/design.md`
|
|
387
|
+
|
|
263
388
|
## `pencil-design.md`
|
|
264
389
|
|
|
265
390
|
Use this structure:
|
|
@@ -290,6 +415,10 @@ Use this structure:
|
|
|
290
415
|
- Important layout or styling constraints to preserve in code
|
|
291
416
|
```
|
|
292
417
|
|
|
418
|
+
Recommended path:
|
|
419
|
+
|
|
420
|
+
- `.da-vinci/changes/<change-id>/pencil-design.md`
|
|
421
|
+
|
|
293
422
|
## `tasks.md`
|
|
294
423
|
|
|
295
424
|
Use this structure:
|
|
@@ -316,6 +445,10 @@ Use this structure:
|
|
|
316
445
|
|
|
317
446
|
Prefer top-level task groups. They are required for execution checkpoints.
|
|
318
447
|
|
|
448
|
+
Recommended path:
|
|
449
|
+
|
|
450
|
+
- `.da-vinci/changes/<change-id>/tasks.md`
|
|
451
|
+
|
|
319
452
|
## `pencil-bindings.md`
|
|
320
453
|
|
|
321
454
|
Use this structure:
|
|
@@ -339,6 +472,10 @@ Use this structure:
|
|
|
339
472
|
|
|
340
473
|
Use this artifact whenever implementation must trace back to Pencil pages.
|
|
341
474
|
|
|
475
|
+
Recommended path:
|
|
476
|
+
|
|
477
|
+
- `.da-vinci/changes/<change-id>/pencil-bindings.md`
|
|
478
|
+
|
|
342
479
|
## `verification.md`
|
|
343
480
|
|
|
344
481
|
Use this structure:
|
|
@@ -362,3 +499,7 @@ Use this structure:
|
|
|
362
499
|
- PASS / WARN / BLOCK
|
|
363
500
|
- Next action
|
|
364
501
|
```
|
|
502
|
+
|
|
503
|
+
Recommended path:
|
|
504
|
+
|
|
505
|
+
- `.da-vinci/changes/<change-id>/verification.md`
|
|
@@ -14,6 +14,25 @@ Default handling:
|
|
|
14
14
|
|
|
15
15
|
Do not pause the workflow just because a checkpoint ran.
|
|
16
16
|
|
|
17
|
+
Default execution intent:
|
|
18
|
+
|
|
19
|
+
- assume `full-delivery` unless the request explicitly says `plan-only`, `design-only`, or another partial-delivery goal
|
|
20
|
+
- in `full-delivery`, checkpoints do not end the workflow; they control whether the workflow continues safely
|
|
21
|
+
|
|
22
|
+
## Visual Contract Rule
|
|
23
|
+
|
|
24
|
+
Before broad Pencil page generation:
|
|
25
|
+
|
|
26
|
+
- detect whether `DA-VINCI.md` exists
|
|
27
|
+
- if it exists, treat it as the visual baseline
|
|
28
|
+
- if it does not exist, generate it from stable inputs before creating many unrelated pages
|
|
29
|
+
|
|
30
|
+
Use the design checkpoint to confirm:
|
|
31
|
+
|
|
32
|
+
- `DA-VINCI.md` exists or has been intentionally generated for the current project
|
|
33
|
+
- the current Pencil pages follow the same visual baseline
|
|
34
|
+
- later pages are not re-inventing the product style from scratch
|
|
35
|
+
|
|
17
36
|
## `discovery checkpoint`
|
|
18
37
|
|
|
19
38
|
Run after `brainstorm.md`, `project-inventory.md`, or `design-brief.md`.
|
|
@@ -43,6 +62,7 @@ Check:
|
|
|
43
62
|
- important states are present
|
|
44
63
|
- acceptance conditions are testable
|
|
45
64
|
- risky areas are called out early
|
|
65
|
+
- redesign scope is not too broad for a single spec when the active mode is `redesign-from-code`
|
|
46
66
|
|
|
47
67
|
Result meanings:
|
|
48
68
|
|
|
@@ -50,6 +70,13 @@ Result meanings:
|
|
|
50
70
|
- `WARN`: continue, but update artifacts soon
|
|
51
71
|
- `BLOCK`: update source artifacts before moving on
|
|
52
72
|
|
|
73
|
+
Spec partitioning guidance for `redesign-from-code`:
|
|
74
|
+
|
|
75
|
+
- one spec is acceptable for a small or mostly cosmetic refresh
|
|
76
|
+
- one spec is too coarse when the redesign spans many pages, multiple route groups, both shared shell and page content, or uneven design-reference coverage
|
|
77
|
+
- use `WARN` when the current spec is slightly too broad but tasks can still be corrected quickly
|
|
78
|
+
- use `BLOCK` when the current spec is so broad that implementation would lose traceability across redesign slices
|
|
79
|
+
|
|
53
80
|
## `design checkpoint`
|
|
54
81
|
|
|
55
82
|
Run after Pencil pages exist and before implementation tasks are locked.
|
|
@@ -61,6 +88,7 @@ Check:
|
|
|
61
88
|
- key states are represented or explicitly deferred
|
|
62
89
|
- major layout strategy matches the design artifact
|
|
63
90
|
- Pencil names and artifact names are aligned enough to implement from
|
|
91
|
+
- Pencil pages follow the current `DA-VINCI.md` visual contract
|
|
64
92
|
|
|
65
93
|
Result meanings:
|
|
66
94
|
|
|
@@ -97,13 +125,33 @@ Check:
|
|
|
97
125
|
- tasks cover behavior from specs
|
|
98
126
|
- tasks cover integration and verification work
|
|
99
127
|
- tasks are ordered by dependency
|
|
128
|
+
- top-level task groups map cleanly to the active spec slices when multiple redesign slices exist
|
|
100
129
|
|
|
101
130
|
Result meanings:
|
|
102
131
|
|
|
103
|
-
- `PASS`: safe to start implementation
|
|
104
|
-
- `WARN`: implementation can start, but task quality is weak
|
|
132
|
+
- `PASS`: safe to start implementation immediately
|
|
133
|
+
- `WARN`: implementation can start immediately, but task quality is weak or follow-up artifact cleanup is still advisable
|
|
105
134
|
- `BLOCK`: rewrite tasks before implementation
|
|
106
135
|
|
|
136
|
+
Automatic continuation rule:
|
|
137
|
+
|
|
138
|
+
- if the active intent is `full-delivery`, `PASS` must immediately continue into Task Group 1
|
|
139
|
+
- if the active intent is `full-delivery`, `WARN` must still continue into Task Group 1 unless the warning creates behavior ambiguity, mapping ambiguity, missing permissions, or a destructive-baseline risk
|
|
140
|
+
- only `BLOCK` is allowed to stop the workflow before implementation
|
|
141
|
+
|
|
142
|
+
Examples of `WARN`, not `BLOCK`:
|
|
143
|
+
|
|
144
|
+
- an additional follow-up spec may be needed for currently untouched behavior
|
|
145
|
+
- some legacy or out-of-scope surfaces remain intentionally excluded
|
|
146
|
+
- the active Pencil source should also be saved or exported for stronger repository traceability
|
|
147
|
+
|
|
148
|
+
Examples of `BLOCK`:
|
|
149
|
+
|
|
150
|
+
- the implementation would invent new behavior that has no spec support
|
|
151
|
+
- page-to-Pencil bindings are too weak to know which redesign screen to follow
|
|
152
|
+
- required permissions, environment access, or protected files are unavailable
|
|
153
|
+
- the implementation would overwrite the project baseline in a destructive way without an explicit go-ahead
|
|
154
|
+
|
|
107
155
|
## `execution checkpoint`
|
|
108
156
|
|
|
109
157
|
Run after each top-level task group during implementation.
|
|
@@ -121,6 +169,10 @@ Result meanings:
|
|
|
121
169
|
- `WARN`: continue, but record the issue
|
|
122
170
|
- `BLOCK`: update artifacts before continuing
|
|
123
171
|
|
|
172
|
+
Do not downgrade `execution checkpoint` into a planning checkpoint.
|
|
173
|
+
|
|
174
|
+
Its job is to keep code aligned after implementation starts, not to justify stopping before Task Group 1.
|
|
175
|
+
|
|
124
176
|
## Reporting Format
|
|
125
177
|
|
|
126
178
|
Use this reporting shape:
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Use this reference when collecting product form factor, UI direction, and design preferences.
|
|
4
4
|
|
|
5
|
+
## Visual Contract Detection
|
|
6
|
+
|
|
7
|
+
Check for `DA-VINCI.md` first.
|
|
8
|
+
|
|
9
|
+
- if it exists, treat it as the project visual contract
|
|
10
|
+
- if it does not exist, generate it from the best stable inputs before broad Pencil page generation
|
|
11
|
+
- avoid re-deriving the visual language page by page
|
|
12
|
+
|
|
5
13
|
## Minimum Inputs
|
|
6
14
|
|
|
7
15
|
Collect or infer:
|
|
@@ -35,10 +43,11 @@ Collect or infer:
|
|
|
35
43
|
|
|
36
44
|
Infer in this order:
|
|
37
45
|
|
|
38
|
-
1.
|
|
39
|
-
2. existing
|
|
40
|
-
3.
|
|
41
|
-
4.
|
|
46
|
+
1. `DA-VINCI.md`
|
|
47
|
+
2. existing artifacts
|
|
48
|
+
3. existing codebase
|
|
49
|
+
4. user statements
|
|
50
|
+
5. direct clarification
|
|
42
51
|
|
|
43
52
|
## When To Ask
|
|
44
53
|
|
|
@@ -53,3 +62,5 @@ Examples:
|
|
|
53
62
|
## Record The Result
|
|
54
63
|
|
|
55
64
|
Write stable answers into `design-brief.md`.
|
|
65
|
+
|
|
66
|
+
If `DA-VINCI.md` did not already exist, generate it from those stable answers and save it as the project visual baseline.
|
package/references/modes.md
CHANGED
|
@@ -54,7 +54,7 @@ Entry artifacts:
|
|
|
54
54
|
- `project-inventory.md`
|
|
55
55
|
- `design-registry.md`
|
|
56
56
|
- `proposal.md`
|
|
57
|
-
- `specs/<capability>/spec.md`
|
|
57
|
+
- `specs/<capability-or-slice>/spec.md`
|
|
58
58
|
- `page-map.md`
|
|
59
59
|
|
|
60
60
|
Best for:
|
|
@@ -63,6 +63,13 @@ Best for:
|
|
|
63
63
|
- layout modernization
|
|
64
64
|
- design-system replacement
|
|
65
65
|
|
|
66
|
+
Spec guidance:
|
|
67
|
+
|
|
68
|
+
- keep one overall `proposal.md`
|
|
69
|
+
- keep one project-level `page-map.md`
|
|
70
|
+
- split `specs/` by redesign slice when the refresh is broad
|
|
71
|
+
- do not assume one `ui-refresh/spec.md` is enough for a large application
|
|
72
|
+
|
|
66
73
|
## `feature-change`
|
|
67
74
|
|
|
68
75
|
Use when:
|