@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 +58 -18
- package/SKILL.md +115 -16
- package/commands/claude/da-vinci.md +2 -3
- package/commands/claude/dv/breakdown.md +1 -1
- package/commands/claude/dv/build.md +1 -1
- package/commands/claude/dv/design.md +1 -1
- package/commands/claude/dv/tasks.md +1 -1
- package/commands/claude/dv/verify.md +1 -1
- package/commands/gemini/da-vinci.toml +1 -1
- package/commands/gemini/dv/breakdown.toml +1 -1
- package/commands/gemini/dv/build.toml +1 -1
- package/commands/gemini/dv/design.toml +1 -1
- package/commands/gemini/dv/tasks.toml +1 -1
- package/commands/gemini/dv/verify.toml +1 -1
- package/docs/mode-use-cases.md +540 -0
- package/docs/workflow-examples.md +2 -2
- package/lib/install.js +69 -6
- package/package.json +1 -1
- package/references/artifact-templates.md +83 -0
- package/references/checkpoints.md +39 -2
- package/references/modes.md +8 -1
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.
|
|
30
|
+
- `@xenonbyte/da-vinci-workflow@0.1.5`
|
|
31
31
|
|
|
32
32
|
Release highlights:
|
|
33
33
|
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
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
|
-
-
|
|
79
|
-
-
|
|
79
|
+
- `.da-vinci/changes/<change-id>/brainstorm.md`
|
|
80
|
+
- `.da-vinci/project-inventory.md`
|
|
80
81
|
- `DA-VINCI.md`
|
|
81
|
-
-
|
|
82
|
-
-
|
|
83
|
-
-
|
|
84
|
-
-
|
|
85
|
-
-
|
|
86
|
-
-
|
|
87
|
-
-
|
|
88
|
-
-
|
|
89
|
-
-
|
|
90
|
-
-
|
|
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
|
|
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.
|
|
155
|
-
2.
|
|
185
|
+
1. `.da-vinci/changes/<change-id>/brainstorm.md`
|
|
186
|
+
2. `.da-vinci/project-inventory.md`
|
|
156
187
|
3. `DA-VINCI.md`
|
|
157
|
-
4.
|
|
158
|
-
5.
|
|
159
|
-
6.
|
|
160
|
-
7.
|
|
161
|
-
8.
|
|
162
|
-
9.
|
|
163
|
-
10.
|
|
164
|
-
11.
|
|
165
|
-
12.
|
|
166
|
-
13.
|
|
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` ->
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
-
|
|
23
|
-
- Use `references/checkpoints.md` when running workflow checkpoints.
|
|
22
|
+
- Keep workflow semantics shared across Codex, Claude, and Gemini.
|