@litfamily/litclaude 1.0.37 → 1.0.39

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 (256) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/README.md +11 -8
  3. package/README_ko-KR.md +11 -8
  4. package/bin/litclaude-ai.js +3 -3
  5. package/docs/assets/readme/badge-version.svg +1 -1
  6. package/docs/assets/skills/lit-adhd.webp +0 -0
  7. package/docs/assets/skills/lit-hijack.webp +0 -0
  8. package/docs/assets/skills/lit-schematic.webp +0 -0
  9. package/docs/hooks.md +117 -26
  10. package/docs/workflow-compatibility-audit.md +1 -1
  11. package/package.json +1 -1
  12. package/plugins/litclaude/.claude-plugin/plugin.json +1 -1
  13. package/plugins/litclaude/agents/lit-executor.md +4 -2
  14. package/plugins/litclaude/bin/litclaude-ai +1 -0
  15. package/plugins/litclaude/bin/litclaude-hook.js +373 -53
  16. package/plugins/litclaude/bin/litclaude-mcp.js +1 -1
  17. package/plugins/litclaude/commands/lit-adhd.md +107 -0
  18. package/plugins/litclaude/commands/lit-hijack.md +102 -0
  19. package/plugins/litclaude/commands/lit-loop.md +4 -2
  20. package/plugins/litclaude/commands/lit-plan.md +5 -4
  21. package/plugins/litclaude/commands/lit-rewind.md +107 -0
  22. package/plugins/litclaude/commands/litgoal.md +5 -4
  23. package/plugins/litclaude/commands/start-work.md +25 -10
  24. package/plugins/litclaude/hooks/lit-mod.mjs +51 -5
  25. package/plugins/litclaude/lib/canonical-skill-catalog.mjs +3 -0
  26. package/plugins/litclaude/lib/canonical-skill-resources.mjs +205 -101
  27. package/plugins/litclaude/lib/lit-activation.mjs +24 -10
  28. package/plugins/litclaude/lib/mod/frame.mjs +235 -49
  29. package/plugins/litclaude/lib/mod/motion.mjs +21 -0
  30. package/plugins/litclaude/lib/mod/settings.mjs +4 -0
  31. package/plugins/litclaude/lib/mod/skills.mjs +3 -0
  32. package/plugins/litclaude/lib/mod/state.mjs +100 -7
  33. package/plugins/litclaude/lib/mod/svg-card.mjs +167 -25
  34. package/plugins/litclaude/lib/mod/timeline.mjs +28 -5
  35. package/plugins/litclaude/lib/mod/toasts.mjs +5 -2
  36. package/plugins/litclaude/lib/mod/view.mjs +240 -6
  37. package/plugins/litclaude/lib/mod/workflow.mjs +36 -7
  38. package/plugins/litclaude/lib/motion-render-gate.mjs +25 -7
  39. package/plugins/litclaude/lib/render_pages.py +29 -1
  40. package/plugins/litclaude/lib/rewind/brief.mjs +370 -0
  41. package/plugins/litclaude/lib/rewind/collect.mjs +413 -0
  42. package/plugins/litclaude/lib/rewind/gauge.mjs +87 -0
  43. package/plugins/litclaude/lib/rewind/next-step.mjs +89 -0
  44. package/plugins/litclaude/lib/rewind/redact.mjs +36 -0
  45. package/plugins/litclaude/lib/rewind/suggest.mjs +51 -0
  46. package/plugins/litclaude/lib/rewind/transcripts.mjs +259 -0
  47. package/plugins/litclaude/lib/start-work-lifecycle.mjs +403 -18
  48. package/plugins/litclaude/lib/workflow-stack.mjs +243 -0
  49. package/plugins/litclaude/lib/workflow-stage.mjs +127 -103
  50. package/plugins/litclaude/scripts/scaffold-plan.mjs +1 -1
  51. package/plugins/litclaude/skills/frontend-ui-ux/SKILL.md +18 -3
  52. package/plugins/litclaude/skills/frontend-ui-ux/kit/components.css +414 -0
  53. package/plugins/litclaude/skills/frontend-ui-ux/kit/fonts.json +22 -0
  54. package/plugins/litclaude/skills/frontend-ui-ux/kit/layouts/landing.html +164 -0
  55. package/plugins/litclaude/skills/frontend-ui-ux/kit/layouts/settings.html +114 -0
  56. package/plugins/litclaude/skills/frontend-ui-ux/kit/layouts/workspace.html +115 -0
  57. package/plugins/litclaude/skills/frontend-ui-ux/kit/styles/computational-brutalism.json +227 -0
  58. package/plugins/litclaude/skills/frontend-ui-ux/kit/styles/field-notes.json +205 -0
  59. package/plugins/litclaude/skills/frontend-ui-ux/kit/styles/graphite.json +200 -0
  60. package/plugins/litclaude/skills/frontend-ui-ux/kit/styles/meadow.json +199 -0
  61. package/plugins/litclaude/skills/frontend-ui-ux/kit/styles/neo-brutalism.json +222 -0
  62. package/plugins/litclaude/skills/frontend-ui-ux/kit/ui.js +226 -0
  63. package/plugins/litclaude/skills/frontend-ui-ux/references/brand-and-imagery.md +1 -1
  64. package/plugins/litclaude/skills/frontend-ui-ux/references/complete-contract.md +1 -0
  65. package/plugins/litclaude/skills/frontend-ui-ux/references/craft-floor.md +9 -4
  66. package/plugins/litclaude/skills/frontend-ui-ux/references/default-editorial-pixel.json +6 -5
  67. package/plugins/litclaude/skills/frontend-ui-ux/references/house-styles.md +234 -0
  68. package/plugins/litclaude/skills/frontend-ui-ux/references/motion-guide.md +3 -3
  69. package/plugins/litclaude/skills/frontend-ui-ux/references/production-interview.md +1 -1
  70. package/plugins/litclaude/skills/frontend-ui-ux/references/slop-register.md +7 -7
  71. package/plugins/litclaude/skills/frontend-ui-ux/scripts/design-lock.mjs +400 -0
  72. package/plugins/litclaude/skills/frontend-ui-ux/scripts/interface-probe-lock.mjs +196 -0
  73. package/plugins/litclaude/skills/frontend-ui-ux/scripts/interface-probe-page.mjs +30 -9
  74. package/plugins/litclaude/skills/frontend-ui-ux/scripts/interface-probe-rules.mjs +19 -7
  75. package/plugins/litclaude/skills/frontend-ui-ux/scripts/interface-probe-static.mjs +12 -2
  76. package/plugins/litclaude/skills/frontend-ui-ux/scripts/interface-probe.mjs +53 -6
  77. package/plugins/litclaude/skills/frontend-ui-ux/scripts/pixel-art.mjs +60 -0
  78. package/plugins/litclaude/skills/lit-adhd/SKILL.md +168 -0
  79. package/plugins/litclaude/skills/lit-adhd/references/card-examples.md +125 -0
  80. package/plugins/litclaude/skills/lit-adhd/references/status-taxonomy.md +43 -0
  81. package/plugins/litclaude/skills/lit-adhd/scripts/rewind.mjs +11 -0
  82. package/plugins/litclaude/skills/lit-diagram-drawer/SKILL.md +17 -5
  83. package/plugins/litclaude/skills/lit-diagram-drawer/references/style-guide.md +20 -11
  84. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-architecture.md +3 -3
  85. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-dependency.md +1 -1
  86. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-tree.md +3 -3
  87. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-wardley.md +1 -1
  88. package/plugins/litclaude/skills/lit-diagram-drawer/references/verifier-guide.md +1 -1
  89. package/plugins/litclaude/skills/lit-diagram-drawer/scripts/visual-quality.mjs +3 -3
  90. package/plugins/litclaude/skills/lit-docx/SKILL.md +6 -1
  91. package/plugins/litclaude/skills/lit-docx/references/direction-step.md +8 -4
  92. package/plugins/litclaude/skills/lit-handoff/SKILL.md +2 -1
  93. package/plugins/litclaude/skills/lit-hijack/SKILL.md +551 -0
  94. package/plugins/litclaude/skills/lit-hijack/references/capture-and-provenance.md +124 -0
  95. package/plugins/litclaude/skills/lit-hijack/references/clean-room-build.md +133 -0
  96. package/plugins/litclaude/skills/lit-hijack/references/distil-and-licence.md +128 -0
  97. package/plugins/litclaude/skills/lit-hijack/references/gap-and-port-design.md +152 -0
  98. package/plugins/litclaude/skills/lit-hijack/references/parity-and-report.md +131 -0
  99. package/plugins/litclaude/skills/lit-hijack/scripts/hijack.mjs +854 -0
  100. package/plugins/litclaude/skills/lit-loop/SKILL.md +4 -3
  101. package/plugins/litclaude/skills/lit-plan/SKILL.md +16 -10
  102. package/plugins/litclaude/skills/lit-pptx/SKILL.md +35 -15
  103. package/plugins/litclaude/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Bold.ttf +0 -0
  104. package/plugins/litclaude/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Regular.ttf +0 -0
  105. package/plugins/litclaude/skills/lit-pptx/fonts/jetbrains-mono/OFL.txt +93 -0
  106. package/plugins/litclaude/skills/lit-pptx/fonts/provenance.json +32 -1
  107. package/plugins/litclaude/skills/lit-pptx/references/agents/architect.md +1 -1
  108. package/plugins/litclaude/skills/lit-pptx/references/anti-slop-checklist.md +32 -11
  109. package/plugins/litclaude/skills/lit-pptx/references/authoring-guide.md +2 -2
  110. package/plugins/litclaude/skills/lit-pptx/references/data-display-cookbook.md +1 -1
  111. package/plugins/litclaude/skills/lit-pptx/references/density-and-fill.md +3 -4
  112. package/plugins/litclaude/skills/lit-pptx/references/direction-step.md +23 -4
  113. package/plugins/litclaude/skills/lit-pptx/references/examples/13-engineering-review-computational-brutalism-ko.md +173 -0
  114. package/plugins/litclaude/skills/lit-pptx/references/examples/14-launch-pitch-neo-brutalism-ko.md +154 -0
  115. package/plugins/litclaude/skills/lit-pptx/references/examples/15-design-lecture-bauhaus-ko.md +139 -0
  116. package/plugins/litclaude/skills/lit-pptx/references/examples/16-community-programme-riso-ko.md +158 -0
  117. package/plugins/litclaude/skills/lit-pptx/references/examples/17-public-data-briefing-newsroom-ko.md +179 -0
  118. package/plugins/litclaude/skills/lit-pptx/references/layout-families.md +22 -26
  119. package/plugins/litclaude/skills/lit-pptx/references/title-treatments.md +30 -26
  120. package/plugins/litclaude/skills/lit-pptx/references/tonalities/atlas.md +4 -4
  121. package/plugins/litclaude/skills/lit-pptx/references/tonalities/bauhaus.md +140 -0
  122. package/plugins/litclaude/skills/lit-pptx/references/tonalities/chalk.md +3 -3
  123. package/plugins/litclaude/skills/lit-pptx/references/tonalities/computational-brutalism.md +150 -0
  124. package/plugins/litclaude/skills/lit-pptx/references/tonalities/gazette.md +1 -1
  125. package/plugins/litclaude/skills/lit-pptx/references/tonalities/ledger.md +1 -1
  126. package/plugins/litclaude/skills/lit-pptx/references/tonalities/neo-brutalism.md +161 -0
  127. package/plugins/litclaude/skills/lit-pptx/references/tonalities/newsroom.md +144 -0
  128. package/plugins/litclaude/skills/lit-pptx/references/tonalities/night.md +1 -1
  129. package/plugins/litclaude/skills/lit-pptx/references/tonalities/paper.md +3 -3
  130. package/plugins/litclaude/skills/lit-pptx/references/tonalities/riso.md +137 -0
  131. package/plugins/litclaude/skills/lit-pptx/references/tonalities/signal.md +2 -2
  132. package/plugins/litclaude/skills/lit-pptx/references/tonalities/studio.md +6 -7
  133. package/plugins/litclaude/skills/lit-pptx/scripts/compile-deck.js +1 -1
  134. package/plugins/litclaude/skills/lit-pptx/scripts/craft_extras.py +135 -91
  135. package/plugins/litclaude/skills/lit-pptx/scripts/embed_fonts.py +13 -1
  136. package/plugins/litclaude/skills/lit-pptx/scripts/lib/grid-resolver.js +101 -110
  137. package/plugins/litclaude/skills/lit-pptx/scripts/lib/layout-resolver.js +9 -15
  138. package/plugins/litclaude/skills/lit-pptx/scripts/lib/render-pack.js +370 -563
  139. package/plugins/litclaude/skills/lit-pptx/scripts/lib/slide-grid.js +104 -0
  140. package/plugins/litclaude/skills/lit-pptx/scripts/lib/template-registry.js +57 -6
  141. package/plugins/litclaude/skills/lit-pptx/scripts/qa_deck.py +5 -5
  142. package/plugins/litclaude/skills/lit-pptx/templates/tonalities/atlas/pack.yaml +1 -1
  143. package/plugins/litclaude/skills/lit-pptx/templates/tonalities/bauhaus/pack.yaml +98 -0
  144. package/plugins/litclaude/skills/lit-pptx/templates/tonalities/chalk/pack.yaml +1 -1
  145. package/plugins/litclaude/skills/lit-pptx/templates/tonalities/computational-brutalism/pack.yaml +99 -0
  146. package/plugins/litclaude/skills/lit-pptx/templates/tonalities/gazette/pack.yaml +1 -1
  147. package/plugins/litclaude/skills/lit-pptx/templates/tonalities/ledger/pack.yaml +1 -1
  148. package/plugins/litclaude/skills/lit-pptx/templates/tonalities/neo-brutalism/pack.yaml +107 -0
  149. package/plugins/litclaude/skills/lit-pptx/templates/tonalities/newsroom/pack.yaml +99 -0
  150. package/plugins/litclaude/skills/lit-pptx/templates/tonalities/night/pack.yaml +1 -1
  151. package/plugins/litclaude/skills/lit-pptx/templates/tonalities/paper/pack.yaml +1 -1
  152. package/plugins/litclaude/skills/lit-pptx/templates/tonalities/riso/pack.yaml +99 -0
  153. package/plugins/litclaude/skills/lit-pptx/templates/tonalities/signal/pack.yaml +2 -2
  154. package/plugins/litclaude/skills/lit-pptx/templates/tonalities/studio/pack.yaml +1 -1
  155. package/plugins/litclaude/skills/lit-recap/SKILL.md +4 -0
  156. package/plugins/litclaude/skills/lit-schematic/SKILL.md +123 -0
  157. package/plugins/litclaude/skills/lit-schematic/examples/iso-heat-exchanger/build.mjs +38 -0
  158. package/plugins/litclaude/skills/lit-schematic/examples/iso-heat-exchanger/scene.mjs +133 -0
  159. package/plugins/litclaude/skills/lit-schematic/examples/journal-adsorption-rig/build.mjs +87 -0
  160. package/plugins/litclaude/skills/lit-schematic/examples/pid-dosing-skid/build.mjs +85 -0
  161. package/plugins/litclaude/skills/lit-schematic/references/cutaway-outputs.md +70 -0
  162. package/plugins/litclaude/skills/lit-schematic/references/isometric-craft.md +101 -0
  163. package/plugins/litclaude/skills/lit-schematic/references/journal-figures.md +72 -0
  164. package/plugins/litclaude/skills/lit-schematic/references/kit-api.md +134 -0
  165. package/plugins/litclaude/skills/lit-schematic/references/pfd-and-layout.md +53 -0
  166. package/plugins/litclaude/skills/lit-schematic/references/pid-drafting.md +103 -0
  167. package/plugins/litclaude/skills/lit-schematic/references/pid-symbols.md +163 -0
  168. package/plugins/litclaude/skills/lit-schematic/references/verification.md +100 -0
  169. package/plugins/litclaude/skills/lit-schematic/scripts/doctor.mjs +57 -0
  170. package/plugins/litclaude/skills/lit-schematic/scripts/lib/figure.mjs +81 -0
  171. package/plugins/litclaude/skills/lit-schematic/scripts/lib/fonts.mjs +27 -0
  172. package/plugins/litclaude/skills/lit-schematic/scripts/lib/geom.mjs +113 -0
  173. package/plugins/litclaude/skills/lit-schematic/scripts/lib/interactive.mjs +292 -0
  174. package/plugins/litclaude/skills/lit-schematic/scripts/lib/isa.mjs +115 -0
  175. package/plugins/litclaude/skills/lit-schematic/scripts/lib/iso.mjs +719 -0
  176. package/plugins/litclaude/skills/lit-schematic/scripts/lib/legend-sheet.mjs +162 -0
  177. package/plugins/litclaude/skills/lit-schematic/scripts/lib/pid.mjs +937 -0
  178. package/plugins/litclaude/skills/lit-schematic/scripts/lib/png.mjs +132 -0
  179. package/plugins/litclaude/skills/lit-schematic/scripts/lib/qa-core.mjs +658 -0
  180. package/plugins/litclaude/skills/lit-schematic/scripts/lib/route.mjs +218 -0
  181. package/plugins/litclaude/skills/lit-schematic/scripts/lib/sheet.mjs +890 -0
  182. package/plugins/litclaude/skills/lit-schematic/scripts/lib/svg.mjs +82 -0
  183. package/plugins/litclaude/skills/lit-schematic/scripts/lib/theme.mjs +115 -0
  184. package/plugins/litclaude/skills/lit-schematic/scripts/motion.mjs +129 -0
  185. package/plugins/litclaude/skills/lit-schematic/scripts/qa.mjs +92 -0
  186. package/plugins/litclaude/skills/lit-schematic/scripts/render.mjs +233 -0
  187. package/plugins/litclaude/skills/lit-schematic/scripts/scaffold.mjs +60 -0
  188. package/plugins/litclaude/skills/lit-scientific-visualization/SKILL.md +14 -4
  189. package/plugins/litclaude/skills/lit-typographic-motion/SKILL.md +54 -45
  190. package/plugins/litclaude/skills/lit-typographic-motion/engine/THIRD_PARTY_NOTICES +11 -0
  191. package/plugins/litclaude/skills/lit-typographic-motion/engine/blender/runner.py +218 -0
  192. package/plugins/litclaude/skills/lit-typographic-motion/engine/core/presets.mjs +1 -1
  193. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/analysis.mjs +65 -1
  194. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/assets.mjs +208 -0
  195. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/blender.mjs +143 -0
  196. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/board.mjs +136 -0
  197. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/brief.mjs +7 -1
  198. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/chrome.mjs +6 -4
  199. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/cover-assets.mjs +5 -3
  200. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/cover-capture.mjs +4 -4
  201. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/cover-treatment.mjs +37 -4
  202. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/cover.mjs +17 -5
  203. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/done.mjs +42 -3
  204. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/frame-worker.mjs +7 -5
  205. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/gallery.mjs +121 -0
  206. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/house.mjs +44 -0
  207. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/look.mjs +33 -19
  208. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/pipeline.mjs +18 -7
  209. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/scaffold.mjs +210 -0
  210. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/score.mjs +639 -0
  211. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/sound-cli.mjs +21 -4
  212. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/sound.mjs +126 -27
  213. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/stage-capture.mjs +7 -6
  214. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/stage-gate.mjs +59 -5
  215. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/stage-qa.mjs +141 -9
  216. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/stage-serve.mjs +28 -5
  217. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/stage.mjs +82 -14
  218. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/styles.mjs +213 -0
  219. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/treatment.mjs +311 -10
  220. package/plugins/litclaude/skills/lit-typographic-motion/engine/stage/cover-init.js +14 -2
  221. package/plugins/litclaude/skills/lit-typographic-motion/engine/stage/init.js +11 -1
  222. package/plugins/litclaude/skills/lit-typographic-motion/engine/stage/qa.js +6 -1
  223. package/plugins/litclaude/skills/lit-typographic-motion/engine/stage/stage-kit.js +83 -0
  224. package/plugins/litclaude/skills/lit-typographic-motion/engine/vendor/three/LICENSE +21 -0
  225. package/plugins/litclaude/skills/lit-typographic-motion/engine/vendor/three/addons/environments/RoomEnvironment.js +144 -0
  226. package/plugins/litclaude/skills/lit-typographic-motion/engine/vendor/three/addons/geometries/RoundedBoxGeometry.js +155 -0
  227. package/plugins/litclaude/skills/lit-typographic-motion/engine/vendor/three/three.module.js +54571 -0
  228. package/plugins/litclaude/skills/lit-typographic-motion/recipes/hero-3d/expected.json +69 -0
  229. package/plugins/litclaude/skills/lit-typographic-motion/recipes/hero-3d/index.html +139 -0
  230. package/plugins/litclaude/skills/lit-typographic-motion/recipes/orbit-loop/expected.json +2 -0
  231. package/plugins/litclaude/skills/lit-typographic-motion/recipes/painted-light/expected.json +2 -0
  232. package/plugins/litclaude/skills/lit-typographic-motion/recipes/weight-tide/expected.json +2 -0
  233. package/plugins/litclaude/skills/lit-typographic-motion/references/cover.md +67 -15
  234. package/plugins/litclaude/skills/lit-typographic-motion/references/craft-loop.md +3 -2
  235. package/plugins/litclaude/skills/lit-typographic-motion/references/depth.md +122 -0
  236. package/plugins/litclaude/skills/lit-typographic-motion/references/look.md +28 -13
  237. package/plugins/litclaude/skills/lit-typographic-motion/references/runtime.md +4 -3
  238. package/plugins/litclaude/skills/lit-typographic-motion/references/sound.md +92 -23
  239. package/plugins/litclaude/skills/lit-typographic-motion/references/stage.md +43 -22
  240. package/plugins/litclaude/skills/lit-typographic-motion/references/studio.md +245 -0
  241. package/plugins/litclaude/skills/lit-typographic-motion/references/style-bibles.md +30 -6
  242. package/plugins/litclaude/skills/lit-typographic-motion/references/treatment.md +108 -14
  243. package/plugins/litclaude/skills/lit-typographic-motion/scripts/motion-doctor.mjs +16 -3
  244. package/plugins/litclaude/skills/lit-typographic-motion/scripts/motion.mjs +47 -7
  245. package/plugins/litclaude/skills/lit-typographic-motion/styles/paper.json +41 -0
  246. package/plugins/litclaude/skills/lit-typographic-motion/styles/swiss-signal.json +41 -0
  247. package/plugins/litclaude/skills/lit-typographic-motion/styles/terminalcore.json +42 -0
  248. package/plugins/litclaude/skills/lit-typographic-motion/styles/tidal.json +41 -0
  249. package/plugins/litclaude/skills/litgoal/SKILL.md +3 -2
  250. package/plugins/litclaude/skills/litresearch/SKILL.md +5 -0
  251. package/plugins/litclaude/skills/readme-studio/SKILL.md +10 -0
  252. package/plugins/litclaude/skills/readme-studio/references/production-interview.md +2 -0
  253. package/plugins/litclaude/skills/readme-studio/templates/hyperframes-cover/package-lock.json +3 -3
  254. package/plugins/litclaude/skills/readme-studio/templates/remotion-cover/package-lock.json +3 -3
  255. package/plugins/litclaude/skills/start-work/SKILL.md +24 -11
  256. package/scripts/qa-cover-recipes.mjs +3 -3
@@ -1,31 +1,75 @@
1
1
  # Sound
2
2
 
3
- Every film gets a sound plan in `treatment.json` (`sound: { mode, plan, palette }`), on both render
4
- paths. The renderer muxes whatever track the plan names, then audits the decoded stream after the
5
- encode. Nothing here downloads a sample, a model or a library: the bed is synthesized in product
6
- code, deterministically, from the treatment.
3
+ Every film gets a sound plan in `treatment.json` (`sound: { mode, plan, genre?, palette?, events }`), on
4
+ both render paths. The renderer muxes whatever track the plan names, then audits the decoded stream
5
+ after the encode. Nothing here downloads a sample, a model or a library, and nothing borrows a melody:
6
+ the score and the bed are synthesized in product code, deterministically, from the treatment.
7
7
 
8
8
  ## Modes
9
9
 
10
10
  | `sound.mode` | What is muxed | When |
11
11
  | --- | --- | --- |
12
- | `generated` | A bed built by the product from the treatment: tempo, pulse, a pad chord progression and the accents the beats ask for | The default under a bare `lit`, on the type path and the stage path alike |
12
+ | `score` | A layered score built for this film: drums, bass, chords, lead, arrangement FX and the on-screen events as separate stems, mixed and mastered | The default under a bare `lit`, on the type path and the stage path alike |
13
+ | `generated` | One of the style's preset beds: a pad chord progression with a pulse and the accents the beats ask for | Minimal films only (`register: minimal`) |
13
14
  | `supplied` | The user's own audio file (`sound.file`), padded or trimmed to the film | The user gave a track |
14
15
  | `authored` | A WAV the model wrote itself into the stage dir (`sound.file`) | The treatment calls for sound the bed cannot make |
15
16
  | `none` | No audio stream | Only when the user asked for silence, or the `channel` plays muted by design |
16
17
 
17
18
  A supplied or authored track is always muxed, whatever the state of the optional audio-analysis
18
- tier; that tier only adds a beat grid for timing. Say in the reply that a generated bed is
19
- generated, in plain words ("a generated music bed"), and name any supplied track by its file name.
19
+ tier; that tier only adds a beat grid for timing. Say in the reply that the score or bed is
20
+ generated, in plain words ("an original score generated for this film"), and name any supplied track
21
+ by its file name.
20
22
  Never switch a film to `none` to get past a check: that is a downgrade and the done-check records it.
21
23
 
22
- ## Palettes
24
+ ## Score
25
+
26
+ The score is produced like a house track, from the film itself, so two films never share one.
27
+
28
+ - **Genre.** `house` (120-126 BPM, four-on-the-floor, offbeat bass), `tech-house` (124-128, rolling
29
+ sixteenth bass), `deep-house` (118-122, pads, light swing) or `garage` (130-134, broken kick, heavy
30
+ swing). The style picks one (swiss-signal house, terminalcore tech-house, tidal deep-house, paper
31
+ garage); `sound.genre` names another when the film asks for it. Launch and hero films stay in
32
+ house or tech-house.
33
+ - **Key, tempo, progression.** Seeded from the film's request, idea, turn, protagonist and beats:
34
+ one of twelve keys, major or minor, a tempo inside the genre's band and one of six progressions per
35
+ mode with sevenths and ninths. The last bar resolves home.
36
+ - **Arrangement from the beats.** The shots before `story.beat` are the intro and the build; the drop
37
+ lands on the turn, on a downbeat (the bar grid is placed so a bar line falls on the turn's `t0`);
38
+ with three or more shots after the turn the first is a break and the rest drop again; the last shot
39
+ is the outro. A riser runs into every section change (two bars into the drop), an impact lands on the
40
+ drop, a downlifter follows it, a reverse swell of the coming chord breathes into every other change,
41
+ the kick drops out for the half bar before the drop, and the snare rolls
42
+ into it.
43
+ - **Stems.** `kick`, `clap`, `hats` (closed and open), `perc`, `bass` (sub and line), `chords` (stab or
44
+ pad), `lead` (a motif from the key's pentatonic), `fx` (risers, downlifters, impacts, reverse swells)
45
+ and `events` (the on-screen events), each its own buffer with its own pattern.
46
+ - **Mix.** Per-stem gain and pan, a high-pass on every stem but kick and bass, the bass, chords and lead
47
+ ducked under the kick (sidechain, measured and reported in dB), sends to a reverb and a tempo delay
48
+ (dotted eighth left, eighth right), bus compression, then the shared master stage below.
49
+
50
+ Write `sound.plan` as the producer's brief for this film (what the drop is, where it breaks), and
51
+ the beats' `sound` fields with the cue words below. `motion.mjs sound` writes `sound/score.wav`, every
52
+ stem and both returns as `sound/stems/<name>.wav`, and `sound-cues.json` with the genre, key, tempo,
53
+ progression, sections, FX, each stem's level, the sidechain depth, the bus settings and every cue.
54
+
55
+ ## Palettes (minimal films)
23
56
 
24
57
  `sound.palette` is `{ "timbre": "<timbre>", "key": "<pitch class>", "mode": "<major|minor>", "tempo": <60-160> }`.
25
58
  The key is one of the twelve pitch classes (sharps or flats), the mode sets the chord
26
59
  progression (major: I–V–vi–IV; minor: i–VI–III–VII, always resolving home on the last chord), and
27
- the tempo sets the pulse grid in BPM. Pick them for the film, not by habit: two films should not
28
- sound alike.
60
+ the tempo sets the pulse grid in BPM. A minimal film's generated bed takes one of the house style's beds exactly
61
+ (`studio.md`); the first is the default, and the other two let two films in one style differ:
62
+
63
+ | Style | Default bed | Alternatives |
64
+ | --- | --- | --- |
65
+ | `swiss-signal` | glass, A minor, 104 | pulse-synth, D minor, 112; soft-keys, C major, 96 |
66
+ | `tidal` | felt-strings, D major, 84 | glass, F# minor, 76; soft-keys, Bb major, 72 |
67
+ | `terminalcore` | pulse-synth, E minor, 120 | glass, B minor, 132; pulse-synth, A minor, 100 |
68
+ | `paper` | soft-keys, F major, 96 | felt-strings, G major, 88; glass, C major, 108 |
69
+
70
+ Pick the bed for the film's mood and pace: a slower or tenderer film takes the slower bed, a launch
71
+ the brighter one. Two films in one style still sound like one house; the beds, the beats' cue words
72
+ and the events make each film's sound its own.
29
73
 
30
74
  | Timbre | Character | Pad | Pulse | Accents |
31
75
  | --- | --- | --- | --- | --- |
@@ -34,8 +78,8 @@ sound alike.
34
78
  | `pulse-synth` | Driving, graphic | Filtered saw pad | Eighth-note bass on the chord root under a firm kick | Plucked saw cadence; a noise snap hit; a pitched riser |
35
79
  | `felt-strings` | Slow, tender, wide | Bowed-string partials with vibrato | A brushed noise pulse on every beat | A felt strike for cadences; a soft hit |
36
80
 
37
- `soft-keys` and `felt-strings` suit reflective or intimate films; `glass` suits clean diagrams,
38
- precise explainers and cool palettes; `pulse-synth` suits graphic, fast-cut motion pieces.
81
+ `soft-keys` carries the warm paper style, `felt-strings` the calm tidal one, `glass` the precise
82
+ swiss-signal one and `pulse-synth` the terminal one.
39
83
 
40
84
  ## Cues
41
85
 
@@ -48,23 +92,47 @@ Accents appear only where a beat's free-text `sound` field asks for one. The wor
48
92
  - **cadence** — cadence, resolve, resolution, close, ending, final chord, 종지, 마무리, 해결. A struck
49
93
  tonic chord at the start of the beat's last 40 %, ringing into the film's end on the last beat.
50
94
 
51
- A beat whose `sound` field names none of these gets pad and pulse only. `sound-cues.json` lists
95
+ A beat whose `sound` field names none of these gets pad and pulse only.
96
+
97
+ ## Events
98
+
99
+ Cue words tie accents to cuts. Events tie sounds to what moves inside a shot: a latch clicks when the
100
+ lid opens, a card lands, a cursor types, a progress bar completes. A score or generated bed on the stage
101
+ path lists them in `sound.events`:
102
+
103
+ ```json
104
+ "events": [{ "t": 6.42, "on": "the lid clicks open", "kind": "tap" }]
105
+ ```
106
+
107
+ - `t`: the second the event happens on screen, read from the page's own timing (the same expression
108
+ the page draws with), never guessed from the beat;
109
+ - `on`: what happens at that frame, as a viewer would see it;
110
+ - `kind`: `tap` (a short click with a pitched body: a key, a latch, a landing), `hit` (the cut hit),
111
+ `whoosh` (air that ends on the event: something flies in) or `chime` (two notes of the key:
112
+ something completes).
113
+
114
+ At least two events, and at least half of them 0.1 s or more away from every cut, so the sound follows
115
+ the picture rather than only the edit. An event never snaps to a cut: it sounds at its own `t`. Each
116
+ one appears in `sound-cues.json` as `kind: "event"` with `sound`, `on` and `fromCut`. `sound-cues.json` lists
52
117
  every cue with `kind`, `t` (seconds), `beatIndex`, `target` (the beat boundary or cut it serves)
53
118
  and `delta` (`t − target`), plus the palette, key, tempo, loudness, peak, sample count and the
54
- bed's sha256. Look question 6 ("does the sound follow the cuts?") is answered from this file: each
55
- asked-for accent should sit on its cut with a delta within one frame, and every cut the treatment
56
- marks for sound should have a cue.
119
+ bed's sha256. Look question 6 ("does the sound follow the cuts and the events?") is answered from
120
+ this file and the stills: each asked-for accent should sit on its cut with a delta within one frame,
121
+ every cut the treatment marks for sound should have a cue, and each event's frame should show what its
122
+ `on` says.
57
123
 
58
124
  ## Loudness and limits
59
125
 
60
126
  - 48 kHz, 16-bit, stereo WAV of exactly `round(frameCount × 48000 / fps)` samples.
61
127
  - Integrated loudness −16 LUFS ± 2, measured in product code per ITU-R BS.1770-4 (K-weighting at
62
128
  48 kHz, 400 ms blocks with 75 % overlap, −70 LUFS absolute and −10 LU relative gates). A
63
- deterministic soft limiter keeps the bed's sample peak at or under −2 dBFS.
64
- - The pad is audible from the first quarter second, so the bed never opens on silence.
129
+ deterministic lookahead limiter (5 ms ahead, both channels linked, 80 ms release) keeps the track's
130
+ sample peak at or under −2 dBFS by turning the gain down before a peak, never by bending the
131
+ waveform, so the AAC encode does not push the decoded peak over the audit's −0.5 dBFS.
132
+ - The intro is audible from the first quarter second, so the track never opens on silence.
65
133
  - The muxed stream is decoded and gated when `mode` is not `none`: a stream is present, its
66
134
  duration is within ±0.1 s of the video, and its sample peak is at or under −0.5 dBFS. For a
67
- generated bed, no stretch below −50 dBFS RMS (50 ms windows) may last longer than 1.5 s in the
135
+ score or a generated bed, no stretch below −50 dBFS RMS (50 ms windows) may last longer than 1.5 s in the
68
136
  first 3 s; that failure, or a missing stream when sound was planned, is exit 20
69
137
  (`SOUND_INVALID`). For a supplied or authored track the head rule only warns.
70
138
  - Audio is encoded as AAC at 256 kb/s. A supplied or authored track is padded or trimmed to the
@@ -77,7 +145,8 @@ marks for sound should have a cue.
77
145
  node "$SKILL_ROOT/scripts/motion.mjs" sound --out <dir>
78
146
  ```
79
147
 
80
- reads `<dir>/treatment.json` and writes `<dir>/sound/bed.wav` and `<dir>/sound-cues.json`, so the
81
- bed can be heard and its cues checked before a render. The render rebuilds the bed itself whenever
82
- the film's frame count or cut times differ from the ones the bed was built for, so the muxed bed
83
- always matches the film sample for sample. Two builds from the same treatment give the same bytes.
148
+ reads `<dir>/treatment.json` and writes the score (`<dir>/sound/score.wav` and its stems) or a minimal
149
+ film's bed (`<dir>/sound/bed.wav`), and `<dir>/sound-cues.json`, so the track can be heard and its cues
150
+ checked before a render. The render rebuilds the track at the film's exact frame count and cut times,
151
+ so the muxed track always matches the film sample for sample. Two builds from the same treatment give
152
+ the same bytes.
@@ -1,45 +1,54 @@
1
1
  # Stage path
2
2
 
3
- Read this after the treatment sets `path: stage`. On the stage path you author the film as a web
4
- page and the renderer captures it frame by frame, deterministically, then runs the gate. You draw
5
- whatever the treatment calls for: the subject, its motion, the type. The kit below gives motion
6
- primitives only; it has no scenes, objects, layouts or copy, so every picture is yours.
3
+ Read this after the treatment sets `path: stage`, with `studio.md`. On the stage path you author the
4
+ film as a web page and the renderer captures it frame by frame, deterministically, then runs the gate.
5
+ The house style gives the frame: palette, type roles, layout zones, motion tokens and hand-offs, served
6
+ to the page as `/lit/style.css` and `/lit/style.js`. The subject, its drawing and its motion are yours.
7
+ Start every page from `motion.mjs scaffold --out <dir>`, which writes the structure from the treatment.
7
8
 
8
9
  ## Contract
9
10
 
10
11
  - Write `stage/index.html` inside the run's output directory, plus any local assets it needs:
11
12
  SVG, PNG, JPG, WebP, JS, CSS and WAV files beside it. Nothing else is served.
12
- - The page loads the fonts and the kit from the renderer's own routes:
13
- `<link rel="stylesheet" href="/lit/fonts.css">` and `<script src="/lit/stage-kit.js"></script>`.
13
+ - The page loads the fonts, the style and the kit from the renderer's own routes:
14
+ `<link rel="stylesheet" href="/lit/fonts.css">`, `<link rel="stylesheet" href="/lit/style.css">`,
15
+ `<script src="/lit/style.js"></script>` and `<script src="/lit/stage-kit.js"></script>`.
16
+ - Each shot's copy sits in its layout's type zone, in a type-role class and a colour class of the style;
17
+ the gate's style rules check the result (`studio.md`).
14
18
  - The page calls `LitStage.define({ width, height, fps, duration, render })`, or sets
15
19
  `window.litStage` to the same object. `render(t)` draws the frame at `t` seconds. The renderer
16
20
  calls it once per frame, in order, from 0; the page never runs its own loop.
17
21
  - Size is exactly 1920×1080 for `format: 16:9` or 1080×1920 for `format: 9:16`, matching the
18
22
  treatment. A capture of any other size stops the run (exit 17).
19
- - `fps` is 60. Use 30 only when the treatment says so.
23
+ - `fps` is 60. Use 30 only when the treatment says so, which it may only when the request asks for 30 fps.
20
24
  - `duration` must land within ±10 % of `treatment.durationSec`, or the gate fails. Length comes
21
25
  from the treatment's arc; do not trim the page to finish sooner.
22
26
  - Put the copy in one `COPY` object at the top of `stage/index.html`, so it is easy to edit and
23
27
  easy to find. Every `copy.lines` entry appears verbatim there, and the page must show each one:
24
28
  the QA replay quotes any line it cannot find on screen (exit 17).
25
29
 
26
- A skeleton, with placeholders only:
30
+ The scaffold writes the page; its shape, with placeholders only:
27
31
 
28
32
  ```html
29
33
  <!doctype html>
30
34
  <meta charset="utf-8">
31
35
  <link rel="stylesheet" href="/lit/fonts.css">
36
+ <link rel="stylesheet" href="/lit/style.css">
37
+ <script src="/lit/style.js"></script>
32
38
  <script src="/lit/stage-kit.js"></script>
33
- <style>html, body { margin: 0; width: <width>px; height: <height>px; overflow: hidden; }</style>
34
39
  <body>
35
- <h1 id="line-1"></h1>
40
+ <section class="shot" data-shot="0">
41
+ <svg class="subject" data-zone="subject"></svg>
42
+ <div class="type" data-zone="type"><p class="lit-headline lit-ink" data-copy="0"></p></div>
43
+ </section>
36
44
  <script>
37
- const COPY = { line1: "<one copy line>" };
38
- const { define, text, ease, at } = LitStage;
39
- const h1 = text(document.getElementById("line-1"));
40
- h1.textContent = COPY.line1;
45
+ const COPY = ["<one copy line>"];
46
+ const { define, shot, place, tokens, text } = LitStage;
47
+ // place each shot's zones from LitTimeline, set the COPY lines, then:
48
+ const DRAW = [(s, svg, t) => { /* the subject of shot 1, from s.p, s.local, s.enter() */ }];
41
49
  define({ width: <width>, height: <height>, fps: 60, duration: <seconds>, render(t) {
42
- h1.style.opacity = at(t, <start>, <seconds>, ease.standard);
50
+ const s = shot(t);
51
+ DRAW[s.index](s, document.querySelectorAll(".subject")[s.index], t);
43
52
  } });
44
53
  </script>
45
54
  </body>
@@ -83,6 +92,9 @@ Every primitive is a pure function of its inputs. `LitStage` holds them all.
83
92
  - `clamp`, `lerp`, `invLerp`, `remap(x, a, b, c, d)` and `smoothstep(a, b, x)` for arithmetic.
84
93
  - `text(el, { decor })` marks a text run; `text({ content, x, y, w, h })` registers canvas text
85
94
  (see Text).
95
+ - The style and the timeline (`studio.md`): `shot(t)` (the shot at `t`, with `p`, `local`,
96
+ `enter(delay, dur)`, `exit(dur)`), `zone(layout, part)` and `place(el, layout, part)` (a layout zone in
97
+ pixels), `tokens()` (the style's eases, durations, staggers and springs per object class).
86
98
 
87
99
  ## Fonts
88
100
 
@@ -126,7 +138,9 @@ region. For variation, use `LitStage.rand(<seed>)`.
126
138
  or protocol-relative (`//…`) URL, and preconnect or prefetch links. Each is exit 19. Everything
127
139
  the page uses is local.
128
140
  - Third-party libraries: never install, download or copy one into the stage directory. Use the kit
129
- and your own code.
141
+ and your own code. The one exception is the pinned three.js build the renderer itself serves at
142
+ `/lit/three/` for a `depth: 3d` film (`depth.md`); import it through the import map, never from a
143
+ CDN.
130
144
  - Rasters: at most 24 raster images and 8 MB in total. Ten or more rasters of the same size (a
131
145
  flipbook), or any animated GIF, APNG or WebP, is exit 17. Rasters are textures and stills, never a
132
146
  frame sequence.
@@ -146,6 +160,9 @@ The QA replay reads DOM text in a separate browser and never touches the master
146
160
  `LitStage.text({ content, x, y, w, h })`. Unregistered canvas text is reported as not measured.
147
161
  - Copy stays inside the central 90 % of the frame, reaches 4.5:1 contrast (3:1 when its font size
148
162
  is at least 3 % of the frame's short side), and stays readable for at least its reading floor.
163
+ - Copy stays on the style and in its shot's type zone, and no two text runs overlap: `TEXT-ON-STYLE`,
164
+ `TEXT-ZONE` and `TEXT-OVERLAP` (`studio.md`, Style rules in the gate). An empty frame of any colour
165
+ for more than 1 s fails `FLAT-FRAME`.
149
166
  - Never put the request, the idea, a file name or an internal term on screen as a label.
150
167
 
151
168
  ## Unsupported
@@ -162,6 +179,9 @@ The QA replay reads DOM text in a separate browser and never touches the master
162
179
  were painted and captured, so the determinism replay paints and captures every frame exactly as
163
180
  the master does; stills-only frames may differ from the master by that one level. For WebGL, create the context with
164
181
  `preserveDrawingBuffer: true`.
182
+ - That is the software rung. A `depth: 3d` treatment renders on the GPU rung instead (ANGLE on Metal
183
+ on macOS) and is held to the same determinism replay; when the GPU rung cannot start or has no
184
+ WebGL, the render falls back to the software rung and the report and manifest say so (`depth.md`).
165
185
 
166
186
  ## Commands
167
187
 
@@ -172,18 +192,19 @@ node "$SKILL_ROOT/scripts/motion.mjs" stage --out <dir> --round <N> --stills-onl
172
192
  node "$SKILL_ROOT/scripts/motion.mjs" stage --out <dir> --round <N>
173
193
  ```
174
194
 
175
- The first writes the stills set only: every beat midpoint, a −6 / 0 / +6 frame transition strip
176
- per cut, and a 12-frame contact sheet. Nothing is encoded. The second is the full render: the
177
- master, the preview, the poster, the reduced-motion still, the determinism re-check, the text QA
178
- replay, the sound mux and the gate. Give the full render call a timeout of at least 600 s, and
195
+ The first is the board round: every beat midpoint, a −6 / 0 / +6 frame transition strip per cut, a
196
+ 12-frame contact sheet, the storyboard `stills/board.png`, and the board check (the text QA replay with
197
+ the style rules) in `stills/check.json`; exit 13 `BOARD_CHECK_FAIL` names each failed rule. Nothing is
198
+ encoded. The second is the full render: the master, the preview, the poster, the reduced-motion still,
199
+ the determinism re-check, the text QA replay, the sound mux, the gate and the board again. Give the full render call a timeout of at least 600 s, and
179
200
  never shorten the film to save render time.
180
201
 
181
202
  | Exit | Meaning |
182
203
  | --- | --- |
183
204
  | 10 | No Chrome |
184
- | 11 | The page asked for WebGL and none is available |
205
+ | 11 | The page asked for WebGL and none is available on any rung |
185
206
  | 12 | No ffmpeg; the stills and the sheet are still written |
186
- | 13 | Gate FAIL |
207
+ | 13 | Gate FAIL, or the board check failed on a stills-only render |
187
208
  | 14 | Runtime not pre-warmed |
188
209
  | 15 | A font is missing or its hash differs |
189
210
  | 16 | Treatment invalid (names the field) |
@@ -0,0 +1,245 @@
1
+ # Studio: house styles, shots, the board and the house file
2
+
3
+ Read this for every film, after `treatment.md`. It is what makes two films of one request look like
4
+ the same studio made them, and what lets the user see the film before the full render. Covers keep
5
+ their own recipes (`cover.md`); everything here is for films on the stage and type paths.
6
+
7
+ The rule behind every part below: a decision the model used to make again on each run is now data
8
+ the page is built from, or a check the renderer runs. Prose that only asks for consistency does not
9
+ produce it; data and checks do.
10
+
11
+ ## The flow
12
+
13
+ 1. **Style.** The treatment names one house style. The validator accepts only the style the rules
14
+ choose (below), so the same request always gets the same style.
15
+ 2. **Shots.** Each beat of the treatment is a shot with a `layout`, a `hero` move and a `transition`.
16
+ The layouts are one grid shared by every style; the style maps them to pixels per format.
17
+ 3. **Scaffold** (stage path). `motion.mjs scaffold --out <dir>` writes `stage/index.html` from the
18
+ treatment. Draw the subject of each shot in its `DRAW` function; keep the rest of the structure.
19
+ 4. **Board round** (round 1). `stage --round 1 --stills-only` (or `make ... --stills-only` on the type
20
+ path) writes the stills and `stills/board.png`, the storyboard. On the stage path it also runs the
21
+ board check, the text and style rules of the gate on the board frames, and exits 13 naming each
22
+ failed rule before any film is encoded.
23
+ 5. **Film.** The full render, with the style rules in its gate.
24
+ 6. **House.** A passed film records its style in `motion-house.json` beside the output folder; the next
25
+ film in that folder takes the same style unless the user names another.
26
+
27
+ ## Register: rich is the default
28
+
29
+ Every film is maximal unless the request asks otherwise. `register` is `rich` by default and
30
+ `minimal` only when the request asks for a calm, quiet, simple or minimal film (미니멀, 잔잔, 차분, 조용,
31
+ 심플, 절제, minimal, calm, quiet, simple, understated, sparse, serene). The validator refuses
32
+ `minimal` without that ask and `rich` with it.
33
+
34
+ A rich film fills its frame the way the reference studios do:
35
+
36
+ - **A layered world** (`world.layers`, at least 3, back to front): what lives in the far ground, the
37
+ middle and the near ground of the film's place. Every shot shows at least two of them at once.
38
+ - **Labelled parts** (`world.labels`, at least 6, at most 4 words each): the names a viewer reads on
39
+ the drawn parts, readouts, tabs and tags. A named product uses its real names. The text QA's
40
+ `TEXT-LABELS` rule fails when fewer than 75 % of them reach the screen, or when half the beat
41
+ midpoints show fewer than 3 readable text runs.
42
+ - **A filled frame.** At each beat midpoint the text QA cuts the frame into 4 x 3 regions; `RICH-FILL`
43
+ fails when more than one shot leaves over 2 of the 12 empty (the end card may breathe). A 3D hero on a
44
+ dark floor does not fill a frame by itself: put the world's parts around it as panels in the DOM
45
+ (live counters, a log that scrolls, stage pills, a progress readout, the product's own screens at a
46
+ size that reads), the way a dense dashboard frame does.
47
+ - **A moving camera** (`world.camera`, `[{beat, move}]`, in at least half the shots): push-in, truck,
48
+ crane, orbit, rack focus, parallax. A locked shot is not listed.
49
+ - **Accents by role.** Besides its core palette each style has at least three accent colours, each
50
+ for one role (a state, a category, a path); a rich `palette` may add them, at most 14 entries.
51
+ - **Decor text** (readouts, coordinates, part numbers) may fill up to 60 % of the text area.
52
+ - **An authored score**: `sound.mode: score`, layered stems arranged on the film's beats (`sound.md`).
53
+ - **Full 3D where the subject allows**: `depth: 3d`, and `render3d: blender` for path-traced light
54
+ when Blender is installed and the request asks for high-quality, cinematic or photoreal 3D
55
+ (`depth.md`); `scaffold` prints `BLENDER:` when both hold.
56
+
57
+ A minimal film keeps the restraint of a single hero on an open ground: the core palette only, decor
58
+ under 25 %, no world plan, and the style's preset beds (`sound.mode: generated`).
59
+
60
+ The flash audit (MO-C-03) is the same in both registers. Density is met with slower light changes,
61
+ lower-contrast detail behind a move, motion blur and cuts, never by locking the camera.
62
+
63
+ ## House styles
64
+
65
+ A style is a file in `styles/<id>.json`: palette roles, faces per type role, a type scale per format,
66
+ leading, motion tokens (eases, durations, staggers, a spring per object class, secondary and ambient
67
+ travel, the hold push), the transitions it hands off with, its ground, its sound beds (a default and
68
+ two alternatives, `sound.md`) and the defaults it never uses. Four ship:
69
+
70
+ | Style | Look | Type | Hand-offs | Default bed |
71
+ |---|---|---|---|---|
72
+ | `swiss-signal` (default) | Ink ground, bone type, one teal signal, one amber moment | Archivo display and headline, Pretendard body, MesloLGS NF labels | cut, wipe, match, push | glass, A minor, 104 BPM |
73
+ | `tidal` | Indigo ground with a slow teal-to-violet flow, off-white type, one coral moment | Archivo 700, Pretendard body | dissolve, match, wipe | felt-strings, D major, 84 BPM |
74
+ | `terminalcore` | Navy terminal, phosphor type at typing speed, one signal hue, no easing | VT323 with Galmuri9 for Hangul, sizes on its 9 px grid | cut, wipe | pulse-synth, E minor, 120 BPM |
75
+ | `paper` | Warm paper ground, near-black ink, terracotta signal, one blue moment, soft springs | Pretendard throughout, MesloLGS NF labels | cut, match, wipe, iris, push | soft-keys, F major, 96 BPM |
76
+
77
+ `swiss-signal`, `tidal` and `terminalcore` are the type engine's presets too, so a style means the same
78
+ palette on both paths. `paper` is stage-only.
79
+
80
+ Type sizes per role (px):
81
+
82
+ | Style | 16:9 display / headline / body / label | 9:16 display / headline / body / label |
83
+ |---|---|---|
84
+ | swiss-signal | 128 / 76 / 40 / 26 | 120 / 80 / 46 / 32 |
85
+ | tidal | 116 / 72 / 40 / 26 | 112 / 76 / 46 / 32 |
86
+ | terminalcore | 126 / 81 / 45 / 36 | 117 / 81 / 54 / 36 |
87
+ | paper | 112 / 68 / 40 / 26 | 108 / 74 / 46 / 32 |
88
+
89
+ `motion.mjs styles --out <dir> [--format 16:9|9:16]` renders the same demo film in every style and
90
+ writes `<dir>/styles.png`, the four boards side by side. Show it when the user wants to choose a style,
91
+ or asks what the films will look like.
92
+
93
+ ## Choosing the style
94
+
95
+ In this order, first match wins; the validator refuses anything else and says which rule chose:
96
+
97
+ 1. The request names a style: its id (`swiss-signal`, `tidal`, `terminalcore`) or `paper style`
98
+ (`페이퍼`, `타이달`, `터미널코어`, `스위스 시그널` too).
99
+ 2. The project's house style (`motion-house.json` beside the output folder).
100
+ 3. A keyword in the request or the copy: terminal words (터미널, CRT, 해커, terminal, hacker) take
101
+ `terminalcore`; calm or wave words (물결, 파도, 잔잔한, 흐름, gradient, wave, tide, calm) take `tidal`;
102
+ warm or paper words (따뜻한, 밝은, 종이, 손그림, 포근한, 아기자기, warm, cozy, bright, paper, handmade,
103
+ hand-drawn) take `paper` on the stage path.
104
+ 4. The genre: an `explainer` takes `paper` (a warm, legible ground for diagrams and steps; on the type
105
+ path, where `paper` has no preset, the rule is skipped) and a `brand-mood` film takes `tidal`.
106
+ 5. Otherwise `swiss-signal`.
107
+
108
+ The style fixes more than colour. On the stage path the treatment's `palette` may only list the style's
109
+ colours (a rich film adds its role accents), `typePlan.faces` only its faces, and a minimal film's
110
+ generated bed is one of the style's beds exactly. A score takes the style's genre unless `sound.genre`
111
+ names another.
112
+ On the type path the brief's `style` must equal the treatment's style or be left out.
113
+
114
+ ## Shots and layouts
115
+
116
+ Each beat carries three shot fields on the stage path:
117
+
118
+ | Field | Rule |
119
+ |---|---|
120
+ | `layout` | `title`, `split`, `split-alt`, `stage`, `full` or `hero` |
121
+ | `hero` | The one move the eye follows in this shot, as a viewer would describe it |
122
+ | `transition` | How the shot hands off: a word from the style's list; the last shot is `end` |
123
+ | `lines` | Optional: the indices of the copy lines this shot shows (a `full` shot shows none) |
124
+
125
+ The layouts, as `[x, y, w, h]` fractions of the frame:
126
+
127
+ | Layout | 16:9 type zone | 16:9 subject zone | 9:16 type zone | 9:16 subject zone |
128
+ |---|---|---|---|---|
129
+ | `title` | 0.08, 0.20, 0.84, 0.60 | whole frame (backdrop) | 0.09, 0.26, 0.82, 0.48 | whole frame |
130
+ | `split` | 0.08, 0.16, 0.36, 0.68 (left) | 0.48, 0.08, 0.46, 0.84 | 0.09, 0.08, 0.82, 0.26 (top) | 0.06, 0.36, 0.88, 0.56 |
131
+ | `split-alt` | 0.56, 0.16, 0.36, 0.68 (right) | 0.06, 0.08, 0.46, 0.84 | 0.09, 0.66, 0.82, 0.26 (bottom) | 0.06, 0.06, 0.88, 0.56 |
132
+ | `stage` | 0.08, 0.75, 0.84, 0.18 (caption band) | 0.06, 0.07, 0.88, 0.64 | 0.09, 0.79, 0.82, 0.13 | 0.06, 0.06, 0.88, 0.68 |
133
+ | `full` | none: no copy | whole frame | none | whole frame |
134
+ | `hero` | 0.08, 0.76, 0.84, 0.17 (low band) | 0.03, 0.03, 0.94, 0.94 | 0.09, 0.80, 0.82, 0.12 | 0.03, 0.03, 0.94, 0.94 |
135
+
136
+ Choose layouts for the story: `title` for an opening or closing line over a backdrop, `split` and
137
+ `split-alt` for a line beside the thing it is about (alternate them so the eye moves), `stage` when the
138
+ drawing is the shot and the words are a caption, `full` when the picture must speak alone, `hero` when
139
+ the protagonist fills the frame (a close-up, the turn, the product reveal) with one short line under
140
+ it. Composition changes with the story: two adjacent shots never share a layout, and a film of four or
141
+ more shots uses at least three layouts; the validator refuses a treatment that parks the eye. One hero
142
+ move leads each shot and the eye follows it; in a rich film the world around it keeps working:
143
+ secondary moves on the labelled parts travel 50-70 % as far and start 0.1-0.2 s later, the layers drift
144
+ at their own depths, and ambient motion never stops. A minimal film keeps ambient motion under the
145
+ style's ambient travel.
146
+
147
+ ## The page: style.css, style.js and the kit
148
+
149
+ The renderer serves two files for the film's style and format:
150
+
151
+ - `/lit/style.css`: custom properties (`--lit-ground`, `--lit-ink`, `--lit-muted`, `--lit-signal`,
152
+ `--lit-accent`, `--lit-line`, `--lit-surface`, the size steps), the body ground, the type-role classes
153
+ `.lit-display`, `.lit-headline`, `.lit-body`, `.lit-label` (face, size, weight, leading) and the colour
154
+ classes `.lit-ink`, `.lit-muted`, `.lit-signal`, `.lit-accent`, `.lit-knockout`.
155
+ - `/lit/style.js`: `window.LitStyle` (the tokens, with the layout zones in pixels for this format) and
156
+ `window.LitTimeline` (the treatment's shots: `t0`, `t1`, `layout`, `transition`, plus fps and length).
157
+
158
+ The kit reads them:
159
+
160
+ - `LitStage.shot(t)` returns the shot at `t`: `index`, `beat`, `layout`, `transition`, `local` (seconds
161
+ into the shot), `length`, `p` (0..1), `enter(delay, dur)` (0 to 1 on the style's entrance ease) and
162
+ `exit(dur)` (0 to 1 over the shot's last `dur` seconds on its exit ease).
163
+ - `LitStage.zone(layout, "type" | "subject")` returns `{ x, y, w, h }` in pixels;
164
+ `LitStage.place(el, layout, part)` positions an element there.
165
+ - `LitStage.tokens()` returns the style's eases as functions (`enter`, `move`, `exit`), durations,
166
+ staggers, a spring per object class (`micro`, `panel`, `headline`, `subject`, `camera`, each a
167
+ function of seconds from 0 to 1), `secondary`, `ambient` and `push`.
168
+
169
+ The page times every shot from `LitTimeline`, so the treatment, the page, the stills, the board, the
170
+ sound cues and the gate read one timeline. Set copy with the classes (or the same values): the gate
171
+ checks the result, not the class names.
172
+
173
+ ## Scaffold
174
+
175
+ `motion.mjs scaffold --out <dir>` needs a valid stage treatment and writes `<dir>/stage/index.html`:
176
+ the COPY block with every copy line, one `<section>` per shot with its type placed in the shot's type
177
+ zone (first line headline, or display in a `title` shot; further lines body in the muted colour), an
178
+ empty `<svg>` in the subject zone, entrances on the style's ease, the hand-off of each shot (wipe,
179
+ iris, dissolve, push; match, morph and cut switch on the cut, so carry the matching shape yourself),
180
+ and one `DRAW` function per shot. Fill the `DRAW` functions: they receive the shot (`s`), the shot's
181
+ svg and `t`. Change the structure only for a reason the treatment states. The scaffold never replaces
182
+ an existing page.
183
+
184
+ ## The board round
185
+
186
+ Round 1 is the board round. A stills-only render writes the stills set and `stills/board.png`: one
187
+ keyframe per shot with its number, time, layout and hand-off under it and its hero move in words, the
188
+ shot's type zone dashed over the frame, and a header with the style, palette and the film's format,
189
+ length and bed. On the stage path the same render runs the board check, the gate's text and style
190
+ rules on the board frames, writes `stills/check.json` and prints the verdict on the board.
191
+
192
+ - Exit 0: open the board and every still with Read, record round 1 with its change, and render the
193
+ film.
194
+ - Exit 13 `BOARD_CHECK_FAIL`: the message names each failed rule. Fix the page and render the board
195
+ again before the full render; a full render fails the same rules.
196
+
197
+ The board is a deliverable. The reply names it, so the user can see what was built.
198
+
199
+ ## Style rules in the gate
200
+
201
+ All FAIL, on the stage path, on the board round and the full render alike:
202
+
203
+ | Rule | Fails when | Typical fix |
204
+ |---|---|---|
205
+ | `TEXT-OVERLAP` | Two visible text runs overlap by more than 8 % of the smaller box at a QA sample | Fewer lines per shot, the `split` layout, or let one line leave before the next arrives |
206
+ | `TEXT-ON-STYLE` | Settled copy is in a colour outside the style's text roles, a face outside the style, or a size more than 4 % off the type scale | Use the type-role and colour classes |
207
+ | `TEXT-ZONE` | Settled copy sits outside its shot's type zone (by more than 1.2 % of the frame), or any copy shows in a `full` shot | Shorter copy, a smaller role, or a layout with a larger type zone |
208
+ | `TEXT-OVERLAP` (cut) | Text of the outgoing and the incoming shot overlaps during a hand-off: the QA samples every second frame within 0.4 s of each cut, and the failure is marked `(cut)` | Let the outgoing copy leave before the incoming copy arrives, or move the incoming copy to a different zone |
209
+ | `FLAT-FRAME` (full render) | More than 1 s of frames whose 0.5-99.5 % luminance spread is under 0.02: an empty frame of any colour | Draw the shot; never leave a stub `DRAW` empty |
210
+ | `DEAD-AIR` (full render) | More than 0.5 s in a row (0.4 s more allowed at the opening, 0.6 s more at the close) where under 2.5 % of the frame carries anything: a 48 px cell counts when its pixels vary (sd over 6) or differ from the ground by more than 16 levels | Keep the protagonist or the next shot's subject on screen through the hand-off; enter the next thing before the last one has gone |
211
+ | `ASSET-USED` (named product) | `product.assets` lists real files and the page loads none of them | Show the real logo, screenshot or README image from `stage/assets/` |
212
+
213
+ Non-copy text off the scale is a WARN; decor text (`text(el, { decor: true })`) is exempt. The cut
214
+ samples check overlap only: copy in mid-transition is off its zone and scale by design.
215
+
216
+ `FLAT-FRAME` catches a blank frame; `DEAD-AIR` catches the frame that is not blank but says nothing,
217
+ one thin line or a lone label on an empty ground, held long enough to read as a stall.
218
+
219
+ ## Preview
220
+
221
+ When the request asks for a preview or a storyboard first (미리보기, 스토리보드, 콘티, preview,
222
+ storyboard), set `preview: true` in the treatment. The film is then done at the board: a board round
223
+ whose check passed, looked at, with the board in the viewed list. The reply shows the board and says the
224
+ film is not rendered yet; when the user says go, set `preview` to false and render the film. Without
225
+ those words a bare `lit` still asks no questions and renders the film, and the reply still names the
226
+ board.
227
+
228
+ ## The house file
229
+
230
+ `motion-house.json` sits beside the output folder (the user's working directory):
231
+
232
+ ```json
233
+ { "schema": "litclaude.motion-house/v1", "style": "<style id>", "createdAt": "<time>", "films": [{ "dir": "<folder>", "style": "<style id>", "path": "<stage or type>", "format": "<16:9 or 9:16>", "durationSec": 0, "at": "<time>" }] }
234
+ ```
235
+
236
+ The renderer writes it when a full render passes and nothing is withheld; the first film sets the
237
+ house style and later films are appended. While it exists the validator holds new films in that folder
238
+ to the house style; a request that names another style wins for that film and does not move the house
239
+ style. To change the house style, edit `style` in the file or delete it.
240
+
241
+ ## What stays free
242
+
243
+ The subject, the idea, the copy, the drawing, the hero moves and the arc stay the model's, with the
244
+ treatment's concept rules (`treatment.md`). The studio fixes how a film looks and is built, never what
245
+ it is about.
@@ -2,17 +2,18 @@
2
2
 
3
3
  A style bible is the one page that decides how a film looks before any scene is written: the
4
4
  palette, the three type voices, the motion vocabulary, the shader passes and their order, the
5
- layout grid, what to avoid, and what makes this film its own. The engine carries each preset as
6
- data (`engine/core/presets.mjs`); this page is the reasoning behind that data. Write the film's own
7
- short bible in the reply when the user asked for a direction; under a bare `lit`, state the preset
8
- and why in one sentence.
5
+ layout grid, what to avoid, and what makes this film its own. The type engine carries each preset as
6
+ data (`engine/core/presets.mjs`), and the house styles carry the same palettes for the stage path
7
+ (`styles/<id>.json`, `studio.md`); this page is the reasoning behind that data. The treatment's
8
+ `style` decides the preset on the type path, so the brief leaves `style` out; under a bare `lit`, state
9
+ the style and the rule that chose it in one sentence.
9
10
 
10
11
  ## Template
11
12
 
12
13
  | Part | Decide |
13
14
  | --- | --- |
14
15
  | Idea | One sentence: what the film says and the single image it leaves. |
15
- | Palette | A ground, one type colour, one signal hue, at most one rare accent. Name every colour by role. |
16
+ | Palette | A ground, one type colour, one signal hue; a rich film (the default) adds the style's accents, each for one role, and a minimal one at most one rare accent. Name every colour by role. |
16
17
  | Three voices | Display (titles, hooks), body (running text; Hangul body for Korean), machine (data, credits, counters). |
17
18
  | Motion tone | Named tokens only: how type lands, how long it holds, how a shot ends. No per-shot curves. |
18
19
  | Passes | Which look-library passes run, in which order, and how strongly. |
@@ -23,7 +24,9 @@ and why in one sentence.
23
24
  ## Auto-pick (MO-B-00)
24
25
 
25
26
  Checked in order, first match wins, whole words only (a Korean keyword must start a token, so it
26
- never matches the tail of a longer word). An explicit `style` always wins.
27
+ never matches the tail of a longer word). A style the request names always wins, then the project's
28
+ house style. The treatment validator applies the same table to the request and the copy, plus the
29
+ `paper` row on the stage path (`studio.md`).
27
30
 
28
31
  | The brief mentions | Preset |
29
32
  | --- | --- |
@@ -115,3 +118,24 @@ fast that held type smears.
115
118
 
116
119
  **Originality.** The flow field is seeded per shot, so no two films share one; stops are chosen for
117
120
  the brief within two or three restrained colours.
121
+
122
+ ## paper (stage path only)
123
+
124
+ **Palette.** Warm paper ground `#F3EEE5`; near-black ink `#1D1B18`; muted `#5B564E` for second lines;
125
+ one terracotta signal `#B0452A`; one blue accent `#2B5D8E` for a single moment; line `#C9BFAE` for
126
+ drawn strokes. Ink on paper is 14.9:1, muted 6.3:1, signal 4.9:1.
127
+
128
+ **Voices.** Pretendard throughout (700 for display and headline, 400 for body), MesloLGS NF for small
129
+ labels. Hangul and Latin share one face, so mixed lines keep one colour of type.
130
+
131
+ **Motion.** Soft springs: panels settle at damping 0.8, the subject may bounce at 0.6, type never
132
+ overshoots. Entrances on a quint-like ease-out, exits shorter and on an ease-in.
133
+
134
+ **Grid.** The shared layout zones (`studio.md`), generous margins, drawings in line weight rather than
135
+ fills.
136
+
137
+ **Anti-slop.** Drop shadows that float type; neon or glow; gradients on type; more than two saturated
138
+ colours on screen; bouncy type.
139
+
140
+ **Originality.** The drawing carries the film: hand-drawn lines, paper cut-outs, small diagrams. The
141
+ ground stays plain so the drawing reads.