@slatesvideo/shared 0.7.7 → 0.7.8

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 (121) hide show
  1. package/README.md +3 -6
  2. package/dist/analytics/events.d.ts +1 -1
  3. package/dist/analytics/events.js +7 -0
  4. package/dist/auth.d.ts +2 -0
  5. package/dist/auth.js +5 -0
  6. package/dist/clients/cloud.d.ts +2 -0
  7. package/dist/clients/cloud.js +5 -1
  8. package/dist/index.d.ts +7 -3
  9. package/dist/index.js +7 -3
  10. package/dist/manual/content.d.ts +1 -1
  11. package/dist/manual/content.js +1 -1
  12. package/dist/operations/index.d.ts +587 -161
  13. package/dist/operations/index.js +663 -57
  14. package/dist/operations/surface.d.ts +2 -2
  15. package/dist/operations/surface.js +18 -5
  16. package/dist/prompts/agent-doctrine.d.ts +12 -2
  17. package/dist/prompts/agent-doctrine.js +56 -28
  18. package/dist/prompts/banned-tokens.js +23 -13
  19. package/dist/prompts/brain.d.ts +29 -0
  20. package/dist/prompts/brain.js +72 -0
  21. package/dist/prompts/craft-cards.d.ts +15 -4
  22. package/dist/prompts/craft-cards.js +71 -9
  23. package/dist/prompts/generation-policy.d.ts +1 -1
  24. package/dist/prompts/guide-discovery.d.ts +6 -6
  25. package/dist/prompts/guide-retrieval.d.ts +7 -1
  26. package/dist/prompts/guide-retrieval.js +33 -5
  27. package/dist/prompts/partials.generated.js +1 -13
  28. package/dist/prompts/shot-grammar.d.ts +1 -1
  29. package/dist/prompts/shot-grammar.js +1 -1
  30. package/dist/skills/brain-check.d.ts +44 -0
  31. package/dist/skills/brain-check.js +172 -0
  32. package/dist/skills/content.d.ts +3 -0
  33. package/dist/skills/content.js +81 -44
  34. package/dist/skills/hyperframes-content.js +4 -4
  35. package/dist/skills/my-brain.d.ts +52 -0
  36. package/dist/skills/my-brain.js +218 -0
  37. package/dist/skills/served.d.ts +52 -0
  38. package/dist/skills/served.js +202 -0
  39. package/package.json +2 -4
  40. package/skills/hyperframes/NOTICE +19 -3
  41. package/skills/hyperframes/SLATES-MAPPING.md +1 -1
  42. package/skills/hyperframes/embedded-captions/CATALOG.md +3 -0
  43. package/skills/hyperframes/embedded-captions/SKILL.md +6 -6
  44. package/skills/hyperframes/embedded-captions/assets/fonts/char-widths.json +227 -1
  45. package/skills/hyperframes/embedded-captions/modes/standard/fonts/build-fonts-css.cjs +19 -2
  46. package/skills/hyperframes/embedded-captions/modes/standard/fonts/files/archivo-latin-wdth-italic.woff2 +0 -0
  47. package/skills/hyperframes/embedded-captions/modes/standard/fonts/files/archivo-latin-wdth-normal.woff2 +0 -0
  48. package/skills/hyperframes/embedded-captions/scripts/make-theme.cjs +438 -3
  49. package/skills/hyperframes/embedded-captions/scripts/make-theme.test.mjs +1 -0
  50. package/skills/hyperframes/embedded-captions/themes/README.md +26 -1
  51. package/skills/hyperframes/embedded-captions/themes/lesson.json +31 -0
  52. package/skills/slates-start-here.md +78 -0
  53. package/exports/slates-chatgpt-images/generated/SKILL.md +0 -113
  54. package/exports/slates-chatgpt-images/generated/slates-chatgpt-images.skill +0 -0
  55. package/exports/slates-prompt-builder/generated/SKILL.md +0 -71
  56. package/exports/slates-prompt-builder/generated/reference-character.md +0 -92
  57. package/exports/slates-prompt-builder/generated/reference-content-policy.md +0 -81
  58. package/exports/slates-prompt-builder/generated/reference-gpt-image-2-5.md +0 -191
  59. package/exports/slates-prompt-builder/generated/reference-kling.md +0 -295
  60. package/exports/slates-prompt-builder/generated/reference-nano-banana.md +0 -240
  61. package/exports/slates-prompt-builder/generated/reference-omni-flash.md +0 -97
  62. package/exports/slates-prompt-builder/generated/reference-seedance-2-5.md +0 -392
  63. package/exports/slates-prompt-builder/generated/reference-seedance.md +0 -441
  64. package/exports/slates-prompt-builder/generated/slates-prompt-builder-manifest.json +0 -133
  65. package/exports/slates-prompt-builder/generated/slates-prompt-builder.skill +0 -0
  66. package/skills/_partials/blender-action-curves.md +0 -24
  67. package/skills/_partials/cinematic-card.md +0 -8
  68. package/skills/_partials/decision-log.md +0 -1
  69. package/skills/_partials/image-defaults.md +0 -9
  70. package/skills/_partials/iteration-diagnosis.md +0 -5
  71. package/skills/_partials/living-performance.md +0 -22
  72. package/skills/_partials/model-routing.md +0 -35
  73. package/skills/_partials/references-read-literally.md +0 -11
  74. package/skills/_partials/seedance-25-timestamps.md +0 -34
  75. package/skills/_partials/sheet-tool-defaults.md +0 -6
  76. package/skills/_partials/still-gate.md +0 -3
  77. package/skills/_partials/thresholds.md +0 -19
  78. package/skills/slates-blocking-to-prompt.md +0 -279
  79. package/skills/slates-camera-language.md +0 -234
  80. package/skills/slates-captions.md +0 -81
  81. package/skills/slates-character-identity.md +0 -117
  82. package/skills/slates-chatgpt-images.md +0 -113
  83. package/skills/slates-cinematic-look.md +0 -237
  84. package/skills/slates-content-policy.md +0 -88
  85. package/skills/slates-cost-discipline.md +0 -150
  86. package/skills/slates-cuts.md +0 -46
  87. package/skills/slates-dialogue-blocking.md +0 -134
  88. package/skills/slates-direct-response-ad.md +0 -26
  89. package/skills/slates-edit-and-iterate.md +0 -76
  90. package/skills/slates-layer-brand-captions.md +0 -87
  91. package/skills/slates-layer-lower-third.md +0 -85
  92. package/skills/slates-layer-title.md +0 -82
  93. package/skills/slates-model-selection.md +0 -129
  94. package/skills/slates-motion.md +0 -57
  95. package/skills/slates-one-prompt-film.md +0 -38
  96. package/skills/slates-previs-blocking.md +0 -186
  97. package/skills/slates-project-organization.md +0 -42
  98. package/skills/slates-prompting-elevenlabs.md +0 -128
  99. package/skills/slates-prompting-flux-3.md +0 -157
  100. package/skills/slates-prompting-gpt-image-2-5.md +0 -196
  101. package/skills/slates-prompting-inworld-tts.md +0 -174
  102. package/skills/slates-prompting-kling-v3.md +0 -303
  103. package/skills/slates-prompting-lip-sync.md +0 -216
  104. package/skills/slates-prompting-ltx-2-5.md +0 -245
  105. package/skills/slates-prompting-minimax-h3.md +0 -383
  106. package/skills/slates-prompting-motion-transfer.md +0 -202
  107. package/skills/slates-prompting-nano-banana-2-1.md +0 -250
  108. package/skills/slates-prompting-omni-flash.md +0 -117
  109. package/skills/slates-prompting-seed-audio.md +0 -168
  110. package/skills/slates-prompting-seedance-2-5.md +0 -420
  111. package/skills/slates-prompting-seedance.md +0 -462
  112. package/skills/slates-prompting-seedream-5-lite.md +0 -122
  113. package/skills/slates-prompting-wan-3.md +0 -143
  114. package/skills/slates-restyle-from-blocking.md +0 -121
  115. package/skills/slates-script-craft.md +0 -45
  116. package/skills/slates-shot-variety.md +0 -24
  117. package/skills/slates-storyboard-from-script.md +0 -32
  118. package/skills/slates-style-prompting.md +0 -56
  119. package/skills/slates-transitions.md +0 -40
  120. package/skills/slates-ugc-influencer-ad.md +0 -32
  121. package/skills/slates-vision-feedback-loop.md +0 -118
@@ -1,234 +0,0 @@
1
- ---
2
- name: slates-camera-language
3
- description: "Build or refine Blender camera rigs for a previs pass: orbits, floor rises, whip-and-lock moves, handheld, speed ramps and shot transitions. Use when the intended camera path needs deterministic control."
4
- ---
5
-
6
- # Camera language — from a shot list to a rig
7
-
8
- Companion to `slates-previs-blocking`. That skill owns the workflow; this one owns the camera.
9
-
10
- ## The first rule
11
-
12
- 🚨 **Never build "a cinematic camera move." Brief the camera the way you would brief an operator:** rails, target, height, lens, and the frame each move starts and ends on. "Cinematic" is not a specification, and asking for one produces the drifting slop the whole blocking workflow exists to avoid.
13
-
14
- Bad: *a dynamic cinematic orbit around the subject.*
15
- Good: *a 3/4 orbit starting rear-left at 1.6m, ending front-right at 0.9m, frames 1–96, 35mm, easing out of the start and holding hard on the last 8 frames.*
16
-
17
- If the user gives you the first, convert it to the second and say what you assumed.
18
-
19
- ## Look it up, don't recall it
20
-
21
- Before any constraint or operator you are not certain of, call `slates_blender_docs` (e.g. `bpy.types.FollowPathConstraint`) or `slates_blender_search_docs`. Invented enum values are the most common failure here and they often fail *quietly* — the constraint gets added, the axis is wrong, and the camera points at nothing.
22
-
23
- ## The two primitives everything is built from
24
-
25
- ### Target-based aiming
26
-
27
- Almost every move in this skill is *position on a path* plus *aim at a target*. Separating them is what lets framing vary while the subject stays in frame.
28
-
29
- ```python
30
- import bpy
31
-
32
- target = bpy.data.objects.new("CAM_TARGET", None) # an Empty
33
- target.empty_display_type = 'PLAIN_AXES'
34
- bpy.context.collection.objects.link(target)
35
-
36
- con = cam.constraints.new('TRACK_TO')
37
- con.target = target
38
- con.track_axis = 'TRACK_NEGATIVE_Z' # cameras look down -Z
39
- con.up_axis = 'UP_Y'
40
- ```
41
-
42
- **Aim at a separate target, not at the subject's head.** A camera locked to the head produces dead, centred framing. Offset the target beside or ahead of the subject and the shot breathes — that small offset is most of what reads as "real operator."
43
-
44
- For a subject that should notice the camera, keyframe the target's follow with a **few frames of lag** behind each camera move. Heads catch up; they don't teleport.
45
-
46
- ### Path-based movement
47
-
48
- ```python
49
- curve = bpy.data.curves.new("CAM_PATH", 'CURVE')
50
- curve.dimensions = '3D'
51
- spline = curve.splines.new('BEZIER')
52
- spline.bezier_points.add(len(points) - 1)
53
- for bp, co in zip(spline.bezier_points, points):
54
- bp.co = co
55
- bp.handle_left_type = bp.handle_right_type = 'AUTO'
56
-
57
- path = bpy.data.objects.new("CAM_PATH", curve)
58
- bpy.context.collection.objects.link(path)
59
-
60
- con = cam.constraints.new('FOLLOW_PATH')
61
- con.target = path
62
- con.use_curve_follow = False # aiming is the Track To constraint's job
63
-
64
- # Animate progress explicitly rather than relying on the default path animation.
65
- curve.path_duration = 96
66
- curve.eval_time = 0
67
- curve.keyframe_insert("eval_time", frame=1)
68
- curve.eval_time = 96
69
- curve.keyframe_insert("eval_time", frame=96)
70
- ```
71
-
72
- **Why a path and not raw location keys:** the user can drag a control point to retime or reshape the move without you regenerating anything. That is the difference between "re-prompt and hope" and "nudge it."
73
-
74
- <!-- @inject:blender-action-curves -->
75
- ## Read animation curves from the active action layout
76
-
77
- Blender 5 uses layered actions: curves belong to the channelbag for `animation_data.action_slot`, inside each layer's strips. A direct `action.fcurves` lookup failed on Blender 5.2.1 in the 2026-08-28 blocking run. Feature-detect the layout before changing interpolation or noise; an unanimated object can legitimately have no curves.
78
-
79
- The snippets below use this small Blender-side iterator. It runs inside Blender; no add-on code is imported into the MCP package.
80
-
81
- ```python
82
- def action_curves(datablock):
83
- anim = getattr(datablock, "animation_data", None)
84
- action = getattr(anim, "action", None)
85
- if action is None:
86
- return
87
- if hasattr(action, "fcurves"):
88
- yield from action.fcurves
89
- elif getattr(anim, "action_slot", None) is not None:
90
- for layer in action.layers:
91
- for strip in layer.strips:
92
- if hasattr(strip, "channelbag"):
93
- bag = strip.channelbag(anim.action_slot)
94
- if bag is not None:
95
- yield from bag.fcurves
96
- ```
97
-
98
- Use the datablock that owns the keyed property: the curve data for `eval_time`, the object for location and rotation, the camera data for lens. Confirm a named channel exists before assuming a keyframe operation created it.
99
- <!-- @end:blender-action-curves -->
100
-
101
- ## Speed — the part that reads as production value
102
-
103
- Movement at one constant speed is the tell of a machine. Real moves accelerate, hold, and snap.
104
-
105
- Speed lives in the **f-curve handles** of `eval_time` (or of location, if you keyed it directly):
106
-
107
- - **Long, near-horizontal handle** at a key → slow near that key.
108
- - **Short, steep handle** → fast.
109
- - `interpolation = 'CONSTANT'` → no movement at all until the next key. This is how you get an absolute dead stop.
110
-
111
- ```python
112
- # Add the middle key to the two-key path example above.
113
- curve.eval_time = 48
114
- curve.keyframe_insert("eval_time", frame=48)
115
- fc = next((f for f in action_curves(curve) if f.data_path == "eval_time"), None)
116
- assert fc is not None, "Key eval_time before shaping its motion"
117
- for kp in fc.keyframe_points:
118
- kp.interpolation = 'BEZIER'
119
- kp.handle_left_type = kp.handle_right_type = 'FREE'
120
-
121
- a, b, c = fc.keyframe_points # start, middle, end
122
- # Speed ramp: fast in, sag in the middle, accelerate out.
123
- a.handle_right = (a.co.x + 2, a.co.y + 18) # steep = launches fast
124
- b.handle_left = (b.co.x - 14, b.co.y) # flat = holds
125
- b.handle_right = (b.co.x + 14, b.co.y)
126
- c.handle_left = (c.co.x - 2, c.co.y - 18) # steep = arrives fast
127
- ```
128
-
129
- **Zero drift at a stop.** If a move is supposed to be locked off, it must be *actually* locked — a slow crawl at a "stop" reads as a mistake. Hold with `CONSTANT` interpolation, or duplicate the key so the segment is genuinely flat.
130
-
131
- ## The moves
132
-
133
- ### Orbit
134
-
135
- Circle the subject on a path, target at subject height. Vary radius and height across the move so it does not read as a turntable. Half-orbits and 3/4 orbits look more intentional than full ones.
136
-
137
- For a multi-scene continuous orbit, keep one unbroken `eval_time` curve and move the *world* under it — the camera never cuts, the set changes.
138
-
139
- ### Floor rise
140
-
141
- Pure vertical translation, **no rotation**, smooth acceleration with a slow middle. Each "floor" is a different set stacked on Z at a fixed interval; the subject sits centre-frame at each pass.
142
-
143
- ```python
144
- FLOOR_H = 4.0
145
- for i in range(4):
146
- cam.location = (0, -6, i * FLOOR_H)
147
- cam.keyframe_insert("location", frame=1 + i * 48)
148
- ```
149
-
150
- Rotation during a rise destroys the effect. Leave it out.
151
-
152
- ### Robo-arm
153
-
154
- The whip-and-lock commercial move: a fast flight along a curved arc, an **absolute** dead stop at a completely different angle, repeat. Each relocation is roughly a third of a second; each stop is a distinct, readable frame.
155
-
156
- Build it as a path with a control point per stop. On a fresh path action, key both ends of each hold and leave the flight between holds animated. At 24 fps, these eight-frame flights last a third of a second:
157
-
158
- ```python
159
- for frame, progress in [(1, 0), (11, 0), (19, 32), (29, 32), (37, 64), (47, 64)]:
160
- curve.eval_time = progress
161
- curve.keyframe_insert("eval_time", frame=frame)
162
- fc = next(f for f in action_curves(curve) if f.data_path == "eval_time")
163
- assert [int(k.co[0]) for k in fc.keyframe_points] == [1, 11, 19, 29, 37, 47]
164
- HOLD_START_FRAMES = {1, 19, 37}
165
- for kp in fc.keyframe_points:
166
- kp.interpolation = 'CONSTANT' if int(kp.co[0]) in HOLD_START_FRAMES else 'BEZIER'
167
- kp.handle_left_type = kp.handle_right_type = 'AUTO_CLAMPED'
168
- ```
169
-
170
- Keep the target separate and slightly offset per stop, so each lock-off is a different composition of the same subject rather than six centred portraits.
171
-
172
- ### Handheld
173
-
174
- Applied **last**, on top of a finished move. Slow organic sway, not jitter: long waves plus a barely-perceptible tremor.
175
-
176
- ```python
177
- for path in ("location", "rotation_euler"):
178
- for i in range(3):
179
- fc = next((f for f in action_curves(cam)
180
- if f.data_path == path and f.array_index == i), None)
181
- if fc is None:
182
- continue
183
- n = fc.modifiers.new('NOISE')
184
- n.scale = 120 # large scale = long lazy waves (4-6s at 24fps)
185
- n.strength = 0.035 # small; raise for rotation, lower for location
186
- n.phase = i * 7.3 # decorrelate the axes or it reads as a slide
187
- ```
188
-
189
- **For a restrained handheld register, avoid fast jitter, wobble or snap corrections.** Those motions can serve a deliberately frantic or phone-camera brief; choose them intentionally rather than adding them as a generic cinematic finish.
190
-
191
- ### Over-the-shoulder cuts
192
-
193
- Per cut: a camera position below shoulder height, a near-foreground body mass, and a target on the far face. Move barely — a slow sideways crawl. See `slates-dialogue-blocking` for who may occupy the foreground and why it matters.
194
-
195
- ### Lens
196
-
197
- Animate focal length like any other channel; a slow lens breath under a move adds a lot for nothing.
198
-
199
- ```python
200
- cam.data.lens = 35
201
- cam.data.keyframe_insert("lens", frame=1)
202
- cam.data.lens = 50
203
- cam.data.keyframe_insert("lens", frame=96)
204
- ```
205
-
206
- **But the lens must not drift across a cut.** Within a cut it can animate; on the cut frame it changes instantly with everything else.
207
-
208
- ## Multiple cameras and cuts
209
-
210
- Two ways, and only one of them survives contact with a 19-shot edit:
211
-
212
- - **One camera, jump-cut it.** Keyframe location/rotation/lens with `CONSTANT` interpolation on the cut frames. Fine up to a handful of cuts.
213
- - **A camera per setup, bound to timeline markers.** Correct for anything bigger, because each setup stays independently editable.
214
-
215
- ```python
216
- marker = bpy.context.scene.timeline_markers.new("SHOT_04", frame=188)
217
- marker.camera = cam_shot_04
218
- ```
219
-
220
- Either way the invariant is the same: **camera, target and lens all change on the cut frame, and no frame between two setups is interpolated.** One transition frame reads as a whip-pan, and the model will reproduce it faithfully.
221
-
222
- ## Verify before you render
223
-
224
- ```
225
- slates_blender_scene
226
- ```
227
-
228
- `cutSeconds` is your actual cut list in seconds. Check it against the shot list you were given — mismatches here become mismatched prompt timings, and the prompt is what you write next.
229
-
230
- ⚠️ **On a marker-bound rig, read `cutSeconds` or `markers`, never `camera.keyframeSeconds`.** The per-setup cameras are usually static (a Track To constraint does the aiming), so the active camera's action is empty and that field reads `[]` on a perfectly good three-cut edit. `cutSeconds` resolves to whichever the scene actually used.
231
-
232
- ## Related
233
-
234
- `slates-previs-blocking` (the workflow) · `slates-blocking-to-prompt` (turning these moves into prompt text) · `slates-dialogue-blocking` (OTS and eyelines)
@@ -1,81 +0,0 @@
1
- ---
2
- name: slates-captions
3
- description: "Caption speech in a cut: free local transcription, correcting a transcript, word-timed captions from the transcript, the Shot's line or your own words, phrasing, emphasis, caption components and mismatches."
4
- ---
5
-
6
- # Captions from speech
7
-
8
- Captions are text clips on an overlay track, one per phrase, each carrying its words so the spoken word lights up on the frame it is said; or one HTML clip drawn by a caption component. Transcribing and captioning are both free: they run on the user's machine and spend no credits, so there is nothing to estimate.
9
-
10
- ## Transcribe
11
-
12
- `slates_transcribe_asset` turns a video or audio asset's speech into words timed to within a frame. The first run on a machine downloads the speech models once, about 595 MB, and can take minutes; say so before the first call. The result's `downloadedModelsMB` says what it fetched, and later runs are offline. If the call times out, the desktop keeps working: read `slates_get_asset_transcript` before calling again.
13
-
14
- A repeat reuses the stored transcript (`reused: true`). `force` transcribes again and replaces a transcript the user edited (`edited: true`), so force only when they ask. `noSpeech: true` is an answer, not a failure.
15
-
16
- `slates_add_captions` transcribes any clip that needs it, so a separate transcribe call is for reading the words first: checking names, choosing emphasis, planning phrases.
17
-
18
- ## Correct a transcript
19
-
20
- `slates_edit_asset_transcript` takes the whole transcript text back, edited, the way the user edits it in the app's **Transcript** editor. A corrected word keeps its time, a removed word goes, and a new word takes the silence beside it or a share of its neighbour's time. Only the words count; paragraph breaks are free. Then the captions heard from that asset are made again from the corrected words, on the same tracks in the same style (`recaption: false` skips that). Captions estimated from the Shot's line or made from your own words are left alone.
21
-
22
- Correct the transcript, not each caption: one fix reaches every caption heard from that asset and any made later. Read the text first with `slates_get_asset_transcript`, change only the misheard words, and send it all back.
23
-
24
- ## Add captions
25
-
26
- `slates_add_captions` takes one of three sources:
27
-
28
- - **transcript** (the default): the words heard in each clip, through its in and out points. Use it whenever there is real speech.
29
- - **script**: the clip's Shot line spread over the speech the audio holds. Its timing is estimated (the result's `timing` says `estimated`), so use it only when recognition fails, as under a loud music bed, and tell the user the words may drift.
30
- - **words**: your own words in timeline seconds, such as a corrected transcript or a line whose timing you already know.
31
-
32
- By default every clip with sound is captioned, on a new Captions track on top. `clipIds` narrows it and `trackId` names an existing overlay track. Read `slates_get_timeline` first for the clip ids and where they sit.
33
-
34
- ## Phrases
35
-
36
- Unless you pass your own, the app groups the words by the caption rules it ships with. A phrase breaks at a sentence end, a clause comma, a pause of 150 ms or more, and before a conjunction once it holds a few words. A phrase is at most two lines of 42 characters. It shows from 80 ms before its first word to 150 ms after its last, and where two windows overlap they split the gap, so one phrase shows at a time. Windows always come from the word times, never from you: a window that opened after its first word would skip that word.
37
-
38
- The automatic grouping knows punctuation, not intent. Reading what a line is doing is your job, and `phrases` is how you act on it:
39
-
40
- - a hook, a kicker or a payoff: one or two words, turning over fast;
41
- - a conversational bridge: three to five, broken at breaths and clause changes;
42
- - a measured, reflective line: four to six, held longer.
43
-
44
- Never split a name, a number from what it counts ("44 markdown files") or a prepositional phrase ("in a folder").
45
-
46
- `phrases` are `[from, to)` ranges of word indexes: `from` is the phrase's first word and `to` is one past its last, counted across the whole call in timeline order, in order and without overlap. The words counted are the ones the call captions: each clip's words between its in and out points, clip after clip in timeline order. `slates_get_asset_transcript` returns the whole file, so for a trimmed clip skip the words said before its in point (compare their times with the clip's source in and out in `slates_get_timeline`), or pass `words` yourself so the indexes are yours.
47
-
48
- ## Emphasis
49
-
50
- `tiers` marks words by index as `italic`, `emphasis` or `slam`; every other word is `regular`. Emphasis that is everywhere means nothing, so ration it:
51
-
52
- - **emphasis**: about one word in eight, at most one or two a phrase. Brand and product names, a number that carries the claim, a contrarian word, the payoff.
53
- - **italic**: two or three in a piece, for soft contrast ("just", "only", "even").
54
- - **slam**: one or two in a piece, on the word the line lands on. It draws largest, so choose a short word; when the payoff is long, slam a shorter word in the same line or make the long one emphasis.
55
-
56
- Only caption components draw the tiers: **caption-editorial-emphasis** sets italic and emphasis (slam draws as emphasis), and kinetic-slam, clip-wipe, particle-burst, neon-glow and neon-accent colour the emphasis and slam words as their keywords. The text styles below show every word as regular.
57
-
58
- ## Styles
59
-
60
- `style` defaults to **word-pop**: bold captions in which the spoken word lights up. The others:
61
-
62
- - **keyword**: one or two big words, for punch-beat phrases;
63
- - **subtitle**: sentence-case lines on a dark box low in the frame, for long talk;
64
- - **headline**: a title near the top of the frame;
65
- - **clean**: plain text with a soft shadow.
66
-
67
- Keep captions off faces and clear of the platform's buttons: the app's **Show safe area** marks where those sit. Change a caption later with `slates_update_overlay_clip`.
68
-
69
- ## Caption components
70
-
71
- `component` draws the captions with a caption component instead of text clips: one HTML clip from the first word to the last, animating every word in that component's look, so `style` does not apply. Twelve are checked to draw fed words: caption-highlight, caption-pill-karaoke, caption-weight-shift, caption-glitch-rgb, caption-neon-glow, caption-gradient-fill, caption-kinetic-slam, caption-clip-wipe, caption-matrix-decode, caption-particle-burst, caption-neon-accent and caption-editorial-emphasis. Each has a preview video: `slates_list_motion_blocks` with query `caption` and type `component`.
72
-
73
- Your `phrases` become the component's word groups and your `tiers` its emphasis, so phrase and ration emphasis as above. The result's `findings` is Slates' composition check of the fed composition; a warning is worth reading, and an error means the clip will not draw. The components are drawn for a 16:9 frame and fit inside a vertical one, so on 9:16 they sit smaller; text-clip captions fill a vertical frame better. A transcript correction does not reach a component clip: after correcting, remove the clip with `slates_remove_clip` and add the captions again.
74
-
75
- ## Read the result
76
-
77
- Where a heard word and the Shot's written word are the same word, the caption takes the Shot's spelling, so brand names keep their casing. Where they differ, the caption shows what was said, and `mismatches` lists each place: heard, written, and the time.
78
-
79
- Each mismatch is one of two things. The recognizer misheard a name or a term: correct the transcript with `slates_edit_asset_transcript`, which keeps the timing and makes the captions again. In the app's **Transcript** editor the same words are underlined, with the script's word on hover. Or the performer changed the line: the caption is right, and the Shot's line is what to update if the script should match, or the take to regenerate if the exact words matter (that one spends credits; `slates-cost-discipline`). Tell the user which you found rather than quietly changing either side.
80
-
81
- `skipped` names each clip left out and why. A caption remembers the Shot line it was made against, so after the line is edited the app shows "Script changed": caption that clip again. Then look at the frames (`slates-vision-feedback-loop`) to check the placement and the line breaks.
@@ -1,117 +0,0 @@
1
- ---
2
- name: slates-character-identity
3
- description: "Prepare and bind a reusable character identity sheet from an image or description. Use when creating cast or preserving the same character across shots."
4
- ---
5
-
6
- # Character identity sheet — Slates workflow
7
-
8
- A character's identity sheet is attached to **every** downstream generation that mentions it, so a flaw in the sheet becomes a flaw in every shot made from it. Building it well is the highest-leverage thing you can do for a project.
9
-
10
- <!-- @inject:references-read-literally -->
11
- > **The general law: the model reads a reference literally.**
12
- > A reference image is not a suggestion. Whatever is baked into it — lighting, medium, texture, symmetry, competing identities — is read as a **property of the subject** and reproduced downstream. A baked rim light tints every shot made from that sheet. A sheet that looks like a 3D game render gets animated like game footage. Two competing renderings of one face get averaged into a third face.
13
-
14
- Every reference rule below is a corollary of that one sentence, which is why "prep the reference" beats "prompt around the reference" every time:
15
-
16
- - **Flat, plain identity refs** — because scene lighting in the sheet becomes scene lighting in the output (Slates' own receipt: a studio-lit sheet produced a subject that looked green-screen-pasted in front of mountains).
17
- - **One authoritative rendering per subject** — because the model cannot tell which panel is the real one. ByteDance documents this failure directly: multi-view character assets "confuse the model's character recognition, causing it to generate duplicate characters of the same appearance."
18
- - **No 3D-game-render look in a reference** — the model recognizes the render mood and inherits its motion character, so the *animation* comes out looking like game footage. This is not a taste rule; it is the same literal-reading mechanism applied to the temporal layer.
19
- - **Break perfect symmetry** — mirrored faces and dead-square framing read as synthetic, and the model preserves that reading rather than correcting it.
20
-
21
- **What this means in practice:** when output is wrong in a way that tracks the *subject* rather than the *scene* — the lighting is wrong the same way in every shot, the face drifts, the material looks synthetic everywhere — fix the reference, not the prompt. Prompting around a baked-in property is the expensive way to lose.
22
- <!-- @end:references-read-literally -->
23
-
24
- ## The shape: ONE sheet, three panels
25
-
26
- Slates generates **one identity sheet per character**, bound as the character's canonical reference:
27
-
28
- | Panel | What it carries |
29
- |---|---|
30
- | **Chest-up portrait, three-quarter angle, largest panel (~25–30% of the sheet)** | The face. **This is the only place the model reads facial identity from** — every detail it will ever know comes from those pixels, so it gets the resolution. Off-frontal, never dead-on: an angled head reads its volume instantly. |
31
- | **Full-body front, relaxed A-pose — cropped at the collarbone, just the face cropped out** | Build, proportion, wardrobe. The face is cropped off on purpose: a front-facing body panel renders a ~40px face that can't match the portrait's, so the sheet would carry two competing identities and the model averages them. **Only the face** — neck, arms and hands render as skin. |
32
- | **Full-body back, head and hair visible** | Hair fall and the back of the outfit — the only panel where either reads. Keeps its head because there's no face to compete with. |
33
-
34
- The rule is **kill every competing rendering of the FACE, not every head** — which is why exactly one body panel is headless.
35
-
36
- On a deep neutral-grey plate (hex `3a3a3c`, written bare; since the composer fix `#3a3a3c` reads the same — see the resolved composer hazard in Don'ts), flat and shadowless, with catchlights in the eyes, irises never crushed to black, surface texture at the medium's own natural level of detail, broken symmetry, and no over-clean 3D-game-model look. Expression is **a slight natural smile with the teeth just visible** — a closed mouth carries no dental information, so every downstream smiling shot invents teeth, and teeth are person-specific.
37
-
38
- **Two carve-outs, scoped differently on purpose.** Non-human characters get a natural neutral expression instead of a smile — that one is scoped by *having a human mouth*, so a bipedal robot or humanoid alien is covered. Quadrupeds and non-bipedal characters get a natural standing stance with the head shown on both body panels — that one is *anatomical*. **Both are conditionals the image model evaluates against your reference; neither is a code branch, because the op has no character-kind input.**
39
-
40
- **The sheet inherits the source's medium** — photo, anime, illustration, painterly, 3D render — unless the user explicitly asks for a transform. None of the craft clauses above override that: they ask for *readable* eyes and *material-looking* surfaces within whatever medium the character is in, not for photorealism.
41
-
42
- **Why one sheet.** Every `@character` mention attaches that character's canonical identity image, so each character costs one reference slot. It also reduces competing facial renderings to **one** — with the front panel headless and the back panel turned away, the portrait is the only face on the sheet, so there is nothing left to average.
43
-
44
- **Except as a GPT Image reference.** OpenAI's filter refuses any reference with a headless body panel, so a GPT Image picture of the character attaches the portrait the sheet was made from, or another head-visible picture of them, and names the character inline rather than with `@Name`, which attaches the sheet. The refusal was measured on GPT Image 2 and is not yet re-measured on 2.5; details in the GPT Image guide, § What gets you blocked. Every other model keeps taking the sheet.
45
-
46
- ## Workflow
47
-
48
- ### Get the reference
49
- The user has either:
50
- - Pasted/uploaded an image of the character (real person, drawing, AI render).
51
- - Described the character in text only.
52
-
53
- If image: upload it as a reference<!-- slates-only --> (`slates_upload_reference_image`)<!-- /slates-only -->.
54
- If text only: generate from prompt-only — less consistent, so warn the user.
55
-
56
- <!-- slates-only -->
57
- ### Create the character record
58
- `slates_create_character` with:
59
- - `name` (ask if not given)
60
- - `description` — 1-2 sentences, *visual* only ("tall, dark hair, scar over left eye"), not personality.
61
- - `style` — leave as the source's own medium by default. Only name a transform if the user wants one (e.g. anime → realistic).
62
- <!-- /slates-only -->
63
-
64
- ### Generate the sheet
65
- <!-- slates-only -->
66
- `slates_generate_character_identity` with `characterId`, `projectId`, and `baseAssetId` (the source portrait).
67
-
68
- **Do not hand-write the sheet prompt.** Slates builds it from the canonical template in `@slatesvideo/shared/prompts` (`buildCharacterIdentityPrompt`) — panels, plate, lighting and craft clauses included — and appends your `userNotes`. Use `userNotes` for what the template can't know: *"use the woman on the left"*, *"keep the scar on the right cheek"*. A hand-written prompt is a fork of the template and will drift from it.
69
-
70
- - Estimate cost first with `slates_estimate_generation_cost` and announce in **credits** — never quote a price from memory.
71
- <!-- /slates-only -->
72
-
73
- <!-- slates-only -->
74
- <!-- @inject:sheet-tool-defaults -->
75
- **What the sheet tools render on** (you do not pick these; omit `model`):
76
-
77
- - **Character identity sheet:** `gpt-image-2-5-sunburst` at 3k, quality `high`, one 16:9 image.
78
- - **Establishing image:** `gpt-image-2-5-sunburst` at 3k, quality `high`, one 16:9 image.
79
-
80
- Price a sheet for that model at 16:9, with resolution and quality left at their defaults. **Never 4K** — no identity gain at sheet scale, wasted spend.
81
- <!-- @end:sheet-tool-defaults -->
82
- <!-- /slates-only -->
83
-
84
- - When the result returns inline, **evaluate it before binding**:
85
- - Is the portrait clearly the largest panel, and is it off-frontal?
86
- - **Is the front body panel cleanly headless** — an empty collar above a normally rendered body, no partial face, no floating jaw, no smeared neck stump? A botched crop is worse than no crop.
87
- - **Is the body still there?** Neck, forearms and hands rendered as skin, not an empty outfit floating on nothing. A hollow garment means the invisible-mannequin genre ran unbounded.
88
- - Do the body panels read as the same build, wardrobe and hair as the portrait?
89
- - Catchlights present, irises readable rather than black holes?
90
- - Is it in the source's medium, and does it read as *that* medium done well — or has it drifted toward the over-clean game-model look?
91
- - Plate a flat deep grey, not white and not black?
92
- - If off: one focused refinement, then regenerate. The sheet is upstream of everything — it is worth a re-roll that a scene frame is not.
93
- <!-- slates-only -->
94
- - The op binds the result as the canonical identity automatically.
95
-
96
- ### Hand back
97
- > "Character {name} ready — identity sheet bound. Use `@{name}` in any prompt and Slates attaches it and names it inline, so the face stays consistent."
98
- <!-- /slates-only -->
99
-
100
- ## How the reference gets used at scene time
101
-
102
- Slates cites the sheet inline under the character's name — `{name} (image N)` — in the exact order it sends references. That **name** is the anti-averaging lever, and it is each model's own official mechanism (Nano Banana: "assign a distinct name"; Seedance: `Reference <Subject_N> in <Image_N>`; Kling: reuse a fixed label verbatim).
103
-
104
- Critically, the app injects **no** wardrobe, expression, or lighting directive. The user's scene prompt owns all of that — which is why `@{name}` dropped into a movie-still injection keeps the still's own clothing and lighting instead of dragging the sheet's.
105
-
106
- ## Anti-patterns
107
-
108
- - **Don't** studio-light, white-background, or black-background the sheet. White bleeds into the video and washes out the location; black eats edge detail. Flat, even, shadowless light on a deep neutral grey.
109
- <!-- slates-only -->- **Don't** hand-write the sheet prompt when the op will build it — that is how the template and the shipped prompt fork.<!-- /slates-only -->
110
- - **Don't** create a second character image. One canonical identity is what the storyboard pipeline reads.
111
- <!-- slates-only -->- **Don't** skip binding. An unbound asset doesn't help downstream.<!-- /slates-only -->
112
- - **Don't** invent character details. Stick to what's in the reference image and the user's description.
113
- - **Don't** describe the front panel's crop as an absent head — in `userNotes` or any hand-written variant. The template asks for it as *framing*: **"cropped at the collarbone, an invisible-mannequin presentation with just the face cropped out"**, a standard e-commerce genre with deep training data. **"the head not shown" is a hard 422 on GPT Image** (measured on `gpt-image-2`, the model 2.5 replaced; the classifier is OpenAI's, not the version's, so the rule carries — but nobody has re-run it on Flare or Sunburst) — the request comes back `content_policy_violation` with `loc: ["body","prompt"]`, so the text is rejected before any image is read, because an anatomical absence reads as gore to OpenAI's classifier. It passed NB2, which is why the original receipt looked safe: **it was model-scoped.** State an exclusion as a framing choice, never as a missing body part.
114
- - **Don't** invoke the invisible-mannequin genre without bounding it to the face. **"an invisible-mannequin presentation where the clothing holds its own shape" removed all the skin** — no neck, no hands, no forearms, a garment floating on nothing — because that *is* the e-commerce genre in full: an empty outfit. **"with just the face cropped out"** keeps the anchor and bounds it. Generalises: a genre anchor imports the whole genre, so name what STAYS, not only what goes.
115
- **Resolved composer hazard:** on 2026-07-30, `#3a3a3c` reached the model as `background ()` because unresolved sigils were deleted. The composer now preserves unresolved `#` and `@` text byte-for-byte; a token binds a reference only when it resolves. Literal hex colours and handles are safe. The sheet template keeps its bare hex as a wording choice, not a workaround.
116
- - **Don't** use 4K — wastes credits, no quality gain at sheet scale.
117
- - **Don't** feed a multi-view sheet into a Seedance 2.0 shot that has **several characters in frame** without binding each character to its image and appending the anti-twin constraint; ByteDance documents multi-view assets as a cause of duplicate characters on 2.0. See `slates-prompting-seedance`. Seedance 2.5 supports multi-view subject references; see `slates-prompting-seedance-2-5`.
@@ -1,113 +0,0 @@
1
- ---
2
- name: slates-chatgpt-images
3
- description: "Generate and save images through a connected ChatGPT account or the host image tool, preserving Slates prompts, references and project context. Use when ChatGPT generation is requested."
4
- ---
5
-
6
- # ChatGPT images in Slates
7
-
8
- ## Prerequisites
9
-
10
- Saving into a Slates project requires the Slates desktop app open and a connected Slates MCP server or CLI. Follow the [connection guide](https://slates.video/docs/connect-claude); CLI onboarding is `npx -y @slatesvideo/cli setup`. The host image tool alone does not expose Slates project tools. If the required tools or desktop connection are unavailable, report the missing connection and retain the prompt and references; do not invent operations.
11
-
12
- The connected generation path also needs the optional ChatGPT images add-on enabled and authenticated as described below. A host-tool path needs an actual image generator exposed by the host. These are distinct capabilities; a paid account alone establishes neither.
13
-
14
- Resolve the project with `slates_list_projects` and references with
15
- `slates_get_selection` or `slates_list_assets`. Badge codes are project-specific.
16
- Inspect the selected images before generating. Keep the ordered reference IDs
17
- alongside the exact prompt submitted for every output.
18
-
19
- Retrieve relevant craft with `slates_get_prompting_guide`: use `cinematic-look`
20
- or `style-prompting` for those requests, with section/query retrieval when useful.
21
- Do not apply another API model's settings or capabilities to the host generator.
22
-
23
- ## Connected desktop path
24
-
25
- This add-on is off by default. The user enables Settings → AI tools → ChatGPT images in
26
- Slates before connecting. It requires an installed Codex host and an eligible
27
- ChatGPT account; a subscription alone does not install or connect the host.
28
- Settings offers installation instructions, Connect ChatGPT and Check again in
29
- place, and reports the same connection state as the image picker.
30
- Never install software or enable the add-on silently. Ordinary Slates use needs
31
- neither this add-on nor Codex.
32
-
33
- Call `slates_get_chatgpt_status`. If connected, use
34
- `slates_generate_chatgpt_image` with projectId, a fresh UUID requestId, the prompt
35
- and ordered referenceAssetIds. This is also the path used by Slates' prompt bar
36
- and Slates Director. Use background mode for long calls and inspect
37
- `slates_get_generation_status` with the returned generationId.
38
- The desktop bridge removes only its own temporary thread's original image after
39
- saving and byte-verifying the project copy. Failed cleanup keeps the original.
40
- This does not authorize deletion of files from ordinary host conversations or
41
- files supplied to `slates_save_external_image`.
42
-
43
- On timeout or an uncertain response, reuse the SAME requestId. Do not create
44
- a new request to check the old one. Failed or unavailable connections preserve
45
- the user's prompt and refs. Start sign-in with `slates_connect_chatgpt` only when
46
- the user requests connecting; give the returned URL to the user to complete it.
47
-
48
- ## Host-tool path
49
-
50
- If this conversation exposes a built-in image generator and the user chooses
51
- that host workflow, retrieve originals through `slates_get_asset_image` with
52
- fullRes, or use the returned local paths when the host can read them. Inspect
53
- local images using the host's image viewer before editing. Supply every selected
54
- reference in its intended order using the generator's actual schema.
55
-
56
- Use the built-in generator. No API key, paid API, browser automation, invented
57
- model identifier, hidden quality setting or silent fallback. If unavailable,
58
- report that limitation and retain the prepared prompt and references.
59
-
60
- Save EACH returned image through `slates_save_external_image`, using its actual
61
- filePath or image dataUrl, exact submitted prompt, observed generator label and
62
- the IDs of the references actually sent. Omit model unless the host reports it.
63
- Requested settings are requests, not output facts. Text-only images have no
64
- references. Never substitute a screenshot of the result for the original bytes.
65
-
66
- For an uncertain save, inspect the project's new assets and compare prompt,
67
- lineage and output bytes before retrying. The external save operation is not
68
- idempotent for new imports. Reuse assetId to annotate a confirmed existing
69
- upload; do not import the same file again. If identification is ambiguous, stop
70
- and report the uncertainty. A missing output or host failure saves nothing and
71
- does not authorize another generation.
72
-
73
- ## Framing and quality requests
74
-
75
- The connected operation accepts optional `aspectRatio`, with presets supplied
76
- by its schema. Slates appends that request in words through the same composer
77
- used by the UI's What gets sent preview. Do not also append a second ratio
78
- instruction yourself. Saved metadata preserves the original text, requested
79
- ratio and exact submitted prompt; actual dimensions remain measured separately.
80
-
81
- For a new prompt, choose only an aspect-ratio preset supported by the current
82
- flagship GPT image model in Slates' capability SSOT. Resolve the current model
83
- through `slates_list_available_models` and `slates_get_prompting_guide` for
84
- model-selection; read the generated `slates_generate_image` aspectRatio schema
85
- for its allowed presets. Do not call that paid operation. Do not maintain a
86
- second hard-coded ratio list here. If the current presets cannot be retrieved,
87
- retain the prepared prompt and resolve them before adding a framing request.
88
- An explicit user request takes precedence; never silently rewrite their prompt.
89
-
90
- State the chosen ratio and orientation in the submitted text. This is a prompt
91
- request, not a host size parameter or an assertion of the host's limits. Measure
92
- the returned file and report requested versus actual framing; never silently
93
- crop or stretch it to make the numbers match.
94
-
95
- Describe desired detail, legibility, materials and lighting concretely. Words
96
- such as “higher quality” do not establish a quality enum or select a backend.
97
- Only record an actual model or quality tier if the host reports it. The built-in
98
- tool and App Server receipt inspected for this workflow do not expose those
99
- fields. Preserve revisedPrompt separately when supplied.
100
-
101
- OpenAI's [image prompting guide](https://developers.openai.com/api/docs/guides/image-prompting)
102
- separates API parameters from prompt language. Its quality and pixel controls
103
- are not automatically controls of the built-in tool. Product launch names and
104
- the `chatgpt-image-latest` API alias are not per-result model receipts.
105
-
106
- ## Verify the saved result
107
-
108
- Read back the returned asset(s) and inspect the images. Report project, badge
109
- code, generator, reference codes and measured dimensions. Distinguish submitted
110
- prompt from any host-reported revised prompt. Do not claim a model/quality tier
111
- from appearance. Reuse Prompt restores text and references; check the displayed
112
- generation destination before another generation. No plugin publication or
113
- directory listing is required for this workflow.