@xenonbyte/da-vinci-workflow 0.1.2 → 0.1.3

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 CHANGED
@@ -23,6 +23,18 @@ This workflow is intended for:
23
23
  - redesign from existing code
24
24
  - scoped feature delivery on an existing product
25
25
 
26
+ ## Current release
27
+
28
+ Current npm release target:
29
+
30
+ - `@xenonbyte/da-vinci-workflow@0.1.3`
31
+
32
+ Release highlights:
33
+
34
+ - project-level visual contract support through `DA-VINCI.md`
35
+ - Node-first install, uninstall, status, and asset validation commands
36
+ - repo-local forward-test example for a `greenfield-spec` workflow
37
+
26
38
  ## Supported workflow modes
27
39
 
28
40
  Da Vinci V2 supports four modes.
@@ -49,14 +61,15 @@ Da Vinci runs in this order:
49
61
 
50
62
  1. select the active mode
51
63
  2. build the correct source artifacts
52
- 3. collect design inputs and register design sources
53
- 4. define or discover the project page map
54
- 5. create or update Pencil designs
55
- 6. bind implementation pages to Pencil pages
56
- 7. read Pencil design data through MCP
57
- 8. generate implementation tasks
58
- 9. implement code from requirements plus Pencil data
59
- 10. verify requirement drift and design drift
64
+ 3. detect or generate `DA-VINCI.md` as the project visual contract
65
+ 4. collect design inputs and register design sources
66
+ 5. define or discover the project page map
67
+ 6. create or update Pencil designs
68
+ 7. bind implementation pages to Pencil pages
69
+ 8. read Pencil design data through MCP
70
+ 9. generate implementation tasks
71
+ 10. implement code from requirements plus Pencil data
72
+ 11. verify requirement drift and design drift
60
73
 
61
74
  ## Default artifacts
62
75
 
@@ -64,6 +77,7 @@ Depending on the mode, the workflow may use these artifacts:
64
77
 
65
78
  - `brainstorm.md`
66
79
  - `project-inventory.md`
80
+ - `DA-VINCI.md`
67
81
  - `design-brief.md`
68
82
  - `design-registry.md`
69
83
  - `page-map.md`
@@ -79,6 +93,7 @@ Depending on the mode, the workflow may use these artifacts:
79
93
 
80
94
  - `brainstorm.md`: raw ideas before specs are stable
81
95
  - `project-inventory.md`: current routes, pages, and UI patterns from an existing codebase
96
+ - `DA-VINCI.md`: project-level visual contract for theme, palette, typography direction, component tone, and page-consistency rules
82
97
  - `design-brief.md`: form factor, style, density, brand constraints, and layout preferences
83
98
  - `design-registry.md`: project-level `.pen` source inventory
84
99
  - `page-map.md`: canonical page list and page responsibilities
@@ -137,6 +152,7 @@ Da Vinci treats Pencil as a structured design source, not as a screenshot source
137
152
 
138
153
  Rules:
139
154
 
155
+ - `DA-VINCI.md` is the project-level visual contract for cross-page consistency
140
156
  - `design-registry.md` is the project-level inventory of `.pen` sources
141
157
  - `page-map.md` is the source of truth for implementation pages
142
158
  - `pencil-bindings.md` is the source of truth for implementation page -> Pencil page mapping
@@ -158,6 +174,7 @@ When neither mappings nor usable design sources exist:
158
174
 
159
175
  Before generating Pencil designs for a greenfield project, Da Vinci should collect or infer:
160
176
 
177
+ - whether `DA-VINCI.md` already exists
161
178
  - product form factor
162
179
  - visual tone
163
180
  - density
@@ -166,10 +183,16 @@ Before generating Pencil designs for a greenfield project, Da Vinci should colle
166
183
 
167
184
  Preferred inference order:
168
185
 
169
- 1. existing artifacts
170
- 2. project-local signals
171
- 3. explicit user answers
172
- 4. short clarification questions
186
+ 1. `DA-VINCI.md`
187
+ 2. existing artifacts
188
+ 3. project-local signals
189
+ 4. explicit user answers
190
+ 5. short clarification questions
191
+
192
+ If `DA-VINCI.md` does not exist:
193
+
194
+ - generate it from stable user preferences, existing project signals, or inferred defaults
195
+ - save it before generating many project pages, so later pages do not drift stylistically
173
196
 
174
197
  ## Installation
175
198
 
package/SKILL.md CHANGED
@@ -30,6 +30,7 @@ That means:
30
30
  Continue automatically through:
31
31
 
32
32
  - mode selection
33
+ - project visual-contract detection
33
34
  - requirement breakdown
34
35
  - page mapping
35
36
  - design input collection
@@ -85,6 +86,11 @@ If the user does not specify a mode:
85
86
 
86
87
  Before generating new Pencil designs for a greenfield project, collect or infer:
87
88
 
89
+ 0. project visual contract
90
+ - detect whether `DA-VINCI.md` already exists
91
+ - if it exists, treat it as the visual baseline for future pages
92
+ - if it does not exist, generate it from stable user preferences, existing project signals, or inferred defaults before broad Pencil page generation
93
+
88
94
  1. product form factor
89
95
  - desktop software
90
96
  - web app
@@ -105,10 +111,11 @@ Before generating new Pencil designs for a greenfield project, collect or infer:
105
111
 
106
112
  Use this priority order:
107
113
 
108
- 1. existing workflow artifacts
109
- 2. project-local config or project codebase signals
110
- 3. explicit user answers
111
- 4. short clarification questions
114
+ 1. `DA-VINCI.md`
115
+ 2. existing workflow artifacts
116
+ 3. project-local config or project codebase signals
117
+ 4. explicit user answers
118
+ 5. short clarification questions
112
119
 
113
120
  Do not repeatedly ask for inputs that are already stable in the artifacts.
114
121
 
@@ -118,14 +125,15 @@ Run the workflow in this order:
118
125
 
119
126
  1. Select the active mode
120
127
  2. Build the correct source artifacts for that mode
121
- 3. Collect design inputs and register available design sources
122
- 4. Define or discover the project page map
123
- 5. Create or update Pencil designs for the required pages
124
- 6. Bind implementation pages to Pencil pages
125
- 7. Read Pencil design data through MCP
126
- 8. Generate implementation tasks
127
- 9. Implement code from requirements plus Pencil data
128
- 10. Verify behavior drift and design drift before closing the change
128
+ 3. Detect or generate `DA-VINCI.md` as the project visual contract
129
+ 4. Collect design inputs and register available design sources
130
+ 5. Define or discover the project page map
131
+ 6. Create or update Pencil designs for the required pages
132
+ 7. Bind implementation pages to Pencil pages
133
+ 8. Read Pencil design data through MCP
134
+ 9. Generate implementation tasks
135
+ 10. Implement code from requirements plus Pencil data
136
+ 11. Verify behavior drift and design drift before closing the change
129
137
 
130
138
  ## Load References On Demand
131
139
 
@@ -145,16 +153,17 @@ Use these artifacts unless the project defines a different schema:
145
153
 
146
154
  1. `brainstorm.md`
147
155
  2. `project-inventory.md`
148
- 3. `design-brief.md`
149
- 4. `design-registry.md`
150
- 5. `page-map.md`
151
- 6. `proposal.md`
152
- 7. `specs/<capability>/spec.md`
153
- 8. `design.md`
154
- 9. `pencil-design.md`
155
- 10. `pencil-bindings.md`
156
- 11. `tasks.md`
157
- 12. `verification.md`
156
+ 3. `DA-VINCI.md`
157
+ 4. `design-brief.md`
158
+ 5. `design-registry.md`
159
+ 6. `page-map.md`
160
+ 7. `proposal.md`
161
+ 8. `specs/<capability>/spec.md`
162
+ 9. `design.md`
163
+ 10. `pencil-design.md`
164
+ 11. `pencil-bindings.md`
165
+ 12. `tasks.md`
166
+ 13. `verification.md`
158
167
 
159
168
  Not every mode requires every artifact.
160
169
 
@@ -177,6 +186,7 @@ Optional artifacts:
177
186
 
178
187
  - `brainstorm.md`: raw ideas, tensions, themes, and synthesis notes before specs are stable
179
188
  - `project-inventory.md`: discovered routes, pages, modules, and current UI patterns from an existing codebase
189
+ - `DA-VINCI.md`: project-level visual contract for theme, color system, surface treatment, typography direction, and cross-page style rules
180
190
  - `design-brief.md`: form factor, visual direction, density, brand constraints, and UI preferences
181
191
  - `design-registry.md`: project-level `.pen` file inventory and active design sources
182
192
  - `page-map.md`: canonical page list, page responsibilities, route mapping, and page states
@@ -194,19 +204,19 @@ Use these minimum flows:
194
204
 
195
205
  ### `greenfield-spec`
196
206
 
197
- `design-brief` -> `proposal` -> `specs` -> `page-map` -> `design-registry` -> `design` -> `pencil-design` -> `pencil-bindings` -> `tasks` -> `verification`
207
+ `DA-VINCI` -> `design-brief` -> `proposal` -> `specs` -> `page-map` -> `design-registry` -> `design` -> `pencil-design` -> `pencil-bindings` -> `tasks` -> `verification`
198
208
 
199
209
  ### `greenfield-brainstorm`
200
210
 
201
- `brainstorm` -> `design-brief` -> `proposal` -> `specs` -> `page-map` -> `design-registry` -> `design` -> `pencil-design` -> `pencil-bindings` -> `tasks` -> `verification`
211
+ `brainstorm` -> `DA-VINCI` -> `design-brief` -> `proposal` -> `specs` -> `page-map` -> `design-registry` -> `design` -> `pencil-design` -> `pencil-bindings` -> `tasks` -> `verification`
202
212
 
203
213
  ### `redesign-from-code`
204
214
 
205
- `project-inventory` -> `design-registry` -> `proposal` -> `specs` -> `page-map` -> `design` -> `pencil-design` -> `pencil-bindings` -> `tasks` -> `verification`
215
+ `project-inventory` -> `DA-VINCI` -> `design-registry` -> `proposal` -> `specs` -> `page-map` -> `design` -> `pencil-design` -> `pencil-bindings` -> `tasks` -> `verification`
206
216
 
207
217
  ### `feature-change`
208
218
 
209
- `proposal` -> `specs` -> `page-map` for affected pages -> `design-registry` -> `design` -> `pencil-design` delta -> `pencil-bindings` delta -> `tasks` -> `verification`
219
+ `proposal` -> `specs` -> `page-map` for affected pages -> `DA-VINCI` -> `design-registry` -> `design` -> `pencil-design` delta -> `pencil-bindings` delta -> `tasks` -> `verification`
210
220
 
211
221
  ## Requirement Breakdown Rules
212
222
 
@@ -232,11 +242,24 @@ If the active mode is `redesign-from-code`:
232
242
 
233
243
  Use `design-registry.md` as the project-level inventory of `.pen` sources.
234
244
 
245
+ Use `DA-VINCI.md` as the project-level visual source of truth for:
246
+
247
+ - theme and palette
248
+ - background and surface treatment
249
+ - typography direction
250
+ - component tone
251
+ - rules for cross-page consistency
252
+
235
253
  When a relevant mapping already exists:
236
254
 
237
255
  - iterate on the mapped Pencil source
238
256
  - do not create a new design baseline unless there is a reason
239
257
 
258
+ When `DA-VINCI.md` already exists:
259
+
260
+ - use it as the baseline visual contract
261
+ - do not regenerate visual direction from scratch unless the change explicitly rebrands or resets the product style
262
+
240
263
  When page-to-Pencil bindings already exist:
241
264
 
242
265
  - update the mapped Pencil page for the affected implementation page
@@ -253,6 +276,7 @@ When neither mappings nor usable design sources exist:
253
276
 
254
277
  - state that the project is entering baseline reconstruction
255
278
  - create a new Pencil baseline from the current local source of truth
279
+ - generate `DA-VINCI.md` from inferred or user-provided design rules before generating many unrelated pages
256
280
 
257
281
  If the request is too vague to design or implement safely, ask a short clarification question before generating artifacts.
258
282
 
@@ -0,0 +1,49 @@
1
+ # DA-VINCI
2
+
3
+ ## Product Surface
4
+ - desktop software
5
+ - desktop-first launch pages
6
+
7
+ ## Visual Direction
8
+ - dark tool-like product marketing
9
+ - technical but polished
10
+ - high-contrast hierarchy
11
+
12
+ ## Theme
13
+ - primary color: `#A855F7`
14
+ - accent color: `#EC4899`
15
+ - background color: `#06070A`
16
+ - panel color: `#10131A`
17
+ - border color: `#2A3142`
18
+ - primary text color: `#FFFFFF`
19
+ - secondary text color: `#A1A1AA`
20
+
21
+ ## Typography
22
+ - display direction: bold geometric sans
23
+ - body direction: neutral sans for dense product copy
24
+ - mono usage: metadata, labels, and process cues
25
+
26
+ ## Layout Rules
27
+ - desktop-first
28
+ - wide hero sections
29
+ - dark panels with occasional light contrast surfaces
30
+ - rounded panels and strong internal spacing
31
+
32
+ ## Component Tone
33
+ - buttons should feel direct and product-oriented
34
+ - content panels should look like software surfaces, not generic blog cards
35
+ - CTA regions should preserve the same dark product language
36
+
37
+ ## Do
38
+ - keep page sections clearly bounded
39
+ - use contrast panels to explain structured output
40
+ - keep technical cues visible in labels and metadata
41
+
42
+ ## Do Not
43
+ - switch to unrelated bright themes on later pages
44
+ - replace the desktop-product tone with consumer lifestyle styling
45
+ - generate unrelated type or spacing systems for each page
46
+
47
+ ## Source Of Truth
48
+ - inferred from the MarkupFlow forward-test product description
49
+ - aligned with the active Pencil screens `MarkupFlow Homepage` and `MarkupFlow Product Detail`
@@ -10,11 +10,13 @@ Scenario:
10
10
 
11
11
  - a desktop-software product named `MarkupFlow`
12
12
  - two launch pages
13
+ - one project-level visual contract
13
14
  - Pencil-backed design source
14
15
  - static `HTML + Tailwind` implementation
15
16
 
16
17
  Files in this example:
17
18
 
19
+ - `DA-VINCI.md`
18
20
  - `design-brief.md`
19
21
  - `proposal.md`
20
22
  - `specs/marketing-site/spec.md`
@@ -1,6 +1,7 @@
1
1
  # Tasks
2
2
 
3
3
  ## 1. Scope And Page Definition
4
+ - [x] define the project visual contract in `DA-VINCI.md`
4
5
  - [x] capture the desktop-product design brief
5
6
  - [x] define the proposal and delivery scope
6
7
  - [x] write the marketing-site behavior spec
@@ -12,6 +13,7 @@
12
13
  - [x] register the active Pencil source
13
14
  - [x] record the active Pencil screens and implementation notes
14
15
  - [x] bind implementation pages to Pencil screens
16
+ - [x] confirm the Pencil screens follow the same `DA-VINCI.md` visual baseline
15
17
  - [x] `PASS` design checkpoint
16
18
  - [x] `PASS` mapping checkpoint
17
19
 
@@ -19,6 +19,7 @@
19
19
  - product detail page explains desktop workspace modules
20
20
 
21
21
  ## Design Coverage
22
+ - the implementation follows the project visual contract in `DA-VINCI.md`
22
23
  - the homepage implementation follows the Pencil screen structure for hero, capabilities, MCP service, and CTA
23
24
  - the product detail implementation follows the Pencil screen structure for workspace hero, pipeline, modules, and CTA
24
25
  - implementation pages are explicitly bound to Pencil screen ids
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xenonbyte/da-vinci-workflow",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Requirement-to-design-to-code workflow skill for Codex, Claude, and Gemini",
5
5
  "bin": {
6
6
  "da-vinci": "bin/da-vinci.js"
@@ -63,6 +63,64 @@ Use this structure:
63
63
 
64
64
  Use this artifact when redesign starts from an existing codebase.
65
65
 
66
+ ## `DA-VINCI.md`
67
+
68
+ Use this structure:
69
+
70
+ ```md
71
+ # DA-VINCI
72
+
73
+ ## Product Surface
74
+ - desktop software
75
+ - web app
76
+ - tablet
77
+ - mobile app
78
+
79
+ ## Visual Direction
80
+ - product tone
81
+ - density
82
+ - visual intent
83
+
84
+ ## Theme
85
+ - primary color
86
+ - accent color
87
+ - background color
88
+ - panel color
89
+ - border color
90
+ - text hierarchy colors
91
+
92
+ ## Typography
93
+ - display direction
94
+ - body direction
95
+ - mono usage
96
+
97
+ ## Layout Rules
98
+ - desktop-first or mobile-first
99
+ - workspace density
100
+ - spacing tendency
101
+ - corner radius and shadow tendency
102
+
103
+ ## Component Tone
104
+ - button tone
105
+ - panel tone
106
+ - CTA tone
107
+ - navigation tone
108
+
109
+ ## Do
110
+ - approved stylistic moves
111
+
112
+ ## Do Not
113
+ - disallowed stylistic moves
114
+
115
+ ## Source Of Truth
116
+ - user preference
117
+ - existing codebase
118
+ - existing Pencil source
119
+ - inferred baseline
120
+ ```
121
+
122
+ Use this artifact as a project-level visual contract. Generate it when the project does not already have one.
123
+
66
124
  ## `design-brief.md`
67
125
 
68
126
  Use this structure:
@@ -14,6 +14,20 @@ Default handling:
14
14
 
15
15
  Do not pause the workflow just because a checkpoint ran.
16
16
 
17
+ ## Visual Contract Rule
18
+
19
+ Before broad Pencil page generation:
20
+
21
+ - detect whether `DA-VINCI.md` exists
22
+ - if it exists, treat it as the visual baseline
23
+ - if it does not exist, generate it from stable inputs before creating many unrelated pages
24
+
25
+ Use the design checkpoint to confirm:
26
+
27
+ - `DA-VINCI.md` exists or has been intentionally generated for the current project
28
+ - the current Pencil pages follow the same visual baseline
29
+ - later pages are not re-inventing the product style from scratch
30
+
17
31
  ## `discovery checkpoint`
18
32
 
19
33
  Run after `brainstorm.md`, `project-inventory.md`, or `design-brief.md`.
@@ -61,6 +75,7 @@ Check:
61
75
  - key states are represented or explicitly deferred
62
76
  - major layout strategy matches the design artifact
63
77
  - Pencil names and artifact names are aligned enough to implement from
78
+ - Pencil pages follow the current `DA-VINCI.md` visual contract
64
79
 
65
80
  Result meanings:
66
81
 
@@ -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. existing artifacts
39
- 2. existing codebase
40
- 3. user statements
41
- 4. direct clarification
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.