@xenonbyte/da-vinci-workflow 0.1.4 → 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.
Files changed (88) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/CHANGELOG.zh-CN.md +44 -0
  3. package/README.md +86 -8
  4. package/README.zh-CN.md +293 -0
  5. package/SKILL.md +35 -1
  6. package/SKILL.zh-CN.md +339 -0
  7. package/commands/claude/da-vinci.md +7 -3
  8. package/commands/claude/dv/breakdown.md +1 -1
  9. package/commands/claude/dv/build.md +1 -1
  10. package/commands/claude/dv/continue.md +24 -0
  11. package/commands/claude/dv/design.md +1 -1
  12. package/commands/claude/dv/intake.md +26 -0
  13. package/commands/claude/dv/prompt.md +24 -0
  14. package/commands/claude/dv/tasks.md +1 -1
  15. package/commands/claude/dv/verify.md +1 -1
  16. package/commands/codex/prompts/da-vinci.md +5 -0
  17. package/commands/codex/prompts/dv-continue.md +24 -0
  18. package/commands/codex/prompts/dv-intake.md +27 -0
  19. package/commands/codex/prompts/dv-prompt.md +24 -0
  20. package/commands/gemini/da-vinci.toml +6 -1
  21. package/commands/gemini/dv/breakdown.toml +1 -1
  22. package/commands/gemini/dv/build.toml +1 -1
  23. package/commands/gemini/dv/continue.toml +24 -0
  24. package/commands/gemini/dv/design.toml +1 -1
  25. package/commands/gemini/dv/intake.toml +26 -0
  26. package/commands/gemini/dv/prompt.toml +24 -0
  27. package/commands/gemini/dv/tasks.toml +1 -1
  28. package/commands/gemini/dv/verify.toml +1 -1
  29. package/docs/mode-use-cases.md +13 -0
  30. package/docs/prompt-entrypoints.md +144 -0
  31. package/docs/workflow-examples.md +27 -0
  32. package/docs/zh-CN/commands/claude/da-vinci.md +27 -0
  33. package/docs/zh-CN/commands/claude/dv/breakdown.md +21 -0
  34. package/docs/zh-CN/commands/claude/dv/build.md +17 -0
  35. package/docs/zh-CN/commands/claude/dv/continue.md +24 -0
  36. package/docs/zh-CN/commands/claude/dv/design.md +20 -0
  37. package/docs/zh-CN/commands/claude/dv/intake.md +26 -0
  38. package/docs/zh-CN/commands/claude/dv/prompt.md +24 -0
  39. package/docs/zh-CN/commands/claude/dv/tasks.md +19 -0
  40. package/docs/zh-CN/commands/claude/dv/verify.md +16 -0
  41. package/docs/zh-CN/commands/codex/prompts/da-vinci.md +29 -0
  42. package/docs/zh-CN/commands/codex/prompts/dv-breakdown.md +19 -0
  43. package/docs/zh-CN/commands/codex/prompts/dv-build.md +13 -0
  44. package/docs/zh-CN/commands/codex/prompts/dv-continue.md +24 -0
  45. package/docs/zh-CN/commands/codex/prompts/dv-design.md +14 -0
  46. package/docs/zh-CN/commands/codex/prompts/dv-intake.md +27 -0
  47. package/docs/zh-CN/commands/codex/prompts/dv-prompt.md +24 -0
  48. package/docs/zh-CN/commands/codex/prompts/dv-tasks.md +16 -0
  49. package/docs/zh-CN/commands/codex/prompts/dv-verify.md +15 -0
  50. package/docs/zh-CN/mode-use-cases.md +145 -0
  51. package/docs/zh-CN/prompt-entrypoints.md +133 -0
  52. package/docs/zh-CN/workflow-examples.md +145 -0
  53. package/examples/greenfield-spec-markupflow/DA-VINCI.zh-CN.md +49 -0
  54. package/examples/greenfield-spec-markupflow/README.zh-CN.md +44 -0
  55. package/examples/greenfield-spec-markupflow/design-brief.zh-CN.md +24 -0
  56. package/examples/greenfield-spec-markupflow/design-registry.zh-CN.md +15 -0
  57. package/examples/greenfield-spec-markupflow/design.zh-CN.md +32 -0
  58. package/examples/greenfield-spec-markupflow/page-map.zh-CN.md +19 -0
  59. package/examples/greenfield-spec-markupflow/pencil-bindings.zh-CN.md +13 -0
  60. package/examples/greenfield-spec-markupflow/pencil-design.zh-CN.md +29 -0
  61. package/examples/greenfield-spec-markupflow/proposal.zh-CN.md +33 -0
  62. package/examples/greenfield-spec-markupflow/specs/marketing-site/spec.zh-CN.md +37 -0
  63. package/examples/greenfield-spec-markupflow/tasks.zh-CN.md +30 -0
  64. package/examples/greenfield-spec-markupflow/verification.zh-CN.md +38 -0
  65. package/lib/install.js +103 -31
  66. package/openspec/changes/da-vinci-v2-1-workflow/README.md +9 -0
  67. package/openspec/changes/da-vinci-v2-1-workflow/README.zh-CN.md +9 -0
  68. package/openspec/changes/da-vinci-v2-1-workflow/design.md +122 -0
  69. package/openspec/changes/da-vinci-v2-1-workflow/design.zh-CN.md +122 -0
  70. package/openspec/changes/da-vinci-v2-1-workflow/proposal.md +37 -0
  71. package/openspec/changes/da-vinci-v2-1-workflow/proposal.zh-CN.md +37 -0
  72. package/openspec/changes/da-vinci-v2-1-workflow/specs/workflow/spec.md +50 -0
  73. package/openspec/changes/da-vinci-v2-1-workflow/specs/workflow/spec.zh-CN.md +50 -0
  74. package/openspec/changes/da-vinci-v2-1-workflow/tasks.md +31 -0
  75. package/openspec/changes/da-vinci-v2-1-workflow/tasks.zh-CN.md +31 -0
  76. package/openspec/config.yaml +11 -0
  77. package/package.json +6 -1
  78. package/references/checkpoints.md +4 -0
  79. package/references/platform-adapters.md +30 -1
  80. package/references/prompt-recipes.md +181 -0
  81. package/references/zh-CN/artifact-templates.md +163 -0
  82. package/references/zh-CN/checkpoints.md +123 -0
  83. package/references/zh-CN/design-inputs.md +66 -0
  84. package/references/zh-CN/modes.md +69 -0
  85. package/references/zh-CN/page-mapping.md +43 -0
  86. package/references/zh-CN/pencil-design-to-code.md +65 -0
  87. package/references/zh-CN/platform-adapters.md +73 -0
  88. package/references/zh-CN/prompt-recipes.md +161 -0
package/SKILL.zh-CN.md ADDED
@@ -0,0 +1,339 @@
1
+ ---
2
+ name: da-vinci
3
+ description: Da Vinci 工作流的中文配套说明。若与 `SKILL.md` 存在差异,以英文原文为准。
4
+ ---
5
+
6
+ # Da Vinci 工作流
7
+
8
+ > 中文配套文档。英文原文 `SKILL.md` 仍然是工作流的最终权威说明。
9
+
10
+ Da Vinci 是一个从需求到设计再到代码的交付工作流,用来把产品或页面需求转成结构化规格、Pencil `.pen` 设计、设计绑定、实现任务以及最终代码。
11
+
12
+ ## 核心契约
13
+
14
+ 固定遵守以下规则:
15
+
16
+ - Requirements 决定行为
17
+ - Pencil 决定呈现
18
+ - Tasks 决定实现顺序
19
+ - Code 必须同时遵循 requirements 和 Pencil 数据
20
+ - 当 requirements 和 Pencil 出现漂移时,先更新源工件,再继续实现
21
+
22
+ ## 执行策略
23
+
24
+ Da Vinci 默认是 `autonomous-by-default`:
25
+
26
+ - 不要在每一个步骤都停下来等待确认
27
+ - checkpoint 是内部执行护栏,不是审批点
28
+ - 只有真正的 blocker 才停下
29
+
30
+ 当用户说的是这些意图时,默认当成 `full-delivery`:
31
+
32
+ - 完成开发
33
+ - 实现生成好的设计
34
+ - 全局重做 UI
35
+ - 把整个项目做完
36
+
37
+ 这种情况下,不要在 `tasks.md` 停住。
38
+
39
+ ## 调用模型
40
+
41
+ 工作流名固定为 `da-vinci`。
42
+
43
+ - Codex 首选:`$da-vinci <request>`
44
+ - Claude / Gemini 首选:`/da-vinci <request>`
45
+
46
+ 同时提供三个入口辅助动作:
47
+
48
+ - Codex:`/prompts:dv-intake`、`/prompts:dv-prompt`、`/prompts:dv-continue`
49
+ - Claude / Gemini:`/dv:intake`、`/dv:prompt`、`/dv:continue`
50
+
51
+ 自然语言主入口仍然是默认路径。
52
+
53
+ ## 入口辅助动作
54
+
55
+ ### `intake`
56
+
57
+ 用于用户知道自己要做什么,但不知道怎么写第一条高质量 Da Vinci 提示词。
58
+
59
+ 它应该输出:
60
+
61
+ - 推荐 mode
62
+ - 推荐 delivery intent
63
+ - 一条主执行提示词
64
+ - 必要时的一条更保守提示词
65
+ - 一条后续 continue 提示词
66
+ - 会实质影响结果的缺失输入
67
+
68
+ 注意:
69
+
70
+ - `intake` 通常应该生成主工作流提示词
71
+ - 不应该默认把用户直接导向 `build`
72
+
73
+ ### `prompt`
74
+
75
+ 用于用户明确就是想让 Da Vinci 帮他生成场景化提示词。
76
+
77
+ 它应该:
78
+
79
+ - 生成可复制执行的提示词
80
+ - 明确 behavior source of truth
81
+ - 明确 design source of truth
82
+ - 明确 delivery intent
83
+ - 明确冲突时以谁为准
84
+
85
+ ### `continue`
86
+
87
+ 用于项目里已经存在 `DA-VINCI.md` 或 `.da-vinci/` 工件,工作流需要恢复推进。
88
+
89
+ 它应该:
90
+
91
+ - 先检查现有工件
92
+ - 判断当前停在哪个阶段
93
+ - 输出一条可直接继续的提示词
94
+ - 不要在工件已经足够时重新开始 discovery
95
+
96
+ ## Mode 选择
97
+
98
+ 支持四种模式:
99
+
100
+ 1. `greenfield-spec`
101
+ - 新项目
102
+ - 需求已经足够清晰
103
+
104
+ 2. `greenfield-brainstorm`
105
+ - 新项目
106
+ - 输入仍然发散,需要先收敛
107
+
108
+ 3. `redesign-from-code`
109
+ - 已有项目
110
+ - 代码是当前行为真相
111
+ - 目标是广泛或全局重设计
112
+
113
+ 4. `feature-change`
114
+ - 已有项目
115
+ - 目标是局部功能或页面修改
116
+
117
+ 如果用户没指定 mode:
118
+
119
+ - 新项目且需求清晰:`greenfield-spec`
120
+ - 新项目但想法发散:`greenfield-brainstorm`
121
+ - 现有项目全局 UI 替换:`redesign-from-code`
122
+ - 现有项目局部修改:`feature-change`
123
+
124
+ ## 设计输入收集
125
+
126
+ 在大范围生成 Pencil 页面前,先收集或推断:
127
+
128
+ 1. `DA-VINCI.md` 是否已存在
129
+ 2. 产品形态
130
+ - desktop software
131
+ - web app
132
+ - tablet
133
+ - mobile app
134
+ 3. 视觉方向
135
+ - tone
136
+ - density
137
+ - brand direction
138
+ - dark / light
139
+ 4. 设计限制
140
+ - 现有品牌
141
+ - 现有设计系统
142
+ - 响应式优先级
143
+ - 交付限制
144
+
145
+ 优先级:
146
+
147
+ 1. `DA-VINCI.md`
148
+ 2. 现有工作流工件
149
+ 3. 项目代码和本地信号
150
+ 4. 用户明确回答
151
+ 5. 简短澄清问题
152
+
153
+ ## 默认工作流
154
+
155
+ 标准顺序:
156
+
157
+ 1. 选择 mode
158
+ 2. 生成该 mode 所需的起始工件
159
+ 3. 检测或生成 `DA-VINCI.md`
160
+ 4. 收集设计输入并登记设计源
161
+ 5. 定义或发现页面地图
162
+ 6. 创建或更新 Pencil 设计
163
+ 7. 绑定实现页面到 Pencil 页面
164
+ 8. 通过 MCP 读取 Pencil 设计数据
165
+ 9. 生成实现任务
166
+ 10. 根据 requirements 和 Pencil 数据实现代码
167
+ 11. 在结束前检查需求漂移和设计漂移
168
+
169
+ 完成规则:
170
+
171
+ - 用户明确说 `plan-only` 时,只做到规划工件
172
+ - 用户明确说 `design-only` 时,只做到设计工件和绑定
173
+ - 其他情况默认 `full-delivery`
174
+
175
+ ## 按需加载参考文档
176
+
177
+ 只加载当前步骤需要的 reference:
178
+
179
+ - `references/modes.md`
180
+ - `references/artifact-templates.md`
181
+ - `references/checkpoints.md`
182
+ - `references/design-inputs.md`
183
+ - `references/page-mapping.md`
184
+ - `references/pencil-design-to-code.md`
185
+ - `references/platform-adapters.md`
186
+ - `references/prompt-recipes.md`
187
+
188
+ ## 默认工件
189
+
190
+ 默认工件集合:
191
+
192
+ 1. `.da-vinci/changes/<change-id>/brainstorm.md`
193
+ 2. `.da-vinci/project-inventory.md`
194
+ 3. `DA-VINCI.md`
195
+ 4. `.da-vinci/changes/<change-id>/design-brief.md`
196
+ 5. `.da-vinci/design-registry.md`
197
+ 6. `.da-vinci/page-map.md`
198
+ 7. `.da-vinci/changes/<change-id>/proposal.md`
199
+ 8. `.da-vinci/changes/<change-id>/specs/<capability>/spec.md`
200
+ 9. `.da-vinci/changes/<change-id>/design.md`
201
+ 10. `.da-vinci/changes/<change-id>/pencil-design.md`
202
+ 11. `.da-vinci/changes/<change-id>/pencil-bindings.md`
203
+ 12. `.da-vinci/changes/<change-id>/tasks.md`
204
+ 13. `.da-vinci/changes/<change-id>/verification.md`
205
+
206
+ ## 工件放置规则
207
+
208
+ - `DA-VINCI.md` 放项目根目录
209
+ - 项目级工件放 `.da-vinci/`
210
+ - 变更级工件放 `.da-vinci/changes/<change-id>/`
211
+
212
+ ## 各模式最低工件流
213
+
214
+ ### `greenfield-spec`
215
+
216
+ `DA-VINCI` -> `design-brief` -> `proposal` -> `specs` -> `page-map` -> `design-registry` -> `design` -> `pencil-design` -> `pencil-bindings` -> `tasks` -> `verification`
217
+
218
+ ### `greenfield-brainstorm`
219
+
220
+ `brainstorm` -> `DA-VINCI` -> `design-brief` -> `proposal` -> `specs` -> `page-map` -> `design-registry` -> `design` -> `pencil-design` -> `pencil-bindings` -> `tasks` -> `verification`
221
+
222
+ ### `redesign-from-code`
223
+
224
+ `project-inventory` -> `DA-VINCI` -> `design-registry` -> `proposal` -> `specs` -> `page-map` -> `design` -> `pencil-design` -> `pencil-bindings` -> `tasks` -> `verification`
225
+
226
+ 广泛重设计时,`specs/` 要按 redesign slice 拆分,不要只做一个巨大的 `ui-refresh/spec.md`。
227
+
228
+ ### `feature-change`
229
+
230
+ `proposal` -> `specs` -> 受影响的 `page-map` -> `DA-VINCI` -> `design-registry` -> `design` -> `pencil-design` delta -> `pencil-bindings` delta -> `tasks` -> `verification`
231
+
232
+ ## Requirement 拆解规则
233
+
234
+ 在设计或编码之前:
235
+
236
+ - 把请求拆成 pages、flows、states 和数据依赖
237
+ - 分清视觉问题、行为问题、集成问题
238
+ - 明确 must-have 和后续改进项
239
+ - 尽早标记高风险区域:auth、permission、upload、payment、admin、secret、migration
240
+
241
+ 对于 `redesign-from-code`:
242
+
243
+ - 先 inventory 现有 routes、pages、modules
244
+ - 区分保留的 behavior 和需要替换的 presentation
245
+ - 当一个 spec 太粗时,按 redesign slice 拆开
246
+
247
+ ## 设计源规则
248
+
249
+ - `design-registry.md` 是项目级 `.pen` 设计源清单
250
+ - `DA-VINCI.md` 是项目级视觉契约
251
+ - 已有绑定时,优先沿用并迭代现有 Pencil 源
252
+ - 现有代码存在但映射缺失时,先做 baseline reconstruction
253
+ - 既没有映射也没有设计源时,明确说明项目进入 baseline reconstruction
254
+
255
+ ## Pencil 规则
256
+
257
+ Pencil 是结构化设计源,不是静态截图源。
258
+
259
+ 创建或编辑 Pencil 设计时:
260
+
261
+ - 基于当前 scope 需要的页面来做
262
+ - 遵循 `page-map.md`
263
+ - 页面名、section 名、label 尽量和 spec 对齐
264
+ - 对实现有影响的 states 要显式建模
265
+ - 设计完成后做一次视觉检查,再视为可实现
266
+
267
+ ## Pencil MCP 规则
268
+
269
+ 当 Pencil 通过 MCP 可用时:
270
+
271
+ - 先读 active `.pen` 文件和目标页面结构
272
+ - 读取布局、文本、层级、按钮、面板和内容分区
273
+ - screenshot 只做次要视觉辅助
274
+
275
+ 当 Pencil 不可用时:
276
+
277
+ - 明确说明设计支撑路径缺失
278
+ - 退回 requirements-first 的实现方式
279
+
280
+ ## 实现规则
281
+
282
+ 编码时:
283
+
284
+ - requirements 决定行为、条件、状态和语义
285
+ - Pencil 决定布局、section 顺序、视觉分组和文案放置
286
+ - 使用 `pencil-bindings.md` 决定当前页面应跟随哪个 Pencil 页面
287
+ - 不要从设计外观中虚构新行为
288
+ - 也不要在写代码时忽略 Pencil 的结构
289
+
290
+ ## Checkpoints
291
+
292
+ 需要运行的 checkpoints:
293
+
294
+ 1. `discovery checkpoint`
295
+ 2. `spec checkpoint`
296
+ 3. `design checkpoint`
297
+ 4. `mapping checkpoint`
298
+ 5. `task checkpoint`
299
+ 6. `execution checkpoint`
300
+
301
+ 状态:
302
+
303
+ - `PASS`
304
+ - `WARN`
305
+ - `BLOCK`
306
+
307
+ 处理方式:
308
+
309
+ - `PASS`:自动继续
310
+ - `WARN`:记录问题并继续
311
+ - `BLOCK`:停止,报告 blocker,只有在无法从现有工件或本地上下文解决时才询问用户
312
+
313
+ ## 漂移策略
314
+
315
+ 以下都算 drift:
316
+
317
+ - requirements 改了,但 Pencil 没更新
318
+ - page map 变了,但 bindings 没更新
319
+ - design registry 变了,但下游绑定没更新
320
+ - Pencil 变了,但 tasks 没更新
321
+ - 代码行为超出批准范围
322
+ - 代码布局或内容结构明显偏离 Pencil 且没有记录原因
323
+
324
+ 发现 drift 时:
325
+
326
+ - 先更新源工件
327
+ - 再继续实现
328
+
329
+ ## 输出格式
330
+
331
+ 在完成有意义的工作后,报告:
332
+
333
+ 1. 改动了哪些文件
334
+ 2. 当前 active mode
335
+ 3. 当前 workflow state
336
+ 4. 下一步建议
337
+ 5. blockers 或 drift
338
+
339
+ 保持简洁、可执行、面向交付。
@@ -3,12 +3,15 @@ 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>`
10
10
 
11
11
  Available routes:
12
+ - `/dv:intake` - Turn a rough project situation into the best executable Da Vinci entry prompt.
13
+ - `/dv:prompt` - Generate scenario-specific Da Vinci prompts when the user wants prompt text directly.
14
+ - `/dv:continue` - Generate the best continuation prompt from existing Da Vinci artifacts.
12
15
  - `/dv:breakdown` - Break a product or page request into scope, flows, states, and requirements.
13
16
  - `/dv:design` - Plan or create Pencil-backed page designs from approved requirements.
14
17
  - `/dv:tasks` - Generate implementation tasks from requirements plus Pencil design coverage.
@@ -19,5 +22,6 @@ Notes:
19
22
  - Requirements decide behavior.
20
23
  - Pencil decides presentation.
21
24
  - Code must follow both.
22
- - Use `references/platform-adapters.md` for shared invocation rules.
23
- - Use `references/checkpoints.md` when running workflow checkpoints.
25
+ - Use `intake` when the user needs help phrasing the first workflow request.
26
+ - Use `continue` when `.da-vinci/` artifacts already exist and the workflow must resume.
27
+ - 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
 
@@ -0,0 +1,24 @@
1
+ ---
2
+ description: Generate the best continuation prompt from existing Da Vinci artifacts.
3
+ ---
4
+ # Da Vinci Continue
5
+
6
+ Use the Da Vinci workflow for this request.
7
+
8
+ Action: `continue`
9
+
10
+ Focus on:
11
+ - inspect existing workflow artifacts first
12
+ - detect the current workflow phase
13
+ - generate the best executable continuation prompt
14
+
15
+ Output should include:
16
+ - detected workflow state
17
+ - missing or weak artifacts
18
+ - one primary `/da-vinci continue ...` prompt
19
+ - one more conservative continuation prompt when useful
20
+
21
+ Route discipline:
22
+ - do not restart discovery if the current artifacts already contain enough truth
23
+ - do not default the user into `/dv:build` unless the project is clearly implementation-ready
24
+ - continuation prompts should usually target the main workflow entry so Da Vinci can resume the full state machine
@@ -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
 
@@ -0,0 +1,26 @@
1
+ ---
2
+ description: Turn a rough project situation into the best executable Da Vinci entry prompt.
3
+ ---
4
+ # Da Vinci Intake
5
+
6
+ Use the Da Vinci workflow for this request.
7
+
8
+ Action: `intake`
9
+
10
+ Focus on:
11
+ - understand the project starting point
12
+ - choose the correct workflow mode
13
+ - identify behavior truth, design truth, and delivery intent
14
+ - generate the best executable Da Vinci prompt for the next step
15
+
16
+ Output should include:
17
+ - recommended mode
18
+ - recommended delivery intent
19
+ - one primary executable `/da-vinci ...` prompt
20
+ - one more conservative prompt when useful
21
+ - one follow-up `/da-vinci continue ...` prompt when the workflow is likely to pause
22
+ - missing inputs that would materially change the result
23
+
24
+ Route discipline:
25
+ - do not default the user into `/dv:build`
26
+ - `intake` should usually produce a main workflow prompt, not a build-only prompt
@@ -0,0 +1,24 @@
1
+ ---
2
+ description: Generate scenario-specific Da Vinci prompts for a known workflow need.
3
+ ---
4
+ # Da Vinci Prompt
5
+
6
+ Use the Da Vinci workflow for this request.
7
+
8
+ Action: `prompt`
9
+
10
+ Focus on:
11
+ - generate copy-ready prompts for a known scenario
12
+ - keep the prompt operational and specific to the stated project reality
13
+
14
+ Output should include:
15
+ - one primary executable prompt
16
+ - one more conservative prompt when useful
17
+ - one continuation prompt when the scenario is likely to need a later resume step
18
+
19
+ Prompt quality rules:
20
+ - state behavior truth
21
+ - state design reference truth
22
+ - state delivery intent
23
+ - state conflict handling rules
24
+ - make state, subpage, dialog, and overlay coverage explicit when complexity is high
@@ -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
 
@@ -10,6 +10,9 @@ Codex usage model:
10
10
  - Explicit routing: `/prompts:da-vinci` and `/prompts:dv-*`
11
11
 
12
12
  Available routes:
13
+ - `/prompts:dv-intake` - Turn a rough project situation into the best executable Da Vinci entry prompt.
14
+ - `/prompts:dv-prompt` - Generate scenario-specific Da Vinci prompts when the user wants prompt text directly.
15
+ - `/prompts:dv-continue` - Generate the best continuation prompt from existing Da Vinci artifacts.
13
16
  - `/prompts:dv-breakdown` - Break a request into requirements, pages, flows, and states.
14
17
  - `/prompts:dv-design` - Plan or create Pencil-backed designs from approved requirements.
15
18
  - `/prompts:dv-tasks` - Generate implementation tasks from requirements plus Pencil.
@@ -18,6 +21,8 @@ Available routes:
18
21
 
19
22
  Important:
20
23
  - Treat `/prompts:*` as action selectors in Codex.
24
+ - Use `intake` when the user does not know how to phrase the first request.
25
+ - Use `continue` when `.da-vinci/` artifacts already exist and the workflow must resume.
21
26
  - If details are still needed after route selection, provide them in the next message.
22
27
  - Requirements decide behavior.
23
28
  - Pencil decides presentation.
@@ -0,0 +1,24 @@
1
+ ---
2
+ description: Da Vinci continuation route for Codex.
3
+ ---
4
+ # Da Vinci Continue
5
+
6
+ Use the `da-vinci` skill for this request.
7
+
8
+ Action: `continue`
9
+
10
+ Goal:
11
+ - inspect existing workflow artifacts first
12
+ - detect the current workflow phase
13
+ - generate the best executable continuation prompt
14
+
15
+ Output should include:
16
+ - detected workflow state
17
+ - missing or weak artifacts
18
+ - one primary `$da-vinci continue ...` prompt
19
+ - one more conservative continuation prompt when useful
20
+
21
+ Route discipline:
22
+ - do not restart discovery if the current artifacts already contain enough truth
23
+ - do not default the user into `/prompts:dv-build` unless the project is clearly implementation-ready
24
+ - continuation prompts should usually target the main workflow entry so Da Vinci can resume the full state machine
@@ -0,0 +1,27 @@
1
+ ---
2
+ description: Da Vinci intake route for Codex.
3
+ ---
4
+ # Da Vinci Intake
5
+
6
+ Use the `da-vinci` skill for this request.
7
+
8
+ Action: `intake`
9
+
10
+ Goal:
11
+ - understand the project starting point
12
+ - choose the correct workflow mode
13
+ - identify behavior truth, design truth, and delivery intent
14
+ - generate the best executable Da Vinci prompt for the next step
15
+
16
+ Output should include:
17
+ - recommended mode
18
+ - recommended delivery intent: `plan-only`, `design-only`, or `full-delivery`
19
+ - one primary executable `$da-vinci ...` prompt
20
+ - one more conservative prompt when useful
21
+ - one follow-up `$da-vinci continue ...` prompt when the workflow is likely to pause
22
+ - missing inputs that would materially change the result
23
+
24
+ Route discipline:
25
+ - do not default the user into `/prompts:dv-build`
26
+ - `intake` should usually produce a main workflow prompt, not a build-only prompt
27
+ - prefer `redesign-from-code` or `feature-change` when the request starts from an existing project
@@ -0,0 +1,24 @@
1
+ ---
2
+ description: Da Vinci prompt-builder route for Codex.
3
+ ---
4
+ # Da Vinci Prompt
5
+
6
+ Use the `da-vinci` skill for this request.
7
+
8
+ Action: `prompt`
9
+
10
+ Goal:
11
+ - generate copy-ready Da Vinci prompts for a known scenario
12
+ - keep the prompt operational and specific to the stated project reality
13
+
14
+ Output should include:
15
+ - one primary executable prompt
16
+ - one more conservative prompt when useful
17
+ - one continuation prompt when the scenario is likely to need a later resume step
18
+
19
+ Prompt quality rules:
20
+ - state the behavior source of truth
21
+ - state the design reference source
22
+ - state the desired delivery intent
23
+ - state how conflicts should be resolved
24
+ - make state, subpage, and overlay coverage explicit when the project is complex
@@ -5,12 +5,15 @@ 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>`
12
12
 
13
13
  Available routes:
14
+ - `/dv:intake` - Turn a rough project situation into the best executable Da Vinci entry prompt.
15
+ - `/dv:prompt` - Generate scenario-specific Da Vinci prompts when the user wants prompt text directly.
16
+ - `/dv:continue` - Generate the best continuation prompt from existing Da Vinci artifacts.
14
17
  - `/dv:breakdown` - Break a product or page request into scope, flows, states, and requirements.
15
18
  - `/dv:design` - Plan or create Pencil-backed page designs from approved requirements.
16
19
  - `/dv:tasks` - Generate implementation tasks from requirements plus Pencil design coverage.
@@ -21,6 +24,8 @@ Notes:
21
24
  - Requirements decide behavior.
22
25
  - Pencil decides presentation.
23
26
  - Code must follow both.
27
+ - Use `intake` when the user needs help phrasing the first workflow request.
28
+ - Use `continue` when `.da-vinci/` artifacts already exist and the workflow must resume.
24
29
  - Keep workflow semantics shared across Claude, Codex, and Gemini.
25
30
 
26
31
  """
@@ -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
 
@@ -0,0 +1,24 @@
1
+ description = "Generate the best continuation prompt from existing Da Vinci artifacts."
2
+ prompt = """
3
+ # Da Vinci Continue
4
+
5
+ Use the Da Vinci workflow for this request.
6
+
7
+ Action: `continue`
8
+
9
+ Focus on:
10
+ - inspect existing workflow artifacts first
11
+ - detect the current workflow phase
12
+ - generate the best executable continuation prompt
13
+
14
+ Output should include:
15
+ - detected workflow state
16
+ - missing or weak artifacts
17
+ - one primary `/da-vinci continue ...` prompt
18
+ - one more conservative continuation prompt when useful
19
+
20
+ Route discipline:
21
+ - do not restart discovery if the current artifacts already contain enough truth
22
+ - do not default the user into `/dv:build` unless the project is clearly implementation-ready
23
+ - continuation prompts should usually target the main workflow entry so Da Vinci can resume the full state machine
24
+ """
@@ -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