@anvpx/motion 0.0.0-stage → 0.1.0

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 (225) hide show
  1. package/CATALOG.md +301 -0
  2. package/LICENSE +21 -0
  3. package/README.md +93 -2
  4. package/assets.json +37 -0
  5. package/dist/index.d.ts +1 -0
  6. package/dist/index.js +1 -0
  7. package/dist/main.d.ts +2 -0
  8. package/dist/main.js +46 -0
  9. package/icons/LICENSE-lucide +43 -0
  10. package/icons/icons.json +2711 -0
  11. package/icons/licences.json +1521 -0
  12. package/luts/LICENSE-CC0.txt +20 -0
  13. package/luts/cool.cube +520 -0
  14. package/luts/noir.cube +520 -0
  15. package/luts/warm.cube +520 -0
  16. package/music/LICENSE-CC0.txt +32 -0
  17. package/music/bed-full.wav +0 -0
  18. package/music/bed.wav +0 -0
  19. package/package.json +69 -3
  20. package/packs/INDEX.md +22 -0
  21. package/packs/painted/checklist.md +30 -0
  22. package/packs/painted/examples/dry-ink/storyboard.json +88 -0
  23. package/packs/painted/examples/oil/storyboard.json +89 -0
  24. package/packs/painted/examples/shape-carry/storyboard.json +112 -0
  25. package/packs/painted/examples/stacked-beat/storyboard.json +106 -0
  26. package/packs/painted/examples/staged-read/storyboard.json +105 -0
  27. package/packs/painted/examples/watercolour/storyboard.json +79 -0
  28. package/packs/painted/look.md +71 -0
  29. package/packs/painted/pack.json +46 -0
  30. package/packs/painted/review.md +12 -0
  31. package/packs/painted/voice.md +30 -0
  32. package/plugins/motion-kit/.claude-plugin/plugin.json +5 -0
  33. package/plugins/motion-kit/README.md +31 -0
  34. package/plugins/motion-kit/commands/mk-draft.md +13 -0
  35. package/plugins/motion-kit/commands/mk-new.md +15 -0
  36. package/plugins/motion-kit/commands/mk-render.md +14 -0
  37. package/plugins/motion-kit/skills/motion-kit/SKILL.md +77 -0
  38. package/plugins/motion-kit/skills/motion-kit/references/authoring-scene.md +37 -0
  39. package/plugins/motion-kit/skills/motion-kit/references/authoring-style.md +17 -0
  40. package/plugins/motion-kit/skills/motion-kit/references/common-mistakes.md +73 -0
  41. package/plugins/motion-kit/skills/motion-kit/references/content-pack.md +81 -0
  42. package/plugins/motion-kit/skills/motion-kit/references/faux-ui.md +39 -0
  43. package/plugins/motion-kit/skills/motion-kit/references/free-storyboard.md +15 -0
  44. package/plugins/motion-kit/skills/motion-kit/references/intake.md +18 -0
  45. package/plugins/motion-kit/skills/motion-kit/references/knowledge-routing.md +32 -0
  46. package/plugins/motion-kit/skills/motion-kit/references/outline.md +24 -0
  47. package/plugins/motion-kit/skills/motion-kit/references/patching.md +50 -0
  48. package/plugins/motion-kit/skills/motion-kit/references/patterns.md +55 -0
  49. package/plugins/motion-kit/skills/motion-kit/references/quality-bar.md +61 -0
  50. package/plugins/motion-kit/skills/motion-kit/references/review.md +8 -0
  51. package/plugins/motion-kit/skills/motion-kit/references/scene-recipes.md +300 -0
  52. package/plugins/motion-kit/skills/motion-kit/references/setup.md +16 -0
  53. package/plugins/motion-kit/skills/motion-kit/references/slop.md +38 -0
  54. package/plugins/motion-kit/skills/motion-kit/references/storyboard-json.md +121 -0
  55. package/plugins/motion-kit/skills/motion-kit/references/troubleshooting.md +55 -0
  56. package/plugins/motion-kit/skills/motion-kit/references/voice.md +40 -0
  57. package/plugins/motion-kit/skills/motion-kit/references/worked-example.md +170 -0
  58. package/shared/themes/README.md +5 -0
  59. package/shared/themes/bold-dark.json +362 -0
  60. package/shared/themes/bold-light.json +362 -0
  61. package/shared/themes/calm-dark.json +362 -0
  62. package/shared/themes/calm-light.json +362 -0
  63. package/shared/themes/data-dark.json +360 -0
  64. package/shared/themes/data-light.json +360 -0
  65. package/shared/themes/editorial-dark.json +353 -0
  66. package/shared/themes/editorial-light.json +353 -0
  67. package/shared/themes/fjord-dark.json +124 -0
  68. package/shared/themes/fjord-light.json +124 -0
  69. package/shared/themes/playful-dark.json +362 -0
  70. package/shared/themes/playful-light.json +362 -0
  71. package/shared/themes/pop-dark.json +352 -0
  72. package/shared/themes/pop-light.json +352 -0
  73. package/shared/themes/tech-dark.json +360 -0
  74. package/shared/themes/tech-light.json +360 -0
  75. package/shared/themes/warm-dark.json +368 -0
  76. package/shared/themes/warm-light.json +368 -0
  77. package/skills/motion-kit/SKILL.md +77 -0
  78. package/skills/motion-kit/references/authoring-scene.md +37 -0
  79. package/skills/motion-kit/references/authoring-style.md +17 -0
  80. package/skills/motion-kit/references/common-mistakes.md +73 -0
  81. package/skills/motion-kit/references/content-pack.md +81 -0
  82. package/skills/motion-kit/references/faux-ui.md +39 -0
  83. package/skills/motion-kit/references/free-storyboard.md +15 -0
  84. package/skills/motion-kit/references/intake.md +18 -0
  85. package/skills/motion-kit/references/knowledge-routing.md +32 -0
  86. package/skills/motion-kit/references/outline.md +24 -0
  87. package/skills/motion-kit/references/patching.md +50 -0
  88. package/skills/motion-kit/references/patterns.md +55 -0
  89. package/skills/motion-kit/references/quality-bar.md +61 -0
  90. package/skills/motion-kit/references/review.md +8 -0
  91. package/skills/motion-kit/references/scene-recipes.md +300 -0
  92. package/skills/motion-kit/references/setup.md +16 -0
  93. package/skills/motion-kit/references/slop.md +38 -0
  94. package/skills/motion-kit/references/storyboard-json.md +121 -0
  95. package/skills/motion-kit/references/troubleshooting.md +55 -0
  96. package/skills/motion-kit/references/voice.md +40 -0
  97. package/skills/motion-kit/references/worked-example.md +170 -0
  98. package/stopwords.json +65 -0
  99. package/templates/compare/blueprints/versus.json +79 -0
  100. package/templates/compare/copy.md +18 -0
  101. package/templates/compare/pacing.json +15 -0
  102. package/templates/compare/previews/versus.png +0 -0
  103. package/templates/compare/styles/editorial.json +6 -0
  104. package/templates/compare/styles/punchy.json +6 -0
  105. package/templates/compare/styles/tidy.json +6 -0
  106. package/templates/compare/template.json +52 -0
  107. package/templates/datastory/blueprints/data-story.json +95 -0
  108. package/templates/datastory/blueprints/infographic.json +106 -0
  109. package/templates/datastory/blueprints/trend.json +93 -0
  110. package/templates/datastory/copy.md +16 -0
  111. package/templates/datastory/pacing.json +17 -0
  112. package/templates/datastory/previews/data-story.png +0 -0
  113. package/templates/datastory/previews/infographic.png +0 -0
  114. package/templates/datastory/previews/trend.png +0 -0
  115. package/templates/datastory/styles/clear.json +6 -0
  116. package/templates/datastory/styles/editorial.json +6 -0
  117. package/templates/datastory/styles/pop.json +7 -0
  118. package/templates/datastory/template.json +57 -0
  119. package/templates/event/blueprints/promo.json +71 -0
  120. package/templates/event/blueprints/save-the-date.json +61 -0
  121. package/templates/event/copy.md +16 -0
  122. package/templates/event/pacing.json +15 -0
  123. package/templates/event/previews/promo.png +0 -0
  124. package/templates/event/previews/save-the-date.png +0 -0
  125. package/templates/event/styles/bright.json +6 -0
  126. package/templates/event/styles/pop.json +6 -0
  127. package/templates/event/template.json +37 -0
  128. package/templates/explain/blueprints/architecture.json +76 -0
  129. package/templates/explain/blueprints/concept.json +89 -0
  130. package/templates/explain/blueprints/howto.json +56 -0
  131. package/templates/explain/blueprints/overview.json +126 -0
  132. package/templates/explain/copy.md +19 -0
  133. package/templates/explain/pacing.json +19 -0
  134. package/templates/explain/previews/architecture.png +0 -0
  135. package/templates/explain/previews/concept.png +0 -0
  136. package/templates/explain/previews/howto.png +0 -0
  137. package/templates/explain/previews/overview.png +0 -0
  138. package/templates/explain/styles/calm.json +6 -0
  139. package/templates/explain/styles/crisp.json +6 -0
  140. package/templates/explain/template.json +64 -0
  141. package/templates/guide/blueprints/lesson.json +173 -0
  142. package/templates/guide/blueprints/onboarding.json +80 -0
  143. package/templates/guide/blueprints/tutorial.json +102 -0
  144. package/templates/guide/copy.md +17 -0
  145. package/templates/guide/pacing.json +59 -0
  146. package/templates/guide/previews/lesson.png +0 -0
  147. package/templates/guide/previews/onboarding.png +0 -0
  148. package/templates/guide/previews/tutorial.png +0 -0
  149. package/templates/guide/styles/calm.json +15 -0
  150. package/templates/guide/styles/friendly.json +15 -0
  151. package/templates/guide/styles/techdark.json +15 -0
  152. package/templates/guide/template.json +95 -0
  153. package/templates/pitch/blueprints/feature.json +134 -0
  154. package/templates/pitch/blueprints/launch.json +173 -0
  155. package/templates/pitch/blueprints/pricing.json +141 -0
  156. package/templates/pitch/copy.md +18 -0
  157. package/templates/pitch/pacing.json +59 -0
  158. package/templates/pitch/previews/feature.png +0 -0
  159. package/templates/pitch/previews/launch.png +0 -0
  160. package/templates/pitch/previews/pricing.png +0 -0
  161. package/templates/pitch/styles/polished.json +6 -0
  162. package/templates/pitch/styles/punchy.json +6 -0
  163. package/templates/pitch/styles/teaser.json +12 -0
  164. package/templates/pitch/template.json +45 -0
  165. package/templates/recap/blueprints/news-recap.json +62 -0
  166. package/templates/recap/blueprints/timeline-story.json +94 -0
  167. package/templates/recap/copy.md +16 -0
  168. package/templates/recap/pacing.json +16 -0
  169. package/templates/recap/previews/news-recap.png +0 -0
  170. package/templates/recap/previews/timeline-story.png +0 -0
  171. package/templates/recap/styles/editorial.json +6 -0
  172. package/templates/recap/styles/editorialdark.json +6 -0
  173. package/templates/recap/template.json +50 -0
  174. package/templates/report/blueprints/kpi-review.json +116 -0
  175. package/templates/report/blueprints/status.json +78 -0
  176. package/templates/report/copy.md +17 -0
  177. package/templates/report/pacing.json +16 -0
  178. package/templates/report/previews/kpi-review.png +0 -0
  179. package/templates/report/previews/status.png +0 -0
  180. package/templates/report/styles/exec.json +6 -0
  181. package/templates/report/styles/memo.json +6 -0
  182. package/templates/report/styles/walkthrough.json +6 -0
  183. package/templates/report/template.json +56 -0
  184. package/templates/social/blueprints/announce.json +109 -0
  185. package/templates/social/blueprints/listicle.json +117 -0
  186. package/templates/social/blueprints/tip.json +114 -0
  187. package/templates/social/copy.md +18 -0
  188. package/templates/social/pacing.json +49 -0
  189. package/templates/social/previews/announce.png +0 -0
  190. package/templates/social/previews/listicle.png +0 -0
  191. package/templates/social/previews/tip.png +0 -0
  192. package/templates/social/styles/captioned.json +18 -0
  193. package/templates/social/styles/hook-first.json +15 -0
  194. package/templates/social/styles/techcut.json +15 -0
  195. package/templates/social/template.json +94 -0
  196. package/templates/update/blueprints/announcement.json +57 -0
  197. package/templates/update/blueprints/changelog.json +157 -0
  198. package/templates/update/blueprints/release-notes.json +151 -0
  199. package/templates/update/blueprints/weekly-update.json +88 -0
  200. package/templates/update/copy.md +17 -0
  201. package/templates/update/pacing.json +64 -0
  202. package/templates/update/previews/announcement.png +0 -0
  203. package/templates/update/previews/changelog.png +0 -0
  204. package/templates/update/previews/release-notes.png +0 -0
  205. package/templates/update/previews/weekly-update.png +0 -0
  206. package/templates/update/styles/punchy.json +15 -0
  207. package/templates/update/styles/techdark.json +6 -0
  208. package/templates/update/styles/tidy.json +6 -0
  209. package/templates/update/template.json +67 -0
  210. package/templates/vista/blueprints/spotlight.json +68 -0
  211. package/templates/vista/blueprints/tour.json +84 -0
  212. package/templates/vista/copy.md +18 -0
  213. package/templates/vista/pacing.json +14 -0
  214. package/templates/vista/previews/spotlight.png +0 -0
  215. package/templates/vista/previews/tour.png +0 -0
  216. package/templates/vista/styles/bright.json +6 -0
  217. package/templates/vista/styles/cinematic.json +6 -0
  218. package/templates/vista/template.json +42 -0
  219. package/templates/walkthrough/blueprints/product-tour.json +107 -0
  220. package/templates/walkthrough/copy.md +16 -0
  221. package/templates/walkthrough/pacing.json +16 -0
  222. package/templates/walkthrough/previews/product-tour.png +0 -0
  223. package/templates/walkthrough/styles/calm.json +6 -0
  224. package/templates/walkthrough/styles/deep.json +6 -0
  225. package/templates/walkthrough/template.json +37 -0
@@ -0,0 +1,368 @@
1
+ {
2
+ "$description": "warm: cream and terracotta with serif headings and static film grain (light), DTCG format",
3
+ "color": {
4
+ "$type": "color",
5
+ "bg": {
6
+ "$value": "#fbf3e6"
7
+ },
8
+ "bgEnd": {
9
+ "$value": "#f2e3ca"
10
+ },
11
+ "glow": {
12
+ "$value": "#f4dcbd"
13
+ },
14
+ "glow2": {
15
+ "$value": "#f1e4c4"
16
+ },
17
+ "surface": {
18
+ "$value": "#f6ebd8"
19
+ },
20
+ "card": {
21
+ "$value": "#fffaf1"
22
+ },
23
+ "divider": {
24
+ "$value": "#dcc6a5"
25
+ },
26
+ "accentSoft": {
27
+ "$value": "#f6dcc9"
28
+ },
29
+ "fg": {
30
+ "$value": "#2b1a12"
31
+ },
32
+ "muted": {
33
+ "$value": "#664f40"
34
+ },
35
+ "accent": {
36
+ "$value": "#963a14"
37
+ },
38
+ "accent2": {
39
+ "$value": "#566530"
40
+ },
41
+ "onAccent": {
42
+ "$value": "#ffffff"
43
+ },
44
+ "onAccent2": {
45
+ "$value": "#ffffff"
46
+ },
47
+ "deep": {
48
+ "$value": "#5a2a16"
49
+ },
50
+ "deepEnd": {
51
+ "$value": "#3a190c"
52
+ },
53
+ "onDeep": {
54
+ "$value": "#fff7ea"
55
+ },
56
+ "onDeepMuted": {
57
+ "$value": "#ecd2ba"
58
+ }
59
+ },
60
+ "chart": {
61
+ "1": {
62
+ "$value": "#963a14"
63
+ },
64
+ "2": {
65
+ "$value": "#566530"
66
+ },
67
+ "3": {
68
+ "$value": "#2f5f7a"
69
+ },
70
+ "4": {
71
+ "$value": "#8a5a00"
72
+ },
73
+ "5": {
74
+ "$value": "#7a3a5a"
75
+ },
76
+ "6": {
77
+ "$value": "#2a7a6a"
78
+ },
79
+ "7": {
80
+ "$value": "#b4263a"
81
+ },
82
+ "8": {
83
+ "$value": "#5a4a3e"
84
+ },
85
+ "$type": "color"
86
+ },
87
+ "font": {
88
+ "$type": "fontFamily",
89
+ "sans": {
90
+ "$value": ["Inter", "system-ui", "sans-serif"]
91
+ },
92
+ "display": {
93
+ "$value": ["Source Serif 4", "Georgia", "serif"]
94
+ },
95
+ "mono": {
96
+ "$value": ["ui-monospace", "SFMono-Regular", "Menlo", "Consolas", "monospace"]
97
+ }
98
+ },
99
+ "fontSize": {
100
+ "$type": "dimension",
101
+ "sm": {
102
+ "$value": "28px"
103
+ },
104
+ "md": {
105
+ "$value": "32px"
106
+ },
107
+ "lg": {
108
+ "$value": "50px"
109
+ },
110
+ "xl": {
111
+ "$value": "76px"
112
+ },
113
+ "title": {
114
+ "$value": "104px"
115
+ },
116
+ "display": {
117
+ "$value": "136px"
118
+ },
119
+ "heroSm": {
120
+ "$value": "168px"
121
+ },
122
+ "heroMd": {
123
+ "$value": "248px"
124
+ },
125
+ "hero": {
126
+ "$value": "364px"
127
+ }
128
+ },
129
+ "spacing": {
130
+ "$type": "dimension",
131
+ "xs": {
132
+ "$value": "4px"
133
+ },
134
+ "sm": {
135
+ "$value": "8px"
136
+ },
137
+ "md": {
138
+ "$value": "16px"
139
+ },
140
+ "lg": {
141
+ "$value": "32px"
142
+ },
143
+ "xl": {
144
+ "$value": "64px"
145
+ },
146
+ "xxl": {
147
+ "$value": "100px"
148
+ }
149
+ },
150
+ "radius": {
151
+ "$type": "dimension",
152
+ "sm": {
153
+ "$value": "6px"
154
+ },
155
+ "md": {
156
+ "$value": "12px"
157
+ },
158
+ "lg": {
159
+ "$value": "20px"
160
+ },
161
+ "xl": {
162
+ "$value": "32px"
163
+ },
164
+ "full": {
165
+ "$value": "9999px"
166
+ }
167
+ },
168
+ "opacity": {
169
+ "$type": "number",
170
+ "subtle": {
171
+ "$value": 0.7
172
+ },
173
+ "medium": {
174
+ "$value": 0.85
175
+ },
176
+ "full": {
177
+ "$value": 1
178
+ }
179
+ },
180
+ "duration": {
181
+ "$type": "duration",
182
+ "fast": {
183
+ "$value": "300ms"
184
+ },
185
+ "base": {
186
+ "$value": "600ms"
187
+ },
188
+ "slow": {
189
+ "$value": "1200ms"
190
+ }
191
+ },
192
+ "status": {
193
+ "$type": "color",
194
+ "good": {
195
+ "$value": "#17803f"
196
+ },
197
+ "warn": {
198
+ "$value": "#a45a00"
199
+ },
200
+ "bad": {
201
+ "$value": "#b4232f"
202
+ }
203
+ },
204
+ "stroke": {
205
+ "$type": "dimension",
206
+ "card": {
207
+ "$value": "0px"
208
+ },
209
+ "icon": {
210
+ "$value": "1.75px"
211
+ }
212
+ },
213
+ "numeric": {
214
+ "mode": {
215
+ "$type": "string",
216
+ "$value": "proportional"
217
+ }
218
+ },
219
+ "shadow": {
220
+ "mode": {
221
+ "$type": "string",
222
+ "$value": "soft"
223
+ },
224
+ "color": {
225
+ "$type": "color",
226
+ "$value": "#2b1a12"
227
+ }
228
+ },
229
+ "grain": {
230
+ "opacity": {
231
+ "$type": "number",
232
+ "$value": 0.06
233
+ }
234
+ },
235
+ "$extensions": {
236
+ "motion-kit": {
237
+ "family": "warm",
238
+ "mode": "light",
239
+ "pair": "warm-dark",
240
+ "textPairs": [
241
+ {
242
+ "fg": "fg",
243
+ "bg": "bg"
244
+ },
245
+ {
246
+ "fg": "fg",
247
+ "bg": "bgEnd"
248
+ },
249
+ {
250
+ "fg": "fg",
251
+ "bg": "glow"
252
+ },
253
+ {
254
+ "fg": "fg",
255
+ "bg": "glow2"
256
+ },
257
+ {
258
+ "fg": "fg",
259
+ "bg": "surface"
260
+ },
261
+ {
262
+ "fg": "fg",
263
+ "bg": "card"
264
+ },
265
+ {
266
+ "fg": "fg",
267
+ "bg": "accentSoft"
268
+ },
269
+ {
270
+ "fg": "muted",
271
+ "bg": "bg"
272
+ },
273
+ {
274
+ "fg": "muted",
275
+ "bg": "bgEnd"
276
+ },
277
+ {
278
+ "fg": "muted",
279
+ "bg": "glow"
280
+ },
281
+ {
282
+ "fg": "muted",
283
+ "bg": "glow2"
284
+ },
285
+ {
286
+ "fg": "muted",
287
+ "bg": "surface"
288
+ },
289
+ {
290
+ "fg": "muted",
291
+ "bg": "card"
292
+ },
293
+ {
294
+ "fg": "muted",
295
+ "bg": "accentSoft"
296
+ },
297
+ {
298
+ "fg": "accent",
299
+ "bg": "bg"
300
+ },
301
+ {
302
+ "fg": "accent",
303
+ "bg": "bgEnd"
304
+ },
305
+ {
306
+ "fg": "accent",
307
+ "bg": "glow"
308
+ },
309
+ {
310
+ "fg": "accent",
311
+ "bg": "glow2"
312
+ },
313
+ {
314
+ "fg": "accent",
315
+ "bg": "surface"
316
+ },
317
+ {
318
+ "fg": "accent",
319
+ "bg": "card"
320
+ },
321
+ {
322
+ "fg": "accent",
323
+ "bg": "accentSoft"
324
+ },
325
+ {
326
+ "fg": "accent2",
327
+ "bg": "bg"
328
+ },
329
+ {
330
+ "fg": "accent2",
331
+ "bg": "bgEnd"
332
+ },
333
+ {
334
+ "fg": "accent2",
335
+ "bg": "surface"
336
+ },
337
+ {
338
+ "fg": "accent2",
339
+ "bg": "card"
340
+ },
341
+ {
342
+ "fg": "onAccent",
343
+ "bg": "accent"
344
+ },
345
+ {
346
+ "fg": "onAccent2",
347
+ "bg": "accent2"
348
+ },
349
+ {
350
+ "fg": "onDeep",
351
+ "bg": "deep"
352
+ },
353
+ {
354
+ "fg": "onDeep",
355
+ "bg": "deepEnd"
356
+ },
357
+ {
358
+ "fg": "onDeepMuted",
359
+ "bg": "deep"
360
+ },
361
+ {
362
+ "fg": "onDeepMuted",
363
+ "bg": "deepEnd"
364
+ }
365
+ ]
366
+ }
367
+ }
368
+ }
@@ -0,0 +1,77 @@
1
+ ---
2
+ name: motion-kit
3
+ description: Design, preview and render a professional animated video, explainer, infographic, product demo, data story or social clip from a brief or source material. Use whenever the user asks for a video, motion graphic, animated diagram, social clip, still deck or storyboard, or wants content turned into something watchable, even if they do not say "video". Shows a short preview and renders only after an explicit yes. Not for changing motion-kit's own code, tests or docs.
4
+ allowed-tools: Bash(mk:*) Bash(npx:*) Read Write
5
+ ---
6
+
7
+ # motion-kit: brief -> preview -> approved video
8
+
9
+ `mk` = `npx -y @anvpx/motion@0.1.0`; alias it once per shell, or use the npx prefix in its place. The user describes the outcome; you author one storyboard JSON, show a short preview, and render only after an explicit yes.
10
+
11
+ ## Start here
12
+
13
+ 1. `mk doctor` once; optional voice rows may be missing, required rows are not.
14
+ 2. Ask <=3 questions (audience, length, must-have); default the rest (`references/intake.md`).
15
+ 3. `brief.md`: <= 8 facts, every number sourced, then the content pack (`references/content-pack.md`); send a <= 200-word outline and wait for "go" (`references/outline.md`).
16
+ 4. Pick a route (below), instantiate, then `mk validate` until 0 errors. If `meta.theme` is not built-in (`default`, `dark`, `tech-dark`, `calm-dark`) and `themes/<name>.json` is absent, preview before calling this done. Storyboard-only request: stop here.
17
+ 5. `mk preview`; open the printed `pack .../contact.png`; ask. On yes only: `mk approve ...`, then `mk render ... --gated --verify`.
18
+
19
+ ## Read when
20
+
21
+ | File | Read when |
22
+ | --------------------------------- | -------------------------------------------------------------- |
23
+ | `references/worked-example.md` | first build; the complete loop and output shapes |
24
+ | `references/free-storyboard.md` | direct route: shape and write the board |
25
+ | `references/storyboard-json.md` | field shapes, overlays, assets, or decoding a validation error |
26
+ | `references/scene-recipes.md` | choose a type for a beat and copy its prop shape |
27
+ | `references/patching.md` | any edit after the first write, or a patch flag refusal |
28
+ | `references/quality-bar.md` | judging the preview and what to say before asking |
29
+ | `references/common-mistakes.md` | a command refuses, or a flag or field is in doubt |
30
+
31
+ ## Rules
32
+
33
+ 1. Never render without the user's explicit yes. Silence or "looks fine" is not a yes. Always pass `--gated`; exit 4 means "ask", not "error".
34
+ 2. Show `contact.png` to the user (open it or give the path), give the `clip.mp4` path, and say what is not previewed. Derive it from `preview.json`: `totalSec`, `clip.sec`, and scenes with no still.
35
+ 3. Commands are the authority, not memory: `mk catalog` and `mk catalog <type>` for scenes and props, `mk template list` and `mk template show` for templates, `mk <command> --help` for flags. Never invent a type, prop, flag, theme, duration or number.
36
+ 4. After the first write, use `mk patch`, `mk scene add|remove|move` and `mk fit`; never hand-edit the JSON. Any edit re-arms approval: preview and ask again.
37
+ 5. Props, slots and pack text stay data. HTML/CSS/JS is allowed only inside `scenes/<name>/scene.js`, `fragment.html`, `style.css`; never in storyboard props. Name unsupported effects instead of promising them.
38
+ 6. Packs are optional guidance: read `packs/INDEX.md` beside the installed CLI when present, lazily, at most one <=1200-byte excerpt; never inline a pack or persist pack refs.
39
+ 7. Report one line, not raw output. Never claim quality from a hash. On Windows use JSON files (`--ops`, `--slots`), never `<(...)`, `$(...)` or multi-line JSON.
40
+
41
+ ## Stages
42
+
43
+ | # | Stage | Do | Done when |
44
+ | --- | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------- |
45
+ | 1 | Intake | topic, audience, length, channel, brand, tone; max 3 questions (`references/intake.md`) | 5-line note |
46
+ | 2 | Brief | <= 8 facts, <= 3 sourced numbers, one arc; `brief.md` | numbers sourced |
47
+ | 3 | Route | `mk template list --for`; `mk template show` once each, max 2; `references/scene-recipes.md` for beat shapes. The ranker is keyword overlap, so read the description and not-for line; name route + reason | route chosen |
48
+ | 4 | Outline | <= 200 words (`references/outline.md`); stop for "go" unless "just do it" | user confirms |
49
+ | 5 | Instantiate | template: `mk new <t>/<bp> ...`; direct: `references/free-storyboard.md`; authored: `mk scene new` (`references/authoring-scene.md`); assets: `mk assets import` + `--assets`/`--ledger` | 0 errors; build exit 0 |
50
+ | 6 | Fix | smallest `mk patch`; max 3 rounds; same error twice: `mk catalog <type>` + `references/troubleshooting.md`; unknown theme: built-in or `themes/<name>.json` | 0 errors, warnings read |
51
+ | 7 | Preview | `mk preview` (<= 90 s; add `--assets d --ledger f` when used); read stdout + `preview.json`; `references/quality-bar.md` | pack exists |
52
+ | 8 | Show + approve | contact + clip + 3-line summary + derived coverage; ask. On yes: `mk approve ... --note "<their words>"` (repeat the preview's `--out`/assets/audio flags) | explicit yes recorded |
53
+ | 9 | Patch | smallest change; back to 6-7; max 3 rounds, then offer options | approval matches file |
54
+ | 10 | Render | mp4: `mk render ... --gated --verify`; webm/mov/gif/png-sequence: `--format ... --gated`, omit `--verify` (mp4-only); add `--assets`/`--ledger`, `--resolution`, `--fps` | mp4: verify 0; other: output exists |
55
+
56
+ ## Choosing a route
57
+
58
+ Template-assisted (`mk template list` -> `mk new`), direct storyboard (`references/free-storyboard.md`) and authored scene (`mk scene new`) are co-equal starts; pick by fit, not exhaustion. Use direct when the brief is clearer as JSON than any blueprint; use authored when the visual needs code. There is no per-video cap; an authored scene costs 1-3k tokens against ~120 for a catalog type. Never stretch a wrong blueprint, truncate a required fact to fit a slot, or refuse an authored scene. Name the route.
59
+
60
+ ## How long should it be
61
+
62
+ Use the user's length, else 45 s. Seconds: title 3-5, stat 4-6, bullets/flow 6-11, outro 3-5. `mk fit --seconds N` moves a board only about 1.4x; 25 s to 50 s needs more scenes first (`mk scene add`, about one per 7 s), then fit.
63
+
64
+ ## Voice and captions (opt-in)
65
+
66
+ `mk voice` -> `mk captions` -> `mk patch --ops`; the same `--audio` goes to preview, approve and render. Setup and failure paths: `references/voice.md`.
67
+
68
+ ## Failures
69
+
70
+ | Symptom | Do |
71
+ | ---------------- | ------------------------------------------------------------------- |
72
+ | exit 4 | not an error: stage 8 |
73
+ | exit 5 | fix the named scene, re-render once, then report |
74
+ | same error twice | stop patching; `mk catalog <type>` and rewrite that scene |
75
+ | anything else | `references/common-mistakes.md`, then `references/troubleshooting.md` |
76
+
77
+ Done = the approval hash matches the rendered board, `mk verify` exit 0 is quoted, and you state what was not verified.
@@ -0,0 +1,37 @@
1
+ # Authoring a scene (type: custom)
2
+
3
+ A co-equal route, chosen when the visual the brief needs is not in the catalog and code expresses it more directly than a stack of catalog types. There is no per-video cap. The real costs, measured where available: ~1-3k tokens per authored scene against ~120 for a catalog type, no incremental cache (the cache key does not cover authored bytes), and review of the emitted files. Use it when the brief earns it; never to avoid learning a type.
4
+
5
+ ## Files
6
+
7
+ `scenes/<name>/scene.js` (exports `createScene`), `fragment.html` (no `<script>`, no `on*=`), `style.css` (optional; `#scene-root` is rewritten). The scaffold also writes `notes.md`; that is documentation, not part of the picture. These three code files are the only place HTML/CSS/JS is authored; storyboard props, template slots and pack instructions stay data.
8
+
9
+ The scaffold's `scene.js` imports `../../runtime/mount.js` and calls `mountTimeline`; the build supplies that runtime. Keep the import and the exported `createScene` signature; replace the body, the fragment and the CSS with your scene. Do not copy runtime code into the scene.
10
+
11
+ A relative helper such as `./lib/format.js` is part of the scene: it must stay inside the scene directory (no `../`, no absolute or remote path), and it is emitted beside `scene.js`, linted with the scene and included in the approval hash. A helper-only edit re-arms the gate like any other scene edit.
12
+
13
+ `props.dir` must stay inside the storyboard's directory; absolute paths and `..` are rejected.
14
+
15
+ Entry: `{ "type": "custom", "props": { "dir": "scenes/hero" } }`
16
+
17
+ ## Contract
18
+
19
+ `createScene(root, config, ctx)` → `{ seek(t), dispose(), ready }`. `seek(t)` is a pure function of t. Start from `mk scene new hero`.
20
+
21
+ ## Fails lint
22
+
23
+ clocks (`Date.now`, `performance.now`, `new Date()`) · timers · `requestAnimationFrame` · `Math.random` · network/workers · `window.` · CSS `animation`/`transition`/`@keyframes`
24
+
25
+ A CSS animation runs on the browser clock, not `seek(t)`.
26
+
27
+ ## Draw with tokens
28
+
29
+ `var(--mk-color-bg)`, `var(--mk-color-fg)`, `var(--mk-color-accent)`, `var(--mk-font-*)`. Hard hexes break on a theme switch. The 5 % safe margin is already applied.
30
+
31
+ ## Loop
32
+
33
+ `mk scene new` → edit → `mk scene lint` → `mk validate` → `mk preview` → ask. Promotion to a catalog type is optional and only after demonstrated reuse; it is not a condition for shipping an authored scene.
34
+
35
+ ## Self-check
36
+
37
+ Same t, same pixels? Theme switch safe? Fits 9:16? Would a catalog type do this with less code?
@@ -0,0 +1,17 @@
1
+ # Authoring a style (theme)
2
+
3
+ A theme is DTCG JSON. Copy the nearest vendored family from `shared/themes/` inside the installed `@anvpx/motion` package and change values only — renaming tokens breaks scenes.
4
+
5
+ ## Tokens that matter
6
+
7
+ `color.bg` and `color.bgEnd` (the page gradient; keep them close), `color.fg`, `color.accent` and `color.accent2` (once per scene), `color.card`, `color.divider`, `color.glow`, `font.sans`, `font.mono`, `radius`.
8
+
9
+ ## Enforced by the build
10
+
11
+ - `fg` on `bg` must clear 4.5:1 contrast; large display type 3:1.
12
+ - Colour tokens reject `url()`, `var()` and `calc()` — values are literals.
13
+ - Fonts must be one of the bundled families; never a CDN.
14
+
15
+ ## Taste
16
+
17
+ One accent, one easing family, one type scale. A theme is a constraint: if two colours compete, the scene has no accent.
@@ -0,0 +1,73 @@
1
+ # Common mistakes on the current surface
2
+
3
+ These are the failures that waste the most time. Each row is wrong -> right -> why. When a row does not cover it, run `mk <command> --help`; never guess a flag.
4
+
5
+ ## Workflow
6
+
7
+ | Wrong | Right | Why |
8
+ | ------------------------------------------- | ------------------------------------------------------------------------- | -------------------------------------------------------------- |
9
+ | `mk render` after "looks good" | `mk preview`, show `contact.png`, hear an explicit yes, then `mk approve` | The gate exists so the user sees the film before paying for it |
10
+ | "They said yes earlier" | Ask again for the current preview | Any edit re-arms approval; an old yes is for an old board |
11
+ | Hand-edit the JSON after the first write | `mk patch`, `mk scene`, `mk fit` | The approval and preview bind to the exact bytes and structure |
12
+ | Approve on the user's silence | Ask again with the contact path | Silence is not consent |
13
+ | Skip preview because the board "looks fine" | Preview every board before asking | JSON is not a frame; lint is not composition |
14
+ | Write a second board as "backup" | Patch the one board | Two files diverge and the approval points at neither |
15
+ | Promise a feature the engine does not have | Name the unsupported effect and choose a native route | The user will see the gap at preview |
16
+
17
+ ## Schema and props
18
+
19
+ | Wrong | Right | Why |
20
+ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
21
+ | `"version": 2` or a migration step | `"version": 1`; no migration command exists | There is one live schema discriminator, not a version history |
22
+ | `"meta": { "aspect": "9:16" }` | `"width": 1080, "height": 1920` | The frame is pixels; there is no `aspect` key |
23
+ | Adding a helpful key such as `"note"` or `"layoutHint"` | Only keys from `mk catalog <type>` | Props are strict; unlisted keys are rejected |
24
+ | `"id": "Intro Scene"` | `"id": "intro-scene"` | Ids must be lowercase slugs |
25
+ | Overlay without `over` | `"layer": "overlay", "over": "intro", "duration": 3` | An overlay must know which base scene it covers |
26
+ | Overlay with `transition` | Remove `transition` | Overlays fade themselves; the schema rejects it |
27
+ | `over`/`offset` on a base scene | Put them only on `layer: "overlay"` scenes | Base scenes advance the timeline |
28
+ | `meta.theme: "calm-light"` on a hand-written board | Use a built-in theme or vendor the theme into `themes/` | `mk validate` does not resolve themes; preview does |
29
+ | Copying only `storyboard.json` to a new folder | Copy `themes/` and `.mk/` beside it | Themes and template provenance resolve beside the board |
30
+ | Summing durations to predict the total, or expecting `mk validate` to print it | Read `preview.json` `totalSec`, or the `mk patch`/`mk fit`/`mk scene add`/`mk preview` line | Transitions overlap; `mk validate` reports errors, not duration |
31
+ | `code.highlight: 1` | `"highlight": [1]` (array of line numbers) | The prop is a list, not a scalar |
32
+ | `media-frame.image` is a URL | A local path plus an `assets.json` ledger row | Remote assets fail closed |
33
+ | `"image": "assets/x.png"` while `--assets assets` | `"image": "x.png"`; ledger `assets.json` | Asset refs are relative to the assets dir, not the project |
34
+ | An icon name invented from memory | `mk icon search <word>` | Icon names are a finite set |
35
+
36
+ ## CLI
37
+
38
+ | Wrong | Right | Why |
39
+ | ------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
40
+ | `mk new ... --set items=["A","B"]` | Put arrays and objects in `--slots slots.json`; `--set` lists are pipe-separated | `mk new` does not parse a JSON array in `--set`; `mk scene add` does |
41
+ | `mk new ... --set title.text=...` | `mk patch` after `mk new` | `--set` is top-level only |
42
+ | `mk scene add caption ...` with no `--over` | `--over intro` and `--offset 0` | Overlay types require their base scene |
43
+ | `mk fit --seconds 50` on a 25 s board | Add scenes first, then fit | Fit moves about 1.4x and refuses outside the range; it never distorts |
44
+ | `mk approve` with different flags than `mk preview` | Use the identical `--out`, `--assets`, `--ledger`, `--audio`, `--music` | Approve infers the pack inputs; a mismatch exits 2 |
45
+ | Following the printed `approve:` hint after `preview --out` | Repeat the same `--out` and asset/audio flags | The hint may omit `--out`; approve then looks in the default folder |
46
+ | `mk approve` before `mk preview` | Preview first | There is no pack for the current inputs |
47
+ | `mk render --verify --format webm` | Verify the mp4 master, then convert | `--verify` is mp4-only |
48
+ | `mk captions manifest.json --out ops.json` with no storyboard | Add `--storyboard storyboard.json` | Ops need scene-relative paths |
49
+ | `mk assets import logo.png --dir assets` | Add `--licence MIT --source-url <url>` | Every imported asset needs provenance |
50
+ | `mk voice` on a machine with no venv | `mk doctor`; install Python 3.12 + the voice extras, or ship silent | Voice is opt-in and fails closed |
51
+ | `mk patch` path into a missing parent | Add the parent first, or target an existing path | Patch stops at the first op that cannot apply |
52
+ | `npx -y @anvpx/motion@0.1.0` returns 404 | stop: the pinned package is unpublished; use a local checkout/tarball only if the user has one | no working bootstrap exists until release |
53
+
54
+ ## Windows
55
+
56
+ | Wrong | Right | Why |
57
+ | ------------------------------------------------------------- | ----------------------------------------------------- | -------------------------------------------- |
58
+ | `mk patch board.json --op` with inline JSON containing quotes | Put the op in `fixes.json` and use `--ops fixes.json` | Shell quoting mangles nested JSON |
59
+ | `mk new --slots <(echo ...)` | Write `slots.json` and pass `--slots slots.json` | Process substitution is not PowerShell |
60
+ | `$json = @'...'@; mk patch --op $json` | Same file route | Multi-line quoted JSON breaks on some shells |
61
+
62
+ ## Quality
63
+
64
+ | Wrong | Right | Why |
65
+ | ------------------------------------------------ | ------------------------------------------------------- | ----------------------------------------------------- |
66
+ | Three static scenes in a row | Give base scenes a `move`, or vary the shot | Lint flags `flat-motion`; the film reads as slides |
67
+ | A paragraph on one slide | One idea, at most six words per line | Viewers read the headline, not the paragraph |
68
+ | All text the same size | One clear hierarchy: headline, support, one hero number | Equal weight means no entry point |
69
+ | Decoration to fill space | Remove an element, enlarge the type, or split the beat | Empty space is not a defect; clutter is |
70
+ | Claiming "premium" or "AAA" from a contact sheet | Describe what the preview proves and what it does not | A still cannot prove motion, voice or the full render |
71
+ | Ignoring a lint warning because exit is 0 | Read every warning; fix or record a deliberate waiver | Warnings are the engine's cheapest review |
72
+
73
+ When the same error appears twice, stop changing flags. Run `mk catalog <type>`, compare the scene to its example, and rewrite that one scene through `mk patch`. Three rounds is the budget; then show the user the options.
@@ -0,0 +1,81 @@
1
+ # Content pack (before any storyboard)
2
+
3
+ No storyboard until every item below is sourced or marked "placeholder".
4
+ The pack is five lists; detail them with the user, then build.
5
+
6
+ ## 1. Style (Style choice, not fact)
7
+
8
+ Name the look in 8 words or less (e.g. "dark tech keynote"),
9
+ plus 3 numbered rules and 3 banned template-look items
10
+ (no glow, no decor gradients, no bounce-everything).
11
+ Name the route you chose (template-assisted, direct storyboard or authored scene).
12
+ When style is a real choice, name one non-default style + why,
13
+ and one alternative. Packs are optional guidance only:
14
+ read the pack index lazily (`packs/INDEX.md` beside the installed CLI), never inline a pack,
15
+
16
+ ## Style menu (after lanshu, MIT; looks only, engines never)
17
+
18
+ Twelve looks with native mappings; write and voice the narration to
19
+ fit the chosen look. No native scene exists for pen writing, paper
20
+ folds, comic stickers, chalk, or clay — those rows say closest.
21
+
22
+ | Look | Native mapping | Best for | Arc (look plus way of telling) |
23
+ | --------------- | --------------------------------- | ---------------------------- | ------------------------------ |
24
+ | Editorial paper | calm-light title flow callout | serious, premium, business | claim, proof, consequence |
25
+ | Tech HUD | dark flow stat | AI, infra, systems | problem, mechanism, result |
26
+ | Notebook | closest: steps plus callout | step-by-step teaching | numbered steps, then a recap |
27
+ | Paper pop-up | closest: media-frame layers | warm stories, processes | before, the turn, after |
28
+ | Pop comic | closest: kinetic slam | punchy shorts, myth vs fact | myth, correction, slam |
29
+ | Cinematic 3D | scene3d one-take | flagship, launches | reveal, orbit, resolve |
30
+ | Drafting sheet | dark flow plus footnote callout | technical deep dives | spec, derivation, check |
31
+ | Chalkboard | closest: kinetic plus recap outro | beginners, memory recaps | question, example, rule |
32
+ | Clay town | closest: scene3d diorama | analogies for non-experts | analogy, walkthrough, takeaway |
33
+ | Derivation | flow built step by step | principles, algorithms | given, transform, result |
34
+ | Casefile | timeline plus callout evidence | post-mortems, incidents | incident, evidence, finding |
35
+ | Sitcom | kinetic plus lower-third | abstract terms for newcomers | setup, confusion, resolution |
36
+
37
+ The arc column is a beat order, not a formula: it suggests how to sequence
38
+ the scenes, and the storyboard still has to earn the result on the contact
39
+ sheet. No measured quality claim is attached to any row. Never persist pack
40
+ refs in storyboards.
41
+
42
+ ## 2. Patterns (from the CLI, never from memory)
43
+
44
+ Scene and overlay picks come from `mk catalog` output only.
45
+ One new visual idea per scene; a hook in the first second;
46
+ karaoke captions (`caption` overlay) on every narrated scene,
47
+ words taken from the voice manifest shifted to scene-relative times.
48
+ Name unsupported effects instead of promising them.
49
+
50
+ ## 3. UI (vendored pixels only)
51
+
52
+ Screenshots and images live inside the project (remote refs fail
53
+ closed at preview). Import each file instead of hand-writing the ledger:
54
+
55
+ ```bash
56
+ mk assets import src/dashboard.png --dir assets --ledger assets.json --licence CC0-1.0 --source-url <url>
57
+ ```
58
+
59
+ The row is `path`, `sourceUrl`, `licence`, `attribution`, `sha256`; the
60
+ prop points at the file relative to `--assets` (`"image": "dashboard.png"`).
61
+ The ledger is the file you passed; if `--ledger` is omitted it defaults to
62
+ `<dir>/assets.json`. Preview, approve and render repeat the same
63
+ `--assets d --ledger f`.
64
+ No screenshot and none available: rebuild the screen by hand per
65
+ `references/faux-ui.md` (faux-UI rules after stageshow).
66
+
67
+ ## 4. Sounds (approved words, licensed bed)
68
+
69
+ Voice: one voice id + narration text per base scene, user-approved;
70
+ narration sets scene durations, so words are final before voice.
71
+ Narration is the clock: the evidence is an ASR round-trip of the final
72
+ audio against that script, not a listen-through; fix a mismatch before
73
+ any scene timing is set.
74
+ Bed: one wav + license file + volume; a scored bed matches the
75
+ timeline length so nothing loops audibly. Same `--audio`, `--music`,
76
+ `--music-volume`, `--music-license` on preview, approve and render.
77
+
78
+ ## 5. Facts (sourced or placeholder)
79
+
80
+ At most 8 facts and 3 numbers, each with a source. Anything missing
81
+ is written "placeholder" in the outline, never invented.