@ikenga/video-script-structure 0.2.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.
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Royalti Inc.
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,31 @@
1
+ # @ikenga/video-script-structure
2
+
3
+ Pure schema/convention doc for video script structure. Engine-agnostic, zero deps — a reusable authoring convention any agent can adopt.
4
+
5
+ ## Bundled skills
6
+
7
+ - `video-script-structure`
8
+
9
+ ## Install
10
+
11
+ ```bash
12
+ npx skills add royalti-io/video-script-structure # coming in the publish session
13
+ ```
14
+
15
+ ## Provenance
16
+
17
+ Extracted from `com.ikenga.studio` (`packages/apps/studio`) per **Ọba registry
18
+ WP-17 Phase A** (ADR-015 decision 4 — hard-retire pkg asset-bundling). During
19
+ Phase A, Studio keeps its own `skills/` folder intact (interim duplication);
20
+ the cutover that switches Studio to `requires` and deletes the bundled copy is
21
+ Phase B, gated on the forward-dependency resolver (WP-11 + WP-13/14).
22
+
23
+ > **`requires` edges pending WP-11.** The cross-primitive `requires` field
24
+ > (e.g. the two suites → `studio-beat-detect`) is **not** declared yet: the
25
+ > manifest `requires` field does not exist in `@ikenga/contract` /
26
+ > `manifest.rs` until WP-11, and the Rust loader's `deny_unknown_fields` would
27
+ > reject it. Phase B adds the field + the edges once the schema accepts them.
28
+
29
+ ## License
30
+
31
+ Apache-2.0 — see [LICENSE](../../LICENSE) (monorepo root).
package/manifest.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "id": "com.ikenga.video-script-structure",
3
+ "name": "Video Script Structure",
4
+ "version": "0.2.0",
5
+ "ikenga_api": "1",
6
+ "kind": "skill",
7
+ "author": {
8
+ "name": "Royalti",
9
+ "key": "royalti"
10
+ },
11
+ "permissions": {
12
+ "shell.execute": [],
13
+ "fs.read": [],
14
+ "fs.write": [],
15
+ "net": [],
16
+ "sqlite.tables": [],
17
+ "vault.keys": []
18
+ }
19
+ }
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "@ikenga/video-script-structure",
3
+ "version": "0.2.0",
4
+ "description": "Pure schema/convention doc for video script structure. Engine-agnostic, zero deps — a reusable authoring convention any agent can adopt.",
5
+ "keywords": [
6
+ "claude",
7
+ "claude-code",
8
+ "agent-skills",
9
+ "skills",
10
+ "ikenga",
11
+ "video",
12
+ "script",
13
+ "structure",
14
+ "convention",
15
+ "writing"
16
+ ],
17
+ "homepage": "https://ikenga.dev",
18
+ "bugs": {
19
+ "url": "https://github.com/Royalti-io/ikenga-pkgs/issues"
20
+ },
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://github.com/Royalti-io/ikenga-pkgs.git",
24
+ "directory": "packages/skills/video-script-structure"
25
+ },
26
+ "license": "Apache-2.0",
27
+ "type": "module",
28
+ "publishConfig": {
29
+ "access": "public"
30
+ },
31
+ "engines": {
32
+ "node": ">=18"
33
+ },
34
+ "files": [
35
+ "manifest.json",
36
+ "skills",
37
+ "README.md"
38
+ ],
39
+ "scripts": {
40
+ "build": "echo 'no build — content-only pkg'",
41
+ "typecheck": "echo 'no ts — content-only pkg'"
42
+ }
43
+ }
@@ -0,0 +1,481 @@
1
+ <!-- LIFTED-FROM: royalti-co/.claude/skills/video-script-structure (hard-copied 2026-05-22 for com.ikenga.studio; edit here, do not diff back) -->
2
+ ---
3
+ name: video-script-structure
4
+ description: Video script YAML schema V3 with beats[], storyboard[] sentence-level sync, progressive reveals, annotated images, screen mockups, and word-level subtitles for the Remotion video engine. Use when creating video scripts or converting blog content to video format.
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Glob
9
+ - Grep
10
+ ---
11
+
12
+ # Video Script Structure Skill V3
13
+
14
+ ## Purpose
15
+
16
+ Defines the structure and conventions for creating video scripts with **multi-beat visual cuts** that render in the Royalti Remotion video engine. Scripts are YAML files consumed by `BlogExplainerVideo` composition.
17
+
18
+ ---
19
+
20
+ ## Fireship.io Style Principles
21
+
22
+ 1. **Rapid-fire delivery** — Dense information, no filler
23
+ 2. **Visual-first** — Every concept gets multiple visual beats, never static for >4 seconds
24
+ 3. **Humor and personality** — Not dry or corporate
25
+ 4. **Time-constrained** — 3-8 minutes for educational content
26
+ 5. **Fast cuts** — Average shot length 2-4 seconds, alternating visual types
27
+
28
+ ### Timing Conventions
29
+
30
+ | Section Type | Duration | Beats |
31
+ |--------------|----------|-------|
32
+ | Hook | 10-15 seconds | 1 visual (short, impactful) |
33
+ | Main Section | 30-60 seconds | 5-6 beats (cut every 3-5s) |
34
+ | CTA | 10-20 seconds | 1 visual (end_screen) |
35
+
36
+ ---
37
+
38
+ ## YAML Schema V2
39
+
40
+ ### Canonical Field Names
41
+
42
+ - **`narration`** — Voiceover text (NOT `script`)
43
+ - **`beats`** — Array of visual beats per section (NOT singular `visual`)
44
+ - **Hook and CTA** keep single `visual` (they're short enough)
45
+
46
+ ### Root Structure
47
+
48
+ ```yaml
49
+ video:
50
+ title: string # Video title (60 chars max for YouTube)
51
+ slug: string # URL-friendly identifier
52
+ duration: string # "M:SS" format (informational)
53
+ style: string # "educational" | "tutorial" | "explainer"
54
+
55
+ hook:
56
+ narration: string # Spoken content (multiline)
57
+ visual: Visual # ONE visual for the hook
58
+ duration: number # Optional, in seconds
59
+
60
+ sections:
61
+ - id: string # Unique section identifier
62
+ title: string # Section heading (shown as LowerThird)
63
+ narration: string # Spoken content for the full section
64
+ beats: # Array of visual beats (REQUIRED, min 1)
65
+ - visual: Visual
66
+ duration: number # Seconds (2-8). Optional, auto-distributed if omitted.
67
+ transition: string # See Beat Transitions below. Default: "cut"
68
+ emphasis: boolean # Extra visual punch. Default: false
69
+ duration: number # Optional total section duration override
70
+
71
+ cta:
72
+ narration: string
73
+ visual: Visual # Should be type: end_screen
74
+ duration: number # Optional
75
+
76
+ metadata: # Optional
77
+ source: string
78
+ date: string
79
+ tags: string[]
80
+ ```
81
+
82
+ ### Beat Transitions
83
+
84
+ | Transition | Effect | Frames |
85
+ |-----------|--------|--------|
86
+ | `cut` | Instant switch (default) | 0 |
87
+ | `fade` | Cross-dissolve | 8 |
88
+ | `slide_left` | Content slides from left | 10 |
89
+ | `slide_right` | Content slides from right | 10 |
90
+ | `push_left` | Both contents push left | 10 |
91
+ | `push_right` | Both contents push right | 10 |
92
+ | `zoom_in` | Scale + fade in | 10 |
93
+ | `zoom_out` | Scale + fade out | 10 |
94
+ | `wipe_left` | Wipe reveal from left | 10 |
95
+ | `clock_wipe` | Radial clock reveal | 12 |
96
+
97
+ ---
98
+
99
+ ## V3: Storyboard (Sentence-Level Visual Sync)
100
+
101
+ Beats can optionally include a `storyboard[]` that maps narration segments to visual actions. This enables Vox Media-style progressive reveals and annotated overlays synced to voiceover.
102
+
103
+ ### Beat with Storyboard
104
+
105
+ ```yaml
106
+ - visual:
107
+ type: react_diagram
108
+ diagram_type: flowchart
109
+ diagram_data:
110
+ steps:
111
+ - label: "ISRC"
112
+ description: "Recording ID"
113
+ - label: "ISWC"
114
+ description: "Composition ID"
115
+ - label: "UPC"
116
+ description: "Album ID"
117
+ direction: horizontal
118
+ duration: 8
119
+ transition: slide_right
120
+ storyboard:
121
+ - segment: "ISRC identifies the recording."
122
+ action:
123
+ type: highlight_step
124
+ index: 0
125
+ - segment: "ISWC identifies the composition."
126
+ action:
127
+ type: highlight_step
128
+ index: 1
129
+ - segment: "UPC identifies the album."
130
+ action:
131
+ type: highlight_step
132
+ index: 2
133
+ subtitles: true # Optional: word-level subtitle overlay
134
+ ```
135
+
136
+ ### Storyboard Action Types
137
+
138
+ | Action | Visual Type | Effect |
139
+ |--------|------------|--------|
140
+ | `highlight_step` | FlowChart | Highlight step at `index`, auto-reveal up to that step |
141
+ | `reveal_spoke` | HubSpoke | Reveal spoke at `index`, highlight it |
142
+ | `reveal_up_to` | Any diagram | Show first `count` elements |
143
+ | `highlight_stat` | StatGrid | Highlight stat at `index` with glow ring |
144
+ | `reveal_annotation` | annotated_image, screen_mockup | Show annotation at `index` |
145
+ | `reveal_all_annotations` | annotated_image, screen_mockup | Show all remaining annotations |
146
+ | `mask_reveal` | annotated_image | Reveal image from dark via mask |
147
+ | `zoom_to` | generated_image | Ken Burns zoom to `{x, y, scale}` |
148
+ | `emphasize_words` | text_overlay | Highlight specific `words[]` |
149
+ | `swap_text` | text_overlay | Replace text with new `content` |
150
+
151
+ ### Subtitles
152
+
153
+ Set `subtitles: true` on a beat to show word-by-word highlighted captions at the bottom of the screen. Uses ElevenLabs character timestamps + @remotion/captions for precise word timing.
154
+
155
+ ---
156
+
157
+ ## V3: New Visual Types
158
+
159
+ ### `annotated_image`
160
+
161
+ Base image with timed annotation overlays (Vox style: "here's the document, THIS is the part that matters").
162
+
163
+ ```yaml
164
+ visual:
165
+ type: annotated_image
166
+ base_image: "royalty-statement-closeup" # Asset ID in visual manifest
167
+ annotations:
168
+ - label: "Reporting Period"
169
+ x: 25 # Percentage (0-100)
170
+ y: 15
171
+ style: highlight # circle | arrow | highlight
172
+ - label: "Track IDs"
173
+ x: 50
174
+ y: 40
175
+ style: circle
176
+ mask_reveal: true # Optional: image hidden until first annotation
177
+ ```
178
+
179
+ ### `screen_mockup`
180
+
181
+ App screenshot or recording with browser chrome frame + annotations. Supports Playwright auto-capture.
182
+
183
+ ```yaml
184
+ visual:
185
+ type: screen_mockup
186
+ src: "royalti-dashboard.png" # Static asset (when no capture)
187
+ capture: # Optional: Playwright auto-capture
188
+ url: "https://app.royalti.io/statements"
189
+ mode: screenshot # screenshot | recording
190
+ viewport: { width: 1920, height: 1080 }
191
+ wait_for: "[data-testid=table]"
192
+ actions:
193
+ - { click: ".upload-btn" }
194
+ - { wait: 1000 }
195
+ auth:
196
+ cookie_file: ".env.playwright-cookies"
197
+ annotations:
198
+ - label: "Upload Button"
199
+ x: 30
200
+ y: 50
201
+ style: circle
202
+ device: browser # browser | mobile | tablet | none
203
+ ```
204
+
205
+ ---
206
+
207
+ ## Visual Types
208
+
209
+ ### `react_diagram`
210
+
211
+ ```yaml
212
+ visual:
213
+ type: react_diagram
214
+ diagram_type: flowchart | timeline | comparison | hubspoke | statgrid
215
+ diagram_data: { ... }
216
+ ```
217
+
218
+ **Diagram data shapes:**
219
+
220
+ - **flowchart**: `{ steps: [{ label, description?, icon? }], direction?: "horizontal"/"vertical" }`
221
+ - **timeline**: `{ events: [{ date, label, description? }], direction? }`
222
+ - **comparison**: `{ left: { title, items: string[] }, right: { title, items: string[] }, vsLabel? }`
223
+ - **hubspoke**: `{ center: { label, icon? }, spokes: [{ label, icon? }] }`
224
+ - **statgrid**: `{ stats: [{ value, label, prefix?, suffix? }], columns?: 2/3/4 }`
225
+
226
+ ### `generated_image`
227
+
228
+ ```yaml
229
+ visual:
230
+ type: generated_image
231
+ prompt: "Descriptive Gemini prompt — specific composition, lighting, mood"
232
+ style: cinematic # optional
233
+ ```
234
+
235
+ ### `text_overlay`
236
+
237
+ ```yaml
238
+ visual:
239
+ type: text_overlay
240
+ content: "40% of Revenue Left on the Table"
241
+ highlight_words: ["40%"] # optional — words that get color/scale emphasis
242
+ ```
243
+
244
+ ### `counter_animation`
245
+
246
+ ```yaml
247
+ visual:
248
+ type: counter_animation
249
+ content: "$3,000,000,000+"
250
+ ```
251
+
252
+ ### `code_snippet`
253
+
254
+ ```yaml
255
+ visual:
256
+ type: code_snippet
257
+ code: |
258
+ const royalties = await api.getRoyalties(artistId);
259
+ language: typescript
260
+ ```
261
+
262
+ ### `end_screen`
263
+
264
+ ```yaml
265
+ visual:
266
+ type: end_screen
267
+ headline: "Track All 7 Royalty Types"
268
+ cta: "Try Royalti Free"
269
+ ```
270
+
271
+ ---
272
+
273
+ ## Beat Composition Rules
274
+
275
+ 1. **5-6 beats per 30 seconds** of narration
276
+ 2. **Never repeat visual type** in adjacent beats (text -> diagram -> image -> text)
277
+ 3. **Never repeat transition** more than twice in a row
278
+ 4. **1-2 emphasis beats** per section for key moments
279
+ 5. **First beat transition is ignored** (it's the section entry)
280
+ 6. **At least 3 different visual types** per section
281
+
282
+ ---
283
+
284
+ ## Visual Type Decision Tree
285
+
286
+ Choose the right visual type based on content:
287
+
288
+ | Content Pattern | Visual Type | When to Use |
289
+ |----------------|-------------|-------------|
290
+ | Steps, workflows, pipelines | `react_diagram` (flowchart) | Structured data with clear sequence |
291
+ | Timelines, chronologies | `react_diagram` (timeline) | Date-ordered events |
292
+ | A vs B comparisons | `react_diagram` (comparison) | Two-sided analysis |
293
+ | Central concept + related items | `react_diagram` (hubspoke) | Relationship mapping |
294
+ | Key metrics, numbers | `react_diagram` (statgrid) | Dashboard-style stat cards |
295
+ | Hand-drawn / whiteboard feel | `excalidraw_diagram` | Sketchy, informal explanations |
296
+ | Conceptual illustrations | `generated_image` | Abstract concepts, metaphors |
297
+ | Real app screenshots | `screen_mockup` | Product demos, UI walkthroughs |
298
+ | Bold statements, key quotes | `text_overlay` | Emphasis moments, pull quotes |
299
+ | Dramatic statistics | `counter_animation` | Single big number reveals |
300
+ | Code examples | `code_snippet` | Technical tutorials |
301
+ | Final call-to-action | `end_screen` | Last beat of CTA section |
302
+
303
+ ### `excalidraw_diagram` (Animated Hand-Drawn)
304
+
305
+ ```yaml
306
+ visual:
307
+ type: excalidraw_diagram
308
+ diagram_type: flowchart | timeline | comparison | hubspoke | statgrid | process | mindmap | wireframe
309
+ diagram_data: { ... } # Same shapes as react_diagram equivalents
310
+ roughness: 1 # 0=clean, 1=sketchy (default), 2=rough
311
+ theme: dark # light or dark (default: dark)
312
+ ```
313
+
314
+ Renders as **animated SVG** in the composition (shapes spring in, arrows draw on, text fades). Supports storyboard actions (`highlight_step`, `reveal_up_to`) for progressive reveal.
315
+
316
+ Use `excalidraw_diagram` when you want a **casual, whiteboard-style** look. Use `react_diagram` for **polished, branded** diagrams.
317
+
318
+ ---
319
+
320
+ ## Complete Example
321
+
322
+ ```yaml
323
+ video:
324
+ title: "7 Types of Music Royalties Explained"
325
+ slug: understanding-royalty-types
326
+ duration: "5:30"
327
+ style: educational
328
+
329
+ hook:
330
+ narration: |
331
+ You're leaving money on the table.
332
+ Most independent artists collect only ONE of the SEVEN royalty types
333
+ they're entitled to. That's up to 40% of your potential revenue—gone.
334
+ visual:
335
+ type: text_overlay
336
+ content: "40% Revenue Left Behind"
337
+
338
+ sections:
339
+ - id: intro
340
+ title: "The Problem"
341
+ narration: |
342
+ Here's the thing—the music industry has SEVEN different ways
343
+ to pay you, but they're spread across different organizations,
344
+ different platforms, and different payment schedules.
345
+ [BEAT]
346
+ Let's break down each one in 5 minutes.
347
+ beats:
348
+ - visual:
349
+ type: text_overlay
350
+ content: "7 Ways The Industry Pays You"
351
+ duration: 3
352
+ transition: cut
353
+ - visual:
354
+ type: react_diagram
355
+ diagram_type: hubspoke
356
+ diagram_data:
357
+ center:
358
+ label: "YOUR MUSIC"
359
+ spokes:
360
+ - label: "Mechanical"
361
+ - label: "Performance"
362
+ - label: "Sync"
363
+ - label: "Print"
364
+ - label: "Digital Perf."
365
+ - label: "Neighbouring"
366
+ - label: "Micro-Sync"
367
+ duration: 6
368
+ transition: slide_left
369
+ emphasis: true
370
+ - visual:
371
+ type: generated_image
372
+ prompt: "Scattered US dollar bills on dark surface, music notes overlay, teal accent lighting"
373
+ duration: 3
374
+ transition: push_right
375
+ - visual:
376
+ type: text_overlay
377
+ content: "Let's break it down"
378
+ duration: 2
379
+ transition: fade
380
+
381
+ - id: mechanical
382
+ title: "Mechanical Royalties"
383
+ narration: |
384
+ First up: Mechanical royalties.
385
+ Every time your song is REPRODUCED—streamed, downloaded,
386
+ or pressed to vinyl—you earn mechanical royalties.
387
+ [BEAT]
388
+ In the US, the MLC collects these from streaming platforms.
389
+ Since 2021, they've distributed over 3 BILLION dollars.
390
+ Are you registered?
391
+ beats:
392
+ - visual:
393
+ type: text_overlay
394
+ content: "1. Mechanical Royalties"
395
+ duration: 2
396
+ transition: cut
397
+ - visual:
398
+ type: react_diagram
399
+ diagram_type: flowchart
400
+ diagram_data:
401
+ steps:
402
+ - label: "Song"
403
+ description: "Your original work"
404
+ - label: "DSP"
405
+ description: "Spotify, Apple Music"
406
+ - label: "MLC"
407
+ description: "Mechanical Licensing Collective"
408
+ - label: "Artist"
409
+ description: "Your wallet"
410
+ duration: 5
411
+ transition: slide_left
412
+ - visual:
413
+ type: generated_image
414
+ prompt: "Vinyl record pressing machine close-up, dark industrial setting"
415
+ duration: 3
416
+ transition: push_right
417
+ - visual:
418
+ type: counter_animation
419
+ content: "$3,000,000,000+"
420
+ duration: 3
421
+ transition: zoom_in
422
+ emphasis: true
423
+ - visual:
424
+ type: text_overlay
425
+ content: "Are YOU registered?"
426
+ highlight_words: ["YOU"]
427
+ duration: 2
428
+ transition: fade
429
+
430
+ cta:
431
+ narration: |
432
+ That's 7 royalty types in 5 minutes.
433
+ Stop leaving money on the table.
434
+ Link in description to track all 7 in one dashboard.
435
+ visual:
436
+ type: end_screen
437
+ headline: "Track All 7 Royalty Types"
438
+ cta: "Try Royalti Free"
439
+
440
+ metadata:
441
+ source: .company/content/blog-drafts/2026-01-06-understanding-royalty-types/06-final.md
442
+ date: "2026-01-07"
443
+ tags: [royalties, education]
444
+ ```
445
+
446
+ ---
447
+
448
+ ## Script Writing Guidelines
449
+
450
+ **Spoken vs Written:**
451
+ - Blog: "Mechanical royalties are generated when your song is reproduced."
452
+ - Video: "Mechanical royalties. Every time your song is REPRODUCED—streamed, downloaded, pressed to vinyl—you earn these."
453
+
454
+ **Rules:**
455
+ - Remove passive voice, add emphasis with CAPS and dashes
456
+ - Break long sentences into fragments
457
+ - Include [BEAT] markers for pauses (+0.5s each)
458
+ - No sentences longer than 20 words
459
+ - Use `narration` (not `script`), `beats` (not `visual` singular)
460
+
461
+ ---
462
+
463
+ ## Timing Estimation
464
+
465
+ ```
466
+ Total Duration ≈ (Source Word Count / 150) minutes
467
+ Section: 30-60s → 5-6 beats
468
+ Hook: 10-15s → 1 visual
469
+ CTA: 10-20s → 1 visual (end_screen)
470
+ ```
471
+
472
+ ## File Placement
473
+
474
+ ```
475
+ .company/content/blog-drafts/YYYY-MM-DD-slug/
476
+ ├── 06-final.md
477
+ ├── video-script.yaml # Generated by /generate-video-script
478
+
479
+ royalti-video-engine/
480
+ ├── input/scripts/<slug>-script.yaml # Copied for rendering
481
+ ```