@xenonbyte/da-vinci-workflow 0.1.6 → 0.1.8
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 +21 -0
- package/README.md +32 -20
- package/README.zh-CN.md +84 -19
- package/SKILL.md +39 -13
- package/docs/codex-natural-language-usage.md +167 -0
- package/docs/mode-use-cases.md +11 -0
- package/docs/prompt-entrypoints.md +12 -5
- package/docs/workflow-examples.md +9 -2
- package/docs/zh-CN/codex-natural-language-usage.md +168 -0
- package/docs/zh-CN/mode-use-cases.md +11 -0
- package/docs/zh-CN/prompt-entrypoints.md +12 -5
- package/docs/zh-CN/workflow-examples.md +9 -2
- package/lib/install.js +1 -4
- package/package.json +2 -6
- package/references/artifact-templates.md +11 -0
- package/references/design-inputs.md +9 -5
- package/references/page-mapping.md +9 -0
- package/references/pencil-design-to-code.md +1 -0
- package/references/platform-adapters.md +4 -4
- package/CHANGELOG.zh-CN.md +0 -44
- package/SKILL.zh-CN.md +0 -339
- package/docs/zh-CN/commands/claude/da-vinci.md +0 -27
- package/docs/zh-CN/commands/claude/dv/breakdown.md +0 -21
- package/docs/zh-CN/commands/claude/dv/build.md +0 -17
- package/docs/zh-CN/commands/claude/dv/continue.md +0 -24
- package/docs/zh-CN/commands/claude/dv/design.md +0 -20
- package/docs/zh-CN/commands/claude/dv/intake.md +0 -26
- package/docs/zh-CN/commands/claude/dv/prompt.md +0 -24
- package/docs/zh-CN/commands/claude/dv/tasks.md +0 -19
- package/docs/zh-CN/commands/claude/dv/verify.md +0 -16
- package/docs/zh-CN/commands/codex/prompts/da-vinci.md +0 -29
- package/docs/zh-CN/commands/codex/prompts/dv-breakdown.md +0 -19
- package/docs/zh-CN/commands/codex/prompts/dv-build.md +0 -13
- package/docs/zh-CN/commands/codex/prompts/dv-continue.md +0 -24
- package/docs/zh-CN/commands/codex/prompts/dv-design.md +0 -14
- package/docs/zh-CN/commands/codex/prompts/dv-intake.md +0 -27
- package/docs/zh-CN/commands/codex/prompts/dv-prompt.md +0 -24
- package/docs/zh-CN/commands/codex/prompts/dv-tasks.md +0 -16
- package/docs/zh-CN/commands/codex/prompts/dv-verify.md +0 -15
- package/examples/greenfield-spec-markupflow/DA-VINCI.zh-CN.md +0 -49
- package/examples/greenfield-spec-markupflow/README.zh-CN.md +0 -44
- package/examples/greenfield-spec-markupflow/design-brief.zh-CN.md +0 -24
- package/examples/greenfield-spec-markupflow/design-registry.zh-CN.md +0 -15
- package/examples/greenfield-spec-markupflow/design.zh-CN.md +0 -32
- package/examples/greenfield-spec-markupflow/page-map.zh-CN.md +0 -19
- package/examples/greenfield-spec-markupflow/pencil-bindings.zh-CN.md +0 -13
- package/examples/greenfield-spec-markupflow/pencil-design.zh-CN.md +0 -29
- package/examples/greenfield-spec-markupflow/proposal.zh-CN.md +0 -33
- package/examples/greenfield-spec-markupflow/specs/marketing-site/spec.zh-CN.md +0 -37
- package/examples/greenfield-spec-markupflow/tasks.zh-CN.md +0 -30
- package/examples/greenfield-spec-markupflow/verification.zh-CN.md +0 -38
- package/openspec/changes/da-vinci-v2-1-workflow/README.md +0 -9
- package/openspec/changes/da-vinci-v2-1-workflow/README.zh-CN.md +0 -9
- package/openspec/changes/da-vinci-v2-1-workflow/design.md +0 -122
- package/openspec/changes/da-vinci-v2-1-workflow/design.zh-CN.md +0 -122
- package/openspec/changes/da-vinci-v2-1-workflow/proposal.md +0 -37
- package/openspec/changes/da-vinci-v2-1-workflow/proposal.zh-CN.md +0 -37
- package/openspec/changes/da-vinci-v2-1-workflow/specs/workflow/spec.md +0 -50
- package/openspec/changes/da-vinci-v2-1-workflow/specs/workflow/spec.zh-CN.md +0 -50
- package/openspec/changes/da-vinci-v2-1-workflow/tasks.md +0 -31
- package/openspec/changes/da-vinci-v2-1-workflow/tasks.zh-CN.md +0 -31
- package/openspec/config.yaml +0 -11
- package/references/zh-CN/artifact-templates.md +0 -163
- package/references/zh-CN/checkpoints.md +0 -123
- package/references/zh-CN/design-inputs.md +0 -66
- package/references/zh-CN/modes.md +0 -69
- package/references/zh-CN/page-mapping.md +0 -43
- package/references/zh-CN/pencil-design-to-code.md +0 -65
- package/references/zh-CN/platform-adapters.md +0 -73
- package/references/zh-CN/prompt-recipes.md +0 -161
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,27 @@
|
|
|
4
4
|
|
|
5
5
|
- No unreleased changes yet.
|
|
6
6
|
|
|
7
|
+
## v0.1.8 - 2026-03-27
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
- Codex natural-language usage guides in `docs/codex-natural-language-usage.md` and `docs/zh-CN/codex-natural-language-usage.md`
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
- Codex workflow docs now standardize on `$da-vinci ...` natural-language entry patterns for `intake`, `prompt`, `continue`, and direct mode usage
|
|
14
|
+
- Da Vinci now documents `.da-vinci/designs/` as the default project-local location for persisted Pencil `.pen` files
|
|
15
|
+
- artifact templates, mode guides, and design references now record preferred project-local `.pen` paths in `design-registry.md`
|
|
16
|
+
|
|
17
|
+
## v0.1.7 - 2026-03-27
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
- Chinese companion docs are now intentionally limited to `README.zh-CN.md` and `docs/zh-CN/`
|
|
21
|
+
- `.npmrc` and `openspec/` are now local-only and no longer tracked or shipped in the npm package
|
|
22
|
+
- asset validation now checks only shipped repository assets
|
|
23
|
+
|
|
24
|
+
### Removed
|
|
25
|
+
- Chinese mirror docs for commands, references, examples, and changelog
|
|
26
|
+
- OpenSpec planning artifacts from version control and npm packaging
|
|
27
|
+
|
|
7
28
|
## v0.1.6 - 2026-03-27
|
|
8
29
|
|
|
9
30
|
### Added
|
package/README.md
CHANGED
|
@@ -27,15 +27,19 @@ This workflow is intended for:
|
|
|
27
27
|
|
|
28
28
|
Latest published npm package:
|
|
29
29
|
|
|
30
|
-
- `@xenonbyte/da-vinci-workflow@0.1.
|
|
30
|
+
- `@xenonbyte/da-vinci-workflow@0.1.8`
|
|
31
31
|
|
|
32
32
|
Release highlights:
|
|
33
33
|
|
|
34
|
+
- Codex natural-language usage is now documented explicitly, including `intake`, `prompt`, `continue`, and direct mode entry patterns
|
|
35
|
+
- project-local Pencil `.pen` files are now documented to persist under `.da-vinci/designs/`
|
|
36
|
+
- design registry and artifact templates now record preferred persisted `.pen` paths for project-local reuse
|
|
34
37
|
- prompt-entry helper routes for `intake`, `prompt`, and `continue` are now published across Codex, Claude, and Gemini
|
|
35
|
-
-
|
|
36
|
-
- asset validation now covers the full
|
|
38
|
+
- Chinese companion docs are now intentionally limited to `README.zh-CN.md` and `docs/zh-CN/`
|
|
39
|
+
- asset validation now covers the full shipped documentation set
|
|
37
40
|
- `da-vinci status` now validates full installed asset sets across Codex, Claude, and Gemini
|
|
38
41
|
- Claude and Gemini command adapters now use self-contained workflow wording after installation
|
|
42
|
+
- `.npmrc` and `openspec/` are kept local-only and are no longer versioned or shipped in the npm package
|
|
39
43
|
- Node-first install, uninstall, status, and asset validation commands remain the supported distribution path
|
|
40
44
|
- repo-local forward-test example for a `greenfield-spec` workflow remains included
|
|
41
45
|
|
|
@@ -86,7 +90,7 @@ Da Vinci runs in this order:
|
|
|
86
90
|
1. select the active mode
|
|
87
91
|
2. build the correct source artifacts
|
|
88
92
|
3. detect or generate `DA-VINCI.md` as the project visual contract
|
|
89
|
-
4. collect design inputs and register design sources
|
|
93
|
+
4. collect design inputs, prefer project-local `.pen` files under `.da-vinci/designs/`, and register design sources
|
|
90
94
|
5. define or discover the project page map
|
|
91
95
|
6. create or update Pencil designs
|
|
92
96
|
7. bind implementation pages to Pencil pages
|
|
@@ -104,6 +108,7 @@ Depending on the mode, the workflow may use these artifacts:
|
|
|
104
108
|
- `DA-VINCI.md`
|
|
105
109
|
- `.da-vinci/changes/<change-id>/design-brief.md`
|
|
106
110
|
- `.da-vinci/design-registry.md`
|
|
111
|
+
- `.da-vinci/designs/`
|
|
107
112
|
- `.da-vinci/page-map.md`
|
|
108
113
|
- `.da-vinci/changes/<change-id>/proposal.md`
|
|
109
114
|
- `.da-vinci/changes/<change-id>/specs/<capability>/spec.md`
|
|
@@ -120,6 +125,7 @@ Depending on the mode, the workflow may use these artifacts:
|
|
|
120
125
|
- `DA-VINCI.md`: project-level visual contract for theme, palette, typography direction, component tone, and page-consistency rules
|
|
121
126
|
- `design-brief.md`: form factor, style, density, brand constraints, and layout preferences
|
|
122
127
|
- `design-registry.md`: project-level `.pen` source inventory
|
|
128
|
+
- `.da-vinci/designs/`: project-local persisted Pencil sources such as `project-baseline.pen` or change-specific `.pen` files
|
|
123
129
|
- `page-map.md`: canonical page list and page responsibilities
|
|
124
130
|
- `proposal.md`: change scope and outcomes
|
|
125
131
|
- `spec.md`: behavior, states, edge cases, and acceptance rules
|
|
@@ -145,6 +151,9 @@ project/
|
|
|
145
151
|
└── .da-vinci/
|
|
146
152
|
├── project-inventory.md
|
|
147
153
|
├── design-registry.md
|
|
154
|
+
├── designs/
|
|
155
|
+
│ ├── project-baseline.pen
|
|
156
|
+
│ └── <change-id>.pen
|
|
148
157
|
├── page-map.md
|
|
149
158
|
└── changes/
|
|
150
159
|
└── <change-id>/
|
|
@@ -164,6 +173,7 @@ Placement rules:
|
|
|
164
173
|
|
|
165
174
|
- keep `DA-VINCI.md` at the project root
|
|
166
175
|
- keep project-wide workflow files in `.da-vinci/`
|
|
176
|
+
- keep project-local Pencil files in `.da-vinci/designs/`
|
|
167
177
|
- keep change-specific workflow files in `.da-vinci/changes/<change-id>/`
|
|
168
178
|
- do not scatter `proposal.md`, `tasks.md`, and `verification.md` across the project root
|
|
169
179
|
|
|
@@ -216,21 +226,25 @@ Rules:
|
|
|
216
226
|
|
|
217
227
|
- `DA-VINCI.md` is the project-level visual contract for cross-page consistency
|
|
218
228
|
- `design-registry.md` is the project-level inventory of `.pen` sources
|
|
229
|
+
- `.da-vinci/designs/` is the default project-local location for persisted `.pen` files
|
|
219
230
|
- `page-map.md` is the source of truth for implementation pages
|
|
220
231
|
- `pencil-bindings.md` is the source of truth for implementation page -> Pencil page mapping
|
|
221
232
|
|
|
222
233
|
When a relevant mapping already exists:
|
|
223
234
|
|
|
224
235
|
- iterate on the mapped Pencil source
|
|
236
|
+
- prefer the project-local `.pen` path already registered in `design-registry.md`
|
|
225
237
|
|
|
226
238
|
When mappings do not exist but local code exists:
|
|
227
239
|
|
|
228
240
|
- reconstruct the baseline from the local project
|
|
229
241
|
- rebuild inventory, page map, and design registry
|
|
242
|
+
- save or export the rebuilt Pencil baseline into `.da-vinci/designs/` when possible
|
|
230
243
|
|
|
231
244
|
When neither mappings nor usable design sources exist:
|
|
232
245
|
|
|
233
246
|
- create a new Pencil baseline from the current local source of truth
|
|
247
|
+
- persist that baseline under `.da-vinci/designs/` when possible and record the exact path in `design-registry.md`
|
|
234
248
|
|
|
235
249
|
## Design input collection
|
|
236
250
|
|
|
@@ -298,9 +312,9 @@ $da-vinci <request>
|
|
|
298
312
|
Entry helpers:
|
|
299
313
|
|
|
300
314
|
```text
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
315
|
+
$da-vinci use intake for <project situation>
|
|
316
|
+
$da-vinci use prompt for <known scenario>
|
|
317
|
+
$da-vinci use continue for <existing workflow state>
|
|
304
318
|
```
|
|
305
319
|
|
|
306
320
|
### Claude
|
|
@@ -381,13 +395,20 @@ $da-vinci use feature-change to add a billing page, generate the relevant Pencil
|
|
|
381
395
|
### Prompt intake for a complex redesign
|
|
382
396
|
|
|
383
397
|
```text
|
|
384
|
-
|
|
398
|
+
$da-vinci use intake for this existing Android project.
|
|
399
|
+
|
|
400
|
+
I need to globally replace the UI.
|
|
401
|
+
Existing Android code is the behavior source of truth.
|
|
402
|
+
HTML references are in /abs/path/to/mockups.
|
|
385
403
|
```
|
|
386
404
|
|
|
387
405
|
### Continue after inventory and spec work
|
|
388
406
|
|
|
389
407
|
```text
|
|
390
|
-
|
|
408
|
+
$da-vinci use continue for this existing redesign-from-code workflow.
|
|
409
|
+
|
|
410
|
+
Use the existing Da Vinci artifacts.
|
|
411
|
+
Continue into full-delivery.
|
|
391
412
|
```
|
|
392
413
|
|
|
393
414
|
## Workflow examples
|
|
@@ -395,6 +416,7 @@ $da-vinci use feature-change to add a billing page, generate the relevant Pencil
|
|
|
395
416
|
See:
|
|
396
417
|
|
|
397
418
|
- `docs/prompt-entrypoints.md`
|
|
419
|
+
- `docs/codex-natural-language-usage.md`
|
|
398
420
|
- `docs/workflow-examples.md`
|
|
399
421
|
- `docs/mode-use-cases.md`
|
|
400
422
|
|
|
@@ -403,20 +425,13 @@ See:
|
|
|
403
425
|
Chinese companion documents are included in this repository:
|
|
404
426
|
|
|
405
427
|
- `README.zh-CN.md`
|
|
406
|
-
- `SKILL.zh-CN.md`
|
|
407
|
-
- `CHANGELOG.zh-CN.md`
|
|
408
428
|
- `docs/zh-CN/`
|
|
409
|
-
- `docs/zh-CN/commands/`
|
|
410
|
-
- `references/zh-CN/`
|
|
411
|
-
- `examples/greenfield-spec-markupflow/*.zh-CN.md`
|
|
412
|
-
- `openspec/changes/da-vinci-v2-1-workflow/*.zh-CN.md`
|
|
413
429
|
|
|
414
430
|
## Repository layout
|
|
415
431
|
|
|
416
432
|
```text
|
|
417
433
|
da-vinci/
|
|
418
434
|
├── SKILL.md
|
|
419
|
-
├── SKILL.zh-CN.md
|
|
420
435
|
├── README.zh-CN.md
|
|
421
436
|
├── agents/
|
|
422
437
|
│ └── openai.yaml
|
|
@@ -426,9 +441,7 @@ da-vinci/
|
|
|
426
441
|
│ └── gemini/
|
|
427
442
|
├── docs/
|
|
428
443
|
│ └── zh-CN/
|
|
429
|
-
|
|
430
|
-
│ └── zh-CN/
|
|
431
|
-
└── openspec/
|
|
444
|
+
└── references/
|
|
432
445
|
```
|
|
433
446
|
|
|
434
447
|
## Current status
|
|
@@ -438,7 +451,6 @@ The repository currently contains:
|
|
|
438
451
|
- the Da Vinci skill
|
|
439
452
|
- three-platform command adapters
|
|
440
453
|
- workflow references
|
|
441
|
-
- OpenSpec planning artifacts for the skill itself
|
|
442
454
|
- workflow examples
|
|
443
455
|
|
|
444
456
|
Next natural work for the repository:
|
package/README.zh-CN.md
CHANGED
|
@@ -29,15 +29,19 @@ Da Vinci 是一个把产品需求一路推进到结构化规格、Pencil 设计
|
|
|
29
29
|
|
|
30
30
|
最新已发布 npm 包:
|
|
31
31
|
|
|
32
|
-
- `@xenonbyte/da-vinci-workflow@0.1.
|
|
32
|
+
- `@xenonbyte/da-vinci-workflow@0.1.8`
|
|
33
33
|
|
|
34
34
|
已发布版本重点:
|
|
35
35
|
|
|
36
|
+
- Codex 的自然语言用法现在有单独文档,明确说明 `intake`、`prompt`、`continue` 和直接 mode 调用方式
|
|
37
|
+
- 项目内 Pencil `.pen` 文件现在明确约定默认持久化到 `.da-vinci/designs/`
|
|
38
|
+
- 设计源登记和工件模板现在会记录项目内优先使用的 `.pen` 路径
|
|
36
39
|
- `intake`、`prompt`、`continue` 三个提示词入口辅助路由已随 Codex、Claude、Gemini 一起发布
|
|
37
|
-
-
|
|
38
|
-
-
|
|
40
|
+
- 中文配套文档现在刻意只保留 `README.zh-CN.md` 和 `docs/zh-CN/`
|
|
41
|
+
- 资产校验现在覆盖完整的随包文档集合
|
|
39
42
|
- `da-vinci status` 会校验 Codex、Claude、Gemini 的完整安装资产
|
|
40
43
|
- Claude 和 Gemini 安装后的命令文案已改为自洽的工作流措辞
|
|
44
|
+
- `.npmrc` 和 `openspec/` 现在只本地保留,不再进入版本管理和 npm 包
|
|
41
45
|
- 安装、卸载、状态、资产校验都通过 Node CLI 提供
|
|
42
46
|
- 仓库内含一个 `greenfield-spec` 的本地 forward test
|
|
43
47
|
|
|
@@ -91,7 +95,7 @@ Da Vinci 的默认顺序是:
|
|
|
91
95
|
1. 选择 mode
|
|
92
96
|
2. 生成正确的源工件
|
|
93
97
|
3. 检测或生成 `DA-VINCI.md`
|
|
94
|
-
4.
|
|
98
|
+
4. 收集设计输入,优先使用 `.da-vinci/designs/` 下的项目内 `.pen` 文件,并登记设计源
|
|
95
99
|
5. 定义或发现页面地图
|
|
96
100
|
6. 创建或更新 Pencil 设计
|
|
97
101
|
7. 绑定实现页面到 Pencil 页面
|
|
@@ -109,6 +113,7 @@ Da Vinci 的默认顺序是:
|
|
|
109
113
|
- `DA-VINCI.md`
|
|
110
114
|
- `.da-vinci/changes/<change-id>/design-brief.md`
|
|
111
115
|
- `.da-vinci/design-registry.md`
|
|
116
|
+
- `.da-vinci/designs/`
|
|
112
117
|
- `.da-vinci/page-map.md`
|
|
113
118
|
- `.da-vinci/changes/<change-id>/proposal.md`
|
|
114
119
|
- `.da-vinci/changes/<change-id>/specs/<capability>/spec.md`
|
|
@@ -125,6 +130,7 @@ Da Vinci 的默认顺序是:
|
|
|
125
130
|
- `DA-VINCI.md`:项目级视觉契约
|
|
126
131
|
- `design-brief.md`:设计方向、形态、密度、品牌和限制条件
|
|
127
132
|
- `design-registry.md`:项目级 `.pen` 设计源登记
|
|
133
|
+
- `.da-vinci/designs/`:项目内持久化的 Pencil 设计源,例如 `project-baseline.pen` 或按 change 保存的 `.pen` 文件
|
|
128
134
|
- `page-map.md`:页面、职责、状态和共享区域
|
|
129
135
|
- `proposal.md`:范围、目标、非目标和成功标准
|
|
130
136
|
- `spec.md`:行为、状态、边界和验收规则
|
|
@@ -134,6 +140,66 @@ Da Vinci 的默认顺序是:
|
|
|
134
140
|
- `tasks.md`:任务分组和实施顺序
|
|
135
141
|
- `verification.md`:覆盖度和漂移检查
|
|
136
142
|
|
|
143
|
+
## 工件放置建议
|
|
144
|
+
|
|
145
|
+
推荐结构:
|
|
146
|
+
|
|
147
|
+
```text
|
|
148
|
+
project/
|
|
149
|
+
├── DA-VINCI.md
|
|
150
|
+
└── .da-vinci/
|
|
151
|
+
├── project-inventory.md
|
|
152
|
+
├── design-registry.md
|
|
153
|
+
├── designs/
|
|
154
|
+
│ ├── project-baseline.pen
|
|
155
|
+
│ └── <change-id>.pen
|
|
156
|
+
├── page-map.md
|
|
157
|
+
└── changes/
|
|
158
|
+
└── <change-id>/
|
|
159
|
+
├── brainstorm.md
|
|
160
|
+
├── design-brief.md
|
|
161
|
+
├── proposal.md
|
|
162
|
+
├── design.md
|
|
163
|
+
├── pencil-design.md
|
|
164
|
+
├── pencil-bindings.md
|
|
165
|
+
├── tasks.md
|
|
166
|
+
├── verification.md
|
|
167
|
+
└── specs/
|
|
168
|
+
└── <capability>/spec.md
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
规则:
|
|
172
|
+
|
|
173
|
+
- `DA-VINCI.md` 放在项目根目录
|
|
174
|
+
- 项目级工作流工件放在 `.da-vinci/`
|
|
175
|
+
- 项目内持久化的 Pencil `.pen` 文件默认放在 `.da-vinci/designs/`
|
|
176
|
+
- change 级工件放在 `.da-vinci/changes/<change-id>/`
|
|
177
|
+
|
|
178
|
+
## 设计源规则
|
|
179
|
+
|
|
180
|
+
- `DA-VINCI.md` 是跨页面视觉一致性的项目级视觉契约
|
|
181
|
+
- `design-registry.md` 用来登记项目中的 `.pen` 设计源
|
|
182
|
+
- `.da-vinci/designs/` 是项目内持久化 `.pen` 文件的默认位置
|
|
183
|
+
- `page-map.md` 是实现页面和状态的真相源
|
|
184
|
+
- `pencil-bindings.md` 是实现页面到 Pencil 页面绑定的真相源
|
|
185
|
+
|
|
186
|
+
当已有页面映射存在时:
|
|
187
|
+
|
|
188
|
+
- 优先复用已绑定的 Pencil 设计源
|
|
189
|
+
- 如果 `design-registry.md` 里已经登记了 `.da-vinci/designs/` 下的本地 `.pen` 路径,优先使用它
|
|
190
|
+
|
|
191
|
+
当已有代码存在但还没有映射时:
|
|
192
|
+
|
|
193
|
+
- 先从当前项目重建设计基线
|
|
194
|
+
- 重建 inventory、page-map、design-registry
|
|
195
|
+
- 在可行时把新的 Pencil 基线保存或导出到 `.da-vinci/designs/`
|
|
196
|
+
|
|
197
|
+
当既没有映射也没有可用设计源时:
|
|
198
|
+
|
|
199
|
+
- 基于当前本地真相源创建新的 Pencil 基线
|
|
200
|
+
- 在可行时把基线保存到 `.da-vinci/designs/`
|
|
201
|
+
- 并在 `design-registry.md` 里记录准确路径
|
|
202
|
+
|
|
137
203
|
## 安装
|
|
138
204
|
|
|
139
205
|
安装 npm 包:
|
|
@@ -176,9 +242,9 @@ $da-vinci <request>
|
|
|
176
242
|
辅助入口:
|
|
177
243
|
|
|
178
244
|
```text
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
245
|
+
$da-vinci use intake for <project situation>
|
|
246
|
+
$da-vinci use prompt for <known scenario>
|
|
247
|
+
$da-vinci use continue for <existing workflow state>
|
|
182
248
|
```
|
|
183
249
|
|
|
184
250
|
### Claude
|
|
@@ -242,19 +308,27 @@ $da-vinci use feature-change to add a billing page, generate the relevant Pencil
|
|
|
242
308
|
### 复杂重设计先做 intake
|
|
243
309
|
|
|
244
310
|
```text
|
|
245
|
-
|
|
311
|
+
$da-vinci use intake for this existing Android project.
|
|
312
|
+
|
|
313
|
+
I need to globally replace the UI.
|
|
314
|
+
Existing Android code is the behavior source of truth.
|
|
315
|
+
HTML references are in /abs/path/to/mockups.
|
|
246
316
|
```
|
|
247
317
|
|
|
248
318
|
### 已有工件后继续推进
|
|
249
319
|
|
|
250
320
|
```text
|
|
251
|
-
|
|
321
|
+
$da-vinci use continue for this existing redesign-from-code workflow.
|
|
322
|
+
|
|
323
|
+
Use the existing Da Vinci artifacts.
|
|
324
|
+
Continue into full-delivery.
|
|
252
325
|
```
|
|
253
326
|
|
|
254
327
|
## 文档导航
|
|
255
328
|
|
|
256
329
|
英文文档:
|
|
257
330
|
|
|
331
|
+
- `docs/codex-natural-language-usage.md`
|
|
258
332
|
- `docs/prompt-entrypoints.md`
|
|
259
333
|
- `docs/workflow-examples.md`
|
|
260
334
|
- `docs/mode-use-cases.md`
|
|
@@ -263,20 +337,13 @@ $da-vinci use feature-change to add a billing page, generate the relevant Pencil
|
|
|
263
337
|
中文文档:
|
|
264
338
|
|
|
265
339
|
- `README.zh-CN.md`
|
|
266
|
-
- `SKILL.zh-CN.md`
|
|
267
|
-
- `CHANGELOG.zh-CN.md`
|
|
268
340
|
- `docs/zh-CN/`
|
|
269
|
-
- `docs/zh-CN/commands/`
|
|
270
|
-
- `references/zh-CN/`
|
|
271
|
-
- `examples/greenfield-spec-markupflow/*.zh-CN.md`
|
|
272
|
-
- `openspec/changes/da-vinci-v2-1-workflow/*.zh-CN.md`
|
|
273
341
|
|
|
274
342
|
## 仓库布局
|
|
275
343
|
|
|
276
344
|
```text
|
|
277
345
|
da-vinci/
|
|
278
346
|
├── SKILL.md
|
|
279
|
-
├── SKILL.zh-CN.md
|
|
280
347
|
├── README.md
|
|
281
348
|
├── README.zh-CN.md
|
|
282
349
|
├── agents/
|
|
@@ -287,7 +354,5 @@ da-vinci/
|
|
|
287
354
|
│ └── gemini/
|
|
288
355
|
├── docs/
|
|
289
356
|
│ └── zh-CN/
|
|
290
|
-
|
|
291
|
-
│ └── zh-CN/
|
|
292
|
-
└── openspec/
|
|
357
|
+
└── references/
|
|
293
358
|
```
|
package/SKILL.md
CHANGED
|
@@ -70,7 +70,7 @@ Do not stop merely because:
|
|
|
70
70
|
|
|
71
71
|
- some pages are still out of scope
|
|
72
72
|
- a future follow-up spec may be needed for untouched behavior
|
|
73
|
-
- a
|
|
73
|
+
- a project-local `.pen` export is still pending for traceability, unless that missing file would make the active design source ambiguous
|
|
74
74
|
|
|
75
75
|
Those are warnings unless they prevent safe implementation of the current in-scope work.
|
|
76
76
|
|
|
@@ -80,9 +80,12 @@ Canonical workflow name is `da-vinci`.
|
|
|
80
80
|
|
|
81
81
|
- Codex preferred: `$da-vinci <request>`
|
|
82
82
|
- Claude and Gemini preferred: `/da-vinci <request>` when platform adapters exist
|
|
83
|
-
-
|
|
84
|
-
-
|
|
85
|
-
-
|
|
83
|
+
- For Codex helper intents, prefer natural-language patterns:
|
|
84
|
+
- `$da-vinci use intake for <project situation>`
|
|
85
|
+
- `$da-vinci use prompt for <known scenario>`
|
|
86
|
+
- `$da-vinci use continue for <existing workflow state>`
|
|
87
|
+
- Claude and Gemini helper routes remain:
|
|
88
|
+
- `/dv:intake`, `/dv:prompt`, `/dv:continue`
|
|
86
89
|
- Natural-language invocation remains the default path
|
|
87
90
|
|
|
88
91
|
## Prompt Entry Routes
|
|
@@ -184,7 +187,7 @@ Run the workflow in this order:
|
|
|
184
187
|
1. Select the active mode
|
|
185
188
|
2. Build the correct source artifacts for that mode
|
|
186
189
|
3. Detect or generate `DA-VINCI.md` as the project visual contract
|
|
187
|
-
4. Collect design inputs and register available design sources
|
|
190
|
+
4. Collect design inputs, prefer project-local `.pen` files under `.da-vinci/designs/`, and register available design sources
|
|
188
191
|
5. Define or discover the project page map
|
|
189
192
|
6. Create or update Pencil designs for the required pages
|
|
190
193
|
7. Bind implementation pages to Pencil pages
|
|
@@ -221,14 +224,15 @@ Use these artifacts unless the project defines a different schema:
|
|
|
221
224
|
3. `DA-VINCI.md`
|
|
222
225
|
4. `.da-vinci/changes/<change-id>/design-brief.md`
|
|
223
226
|
5. `.da-vinci/design-registry.md`
|
|
224
|
-
6. `.da-vinci/
|
|
225
|
-
7. `.da-vinci/
|
|
226
|
-
8. `.da-vinci/changes/<change-id>/
|
|
227
|
-
9. `.da-vinci/changes/<change-id>/
|
|
228
|
-
10. `.da-vinci/changes/<change-id>/
|
|
229
|
-
11. `.da-vinci/changes/<change-id>/pencil-
|
|
230
|
-
12. `.da-vinci/changes/<change-id>/
|
|
231
|
-
13. `.da-vinci/changes/<change-id>/
|
|
227
|
+
6. `.da-vinci/designs/`
|
|
228
|
+
7. `.da-vinci/page-map.md`
|
|
229
|
+
8. `.da-vinci/changes/<change-id>/proposal.md`
|
|
230
|
+
9. `.da-vinci/changes/<change-id>/specs/<capability>/spec.md`
|
|
231
|
+
10. `.da-vinci/changes/<change-id>/design.md`
|
|
232
|
+
11. `.da-vinci/changes/<change-id>/pencil-design.md`
|
|
233
|
+
12. `.da-vinci/changes/<change-id>/pencil-bindings.md`
|
|
234
|
+
13. `.da-vinci/changes/<change-id>/tasks.md`
|
|
235
|
+
14. `.da-vinci/changes/<change-id>/verification.md`
|
|
232
236
|
|
|
233
237
|
Not every mode requires every artifact.
|
|
234
238
|
|
|
@@ -254,6 +258,7 @@ Optional artifacts:
|
|
|
254
258
|
- `DA-VINCI.md`: project-level visual contract for theme, color system, surface treatment, typography direction, and cross-page style rules
|
|
255
259
|
- `design-brief.md`: form factor, visual direction, density, brand constraints, and UI preferences
|
|
256
260
|
- `design-registry.md`: project-level `.pen` file inventory and active design sources
|
|
261
|
+
- `.da-vinci/designs/`: project-local persisted Pencil sources such as `project-baseline.pen` or change-specific `.pen` files
|
|
257
262
|
- `page-map.md`: canonical page list, page responsibilities, route mapping, and page states
|
|
258
263
|
- `proposal.md`: scope, goal, non-goals, and success criteria
|
|
259
264
|
- `spec.md`: behavior, states, inputs, outputs, edge cases, and acceptance rules
|
|
@@ -277,10 +282,17 @@ Keep this file at the project root so the visual contract is easy to discover an
|
|
|
277
282
|
|
|
278
283
|
- `.da-vinci/project-inventory.md`
|
|
279
284
|
- `.da-vinci/design-registry.md`
|
|
285
|
+
- `.da-vinci/designs/`
|
|
280
286
|
- `.da-vinci/page-map.md`
|
|
281
287
|
|
|
282
288
|
These files describe project-wide facts that can outlive any one change.
|
|
283
289
|
|
|
290
|
+
Recommended `.pen` persistence patterns:
|
|
291
|
+
|
|
292
|
+
- `.da-vinci/designs/project-baseline.pen`
|
|
293
|
+
- `.da-vinci/designs/<change-id>.pen`
|
|
294
|
+
- `.da-vinci/designs/<change-id>/main.pen`
|
|
295
|
+
|
|
284
296
|
### Change-level workflow directory
|
|
285
297
|
|
|
286
298
|
- `.da-vinci/changes/<change-id>/brainstorm.md`
|
|
@@ -375,6 +387,8 @@ Do not split page-by-page unless the product is unusually fragmented. Prefer imp
|
|
|
375
387
|
|
|
376
388
|
Use `design-registry.md` as the project-level inventory of `.pen` sources.
|
|
377
389
|
|
|
390
|
+
Use `.da-vinci/designs/` as the default project-local location for persisted Pencil files when the workflow creates or updates them.
|
|
391
|
+
|
|
378
392
|
Use `DA-VINCI.md` as the project-level visual source of truth for:
|
|
379
393
|
|
|
380
394
|
- theme and palette
|
|
@@ -386,6 +400,7 @@ Use `DA-VINCI.md` as the project-level visual source of truth for:
|
|
|
386
400
|
When a relevant mapping already exists:
|
|
387
401
|
|
|
388
402
|
- iterate on the mapped Pencil source
|
|
403
|
+
- prefer the project-local `.pen` file under `.da-vinci/designs/` when one is already registered
|
|
389
404
|
- do not create a new design baseline unless there is a reason
|
|
390
405
|
|
|
391
406
|
When `DA-VINCI.md` already exists:
|
|
@@ -396,6 +411,7 @@ When `DA-VINCI.md` already exists:
|
|
|
396
411
|
When page-to-Pencil bindings already exist:
|
|
397
412
|
|
|
398
413
|
- update the mapped Pencil page for the affected implementation page
|
|
414
|
+
- keep the exact `.pen` file path recorded in `design-registry.md`
|
|
399
415
|
|
|
400
416
|
When project mappings do not exist but existing code exists:
|
|
401
417
|
|
|
@@ -404,12 +420,20 @@ When project mappings do not exist but existing code exists:
|
|
|
404
420
|
- reconstruct `page-map.md`
|
|
405
421
|
- create or rebuild `design-registry.md`
|
|
406
422
|
- generate a new Pencil baseline only after the inventory is stable
|
|
423
|
+
- save or export that baseline into `.da-vinci/designs/` when possible
|
|
407
424
|
|
|
408
425
|
When neither mappings nor usable design sources exist:
|
|
409
426
|
|
|
410
427
|
- state that the project is entering baseline reconstruction
|
|
411
428
|
- create a new Pencil baseline from the current local source of truth
|
|
412
429
|
- generate `DA-VINCI.md` from inferred or user-provided design rules before generating many unrelated pages
|
|
430
|
+
- persist the resulting `.pen` file in `.da-vinci/designs/` when possible and record the path in `design-registry.md`
|
|
431
|
+
|
|
432
|
+
When a Pencil session cannot yet be exported locally:
|
|
433
|
+
|
|
434
|
+
- record the live or external source in `design-registry.md`
|
|
435
|
+
- record why local persistence is pending
|
|
436
|
+
- do not hide the lack of a project-local `.pen` path
|
|
413
437
|
|
|
414
438
|
If the request is too vague to design or implement safely, ask a short clarification question before generating artifacts.
|
|
415
439
|
|
|
@@ -432,11 +456,13 @@ When multiple pages exist:
|
|
|
432
456
|
- keep one canonical Pencil page or screen per implementation page
|
|
433
457
|
- record the `.pen` file in `design-registry.md`
|
|
434
458
|
- record the mapping in `pencil-bindings.md`
|
|
459
|
+
- persist the active `.pen` file into `.da-vinci/designs/` before closing design work when possible
|
|
435
460
|
|
|
436
461
|
## Pencil MCP Rules
|
|
437
462
|
|
|
438
463
|
When Pencil is available through MCP:
|
|
439
464
|
|
|
465
|
+
- Prefer the project-local `.pen` file under `.da-vinci/designs/` when one is registered
|
|
440
466
|
- Read the active `.pen` file and page structure before coding
|
|
441
467
|
- read the bound Pencil page for the current implementation page
|
|
442
468
|
- Use Pencil data to extract layout, text, hierarchy, panels, buttons, and content regions
|