@slatesvideo/shared 0.7.7 → 0.7.9

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 (122) 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/clients/desktop.js +6 -1
  9. package/dist/index.d.ts +7 -3
  10. package/dist/index.js +7 -3
  11. package/dist/manual/content.d.ts +1 -1
  12. package/dist/manual/content.js +1 -1
  13. package/dist/operations/index.d.ts +724 -173
  14. package/dist/operations/index.js +875 -65
  15. package/dist/operations/surface.d.ts +2 -2
  16. package/dist/operations/surface.js +26 -6
  17. package/dist/prompts/agent-doctrine.d.ts +12 -2
  18. package/dist/prompts/agent-doctrine.js +56 -28
  19. package/dist/prompts/banned-tokens.js +23 -13
  20. package/dist/prompts/brain.d.ts +29 -0
  21. package/dist/prompts/brain.js +72 -0
  22. package/dist/prompts/craft-cards.d.ts +15 -4
  23. package/dist/prompts/craft-cards.js +71 -9
  24. package/dist/prompts/generation-policy.d.ts +1 -1
  25. package/dist/prompts/guide-discovery.d.ts +6 -6
  26. package/dist/prompts/guide-retrieval.d.ts +7 -1
  27. package/dist/prompts/guide-retrieval.js +33 -5
  28. package/dist/prompts/partials.generated.js +1 -13
  29. package/dist/prompts/shot-grammar.d.ts +1 -1
  30. package/dist/prompts/shot-grammar.js +1 -1
  31. package/dist/skills/brain-check.d.ts +44 -0
  32. package/dist/skills/brain-check.js +174 -0
  33. package/dist/skills/content.d.ts +3 -0
  34. package/dist/skills/content.js +81 -44
  35. package/dist/skills/hyperframes-content.js +4 -4
  36. package/dist/skills/my-brain.d.ts +52 -0
  37. package/dist/skills/my-brain.js +218 -0
  38. package/dist/skills/served.d.ts +56 -0
  39. package/dist/skills/served.js +232 -0
  40. package/package.json +2 -4
  41. package/skills/hyperframes/NOTICE +19 -3
  42. package/skills/hyperframes/SLATES-MAPPING.md +1 -1
  43. package/skills/hyperframes/embedded-captions/CATALOG.md +3 -0
  44. package/skills/hyperframes/embedded-captions/SKILL.md +6 -6
  45. package/skills/hyperframes/embedded-captions/assets/fonts/char-widths.json +227 -1
  46. package/skills/hyperframes/embedded-captions/modes/standard/fonts/build-fonts-css.cjs +19 -2
  47. package/skills/hyperframes/embedded-captions/modes/standard/fonts/files/archivo-latin-wdth-italic.woff2 +0 -0
  48. package/skills/hyperframes/embedded-captions/modes/standard/fonts/files/archivo-latin-wdth-normal.woff2 +0 -0
  49. package/skills/hyperframes/embedded-captions/scripts/make-theme.cjs +438 -3
  50. package/skills/hyperframes/embedded-captions/scripts/make-theme.test.mjs +1 -0
  51. package/skills/hyperframes/embedded-captions/themes/README.md +26 -1
  52. package/skills/hyperframes/embedded-captions/themes/lesson.json +31 -0
  53. package/skills/slates-start-here.md +78 -0
  54. package/exports/slates-chatgpt-images/generated/SKILL.md +0 -113
  55. package/exports/slates-chatgpt-images/generated/slates-chatgpt-images.skill +0 -0
  56. package/exports/slates-prompt-builder/generated/SKILL.md +0 -71
  57. package/exports/slates-prompt-builder/generated/reference-character.md +0 -92
  58. package/exports/slates-prompt-builder/generated/reference-content-policy.md +0 -81
  59. package/exports/slates-prompt-builder/generated/reference-gpt-image-2-5.md +0 -191
  60. package/exports/slates-prompt-builder/generated/reference-kling.md +0 -295
  61. package/exports/slates-prompt-builder/generated/reference-nano-banana.md +0 -240
  62. package/exports/slates-prompt-builder/generated/reference-omni-flash.md +0 -97
  63. package/exports/slates-prompt-builder/generated/reference-seedance-2-5.md +0 -392
  64. package/exports/slates-prompt-builder/generated/reference-seedance.md +0 -441
  65. package/exports/slates-prompt-builder/generated/slates-prompt-builder-manifest.json +0 -133
  66. package/exports/slates-prompt-builder/generated/slates-prompt-builder.skill +0 -0
  67. package/skills/_partials/blender-action-curves.md +0 -24
  68. package/skills/_partials/cinematic-card.md +0 -8
  69. package/skills/_partials/decision-log.md +0 -1
  70. package/skills/_partials/image-defaults.md +0 -9
  71. package/skills/_partials/iteration-diagnosis.md +0 -5
  72. package/skills/_partials/living-performance.md +0 -22
  73. package/skills/_partials/model-routing.md +0 -35
  74. package/skills/_partials/references-read-literally.md +0 -11
  75. package/skills/_partials/seedance-25-timestamps.md +0 -34
  76. package/skills/_partials/sheet-tool-defaults.md +0 -6
  77. package/skills/_partials/still-gate.md +0 -3
  78. package/skills/_partials/thresholds.md +0 -19
  79. package/skills/slates-blocking-to-prompt.md +0 -279
  80. package/skills/slates-camera-language.md +0 -234
  81. package/skills/slates-captions.md +0 -81
  82. package/skills/slates-character-identity.md +0 -117
  83. package/skills/slates-chatgpt-images.md +0 -113
  84. package/skills/slates-cinematic-look.md +0 -237
  85. package/skills/slates-content-policy.md +0 -88
  86. package/skills/slates-cost-discipline.md +0 -150
  87. package/skills/slates-cuts.md +0 -46
  88. package/skills/slates-dialogue-blocking.md +0 -134
  89. package/skills/slates-direct-response-ad.md +0 -26
  90. package/skills/slates-edit-and-iterate.md +0 -76
  91. package/skills/slates-layer-brand-captions.md +0 -87
  92. package/skills/slates-layer-lower-third.md +0 -85
  93. package/skills/slates-layer-title.md +0 -82
  94. package/skills/slates-model-selection.md +0 -129
  95. package/skills/slates-motion.md +0 -57
  96. package/skills/slates-one-prompt-film.md +0 -38
  97. package/skills/slates-previs-blocking.md +0 -186
  98. package/skills/slates-project-organization.md +0 -42
  99. package/skills/slates-prompting-elevenlabs.md +0 -128
  100. package/skills/slates-prompting-flux-3.md +0 -157
  101. package/skills/slates-prompting-gpt-image-2-5.md +0 -196
  102. package/skills/slates-prompting-inworld-tts.md +0 -174
  103. package/skills/slates-prompting-kling-v3.md +0 -303
  104. package/skills/slates-prompting-lip-sync.md +0 -216
  105. package/skills/slates-prompting-ltx-2-5.md +0 -245
  106. package/skills/slates-prompting-minimax-h3.md +0 -383
  107. package/skills/slates-prompting-motion-transfer.md +0 -202
  108. package/skills/slates-prompting-nano-banana-2-1.md +0 -250
  109. package/skills/slates-prompting-omni-flash.md +0 -117
  110. package/skills/slates-prompting-seed-audio.md +0 -168
  111. package/skills/slates-prompting-seedance-2-5.md +0 -420
  112. package/skills/slates-prompting-seedance.md +0 -462
  113. package/skills/slates-prompting-seedream-5-lite.md +0 -122
  114. package/skills/slates-prompting-wan-3.md +0 -143
  115. package/skills/slates-restyle-from-blocking.md +0 -121
  116. package/skills/slates-script-craft.md +0 -45
  117. package/skills/slates-shot-variety.md +0 -24
  118. package/skills/slates-storyboard-from-script.md +0 -32
  119. package/skills/slates-style-prompting.md +0 -56
  120. package/skills/slates-transitions.md +0 -40
  121. package/skills/slates-ugc-influencer-ad.md +0 -32
  122. package/skills/slates-vision-feedback-loop.md +0 -118
@@ -1,5 +0,0 @@
1
- ## Diagnose repeated failures
2
-
3
- After three failed attempts at the same requirement, pause unchanged re-rolls and diagnose the source reference, prompt structure, model fit and tool result. Three is a review checkpoint, not a universal limit or proof that the seed cannot matter. Preserve the attempts and name what each test changed.
4
-
5
- Continue autonomously when the brief is clear, a specific correction is supported and the next request is already authorized. Hand control back when taste or intent cannot be inferred, the next request needs fresh consent, or the available tool cannot meet the requirement. A failed roll never authorizes an additional charge. Follow the existing batch and per-request cost policy.
@@ -1,22 +0,0 @@
1
- **Nobody holds still. Write every person a performance that changes on every beat.** A video model
2
- animates what the prompt describes and nothing more. Describe one expression ("she screams, mouth
3
- open") and the person freezes in it for the whole take, which reads as dead and fake however good the
4
- camera is.
5
-
6
- - **Every person, every beat:** what their hands do, where their head and body go, what they say or
7
- shout and to whom, and how the expression shifts, then shifts again. "Yelling at him with both hands
8
- up, then grabs the dash as the car snaps sideways" moves; "terrified" is a still.
9
- - **Escalate and turn.** A scene's emotion travels: fear into fury into a stunned laugh. Each beat
10
- gives the next state, never a repeat of the last.
11
- - **One calm character may stay still in the face, never in the body.** The stoic one still blinks,
12
- breathes, glances, and works their hands, and reacts once the scene earns it (a smirk, a look across).
13
- A held beat before a spoken line is the same: the face settles, the body keeps small movement.
14
- - **Keep it physical.** Write the visible action, not the feeling: a jabbed finger, a slap on the
15
- shoulder, a hand clawing hair out of a mouth. Name the lines or shouts when the audio matters.
16
- - **A blocking or previs reference makes stillness worse.** Its stand-in figures are frozen
17
- mannequins, and the model copies their stillness unless the prompt says so. Say it in the prompt:
18
- "its figures are frozen stand-ins and their stillness is not the acting; take only the camera and
19
- the timing from video 1, and the people perform as written below, moving in every second."
20
- - **On a model that reads timestamps (Seedance 2.5), write the acting inside every interval,** beside
21
- the camera and the action, so no range leaves a person without something to do. On a model that
22
- reads shots instead, give every shot its own acting the same way.
@@ -1,35 +0,0 @@
1
- **Current model routing, generated from the operation routing source:**
2
-
3
- ### image generate
4
-
5
- Nano Banana 2.1: The all-rounder and the only image seat with a headless path: holds many subjects coherently in one frame, keeps what an edit leaves alone, and is the start-frame for legible in-scene text. It reasons before it draws, so dense compositions and hero frames land without a premium tier.
6
- GPT Image 2.5 Flare: THE FAST GPT IMAGE SEAT — OpenAI's small model, optimized for SPEED, quality COMPARABLE to GPT Image 2 (not better) at roughly half the latency. Route here when speed matters: drafts, exploration, volume. TEXT / DIAGRAM / PANEL work — character sheets, shot grids, text-bearing panels. When quality outranks speed, escalate to Sunburst. Own content filter, distinct from Gemini's. Killed by a head-to-head at the intended crop going the other way.
7
- GPT Image 2.5 Sunburst: THE QUALITY GPT IMAGE SEAT — OpenAI's most capable image model, higher quality than GPT Image 2, same price as Flare, deliberately SLOWER. Route here unless speed is the point: finals, hero frames, photoreal people, and multi-reference edits where every reference must survive into one frame — its widest lead. Explore on Flare, finish on Sunburst.
8
- FLUX 3 Image: The premium less-filtered image seat: photoreal frames, precise layout and in-image text, at its loosest safety setting, which can still reject a prompt. Auto-routes to its edit endpoint when references are present.
9
- Seedream 5 Lite: Cheapest flat-priced image seat (GPT Image 2.5 at low quality costs less per image). Less filtered, though it can still reject a prompt. Routes to its edit endpoint when references are present.
10
-
11
- ### video generate
12
-
13
- Seedance 2.0: THE 4K AND VALUE SEAT beside the 2.5 default — the only Seedance with native 4K (Pro-gated; base accounts get PRO_REQUIRED) and cheaper than 2.5 at every resolution they share, with the same physics, effects and scale strengths; shorter takes, fewer references, no timestamps. VIDEO-ONLY. A bare "seedance" still resolves here for older CLIs that expect 4K.
14
- Seedance 2.5: DEFAULT VIDEO MODEL — the strongest seat for physics, effects, scale and hero shots, and the only Seedance that takes long single takes, many references, audio-only references and integer-second timestamps. No 4K, and dearer than 2.0 at every shared resolution: go to 2.0 for 4K or the same resolution cheaper. LENGTH is the price dial — quote long takes first. VIDEO-ONLY. Timestamp grammar and the edit/extend words that make the provider reclassify and fail a generation are in slates-prompting-seedance-2-5.
15
- Kling 3.0: THE COST-EFFECTIVE SEAT — strong start-frame adherence (identity, layout, text), acting, dialogue and lip-sync; pick it when the budget matters and the shot is a performance or a start-frame animation. Kling is also the ONLY engine behind the Motion Transfer and Lip Sync tools.
16
- Kling 4.0: The newest Kling, for single takes longer than Kling 3.0 reaches. Dearer per second and slower than 3.0, and on the same start frame 3.0 Pro won on camera and feel, so Kling 3.0 stays the Kling seat for everything else. Sound is always on at no extra cost. Start frame with an optional last frame, multi-shot sequences, or text alone; no reference images. VIDEO-ONLY.
17
- Gemini Omni Flash 1.1: Google's video model, version 1.1 since 2026-10-17, with native synced audio in the same pass; 1080p and 4K are upscales of its 720p render. Takes a start frame with an optional last frame, or reference images plus short reference videos that carry a likeness (their audio is ignored), with no audio references. It cuts between shots by default, so ask for a single shot. Route here for cheap takes with sound and reference-driven character consistency; LTX, H3 and H3 Max Turbo cost less per second. VIDEO-ONLY. Hero-shot quality against Seedance is not yet measured.
18
- MiniMax H3: THE AUTHORED-AUDIO SEAT — reach for H3 when the sound is part of the shot rather than a switch on it: synchronised dialogue, scene sound and an audience-only score directed as three separate layers in ONE pass, across eleven languages. Kling and Seedance treat audio as on/off. Only H3 also carries a DECLARED REFERENCE RELATIONSHIP (kept whole, partly kept, transferred, or a loose echo). VIDEO-ONLY. Its top two resolution tiers are UPSCALES of the native render, not larger generations — judge at native and upscale in post. Reference images past the fifth are a PAID key dimension: pass referenceImages when quoting.
19
- MiniMax H3 Max: THE SPEED SEAT, dearer than base H3 at 768p and equal at 480p — never the cheap H3 and never the default. A post-train of the H3 weights: MEASURED 2026-08-27 at about 12x faster than base H3 on the same prompt and params, queue to finished file, plus a thin vendor-reported quality edge. It tops out at a 1080p refinement of its 768p render. It takes the same omni-reference set as base H3 and animates start and end frames — but not both in one call, the same as base H3: frames and references go to different endpoints. Never describe this row as taking no image or reference input. Route here when a fast turnaround on text-to-video or a start-frame shot is worth the premium.
20
- MiniMax H3 Max Turbo: THE BUDGET SEAT of the MiniMax family: a second post-train of the H3 weights, billed at half H3 Max's rate at every tier. Its 1080p is a refinement of the native 768p render, not a native 1080p generation. INPUTS ARE FRAMES, NOT REFERENCES: text-to-video and start/end frames only, with no reference endpoint, so reference-driven consistency goes to H3 Max or base H3. Route here for drafts, volume and cheap coverage, then re-run the keeper on H3 Max or a hero seat.
21
- Wan 3.0: Alibaba's video model, added 2026-10-17: first on Artificial Analysis text-to-video that day, at about a third of Seedance 2.5's price per second at 1080p. Long single takes, multi-shot sequences with timestamps, sound on or off. Start frame with an optional last frame, or references across images, videos and audio cited as Image N / Video N / Audio N (audio-only allowed); frames and references never mix. Reference video seconds bill on top of the output. Route here for long takes, timed multi-shot scenes and reference-driven shots on a budget; Seedance 2.5 stays the default. VIDEO-ONLY.
22
- LTX-2.5: THE VOLUME SEAT — the cheapest native 1080p second with sound included (H3 Max Turbo's 1080p is refined from 768p), and the row for MANY takes rather than one hero shot. Native synced audio is included free at every tier, unlike Kling where sound is a paid key dimension. It reaches higher resolutions and longer takes than most seats; use the capability surface for its resolution-dependent duration limits. VIDEO-ONLY. INPUTS ARE FRAMES, NOT REFERENCES: start frame plus an optional end frame, and no reference endpoint at all — for character consistency across shots use H3 or Kling. Route here for batch coverage, long takes, and anything where the credit budget is the binding constraint.
23
- LTX-2.5 Pro: THE FIDELITY SEAT of the LTX pair — the full diffusion build against the base row's distilled one. 🚨 IT IS NOT A SUPERSET OF THE BASE ROW, which is the opposite of every other Pro seat here: it reaches a SHORTER resolution ladder and makes SHORTER clips, and it costs more at both tiers they share. Reaching for it because the name says Pro costs more AND takes away reach. Everything else matches the base row. Route here only when a specific shot needs the fidelity and fits inside its narrower envelope.
24
-
25
- ### video edit
26
-
27
- Seedance 2.5 Edit: VIDEO-TO-VIDEO EDIT via slates_edit_video, and the only edit engine that takes a clip longer than the other two reach — that length is the whole reason to route here. Inside their range, compare on fidelity instead: Omni Flash edit won the prompt-only head-to-head, and Kling edit is the one that takes reference images. Edits audio on the same row (re-voice, re-accent, translate with re-fitted lips, replace BGM). Costs about 1.2x a plain 2.5 generation of the same length: an edit bills at twice the reduced video-reference rate.
28
- Kling O3 Video Edit: VIDEO-TO-VIDEO EDIT, the REF-DRIVEN one: it is the only edit seat that takes element/style reference images to lock subject identity, and its keepAudio preserves the original audio verbatim. Route here when an edit NEEDS reference images or bit-exact audio; for prompt-only footage-synced VFX, omni-flash-edit won the fidelity head-to-head. One instruction beat per pass — multi-beat prompts get under-executed.
29
- Omni Flash 1.1 Edit: VIDEO-TO-VIDEO EDIT, prompt-only, on Omni Flash 1.1 since 2026-10-17. The 1.0 edit won the head-to-head against Kling edit on real talking footage (lips held, audio near-identical, both action beats landed); 1.1 has not been re-measured against it yet. Footage-synced prop, effect, environment and lighting swaps; 1080p and 4K output are upscales. Takes NO reference images — identity swaps needing refs go to Kling edit. Fidelity is EARNED by prompt discipline; the exact form is in slates-prompting-omni-flash.
30
-
31
- ### audio generate
32
-
33
- Seed Audio 1.0: DEFAULT audio model — the one-pass SCENE workhorse: dialogue, SFX and ambience together from ONE plain sentence. Route here for continuity beds, room tone, crowd and nature soundscapes, and quick scratch VO. AUDIO-ONLY. Takes one image XOR up to three audio clips as references, never both. Prompt form and the length rule are in slates-prompting-seed-audio.
34
- ElevenLabs Sound Effects v2: ONE-SHOT SOUND EFFECT with an EXACT duration — route here for a single hit that must land on a frame (door slam, whoosh, impact, UI blip) or for a seamless loop. AUDIO-ONLY. For layered scenes with dialogue or room tone, seed-audio does it in one pass instead.
35
- Inworld Realtime TTS-2: THE VOICE SEAT — one named voice saying one line, billed per CHARACTER not per second. Route here when WHO is speaking matters. NOT scene audio — that is seed-audio; a single effect is eleven-sfx.
@@ -1,11 +0,0 @@
1
- > **The general law: the model reads a reference literally.**
2
- > 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.
3
-
4
- Every reference rule below is a corollary of that one sentence, which is why "prep the reference" beats "prompt around the reference" every time:
5
-
6
- - **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).
7
- - **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."
8
- - **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.
9
- - **Break perfect symmetry** — mirrored faces and dead-square framing read as synthetic, and the model preserves that reading rather than correcting it.
10
-
11
- **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.
@@ -1,34 +0,0 @@
1
- **2.0 does not respond to timestamps and answers only to shot numbers. 2.5 responds to
2
- integer-second timestamps.** That is ByteDance's own first line under "Differences from Seedance
3
- 2.0", and it is why a 30-second take is usable at all: the length is only worth buying if you can
4
- say *when* things happen inside it.
5
-
6
- Both formats are valid on 2.5, and you can mix them — `Shot N` blocks for a storyboard whose
7
- pacing you are happy to leave to the model, timestamps when a beat has to land at a moment.
8
-
9
- **Three ways to control time, all first-party:**
10
-
11
- | Form | Write it like |
12
- |---|---|
13
- | **Interval** | `0-3 seconds… 3-7 seconds… 7-15 seconds` or `[1s-4s]… [4s-8s]… [8s-12s]` |
14
- | **Time point** | *"Quick left sideways transition at the 5-second mark."* |
15
- | **Relative** | *"After 3 seconds, everyone around him shakes their head."* · *"The frame freezes for 1 second after he presses the shutter."* |
16
-
17
- **The rules that come with them:**
18
-
19
- - **One second is the smallest unit.** Integers only — no `2.5s`, no frames.
20
- - **No gaps in the timeline.** `0-3s… 5-6s…` leaves 3-5s unspecified and the model fills it however
21
- it likes. Intervals must abut: `0-3s`, `3-7s`, `7-15s`.
22
- - **Budget the plot to the seconds.** Too little content in a range and the model improvises to
23
- fill it; too much and you get extra cuts or dropped beats. This is the actual craft of a 30s take.
24
- - **Never time-code a high-frequency action.** *"Shake your head three times per second"* is
25
- explicitly called out as a misuse — timestamps schedule beats, they don't choreograph frames.
26
- - **Transitions want both halves:** the moment AND the method — *"At the 5-second mark, the camera
27
- transitions leftward with a left wipe into a natural dissolve."*
28
- - **Timestamps work on an EDIT too**, and that is where they earn the most: they scope a change in
29
- time as well as in content — *"Change the man's action from drinking coffee to mopping the floor
30
- from 4-6 seconds in Video 1, and leave the rest of the content unchanged."* Without a range, a
31
- whole-clip instruction is applied to the whole clip.
32
-
33
- Do **not** carry this back to 2.0, and do not write `[00:00-00:02]` minute-second brackets (another
34
- vendor's syntax) into either — 2.0 ignores time entirely, and the cross-model syntax swap is its own known failure.
@@ -1,6 +0,0 @@
1
- **What the sheet tools render on** (you do not pick these; omit `model`):
2
-
3
- - **Character identity sheet:** `gpt-image-2-5-sunburst` at 3k, quality `high`, one 16:9 image.
4
- - **Establishing image:** `gpt-image-2-5-sunburst` at 3k, quality `high`, one 16:9 image.
5
-
6
- 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.
@@ -1,3 +0,0 @@
1
- **Inspect a start frame before animating it.** Repair a visible defect that would make the intended crop or performance unusable before spending on motion. A clean frame can be animated whenever the brief calls for movement; this check does not require an image stage for text-to-video.
2
-
3
- This is a cost rule as well as craft: a premium video call can cost many times an image correction. Broken geometry can turn to mush, oily textures can crawl and malformed objects can fall apart in motion. Fix a known source defect at the source instead of buying a more expensive copy. Judge intentional stylisation against the brief, not a universal photoreal standard. Additional image or video requests still follow the existing generation authorization.
@@ -1,19 +0,0 @@
1
- <!-- GENERATED from @slatesvideo/shared — do not edit between the markers.
2
- Source: CONFIRM_CREDITS, DEVIATION_FACTOR and the audio bounds in
3
- packages/shared/src/operations/index.ts. Every number here is REFUSED by an
4
- op when a prompt gets it wrong, which is why none of them is typed by hand
5
- any more: this block replaced four claims that contradicted the code. -->
6
-
7
- **The thresholds, from the code that enforces them:**
8
-
9
- - **Confirm gate:** above **17 credits** an op returns `requires_confirm` and will not
10
- proceed until you re-call with `confirm: true`. This is a code gate, not permission to spend: every generation still needs the user-approved plan or quote.
11
- - **Deviation pause:** the desktop Slates Director stops and re-asks when projected generation spend
12
- exceeds the approved plan by more than **20%**. You do not trigger this; the app does.
13
- - **Seed Audio duration:** **3–120 seconds.** There is no duration
14
- parameter on the model — the number you pass is written into the prompt AND is what the user is
15
- billed. Outside that range the op refuses rather than clamping.
16
- - **Sound Effects duration:** **1–22 seconds**, billed per second, never left for the
17
- model to pick.
18
-
19
- Never quote a credit figure from memory: `slates_estimate_generation_cost` returns the real one.
@@ -1,279 +0,0 @@
1
- ---
2
- name: slates-blocking-to-prompt
3
- description: "Translate a rendered blocking clip into a video prompt that preserves its camera, cuts, timing and spatial relationships. Use for previs-guided generation or when output ignores the blocking."
4
- ---
5
-
6
- # Blocking → prompt
7
-
8
- You have a blocking clip. This is how you write the prompt that goes with it.
9
-
10
- ## The one idea
11
-
12
- The clip already contains the camera, the cuts and the timing. **The prompt's job is to say what everything looks like — and, where the grey boxes are ambiguous, to disambiguate them.** It is not a second, competing description of the motion.
13
-
14
- State that contract inside the prompt, because the model needs it as much as you do:
15
-
16
- > Where a timeline line below names a camera position or move, it is a restatement of what the reference video already does at that timestamp — a disambiguation, never a new instruction.
17
-
18
- And give it a tie-break, because ambiguity is guaranteed:
19
-
20
- > If any text in this prompt appears to disagree with the reference video about camera, framing, direction, motion, timing or object placement, the reference video wins.
21
-
22
- Those two sentences do more work than any other part of the prompt.
23
-
24
- ## Get the real numbers first
25
-
26
- ```
27
- slates_blender_scene
28
- ```
29
-
30
- Read `cutSeconds` from the rendered scene, rather than using the shot list you intended to build. It resolves to markers on a multi-camera edit and camera keyframes otherwise. Preserve the exact frame boundaries in the blocking and edit record: at 24fps they can be `7.79s`, `9.33s` or `19.875s`.
31
-
32
- Translate those measurements into the selected model's timing grammar. Seedance 2.5 accepts whole-second timestamps; use those for its prompt while the reference clip carries the exact cuts. Seedance 2.0 uses shot numbers instead. The fractional examples below describe the measured blocking; they are not a universal request syntax. If frame-exact output is a delivery requirement, inspect the result and finish the timing in the edit rather than promising the model reproduces every frame.
33
-
34
- ## Structure
35
-
36
- Order matters — contract, then globals, then timeline, then the re-assertion.
37
-
38
- ```
39
- TITLE — one line: what this is, how long, that it is video-to-video
40
-
41
- LOGLINE — 2-4 sentences. The whole piece in plain language.
42
-
43
- ACTIVE REFERENCES
44
- <one entry per reference: what it defines, and what is NOT inherited>
45
-
46
- TECHNICAL BLOCK (format, grade, lens, and the blanket negatives — see below)
47
-
48
- STYLE / LOOK
49
- LIGHTING
50
- COLOR
51
- CAMERA
52
- PHYSICS (only if things move, collide or deform)
53
-
54
- RULES (numbered — the invariants, see below)
55
-
56
- ACTION TIMING (beat by beat, against the clip's real timestamps)
57
-
58
- AUDIO
59
- [Sound design] [Timed accents] [Dialogue] [Music]
60
-
61
- ENDING LOCK (one line — where the film stops)
62
-
63
- HOLD FOR THE FULL TIMELINE
64
- <the 5-6 constraints most likely to drift, compressed>
65
- ```
66
-
67
- ## ACTIVE REFERENCES — every entry has an exclusion
68
-
69
- The single highest-leverage format in this whole workflow. Each reference is a **positive claim plus an exclusion list**, because a reference the model over-reads is as damaging as one it ignores.
70
-
71
- Label each by the badge code Slates echoes back (`IMG-A8`, `VID-V2`) or by an unmistakable role name, and use that same label everywhere below.
72
-
73
- **The blocking clip:**
74
-
75
- > VID-V2 = the blocking previz (30s, 720 frames, 24fps), the MASTER for everything that moves and everything that stands. It defines the full edit one-to-one: every cut point, every camera position, angle, move and framing, all action timing, screen direction, and the geometry of the world. Its untextured grey surfaces, flat colours and viewport grid are NOT inherited; every grey proxy is dressed into a real object in the exact position the previz puts it. Proxies give position, angle, scale and motion only; never surface, shape detail or design.
76
-
77
- That last sentence is the **placement-only clause** and it is not optional. Without it the model renders grey boxes.
78
-
79
- **A character sheet:**
80
-
81
- > IMG-A8 = the driver — defines his face, hair and wardrobe. Identity 100% consistent at every distance and through every motion blur. Background, lighting and pose are NOT inherited.
82
-
83
- **A location/style reference:**
84
-
85
- > IMG-A3 = the tunnel, defines location geometry, look and grade. Camera angle, framing and any people in it are NOT inherited; the camera comes exclusively from VID-V2.
86
-
87
- **An atmosphere or style master — a reference that is never a shot:**
88
-
89
- > IMG-A9 = ATMOSPHERE MASTER, NOT a keyframe, NOT a location to reproduce, NOT a frame that ever appears in the film: its own subject, framing and composition are never seen in any shot. It defines ONLY the weather, light, colour and grade: deep clean night just after rain, wet asphalt as a dark mirror, cool white-cyan lamps as the ambient key, teal-and-amber grade, deep clean blacks. Every shot is lit and graded in this regime for all 30 seconds.
90
-
91
- Without those three NOTs the model reproduces the reference's composition as an actual shot — you get its street corner in your film. The same wording covers a rendering-style master; see `slates-restyle-from-blocking`.
92
-
93
- **References can be scheduled.** If something is only true for part of the timeline, say so: *the hooded panel applies only to 0–7.0s and 27.5–30s*, or per-reference: *Active for 00:03.3–00:06.7 only.* On a piece that travels through several locations, every location still carries its own window and the model stops blending two sets into one shot.
94
-
95
- ## Translate the blocking's artifacts
96
-
97
- Your grey-box render contains things that are *notation*, not content. Every one needs an explicit reinterpretation or it gets rendered literally:
98
-
99
- | In the blocking | Say in the prompt |
100
- |---|---|
101
- | Colour-coded bodies | `red = the boss, green = the kid, blue = the driver` |
102
- | A marked face on a proxy | `RED face = the direction he faces, BLACK = his back` |
103
- | A checkered floor or wall | `the checkerboard is a scale reference, not a surface — it becomes <the real material>` |
104
- | Flat black background | `a PLACEHOLDER — replace with the location assigned below` |
105
- | A floor grid | `a motion-tracking aid — render as light on the surface, never as wireframe or tiles` |
106
- | A deliberate black gap | `CUT 7 (14.5-17.0, black gap in the reference) — <what fills it>` |
107
- | Frame goes dark mid-move | `the camera is passing through the ground — a doorway to the NEXT location, never back to a previous one` |
108
- | The source hard-resets mid-move | `each reset begins a NEW, completely different room — never a replay of one already seen` |
109
- | A proxy that is a PROP or VEHICLE | `the low-poly flying model in SHOT 18 is THE HELICOPTER · blocks on the rear bench are the luggage · the small dark block in his hand IS the pistol` |
110
- | A blocky proxy limb in a tight insert | `the blocky low-poly leg is a stand-in and must NOT be replicated — generate complete human anatomy: a real boot, a real trouser leg, a correct ankle at this exact camera angle` |
111
- | A stray object at the frame edge | `ignore it completely — never blend two sets into one shot` |
112
-
113
- ## TECHNICAL BLOCK — format, lens, and the blanket negatives
114
-
115
- One paragraph, before the timeline. It carries the things that are true of every frame and that no beat should have to repeat:
116
-
117
- > Cinematic, photoreal. 21:9. 30s. SFX only, no music. Kodak 500T film look, natural 35mm grain, organic colour, soft highlight roll-off, anamorphic lens character with oval bokeh and gentle barrel distortion at the edges, chromatic aberration creeping in at the frame edges, natural motion blur on every fast move, faint bloom on hot speculars. Every location well exposed — night interiors bright and readable, open shadows, no crushed blacks, no murk. NO CGI. NON-IP, no brand badges or logos anywhere, no text, no watermark.
118
-
119
- Three parts worth naming:
120
-
121
- - **Lens realism is a list, not an adjective.** Aberration, motion blur, depth of field, barrel distortion, bloom, grain. "Cinematic" buys you nothing; these buy you the look.
122
- - **Exposure needs saying on dark work.** Models crush night scenes into murk. *Night interiors bright and readable, open shadows, no crushed blacks* is what keeps a scene legible.
123
- - **The blanket negatives go here once** — `NON-IP`, no logos, no on-screen text, no subtitles, no watermark — rather than being scattered through the beats.
124
-
125
- ## RULES — the invariants
126
-
127
- Numbered, short, absolute. These are the things that must hold in every frame, and they are where you put anything that has already gone wrong once.
128
-
129
- Two patterns worth stealing outright:
130
-
131
- **Countable state.** Give the model arithmetic it can check itself against:
132
-
133
- > At every second: standing + fallen + on the lintel = 6. Never a seventh figure — no extras, no duplicates, no distant silhouettes, no half-bodies at frame edges.
134
-
135
- > Bodies on the ground count exactly: 0 before 12s → 1 → 2 → 3 → 4 at 12/13/14/16s → 5 at 20s → 6 at 26s. Never more.
136
-
137
- **Every mass is dressed, and nothing is invented.** The blocking is authority over what EXISTS, not just what moves — otherwise the model deletes the masses it finds boring and adds architecture you never blocked:
138
-
139
- > Every lamppost, guardrail, road and terrain mass visible in the reference exists in the output in the same place, at the same scale, in the same position in frame — the opening blocks are dark-brick warehouse facades, the roadside masses are the waterfront skyline, the finale rocks are the city's tower walls. Nothing is deleted, and no structure is invented where the reference shows none.
140
-
141
- **Anatomy is never inherited from a proxy.** Tight inserts on hands and feet are where blocking leaks straight into the render:
142
-
143
- > The reference shows only WHERE hands and feet are. In the output they are always complete human anatomy — a five-fingered gloved hand with natural knuckles, a real leg in wool trousers, a real foot in a leather shoe — never the proxy's blocky shape.
144
-
145
- **A ledger for anything that happens a countable number of times.** A ritual, a reload, a set of falls: state it as a linear sequence, each step exactly once, and close with the tally:
146
-
147
- > Strictly linear, six steps in fixed order, each happening EXACTLY ONCE and never repeating; once a step is done it is done for good, and the sequence only ever moves FORWARD, never backward. Count of weapon events in the entire video: one draw, one magazine insertion, one slide rack, one shot.
148
-
149
- Without the ledger the model loops the most cinematic beat — it will rack the slide four times because racking looks good.
150
-
151
- **Named misreads.** When a generation gets something specifically wrong, do not rewrite the description — **name the wrong reading and kill it**:
152
-
153
- > The lamp is a man-made steel structure — NOT an animal, NOT a snake, NOT any living or organic shape.
154
-
155
- > The rear of the car and its tail lights are NOT visible in this shot.
156
-
157
- This is the highest-value edit available after a failed roll, and it is why the prompt grows rather than changes between takes.
158
-
159
- ## ACTION TIMING — the beats
160
-
161
- One block per shot or beat. Two notations; pick one and hold it.
162
-
163
- **For a continuous take**, ranges with a camera note and a closing state audit:
164
-
165
- ```
166
- 8-12s: THE SWEEP (per VID-V2: elevated rear push, swinging to profile by 12s):
167
- <what happens, in prose, with sub-beats on tenths and → chaining cause to effect>
168
- END 12s: bodies 1 (behind him as he steps past) · standing — four ahead, holding.
169
- ```
170
-
171
- **For a cut edit**, numbered shots ending on their cut:
172
-
173
- ```
174
- 9.33-10.33s: SHOT 10, Interior over the centre console as in VID-V2: <what the
175
- frame contains>. Hard cut at 10.33s.
176
- ```
177
-
178
- Three habits that separate a beat that works from one that does not:
179
-
180
- - **Declare the frame's contents as a closed set** when the shot is tight: *the frame holds exactly the console, the lever, his hand, and the edges of both seats.* An open description invites additions.
181
- - **Chain cause to effect inside one sentence** with `→`. `he overcommits a lunge → the Hero drops low and sweeps his standing leg → he hits the earth at 12s`.
182
- - **Pin every event to a moment**, in the finest unit the selected model accepts: whole seconds on Seedance 2.5 (`12s`, `19s`), shot numbers on 2.0. Vague beats generate vague timing. The production prompts behind this guide carried tenths (`11.7s`, `19.5s`, `22.5s`); whether 2.5 acts on the fraction is untested, and ByteDance documents integers only.
183
-
184
- Density: roughly 60–130 words per second of screen time is what these prompts actually run at. That is much denser than a normal video prompt, and it is the point.
185
-
186
- ### Nobody holds still
187
-
188
- <!-- @inject:living-performance -->
189
- **Nobody holds still. Write every person a performance that changes on every beat.** A video model
190
- animates what the prompt describes and nothing more. Describe one expression ("she screams, mouth
191
- open") and the person freezes in it for the whole take, which reads as dead and fake however good the
192
- camera is.
193
-
194
- - **Every person, every beat:** what their hands do, where their head and body go, what they say or
195
- shout and to whom, and how the expression shifts, then shifts again. "Yelling at him with both hands
196
- up, then grabs the dash as the car snaps sideways" moves; "terrified" is a still.
197
- - **Escalate and turn.** A scene's emotion travels: fear into fury into a stunned laugh. Each beat
198
- gives the next state, never a repeat of the last.
199
- - **One calm character may stay still in the face, never in the body.** The stoic one still blinks,
200
- breathes, glances, and works their hands, and reacts once the scene earns it (a smirk, a look across).
201
- A held beat before a spoken line is the same: the face settles, the body keeps small movement.
202
- - **Keep it physical.** Write the visible action, not the feeling: a jabbed finger, a slap on the
203
- shoulder, a hand clawing hair out of a mouth. Name the lines or shouts when the audio matters.
204
- - **A blocking or previs reference makes stillness worse.** Its stand-in figures are frozen
205
- mannequins, and the model copies their stillness unless the prompt says so. Say it in the prompt:
206
- "its figures are frozen stand-ins and their stillness is not the acting; take only the camera and
207
- the timing from video 1, and the people perform as written below, moving in every second."
208
- - **On a model that reads timestamps (Seedance 2.5), write the acting inside every interval,** beside
209
- the camera and the action, so no range leaves a person without something to do. On a model that
210
- reads shots instead, give every shot its own acting the same way.
211
- <!-- @end:living-performance -->
212
-
213
- ## AUDIO
214
-
215
- `[Timed accents]` uses the same timestamps as the beats:
216
-
217
- > 3.1s tyres light up into the burnout squeal · 7.0s drift-entry screech · 10.1s hard mechanical shifter clack · 20.3s full-speed pass-by whoosh
218
-
219
- `[Dialogue]` is a closed list — count the lines, give each a window, quote it verbatim, and forbid everything else:
220
-
221
- > Exactly TWO vocal events in the entire 30 seconds, both screamed, in English, VERBATIM: 1. 17.3-18.6s "STOOOOOP!!" 2. 23.4-24.0s "You crazy!" Nothing else is ever spoken.
222
-
223
- **Then forbid the lines it will invent anyway.** A closed list is a rule; an enumerated blacklist is enforcement, and the phrases to list are the clichés the scene invites:
224
-
225
- > FORBIDDEN — she never says any of these and no one else says anything: "they're behind us", "cops", "go go go", "are you crazy", "you're insane", or ANY other invented phrase. All other human voice is wordless screaming or laughing.
226
-
227
- **When lines are lip-synced, give each one a timestamp** in the same list, and say that they change nothing else:
228
-
229
- > Timing: "You wind up for this one?" ~18.2s · "Three full turns." ~19.0s · "Company." ~24.3s. Every line lip-synced; the lines never change the camera.
230
-
231
- Two rules that stop dialogue from breaking the edit:
232
-
233
- > DIALOGUE NEVER CREATES SHOTS: spoken lines happen inside the reference's takes exactly as blocked — no cutaways to a speaker, no reverse shots, no added close-ups. If a line plays while the camera is elsewhere, the line stays off-screen audio.
234
-
235
- > A line marked off-screen must STAY off-screen — never show the speaker, never move him into frame, never route the camera to him because he spoke.
236
-
237
- Model note: dialogue direction as separate layers is minimax-h3's seat. Route per `slates-model-selection` and read the model's own prompting skill before writing the audio block.
238
-
239
- ## ENDING LOCK
240
-
241
- One line, and it is the cheapest fix in the document. Models drift at the end — they hold a frame too long, add a beat after the last one, or fade somewhere the reference does not:
242
-
243
- > The film ends exactly where the reference ends: the final take runs unbroken to its last frame, and that source frame IS the final frame of the film. Nothing follows. The last five seconds follow the source exactly as strictly as the first five.
244
-
245
- ## HOLD FOR THE FULL TIMELINE
246
-
247
- Close with a terminal re-assertion of only the constraints most prone to drift — five or six lines, compressed, no new information:
248
-
249
- ```
250
- HOLD FOR THE FULL TIMELINE
251
- - VID-V2 camera path 1:1; any deviation = failure.
252
- - Six and only six figures; the count above holds at every second.
253
- - IMG-A8 identity constant at every distance and through motion blur.
254
- - The IMG-A3 location in every frame; no subtitles, no watermarks.
255
- ```
256
-
257
- Restating is not redundancy here. It is the last thing the model reads.
258
-
259
- ## Checklist before you generate
260
-
261
- - [ ] Frame-exact timings retained from `slates_blender_scene`'s `cutSeconds`; model-facing timing translated to the selected guide's syntax
262
- - [ ] Every reference has an explicit "NOT inherited"
263
- - [ ] The placement-only clause is present
264
- - [ ] The tie-break clause is present
265
- - [ ] The disambiguation clause is present
266
- - [ ] Every blocking artifact is translated — colours, marked faces, checkers, grid, black background, gaps, dark dips, resets, prop proxies, proxy limbs, strays
267
- - [ ] Any style/weather reference is declared NOT a keyframe and never a shot
268
- - [ ] The every-mass-is-dressed / nothing-invented rule is present
269
- - [ ] Tight inserts on hands or feet demand complete anatomy
270
- - [ ] Counts are stated where anything is countable, and repeatable actions carry a ledger
271
- - [ ] A TECHNICAL BLOCK carries format, lens realism, exposure and the blanket negatives
272
- - [ ] `[Dialogue]` is a closed list with a FORBIDDEN blacklist
273
- - [ ] An ENDING LOCK says where the film stops
274
- - [ ] `videoReferenceSecondsEach` matches the clip's real duration
275
- - [ ] A HOLD block closes it
276
-
277
- ## Related
278
-
279
- `slates-previs-blocking` (producing the clip) · `slates-camera-language` (the moves being described) · `slates-dialogue-blocking` (multi-character continuity) · `slates-restyle-from-blocking` (reusing this prompt across styles) · `slates-prompting-seedance-2-5` / `slates-prompting-minimax-h3` (model-specific rules)