@xenonbyte/da-vinci-workflow 0.1.3 → 0.1.5

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
@@ -27,13 +27,14 @@ This workflow is intended for:
27
27
 
28
28
  Current npm release target:
29
29
 
30
- - `@xenonbyte/da-vinci-workflow@0.1.3`
30
+ - `@xenonbyte/da-vinci-workflow@0.1.5`
31
31
 
32
32
  Release highlights:
33
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
34
+ - `da-vinci status` now validates full installed asset sets across Codex, Claude, and Gemini
35
+ - Claude and Gemini command adapters now use self-contained workflow wording after installation
36
+ - Node-first install, uninstall, status, and asset validation commands remain the supported distribution path
37
+ - repo-local forward-test example for a `greenfield-spec` workflow remains included
37
38
 
38
39
  ## Supported workflow modes
39
40
 
@@ -75,19 +76,19 @@ Da Vinci runs in this order:
75
76
 
76
77
  Depending on the mode, the workflow may use these artifacts:
77
78
 
78
- - `brainstorm.md`
79
- - `project-inventory.md`
79
+ - `.da-vinci/changes/<change-id>/brainstorm.md`
80
+ - `.da-vinci/project-inventory.md`
80
81
  - `DA-VINCI.md`
81
- - `design-brief.md`
82
- - `design-registry.md`
83
- - `page-map.md`
84
- - `proposal.md`
85
- - `specs/<capability>/spec.md`
86
- - `design.md`
87
- - `pencil-design.md`
88
- - `pencil-bindings.md`
89
- - `tasks.md`
90
- - `verification.md`
82
+ - `.da-vinci/changes/<change-id>/design-brief.md`
83
+ - `.da-vinci/design-registry.md`
84
+ - `.da-vinci/page-map.md`
85
+ - `.da-vinci/changes/<change-id>/proposal.md`
86
+ - `.da-vinci/changes/<change-id>/specs/<capability>/spec.md`
87
+ - `.da-vinci/changes/<change-id>/design.md`
88
+ - `.da-vinci/changes/<change-id>/pencil-design.md`
89
+ - `.da-vinci/changes/<change-id>/pencil-bindings.md`
90
+ - `.da-vinci/changes/<change-id>/tasks.md`
91
+ - `.da-vinci/changes/<change-id>/verification.md`
91
92
 
92
93
  ### Artifact intent
93
94
 
@@ -105,6 +106,44 @@ Depending on the mode, the workflow may use these artifacts:
105
106
  - `tasks.md`: implementation order and task groups
106
107
  - `verification.md`: requirement coverage, design coverage, and drift findings
107
108
 
109
+ ### Spec granularity rule
110
+
111
+ Use specs as capability or redesign-slice boundaries, not as page counters.
112
+
113
+ For broad `redesign-from-code` work, prefer multiple `specs/<slice>/spec.md` files over one oversized `ui-refresh/spec.md`.
114
+
115
+ ## Artifact placement
116
+
117
+ Recommended project layout:
118
+
119
+ ```text
120
+ project/
121
+ ├── DA-VINCI.md
122
+ └── .da-vinci/
123
+ ├── project-inventory.md
124
+ ├── design-registry.md
125
+ ├── page-map.md
126
+ └── changes/
127
+ └── <change-id>/
128
+ ├── brainstorm.md
129
+ ├── design-brief.md
130
+ ├── proposal.md
131
+ ├── design.md
132
+ ├── pencil-design.md
133
+ ├── pencil-bindings.md
134
+ ├── tasks.md
135
+ ├── verification.md
136
+ └── specs/
137
+ └── <capability>/spec.md
138
+ ```
139
+
140
+ Placement rules:
141
+
142
+ - keep `DA-VINCI.md` at the project root
143
+ - keep project-wide workflow files in `.da-vinci/`
144
+ - keep change-specific workflow files in `.da-vinci/changes/<change-id>/`
145
+ - do not scatter `proposal.md`, `tasks.md`, and `verification.md` across the project root
146
+
108
147
  ## Checkpoints
109
148
 
110
149
  Da Vinci uses these checkpoints:
@@ -297,6 +336,7 @@ $da-vinci use feature-change to add a billing page, generate the relevant Pencil
297
336
  See:
298
337
 
299
338
  - `docs/workflow-examples.md`
339
+ - `docs/mode-use-cases.md`
300
340
 
301
341
  ## Repository layout
302
342
 
@@ -325,5 +365,5 @@ The repository currently contains:
325
365
 
326
366
  Next natural work for the repository:
327
367
 
328
- 1. add install/distribution helpers
329
- 2. forward-test the workflow on a real project
368
+ 1. add automated regression coverage for install, uninstall, and status integrity checks
369
+ 2. forward-test the workflow on a real project with a committed `.pen` source
package/SKILL.md CHANGED
@@ -27,6 +27,15 @@ That means:
27
27
  - treat checkpoints as internal execution guards, not approval steps
28
28
  - stop only when a true blocking condition exists
29
29
 
30
+ Treat execution intent as `full-delivery` by default when the user asks to:
31
+
32
+ - complete development
33
+ - implement the generated design
34
+ - redesign the whole product UI
35
+ - finish the project or finish the refresh
36
+
37
+ Do not stop at `tasks.md` in those cases.
38
+
30
39
  Continue automatically through:
31
40
 
32
41
  - mode selection
@@ -41,6 +50,14 @@ Continue automatically through:
41
50
  - implementation
42
51
  - verification
43
52
 
53
+ If `tasks.md` exists and the active request is `full-delivery`:
54
+
55
+ - treat `task checkpoint` as the handoff into implementation, not as an end state
56
+ - start Task Group 1 automatically after a `PASS`
57
+ - start Task Group 1 automatically after a `WARN` unless the warning changes the truth of behavior, source mapping, or permissions
58
+ - do not emit "next recommended step: start Task Group 1" as a terminal outcome
59
+ - instead continue into code changes and report progress by task group
60
+
44
61
  Stop and ask only when:
45
62
 
46
63
  - the user explicitly interrupts
@@ -49,6 +66,14 @@ Stop and ask only when:
49
66
  - source artifacts conflict badly enough that continuing would guess the truth
50
67
  - a destructive action would change the project baseline significantly
51
68
 
69
+ Do not stop merely because:
70
+
71
+ - some pages are still out of scope
72
+ - a future follow-up spec may be needed for untouched behavior
73
+ - a design source should also be saved or exported for better traceability
74
+
75
+ Those are warnings unless they prevent safe implementation of the current in-scope work.
76
+
52
77
  ## Invocation Model
53
78
 
54
79
  Canonical workflow name is `da-vinci`.
@@ -135,6 +160,12 @@ Run the workflow in this order:
135
160
  10. Implement code from requirements plus Pencil data
136
161
  11. Verify behavior drift and design drift before closing the change
137
162
 
163
+ Default completion rule:
164
+
165
+ - if the request is `plan-only`, stop after planning artifacts
166
+ - if the request is `design-only`, stop after design artifacts and bindings
167
+ - otherwise assume `full-delivery` and continue through implementation and verification
168
+
138
169
  ## Load References On Demand
139
170
 
140
171
  Load only the reference that matches the current step:
@@ -151,19 +182,19 @@ Load only the reference that matches the current step:
151
182
 
152
183
  Use these artifacts unless the project defines a different schema:
153
184
 
154
- 1. `brainstorm.md`
155
- 2. `project-inventory.md`
185
+ 1. `.da-vinci/changes/<change-id>/brainstorm.md`
186
+ 2. `.da-vinci/project-inventory.md`
156
187
  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`
188
+ 4. `.da-vinci/changes/<change-id>/design-brief.md`
189
+ 5. `.da-vinci/design-registry.md`
190
+ 6. `.da-vinci/page-map.md`
191
+ 7. `.da-vinci/changes/<change-id>/proposal.md`
192
+ 8. `.da-vinci/changes/<change-id>/specs/<capability>/spec.md`
193
+ 9. `.da-vinci/changes/<change-id>/design.md`
194
+ 10. `.da-vinci/changes/<change-id>/pencil-design.md`
195
+ 11. `.da-vinci/changes/<change-id>/pencil-bindings.md`
196
+ 12. `.da-vinci/changes/<change-id>/tasks.md`
197
+ 13. `.da-vinci/changes/<change-id>/verification.md`
167
198
 
168
199
  Not every mode requires every artifact.
169
200
 
@@ -198,25 +229,59 @@ Optional artifacts:
198
229
  - `tasks.md`: implementation order and deliverable task groups
199
230
  - `verification.md`: requirement coverage, Pencil coverage, and drift findings
200
231
 
232
+ ## Artifact Placement
233
+
234
+ Use this placement model inside the target project:
235
+
236
+ ### Project root
237
+
238
+ - `DA-VINCI.md`
239
+
240
+ Keep this file at the project root so the visual contract is easy to discover and reuse.
241
+
242
+ ### Project-level workflow directory
243
+
244
+ - `.da-vinci/project-inventory.md`
245
+ - `.da-vinci/design-registry.md`
246
+ - `.da-vinci/page-map.md`
247
+
248
+ These files describe project-wide facts that can outlive any one change.
249
+
250
+ ### Change-level workflow directory
251
+
252
+ - `.da-vinci/changes/<change-id>/brainstorm.md`
253
+ - `.da-vinci/changes/<change-id>/design-brief.md`
254
+ - `.da-vinci/changes/<change-id>/proposal.md`
255
+ - `.da-vinci/changes/<change-id>/design.md`
256
+ - `.da-vinci/changes/<change-id>/pencil-design.md`
257
+ - `.da-vinci/changes/<change-id>/pencil-bindings.md`
258
+ - `.da-vinci/changes/<change-id>/tasks.md`
259
+ - `.da-vinci/changes/<change-id>/verification.md`
260
+ - `.da-vinci/changes/<change-id>/specs/<capability>/spec.md`
261
+
262
+ These files belong to one concrete delivery effort and should not clutter the project root.
263
+
201
264
  ## Mode-Specific Artifact Flow
202
265
 
203
266
  Use these minimum flows:
204
267
 
205
268
  ### `greenfield-spec`
206
269
 
207
- `DA-VINCI` -> `design-brief` -> `proposal` -> `specs` -> `page-map` -> `design-registry` -> `design` -> `pencil-design` -> `pencil-bindings` -> `tasks` -> `verification`
270
+ `DA-VINCI` -> `.da-vinci/changes/<change-id>/design-brief` -> `.da-vinci/changes/<change-id>/proposal` -> `.da-vinci/changes/<change-id>/specs` -> `.da-vinci/page-map` -> `.da-vinci/design-registry` -> `.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`
208
271
 
209
272
  ### `greenfield-brainstorm`
210
273
 
211
- `brainstorm` -> `DA-VINCI` -> `design-brief` -> `proposal` -> `specs` -> `page-map` -> `design-registry` -> `design` -> `pencil-design` -> `pencil-bindings` -> `tasks` -> `verification`
274
+ `.da-vinci/changes/<change-id>/brainstorm` -> `DA-VINCI` -> `.da-vinci/changes/<change-id>/design-brief` -> `.da-vinci/changes/<change-id>/proposal` -> `.da-vinci/changes/<change-id>/specs` -> `.da-vinci/page-map` -> `.da-vinci/design-registry` -> `.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`
212
275
 
213
276
  ### `redesign-from-code`
214
277
 
215
- `project-inventory` -> `DA-VINCI` -> `design-registry` -> `proposal` -> `specs` -> `page-map` -> `design` -> `pencil-design` -> `pencil-bindings` -> `tasks` -> `verification`
278
+ `.da-vinci/project-inventory` -> `DA-VINCI` -> `.da-vinci/design-registry` -> `.da-vinci/changes/<change-id>/proposal` -> `.da-vinci/changes/<change-id>/specs` -> `.da-vinci/page-map` -> `.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`
279
+
280
+ For broad refreshes, treat `.da-vinci/changes/<change-id>/specs/` as a redesign-slice directory, not as a single-file location.
216
281
 
217
282
  ### `feature-change`
218
283
 
219
- `proposal` -> `specs` -> `page-map` for affected pages -> `DA-VINCI` -> `design-registry` -> `design` -> `pencil-design` delta -> `pencil-bindings` delta -> `tasks` -> `verification`
284
+ `.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`
220
285
 
221
286
  ## Requirement Breakdown Rules
222
287
 
@@ -237,6 +302,40 @@ If the active mode is `redesign-from-code`:
237
302
 
238
303
  - inventory current routes, pages, and modules before redefining page structure
239
304
  - distinguish preserved behavior from replaced presentation
305
+ - partition specs by redesign slice when one oversized `ui-refresh` spec would hide important implementation boundaries
306
+
307
+ ## Spec Partitioning Rules
308
+
309
+ Do not default to one oversized `ui-refresh` spec for broad redesign work.
310
+
311
+ For `redesign-from-code`:
312
+
313
+ - keep one overall `proposal.md`
314
+ - keep one project-level `DA-VINCI.md`
315
+ - keep one project-level `project-inventory.md`
316
+ - keep one project-level `design-registry.md`
317
+ - keep one project-level `page-map.md`
318
+ - split `specs/` by redesign slice when the refresh is broad
319
+
320
+ Preferred redesign slices:
321
+
322
+ - `shared-shell`
323
+ - `core-pages`
324
+ - `settings-and-secondary`
325
+ - `admin-or-restricted`
326
+ - `reference-gap-pages`
327
+
328
+ Split broad redesign work into multiple spec slices when one or more of these are true:
329
+
330
+ - the refresh covers more than five canonical pages
331
+ - the refresh spans more than two top-level route groups or page families
332
+ - the redesign includes both shared-shell changes and page-content changes
333
+ - prior HTML or Pencil references cover only part of the product surface
334
+ - different page groups carry different layout, density, or access constraints
335
+
336
+ One redesign spec is acceptable when the refresh is mostly cosmetic, narrow, or limited to a small product surface.
337
+
338
+ Do not split page-by-page unless the product is unusually fragmented. Prefer implementable redesign slices over raw page counts.
240
339
 
241
340
  ## Design Source Rules
242
341
 
@@ -3,7 +3,7 @@ description: Da Vinci workflow command index for Claude
3
3
  ---
4
4
  # Da Vinci
5
5
 
6
- Use the `da-vinci` skill for this request.
6
+ Use the Da Vinci workflow for this request.
7
7
 
8
8
  Platform: Claude
9
9
  Default workflow entry: `/da-vinci <request>`
@@ -19,5 +19,4 @@ Notes:
19
19
  - Requirements decide behavior.
20
20
  - Pencil decides presentation.
21
21
  - Code must follow both.
22
- - Use `references/platform-adapters.md` for shared invocation rules.
23
- - Use `references/checkpoints.md` when running workflow checkpoints.
22
+ - Keep workflow semantics shared across Codex, Claude, and Gemini.
@@ -3,7 +3,7 @@ description: Break requirements into scope, flows, states, and specs for Da Vinc
3
3
  ---
4
4
  # Da Vinci Breakdown
5
5
 
6
- Use the `da-vinci` skill for this request.
6
+ Use the Da Vinci workflow for this request.
7
7
 
8
8
  Action: `breakdown`
9
9
 
@@ -3,7 +3,7 @@ description: Build software from requirements and Pencil design data for Da Vinc
3
3
  ---
4
4
  # Da Vinci Build
5
5
 
6
- Use the `da-vinci` skill for this request.
6
+ Use the Da Vinci workflow for this request.
7
7
 
8
8
  Action: `build`
9
9
 
@@ -3,7 +3,7 @@ description: Create or refine Pencil-backed design plans for Da Vinci.
3
3
  ---
4
4
  # Da Vinci Design
5
5
 
6
- Use the `da-vinci` skill for this request.
6
+ Use the Da Vinci workflow for this request.
7
7
 
8
8
  Action: `design`
9
9
 
@@ -3,7 +3,7 @@ description: Generate implementation tasks from requirements and Pencil designs
3
3
  ---
4
4
  # Da Vinci Tasks
5
5
 
6
- Use the `da-vinci` skill for this request.
6
+ Use the Da Vinci workflow for this request.
7
7
 
8
8
  Action: `tasks`
9
9
 
@@ -3,7 +3,7 @@ description: Verify requirement coverage, Pencil coverage, and drift for Da Vinc
3
3
  ---
4
4
  # Da Vinci Verify
5
5
 
6
- Use the `da-vinci` skill for this request.
6
+ Use the Da Vinci workflow for this request.
7
7
 
8
8
  Action: `verify`
9
9
 
@@ -5,7 +5,7 @@ description: Da Vinci workflow command index for Gemini
5
5
  ---
6
6
  # Da Vinci
7
7
 
8
- Use the `da-vinci` skill for this request.
8
+ Use the Da Vinci workflow for this request.
9
9
 
10
10
  Platform: Gemini
11
11
  Default workflow entry: `/da-vinci <request>`
@@ -2,7 +2,7 @@ description = "Break requirements into scope, flows, states, and specs for Da Vi
2
2
  prompt = """
3
3
  # Da Vinci Breakdown
4
4
 
5
- Use the `da-vinci` skill for this request.
5
+ Use the Da Vinci workflow for this request.
6
6
 
7
7
  Action: `breakdown`
8
8
 
@@ -2,7 +2,7 @@ description = "Build software from requirements and Pencil design data for Da Vi
2
2
  prompt = """
3
3
  # Da Vinci Build
4
4
 
5
- Use the `da-vinci` skill for this request.
5
+ Use the Da Vinci workflow for this request.
6
6
 
7
7
  Action: `build`
8
8
 
@@ -2,7 +2,7 @@ description = "Create or refine Pencil-backed design plans for Da Vinci."
2
2
  prompt = """
3
3
  # Da Vinci Design
4
4
 
5
- Use the `da-vinci` skill for this request.
5
+ Use the Da Vinci workflow for this request.
6
6
 
7
7
  Action: `design`
8
8
 
@@ -2,7 +2,7 @@ description = "Generate implementation tasks from requirements and Pencil design
2
2
  prompt = """
3
3
  # Da Vinci Tasks
4
4
 
5
- Use the `da-vinci` skill for this request.
5
+ Use the Da Vinci workflow for this request.
6
6
 
7
7
  Action: `tasks`
8
8
 
@@ -2,7 +2,7 @@ description = "Verify requirement coverage, Pencil coverage, and drift for Da Vi
2
2
  prompt = """
3
3
  # Da Vinci Verify
4
4
 
5
- Use the `da-vinci` skill for this request.
5
+ Use the Da Vinci workflow for this request.
6
6
 
7
7
  Action: `verify`
8
8