@xenonbyte/da-vinci-workflow 0.1.5 → 0.1.6
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 +42 -0
- package/CHANGELOG.zh-CN.md +44 -0
- package/README.md +80 -2
- package/README.zh-CN.md +293 -0
- package/SKILL.md +35 -1
- package/SKILL.zh-CN.md +339 -0
- package/commands/claude/da-vinci.md +5 -0
- package/commands/claude/dv/continue.md +24 -0
- package/commands/claude/dv/intake.md +26 -0
- package/commands/claude/dv/prompt.md +24 -0
- package/commands/codex/prompts/da-vinci.md +5 -0
- package/commands/codex/prompts/dv-continue.md +24 -0
- package/commands/codex/prompts/dv-intake.md +27 -0
- package/commands/codex/prompts/dv-prompt.md +24 -0
- package/commands/gemini/da-vinci.toml +5 -0
- package/commands/gemini/dv/continue.toml +24 -0
- package/commands/gemini/dv/intake.toml +26 -0
- package/commands/gemini/dv/prompt.toml +24 -0
- package/docs/mode-use-cases.md +13 -0
- package/docs/prompt-entrypoints.md +144 -0
- package/docs/workflow-examples.md +27 -0
- package/docs/zh-CN/commands/claude/da-vinci.md +27 -0
- package/docs/zh-CN/commands/claude/dv/breakdown.md +21 -0
- package/docs/zh-CN/commands/claude/dv/build.md +17 -0
- package/docs/zh-CN/commands/claude/dv/continue.md +24 -0
- package/docs/zh-CN/commands/claude/dv/design.md +20 -0
- package/docs/zh-CN/commands/claude/dv/intake.md +26 -0
- package/docs/zh-CN/commands/claude/dv/prompt.md +24 -0
- package/docs/zh-CN/commands/claude/dv/tasks.md +19 -0
- package/docs/zh-CN/commands/claude/dv/verify.md +16 -0
- package/docs/zh-CN/commands/codex/prompts/da-vinci.md +29 -0
- package/docs/zh-CN/commands/codex/prompts/dv-breakdown.md +19 -0
- package/docs/zh-CN/commands/codex/prompts/dv-build.md +13 -0
- package/docs/zh-CN/commands/codex/prompts/dv-continue.md +24 -0
- package/docs/zh-CN/commands/codex/prompts/dv-design.md +14 -0
- package/docs/zh-CN/commands/codex/prompts/dv-intake.md +27 -0
- package/docs/zh-CN/commands/codex/prompts/dv-prompt.md +24 -0
- package/docs/zh-CN/commands/codex/prompts/dv-tasks.md +16 -0
- package/docs/zh-CN/commands/codex/prompts/dv-verify.md +15 -0
- package/docs/zh-CN/mode-use-cases.md +145 -0
- package/docs/zh-CN/prompt-entrypoints.md +133 -0
- package/docs/zh-CN/workflow-examples.md +145 -0
- package/examples/greenfield-spec-markupflow/DA-VINCI.zh-CN.md +49 -0
- package/examples/greenfield-spec-markupflow/README.zh-CN.md +44 -0
- package/examples/greenfield-spec-markupflow/design-brief.zh-CN.md +24 -0
- package/examples/greenfield-spec-markupflow/design-registry.zh-CN.md +15 -0
- package/examples/greenfield-spec-markupflow/design.zh-CN.md +32 -0
- package/examples/greenfield-spec-markupflow/page-map.zh-CN.md +19 -0
- package/examples/greenfield-spec-markupflow/pencil-bindings.zh-CN.md +13 -0
- package/examples/greenfield-spec-markupflow/pencil-design.zh-CN.md +29 -0
- package/examples/greenfield-spec-markupflow/proposal.zh-CN.md +33 -0
- package/examples/greenfield-spec-markupflow/specs/marketing-site/spec.zh-CN.md +37 -0
- package/examples/greenfield-spec-markupflow/tasks.zh-CN.md +30 -0
- package/examples/greenfield-spec-markupflow/verification.zh-CN.md +38 -0
- package/lib/install.js +34 -25
- package/openspec/changes/da-vinci-v2-1-workflow/README.md +9 -0
- package/openspec/changes/da-vinci-v2-1-workflow/README.zh-CN.md +9 -0
- package/openspec/changes/da-vinci-v2-1-workflow/design.md +122 -0
- package/openspec/changes/da-vinci-v2-1-workflow/design.zh-CN.md +122 -0
- package/openspec/changes/da-vinci-v2-1-workflow/proposal.md +37 -0
- package/openspec/changes/da-vinci-v2-1-workflow/proposal.zh-CN.md +37 -0
- package/openspec/changes/da-vinci-v2-1-workflow/specs/workflow/spec.md +50 -0
- package/openspec/changes/da-vinci-v2-1-workflow/specs/workflow/spec.zh-CN.md +50 -0
- package/openspec/changes/da-vinci-v2-1-workflow/tasks.md +31 -0
- package/openspec/changes/da-vinci-v2-1-workflow/tasks.zh-CN.md +31 -0
- package/openspec/config.yaml +11 -0
- package/package.json +6 -1
- package/references/checkpoints.md +4 -0
- package/references/platform-adapters.md +30 -1
- package/references/prompt-recipes.md +181 -0
- package/references/zh-CN/artifact-templates.md +163 -0
- package/references/zh-CN/checkpoints.md +123 -0
- package/references/zh-CN/design-inputs.md +66 -0
- package/references/zh-CN/modes.md +69 -0
- package/references/zh-CN/page-mapping.md +43 -0
- package/references/zh-CN/pencil-design-to-code.md +65 -0
- package/references/zh-CN/platform-adapters.md +73 -0
- package/references/zh-CN/prompt-recipes.md +161 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## Unreleased
|
|
4
|
+
|
|
5
|
+
- No unreleased changes yet.
|
|
6
|
+
|
|
7
|
+
## v0.1.6 - 2026-03-27
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
- prompt-entry helper routes for `intake`, `prompt`, and `continue` across Codex, Claude, and Gemini
|
|
11
|
+
- `references/prompt-recipes.md` and `docs/prompt-entrypoints.md` to document how those entry routes should be used
|
|
12
|
+
- Chinese companion documents for the repository documentation set
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
- README, SKILL, workflow examples, mode use cases, and platform adapter documentation now explain when to use prompt-entry helpers
|
|
16
|
+
- installation and asset validation now include the new route files
|
|
17
|
+
- asset validation now covers the full `examples/` and `openspec/` documentation sets, and `openspec/` is now included in the npm package
|
|
18
|
+
|
|
19
|
+
## v0.1.5 - 2026-03-27
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
- `da-vinci status` now validates full installed asset sets for Codex, Claude, and Gemini instead of relying on sentinel files that could miss partial installs
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
- Claude and Gemini command adapters now use self-contained Da Vinci workflow wording after installation instead of referring to unavailable local skill/reference files
|
|
26
|
+
- README release notes now reflect the current install integrity work and next release priorities
|
|
27
|
+
|
|
28
|
+
## v0.1.4 - 2026-03-27
|
|
29
|
+
|
|
30
|
+
### Added
|
|
31
|
+
- redesign-from-code spec partitioning rules for broad UI refreshes
|
|
32
|
+
- redesign-slice guidance for `shared-shell`, `core-pages`, `settings-and-secondary`, `admin-or-restricted`, and `reference-gap-pages`
|
|
33
|
+
|
|
34
|
+
### Changed
|
|
35
|
+
- `redesign-from-code` now prefers multiple `specs/<slice>/spec.md` files over one oversized `ui-refresh/spec.md` when the refresh spans multiple implementation boundaries
|
|
36
|
+
- `spec checkpoint` now checks whether a redesign spec is too coarse
|
|
37
|
+
- `task checkpoint` now checks whether top-level task groups map cleanly to redesign spec slices
|
|
38
|
+
- `workflow-examples.md` and `mode-use-cases.md` now reflect slice-based spec planning for broad redesign work
|
|
39
|
+
|
|
40
|
+
### Notes
|
|
41
|
+
- This release keeps `DA-VINCI.md` as the project-level visual contract at the repository root
|
|
42
|
+
- Workflow artifacts remain under `.da-vinci/`, with change-specific artifacts under `.da-vinci/changes/<change-id>/`
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# 变更日志
|
|
2
|
+
|
|
3
|
+
> 中文配套文档。若与 `CHANGELOG.md` 存在差异,以英文原文为准。
|
|
4
|
+
|
|
5
|
+
## Unreleased
|
|
6
|
+
|
|
7
|
+
- 暂无未发布变更。
|
|
8
|
+
|
|
9
|
+
## v0.1.6 - 2026-03-27
|
|
10
|
+
|
|
11
|
+
### 新增
|
|
12
|
+
- 为 Codex、Claude、Gemini 增加了 `intake`、`prompt`、`continue` 三个提示词入口辅助路由
|
|
13
|
+
- 新增 `references/prompt-recipes.md` 和 `docs/prompt-entrypoints.md`,用于说明这些入口路由的使用方式
|
|
14
|
+
- 为仓库文档补充了一套中文配套文档
|
|
15
|
+
|
|
16
|
+
### 变更
|
|
17
|
+
- README、SKILL、workflow examples、mode use cases、platform adapters 现在都补充了入口辅助路由的使用说明
|
|
18
|
+
- 安装和资产校验已包含新的路由文件
|
|
19
|
+
- 资产校验现在覆盖完整的 `examples/` 和 `openspec/` 文档集合,并且 `openspec/` 也已纳入 npm 包
|
|
20
|
+
|
|
21
|
+
## v0.1.5 - 2026-03-27
|
|
22
|
+
|
|
23
|
+
### 修复
|
|
24
|
+
- `da-vinci status` 现在会检查 Codex、Claude、Gemini 的完整安装资产,而不再只依赖少量哨兵文件
|
|
25
|
+
|
|
26
|
+
### 变更
|
|
27
|
+
- Claude 和 Gemini 安装后的命令文案改成自洽的 Da Vinci 工作流措辞,不再引用未安装的本地 skill/reference 文件
|
|
28
|
+
- README 的发布说明同步更新为当前安装完整性相关工作
|
|
29
|
+
|
|
30
|
+
## v0.1.4 - 2026-03-27
|
|
31
|
+
|
|
32
|
+
### 新增
|
|
33
|
+
- 为大范围 UI 刷新增加 `redesign-from-code` 的 spec 拆分规则
|
|
34
|
+
- 为 `shared-shell`、`core-pages`、`settings-and-secondary`、`admin-or-restricted`、`reference-gap-pages` 提供 redesign slice 指导
|
|
35
|
+
|
|
36
|
+
### 变更
|
|
37
|
+
- 当刷新跨越多个实现边界时,`redesign-from-code` 更倾向于多个 `specs/<slice>/spec.md`,而不是单个巨大的 `ui-refresh/spec.md`
|
|
38
|
+
- `spec checkpoint` 现在会检查 redesign spec 是否过粗
|
|
39
|
+
- `task checkpoint` 现在会检查顶层任务组是否能和 redesign slice 对齐
|
|
40
|
+
- `workflow-examples.md` 和 `mode-use-cases.md` 已同步反映基于 slice 的 spec 规划方式
|
|
41
|
+
|
|
42
|
+
### 说明
|
|
43
|
+
- `DA-VINCI.md` 仍然作为项目级视觉契约保存在仓库根目录
|
|
44
|
+
- 工作流工件仍然位于 `.da-vinci/` 下,变更级工件位于 `.da-vinci/changes/<change-id>/`
|
package/README.md
CHANGED
|
@@ -25,12 +25,15 @@ This workflow is intended for:
|
|
|
25
25
|
|
|
26
26
|
## Current release
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
Latest published npm package:
|
|
29
29
|
|
|
30
|
-
- `@xenonbyte/da-vinci-workflow@0.1.
|
|
30
|
+
- `@xenonbyte/da-vinci-workflow@0.1.6`
|
|
31
31
|
|
|
32
32
|
Release highlights:
|
|
33
33
|
|
|
34
|
+
- prompt-entry helper routes for `intake`, `prompt`, and `continue` are now published across Codex, Claude, and Gemini
|
|
35
|
+
- bilingual repository documentation is now included for the main workflow docs, command references, examples, and OpenSpec change docs
|
|
36
|
+
- asset validation now covers the full `examples/` and `openspec/` documentation sets
|
|
34
37
|
- `da-vinci status` now validates full installed asset sets across Codex, Claude, and Gemini
|
|
35
38
|
- Claude and Gemini command adapters now use self-contained workflow wording after installation
|
|
36
39
|
- Node-first install, uninstall, status, and asset validation commands remain the supported distribution path
|
|
@@ -56,6 +59,26 @@ Use when an existing project already has routes, pages, and UI, and the goal is
|
|
|
56
59
|
|
|
57
60
|
Use when an existing product needs a scoped requirement change, page addition, or page update.
|
|
58
61
|
|
|
62
|
+
## Prompt entry helpers
|
|
63
|
+
|
|
64
|
+
Use these routes when you know you need Da Vinci but do not want to hand-write the first workflow prompt.
|
|
65
|
+
|
|
66
|
+
- `intake`: choose the correct mode and generate the best executable first prompt
|
|
67
|
+
- `prompt`: generate scenario-specific prompts directly
|
|
68
|
+
- `continue`: inspect existing artifacts and generate the best continuation prompt
|
|
69
|
+
|
|
70
|
+
Default intent:
|
|
71
|
+
|
|
72
|
+
- use `intake` for complex existing-project redesigns or whenever the first prompt is hard to phrase
|
|
73
|
+
- use `continue` after `.da-vinci/` artifacts already exist and the workflow needs to resume
|
|
74
|
+
- use `prompt` when the mode is already known and you only want copy-ready prompt text
|
|
75
|
+
|
|
76
|
+
Route discipline:
|
|
77
|
+
|
|
78
|
+
- `intake` and `continue` should usually generate a main `$da-vinci ...` or `/da-vinci ...` prompt
|
|
79
|
+
- they should not default the user into `build`
|
|
80
|
+
- `build` remains a direct expert route for workflows that are already implementation-ready
|
|
81
|
+
|
|
59
82
|
## Core workflow
|
|
60
83
|
|
|
61
84
|
Da Vinci runs in this order:
|
|
@@ -272,6 +295,14 @@ Preferred:
|
|
|
272
295
|
$da-vinci <request>
|
|
273
296
|
```
|
|
274
297
|
|
|
298
|
+
Entry helpers:
|
|
299
|
+
|
|
300
|
+
```text
|
|
301
|
+
/prompts:dv-intake
|
|
302
|
+
/prompts:dv-prompt
|
|
303
|
+
/prompts:dv-continue
|
|
304
|
+
```
|
|
305
|
+
|
|
275
306
|
### Claude
|
|
276
307
|
|
|
277
308
|
Preferred:
|
|
@@ -280,6 +311,14 @@ Preferred:
|
|
|
280
311
|
/da-vinci <request>
|
|
281
312
|
```
|
|
282
313
|
|
|
314
|
+
Entry helpers:
|
|
315
|
+
|
|
316
|
+
```text
|
|
317
|
+
/dv:intake
|
|
318
|
+
/dv:prompt
|
|
319
|
+
/dv:continue
|
|
320
|
+
```
|
|
321
|
+
|
|
283
322
|
### Gemini
|
|
284
323
|
|
|
285
324
|
Preferred:
|
|
@@ -288,6 +327,14 @@ Preferred:
|
|
|
288
327
|
/da-vinci <request>
|
|
289
328
|
```
|
|
290
329
|
|
|
330
|
+
Entry helpers:
|
|
331
|
+
|
|
332
|
+
```text
|
|
333
|
+
/dv:intake
|
|
334
|
+
/dv:prompt
|
|
335
|
+
/dv:continue
|
|
336
|
+
```
|
|
337
|
+
|
|
291
338
|
## Repo-local forward test
|
|
292
339
|
|
|
293
340
|
A complete repo-local forward test is available at:
|
|
@@ -331,25 +378,56 @@ $da-vinci use redesign-from-code to inventory the existing app, identify current
|
|
|
331
378
|
$da-vinci use feature-change to add a billing page, generate the relevant Pencil design delta, and create implementation tasks
|
|
332
379
|
```
|
|
333
380
|
|
|
381
|
+
### Prompt intake for a complex redesign
|
|
382
|
+
|
|
383
|
+
```text
|
|
384
|
+
/dv:intake I need to globally replace the UI of an existing Android project. Existing code is the behavior source of truth. HTML references are in /abs/path/to/mockups.
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
### Continue after inventory and spec work
|
|
388
|
+
|
|
389
|
+
```text
|
|
390
|
+
/dv:continue Continue this redesign-from-code workflow into full-delivery using the existing Da Vinci artifacts.
|
|
391
|
+
```
|
|
392
|
+
|
|
334
393
|
## Workflow examples
|
|
335
394
|
|
|
336
395
|
See:
|
|
337
396
|
|
|
397
|
+
- `docs/prompt-entrypoints.md`
|
|
338
398
|
- `docs/workflow-examples.md`
|
|
339
399
|
- `docs/mode-use-cases.md`
|
|
340
400
|
|
|
401
|
+
## Chinese documentation
|
|
402
|
+
|
|
403
|
+
Chinese companion documents are included in this repository:
|
|
404
|
+
|
|
405
|
+
- `README.zh-CN.md`
|
|
406
|
+
- `SKILL.zh-CN.md`
|
|
407
|
+
- `CHANGELOG.zh-CN.md`
|
|
408
|
+
- `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
|
+
|
|
341
414
|
## Repository layout
|
|
342
415
|
|
|
343
416
|
```text
|
|
344
417
|
da-vinci/
|
|
345
418
|
├── SKILL.md
|
|
419
|
+
├── SKILL.zh-CN.md
|
|
420
|
+
├── README.zh-CN.md
|
|
346
421
|
├── agents/
|
|
347
422
|
│ └── openai.yaml
|
|
348
423
|
├── commands/
|
|
349
424
|
│ ├── claude/
|
|
350
425
|
│ ├── codex/
|
|
351
426
|
│ └── gemini/
|
|
427
|
+
├── docs/
|
|
428
|
+
│ └── zh-CN/
|
|
352
429
|
├── references/
|
|
430
|
+
│ └── zh-CN/
|
|
353
431
|
└── openspec/
|
|
354
432
|
```
|
|
355
433
|
|
package/README.zh-CN.md
ADDED
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
# Da Vinci
|
|
2
|
+
|
|
3
|
+
> 中文配套文档。若与英文原文存在差异,请以 `README.md` 为准。
|
|
4
|
+
|
|
5
|
+
Da Vinci 是一个把产品需求一路推进到结构化规格、Pencil 设计、页面绑定、实现任务和最终代码的交付工作流。
|
|
6
|
+
|
|
7
|
+
它遵循一个固定契约:
|
|
8
|
+
|
|
9
|
+
- requirements 决定 behavior
|
|
10
|
+
- Pencil 决定 presentation
|
|
11
|
+
- code 同时遵循 requirements 和 Pencil
|
|
12
|
+
|
|
13
|
+
## Da Vinci 适合什么场景
|
|
14
|
+
|
|
15
|
+
当一个项目需要同时把这三层对齐时,适合使用 Da Vinci:
|
|
16
|
+
|
|
17
|
+
1. 需求拆解
|
|
18
|
+
2. Pencil 支撑的 UI 设计
|
|
19
|
+
3. 基于需求和设计数据的实现
|
|
20
|
+
|
|
21
|
+
典型场景:
|
|
22
|
+
|
|
23
|
+
- 0 到 1 的产品交付
|
|
24
|
+
- 从 brainstorming 走向可实施产品
|
|
25
|
+
- 基于现有代码做全局 UI 重设计
|
|
26
|
+
- 在现有产品上做范围明确的 feature-change
|
|
27
|
+
|
|
28
|
+
## 当前发布状态
|
|
29
|
+
|
|
30
|
+
最新已发布 npm 包:
|
|
31
|
+
|
|
32
|
+
- `@xenonbyte/da-vinci-workflow@0.1.6`
|
|
33
|
+
|
|
34
|
+
已发布版本重点:
|
|
35
|
+
|
|
36
|
+
- `intake`、`prompt`、`continue` 三个提示词入口辅助路由已随 Codex、Claude、Gemini 一起发布
|
|
37
|
+
- 主工作流文档、命令说明、示例工件和 OpenSpec 变更文档现在都提供中文配套文档
|
|
38
|
+
- 资产校验现在覆盖完整的 `examples/` 和 `openspec/` 文档集合
|
|
39
|
+
- `da-vinci status` 会校验 Codex、Claude、Gemini 的完整安装资产
|
|
40
|
+
- Claude 和 Gemini 安装后的命令文案已改为自洽的工作流措辞
|
|
41
|
+
- 安装、卸载、状态、资产校验都通过 Node CLI 提供
|
|
42
|
+
- 仓库内含一个 `greenfield-spec` 的本地 forward test
|
|
43
|
+
|
|
44
|
+
## 支持的工作流模式
|
|
45
|
+
|
|
46
|
+
Da Vinci V2 支持四种模式:
|
|
47
|
+
|
|
48
|
+
### `greenfield-spec`
|
|
49
|
+
|
|
50
|
+
新项目,且需求已经足够清晰,可以直接写 spec。
|
|
51
|
+
|
|
52
|
+
### `greenfield-brainstorm`
|
|
53
|
+
|
|
54
|
+
新项目,但输入仍然比较发散,需要先做梳理和收敛。
|
|
55
|
+
|
|
56
|
+
### `redesign-from-code`
|
|
57
|
+
|
|
58
|
+
已有项目,代码和行为已存在,目标是做广泛或全局的 UI 重设计。
|
|
59
|
+
|
|
60
|
+
### `feature-change`
|
|
61
|
+
|
|
62
|
+
已有项目,只做某个功能、页面、流程的局部修改。
|
|
63
|
+
|
|
64
|
+
## 提示词入口辅助路由
|
|
65
|
+
|
|
66
|
+
当你知道自己需要 Da Vinci,但不想自己手写第一条高质量提示词时,可以使用下面三类入口:
|
|
67
|
+
|
|
68
|
+
- `intake`
|
|
69
|
+
- 帮你判断该用哪个 mode,并生成最合适的主入口提示词
|
|
70
|
+
- `prompt`
|
|
71
|
+
- 在场景已知时,直接生成可复制执行的提示词
|
|
72
|
+
- `continue`
|
|
73
|
+
- 项目里已经有 `.da-vinci/` 工件时,帮你判断如何继续
|
|
74
|
+
|
|
75
|
+
默认建议:
|
|
76
|
+
|
|
77
|
+
- 复杂的存量项目重设计,优先用 `intake`
|
|
78
|
+
- 已有工件后继续推进,优先用 `continue`
|
|
79
|
+
- 已经明确知道场景,只缺提示词文本时,用 `prompt`
|
|
80
|
+
|
|
81
|
+
重要规则:
|
|
82
|
+
|
|
83
|
+
- `intake` 和 `continue` 通常应该回到主工作流入口,即 `$da-vinci ...` 或 `/da-vinci ...`
|
|
84
|
+
- 它们不应该默认把用户直接导向 `build`
|
|
85
|
+
- `build` 仍然保留,但它是给已经实现就绪的高级直接入口
|
|
86
|
+
|
|
87
|
+
## 核心工作流顺序
|
|
88
|
+
|
|
89
|
+
Da Vinci 的默认顺序是:
|
|
90
|
+
|
|
91
|
+
1. 选择 mode
|
|
92
|
+
2. 生成正确的源工件
|
|
93
|
+
3. 检测或生成 `DA-VINCI.md`
|
|
94
|
+
4. 收集设计输入并登记设计源
|
|
95
|
+
5. 定义或发现页面地图
|
|
96
|
+
6. 创建或更新 Pencil 设计
|
|
97
|
+
7. 绑定实现页面到 Pencil 页面
|
|
98
|
+
8. 通过 MCP 读取 Pencil 设计数据
|
|
99
|
+
9. 生成实现任务
|
|
100
|
+
10. 根据 requirements 和 Pencil 数据实现代码
|
|
101
|
+
11. 校验需求漂移和设计漂移
|
|
102
|
+
|
|
103
|
+
## 默认工件
|
|
104
|
+
|
|
105
|
+
根据不同 mode,工作流可能使用这些工件:
|
|
106
|
+
|
|
107
|
+
- `.da-vinci/changes/<change-id>/brainstorm.md`
|
|
108
|
+
- `.da-vinci/project-inventory.md`
|
|
109
|
+
- `DA-VINCI.md`
|
|
110
|
+
- `.da-vinci/changes/<change-id>/design-brief.md`
|
|
111
|
+
- `.da-vinci/design-registry.md`
|
|
112
|
+
- `.da-vinci/page-map.md`
|
|
113
|
+
- `.da-vinci/changes/<change-id>/proposal.md`
|
|
114
|
+
- `.da-vinci/changes/<change-id>/specs/<capability>/spec.md`
|
|
115
|
+
- `.da-vinci/changes/<change-id>/design.md`
|
|
116
|
+
- `.da-vinci/changes/<change-id>/pencil-design.md`
|
|
117
|
+
- `.da-vinci/changes/<change-id>/pencil-bindings.md`
|
|
118
|
+
- `.da-vinci/changes/<change-id>/tasks.md`
|
|
119
|
+
- `.da-vinci/changes/<change-id>/verification.md`
|
|
120
|
+
|
|
121
|
+
工件含义:
|
|
122
|
+
|
|
123
|
+
- `brainstorm.md`:需求尚未稳定前的原始想法整理
|
|
124
|
+
- `project-inventory.md`:现有代码库里的路由、页面、UI 结构盘点
|
|
125
|
+
- `DA-VINCI.md`:项目级视觉契约
|
|
126
|
+
- `design-brief.md`:设计方向、形态、密度、品牌和限制条件
|
|
127
|
+
- `design-registry.md`:项目级 `.pen` 设计源登记
|
|
128
|
+
- `page-map.md`:页面、职责、状态和共享区域
|
|
129
|
+
- `proposal.md`:范围、目标、非目标和成功标准
|
|
130
|
+
- `spec.md`:行为、状态、边界和验收规则
|
|
131
|
+
- `design.md`:信息架构、页面结构和交互策略
|
|
132
|
+
- `pencil-design.md`:Pencil 页面、屏幕、注释和说明
|
|
133
|
+
- `pencil-bindings.md`:实现页面和 Pencil 页面之间的映射
|
|
134
|
+
- `tasks.md`:任务分组和实施顺序
|
|
135
|
+
- `verification.md`:覆盖度和漂移检查
|
|
136
|
+
|
|
137
|
+
## 安装
|
|
138
|
+
|
|
139
|
+
安装 npm 包:
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
npm install -g @xenonbyte/da-vinci-workflow
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
安装平台资产:
|
|
146
|
+
|
|
147
|
+
```bash
|
|
148
|
+
da-vinci install --platform codex,claude,gemini
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
常用命令:
|
|
152
|
+
|
|
153
|
+
```bash
|
|
154
|
+
da-vinci status
|
|
155
|
+
da-vinci validate-assets
|
|
156
|
+
da-vinci uninstall --platform codex,claude,gemini
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
安装目标:
|
|
160
|
+
|
|
161
|
+
- Codex prompts:`~/.codex/prompts/`
|
|
162
|
+
- Codex skill:`~/.codex/skills/da-vinci/`
|
|
163
|
+
- Claude commands:`~/.claude/commands/`
|
|
164
|
+
- Gemini commands:`~/.gemini/commands/`
|
|
165
|
+
|
|
166
|
+
## 平台使用方式
|
|
167
|
+
|
|
168
|
+
### Codex
|
|
169
|
+
|
|
170
|
+
主入口:
|
|
171
|
+
|
|
172
|
+
```text
|
|
173
|
+
$da-vinci <request>
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
辅助入口:
|
|
177
|
+
|
|
178
|
+
```text
|
|
179
|
+
/prompts:dv-intake
|
|
180
|
+
/prompts:dv-prompt
|
|
181
|
+
/prompts:dv-continue
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
### Claude
|
|
185
|
+
|
|
186
|
+
主入口:
|
|
187
|
+
|
|
188
|
+
```text
|
|
189
|
+
/da-vinci <request>
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
辅助入口:
|
|
193
|
+
|
|
194
|
+
```text
|
|
195
|
+
/dv:intake
|
|
196
|
+
/dv:prompt
|
|
197
|
+
/dv:continue
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
### Gemini
|
|
201
|
+
|
|
202
|
+
主入口:
|
|
203
|
+
|
|
204
|
+
```text
|
|
205
|
+
/da-vinci <request>
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
辅助入口:
|
|
209
|
+
|
|
210
|
+
```text
|
|
211
|
+
/dv:intake
|
|
212
|
+
/dv:prompt
|
|
213
|
+
/dv:continue
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
## 示例请求
|
|
217
|
+
|
|
218
|
+
### Greenfield spec
|
|
219
|
+
|
|
220
|
+
```text
|
|
221
|
+
$da-vinci use greenfield-spec to break down a new desktop software project for annotated design delivery
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
### Brainstorm synthesis
|
|
225
|
+
|
|
226
|
+
```text
|
|
227
|
+
$da-vinci use greenfield-brainstorm to turn several product ideas into a page map, Pencil design plan, and implementation tasks
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
### Redesign from code
|
|
231
|
+
|
|
232
|
+
```text
|
|
233
|
+
$da-vinci use redesign-from-code to inventory the existing app, identify current pages, and generate a new Pencil-backed UI plan
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
### Feature change
|
|
237
|
+
|
|
238
|
+
```text
|
|
239
|
+
$da-vinci use feature-change to add a billing page, generate the relevant Pencil design delta, and create implementation tasks
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
### 复杂重设计先做 intake
|
|
243
|
+
|
|
244
|
+
```text
|
|
245
|
+
/dv:intake I need to globally replace the UI of an existing Android project. Existing code is the behavior source of truth. HTML references are in /abs/path/to/mockups.
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
### 已有工件后继续推进
|
|
249
|
+
|
|
250
|
+
```text
|
|
251
|
+
/dv:continue Continue this redesign-from-code workflow into full-delivery using the existing Da Vinci artifacts.
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
## 文档导航
|
|
255
|
+
|
|
256
|
+
英文文档:
|
|
257
|
+
|
|
258
|
+
- `docs/prompt-entrypoints.md`
|
|
259
|
+
- `docs/workflow-examples.md`
|
|
260
|
+
- `docs/mode-use-cases.md`
|
|
261
|
+
- `references/`
|
|
262
|
+
|
|
263
|
+
中文文档:
|
|
264
|
+
|
|
265
|
+
- `README.zh-CN.md`
|
|
266
|
+
- `SKILL.zh-CN.md`
|
|
267
|
+
- `CHANGELOG.zh-CN.md`
|
|
268
|
+
- `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
|
+
|
|
274
|
+
## 仓库布局
|
|
275
|
+
|
|
276
|
+
```text
|
|
277
|
+
da-vinci/
|
|
278
|
+
├── SKILL.md
|
|
279
|
+
├── SKILL.zh-CN.md
|
|
280
|
+
├── README.md
|
|
281
|
+
├── README.zh-CN.md
|
|
282
|
+
├── agents/
|
|
283
|
+
│ └── openai.yaml
|
|
284
|
+
├── commands/
|
|
285
|
+
│ ├── claude/
|
|
286
|
+
│ ├── codex/
|
|
287
|
+
│ └── gemini/
|
|
288
|
+
├── docs/
|
|
289
|
+
│ └── zh-CN/
|
|
290
|
+
├── references/
|
|
291
|
+
│ └── zh-CN/
|
|
292
|
+
└── openspec/
|
|
293
|
+
```
|
package/SKILL.md
CHANGED
|
@@ -80,7 +80,40 @@ 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
|
-
- Explicit action routes
|
|
83
|
+
- Explicit action routes also exist for workflow entry help:
|
|
84
|
+
- Codex: `/prompts:dv-intake`, `/prompts:dv-prompt`, `/prompts:dv-continue`
|
|
85
|
+
- Claude and Gemini: `/dv:intake`, `/dv:prompt`, `/dv:continue`
|
|
86
|
+
- Natural-language invocation remains the default path
|
|
87
|
+
|
|
88
|
+
## Prompt Entry Routes
|
|
89
|
+
|
|
90
|
+
Use these helper actions when the user needs help entering or resuming the workflow:
|
|
91
|
+
|
|
92
|
+
1. `intake`
|
|
93
|
+
- use when the user describes a project situation but does not know how to phrase the best Da Vinci request
|
|
94
|
+
- output:
|
|
95
|
+
- recommended mode
|
|
96
|
+
- recommended delivery intent
|
|
97
|
+
- one primary executable workflow prompt
|
|
98
|
+
- one more conservative prompt when useful
|
|
99
|
+
- one continuation prompt when the workflow is likely to pause
|
|
100
|
+
- missing inputs that would materially change the result
|
|
101
|
+
- `intake` should usually generate a main workflow prompt, not a `build`-only prompt
|
|
102
|
+
|
|
103
|
+
2. `prompt`
|
|
104
|
+
- use when the user explicitly asks for a prompt template or scenario-specific prompt
|
|
105
|
+
- generate one or more copy-ready prompts aligned to the stated scenario
|
|
106
|
+
- keep prompts operational, not generic advice
|
|
107
|
+
|
|
108
|
+
3. `continue`
|
|
109
|
+
- use when workflow artifacts already exist and the user needs to resume
|
|
110
|
+
- inspect the current artifacts first
|
|
111
|
+
- output:
|
|
112
|
+
- detected workflow state
|
|
113
|
+
- gaps or blockers
|
|
114
|
+
- one executable continuation prompt
|
|
115
|
+
- do not restart discovery if the artifacts already provide enough truth
|
|
116
|
+
- do not default to `build` unless the project is clearly implementation-ready
|
|
84
117
|
|
|
85
118
|
## V2 Mode Selection
|
|
86
119
|
|
|
@@ -177,6 +210,7 @@ Load only the reference that matches the current step:
|
|
|
177
210
|
- Read `references/page-mapping.md` when defining project pages, Pencil pages, and route-to-screen bindings
|
|
178
211
|
- Read `references/pencil-design-to-code.md` when turning Pencil data into implementation
|
|
179
212
|
- Read `references/platform-adapters.md` when guiding users on Codex, Claude, or Gemini invocation patterns
|
|
213
|
+
- Read `references/prompt-recipes.md` when generating intake, prompt, or continue helper outputs
|
|
180
214
|
|
|
181
215
|
## Default Artifacts
|
|
182
216
|
|