@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,237 +0,0 @@
1
- ---
2
- name: slates-cinematic-look
3
- description: "Choose lighting, exposure, grade, lens, atmosphere and imperfection techniques for a filmed look. Use for photographic direction or an image that looks too clean, evenly exposed or studio-lit."
4
- ---
5
-
6
- # Cinematic look — make a generated frame read as filmed
7
-
8
- <!-- @card:start -->
9
- **Image models default to clean, evenly lit and fully exposed.** Real film frames can be dark, flat, murky or burned out. Describe what the camera sees; a mood word or look reference alone does not get you there.
10
-
11
- **Look at every reference first.** Write a look reference's grade and imperfections into the prompt: darkness, contrast, black level, colour cast/saturation, softness/noise and subject separation. Never grade cleaner, brighter or higher-contrast than that reference unless asked. Inspect the character sheet's garments. Cite references inline: `the woman from image 1`, `lit and graded like image 2`; never open with a reference-role paragraph. References are optional; these techniques work from words alone.
12
-
13
- For a new photographic frame:
14
- - **One physical light system:** source, position, effect on the subject; no light without a source. If using atmosphere, put it in front too.
15
- - **Exposure as it looks:** `close to a silhouette, features only just readable`, not a stop under.
16
- - **Lens name plus effect, every time:** `200mm telephoto`, `the peaks loom huge behind her and melt into soft shapes`.
17
- - **Name every garment and close the foreground:** say exactly what is there; omissions invite reference leakage or invented props.
18
- - **Only what the shot needs:** one light system, at most one exposure, atmosphere and colour choice, one or two composition moves and one moment. Add the imperfections the scene calls for.
19
-
20
- A scene reference owns the grade; a look-only reference does not own the new scene's light. For an owned-frame edit, describe only the change and what stays. Never use a released film frame as the edit base; use it as an art-direction brief for a new scene. Use positive descriptions first; one targeted negative is enough where supported. FLUX needs positive wording.
21
-
22
- Use query with a technique ID or section, depth "index" to browse, or depth "full" for the catalogue and examples.
23
- <!-- @card:end -->
24
-
25
- **Evidence scope:** most Slates receipts come from single generations of one scene on GPT Image 2.5 Sunburst. They show useful directions to test, not reliable success rates or a universal ranking. The research record owns prompts, source links and observations: `business/projects/slates/research/cinematic-look-research.md` in the vault. This skill owns active technique wording. The catalogue checker compares IDs, evidence tags and worked-example bytes.
26
-
27
- Image models default to a clean, evenly lit, fully exposed picture. Real film frames are often graded "wrong": underexposed, backlit, silhouetted, burned out, flat or murky. A model only goes there when the prompt says what that looks like. A look reference alone does not get you there; describing the frame does.
28
-
29
- ## Two routes to a filmed frame
30
-
31
- 1. **Describe a new frame.** Write the scene and reference roles inline, then the light, exposure, camera and texture choices needed to realize it.
32
- 2. **Edit a frame you own.** When a Slates plate or sheet, your own photo or footage, or a Blender render already has the composition and look, describe only the requested changes and what must remain. Example: "Take image 1 and change only the character to the character in image 2." Never use a frame from a released film as the base; a film still is an art-direction brief for route 1.
33
-
34
- ## The rules
35
-
36
- 1. **Describe what the camera sees, not the camera setting.** "Her face sits a stop under" was ignored; "close to a silhouette, her features only just readable" landed. Mood words carry little on their own.
37
- 2. **Build one physical light system first.** Name the source and its position, what it does to the subject, and rule out light with no source. If the shot needs atmosphere, place it in front of the subject as well as behind. Every source and shadow must agree.
38
- 3. **Name the lens and describe its effect, every time you describe a new photographic frame.** A lens named alone changed nothing visible in the summit test; named with its effect, it produced compression and blur.
39
- 4. **Use only what the shot needs.** One light system (its consequence clauses count as one), at most one pick each from exposure, atmosphere and colour, one or two composition moves and one moment. Then stop adding. These are drafting limits, not model capability limits.
40
- 5. **Name everything a reference could fill.** Every garment, and a closed list of what is in the foreground. Anything left out can come from a reference or be invented. In route 2, preserve the existing inventory and describe only the change.
41
- 6. **One targeted negative after a positive description is fine; a list is not.** Follow the model's grammar: FLUX needs positive wording.
42
- 7. **A scene reference owns the grade; a look-only reference does not own the light.** With a look-only reference, still write the light direction and visible exposure for the new scene. Name references inline where used, never in an opening role paragraph.
43
- 8. **Look at every reference before writing.** First describe a look reference's own grade and imperfections: darkness, contrast, true or muddy blacks, colour cast and saturation, softness and noise, and how much the subject separates from the background. Never grade cleaner, brighter or higher-contrast than the reference unless the user asks. Inspect a character sheet's garments so the prompt names or replaces every one. Without a reference, the same techniques work from words alone.
44
-
45
- ## Build order
46
-
47
- Inspect references first. For a new frame: time/weather → light source and direction → effect on the subject → exposure as it looks → atmosphere in front, if needed → colour → composition and camera placement (lens plus effect) → the moment → kind of picture → inventory (every garment and the closed foreground). Carry the observed reference grade through those choices. Adapt examples to the actual scene; never inherit their props, wardrobe or light by accident.
48
-
49
- ## Evidence tags
50
-
51
- `receipt` measured on Slates generations · `vendor` stated in the model maker's own guide · `practitioner` a published third-party guide or test · `canon` established cinematography, never measured on a model · `untested` reasoning only: try it, then record the result in the research doc and change the tag.
52
-
53
- ## The catalogue
54
-
55
- Each row: the technique, its evidence, what it does to the frame, when to reach for it and when to skip it, and wording written as what the frame looks like.
56
-
57
- <!-- @catalogue:start -->
58
-
59
- ### 1. Exposure and tone — the "graded wrong" frame
60
-
61
- | Technique | Evidence | What it does | Reach for · skip | Say |
62
- |---|---|---|---|---|
63
- | `flat-underexposure` | receipt | The whole frame sits in a narrow, dark tonal range; the subject barely separates | A dark, flat look reference or fading light · skip hard contrast, glowing practicals and crushed blacks | "Everything sits in dark, muddy navy blue; nothing is bright or truly black. Her dim face barely separates from the trees; even the focused face is slightly soft, with fine noise in the dark blues." |
64
- | `subject-under-key` | untested | The face is clearly darker than the brightest part of the frame; features read, nothing lights them | Backlit exteriors, sunrise and sunset, window interiors · skip beauty, product, lip-sync close-ups | "Her face is in shadow, clearly darker than the sky behind her; her features are readable but nothing lights them." |
65
- | `near-silhouette` | receipt | A dark shape with edge detail against a bright field | Wides, entrances and exits, solitude · skip shots that depend on recognising the face | "She is close to a silhouette: her face and jacket fall into deep shadow, her features only just readable." |
66
- | `clipped-highlights` | receipt | The sky near the sun, windows and practicals go pure white | Backlit shots, windows, night practicals · skip skies that carry the story, white packaging | "The sky around the sun burns out to white." |
67
- | `dense-shadows-with-ramp` | receipt | Shadows sink to near-black but fall off gradually, and one detail survives in the dark | Night, interiors, a backlit foreground · skip video dark work that already turns to murk | "The shadows are dense and slightly crushed, the foreground rock nearly black, and the light fades into them gradually." |
68
- | `low-key-ratio` | vendor | One side of the face lit, the other falls away with nothing filling it | Interiors, night, close-ups that carry mood · skip bright comedy or commercial register | "Light reaches only the left side of his face; the right side falls into shadow and nothing fills it." |
69
- | `flare-washed-contrast` | receipt | Stray light lifts the blacks and flattens contrast over part of the frame | Shooting toward the sun or a hard practical · skip crisp thriller, neon noir | "Flare washes across the upper half of the frame and lowers the contrast." |
70
- | `lifted-matte-blacks` | canon | The darkest tones sit at charcoal, like a faded print | Daytime melancholy, period looks, overcast · never with `dense-shadows-with-ramp` | "The darkest parts of the frame are a soft charcoal rather than black." |
71
- | `uneven-exposure-across-frame` | untested | Exposure is right for one zone only; one side runs hot, the far side goes dark | Mixed-light interiors, night streets, documentary register · skip clean product shots | "The lamp side of the room is overexposed and the far corner goes nearly black." |
72
-
73
- ### 2. Light source and direction — one physical system
74
-
75
- | Technique | Evidence | What it does | Reach for · skip | Say |
76
- |---|---|---|---|---|
77
- | `name-the-one-source` | receipt | A dominant source with shadows consistent with its distance | When the light needs control · skip when preserving existing light | "The sun is low behind her and off her right shoulder, just above the far peaks." |
78
- | `forbid-the-phantom-key` | receipt | Removes the soft front light models invent on faces | Any backlit, side-lit or practical-lit person · skip flash, frontal sun, beauty work | "There is no light in front of her: no frontal key, no fill." |
79
- | `hard-rim-backlight` | receipt | A bright edge on hair and shoulder while the face stays in ambient light | Golden hour, practicals behind the subject · skip overcast and blue hour, which have no hard source | "A hard orange rim of light traces her hair, the edge of her cheek and one shoulder." |
80
- | `face-in-bounce` | receipt | The unlit side is filled only by coloured light reflected from the surroundings | Backlit exteriors, rooms with coloured walls · skip when the face must read cleanly | "Her face sits in soft, cooler bounce light off the rock." |
81
- | `raking-side-light` | receipt | Light skims a surface so pores, weave and grain show | Close-ups, skin realism, materials · skip when the brief is flattery | "Daylight rakes across her face from one side, so texture catches along the cheekbone and the other side sits in soft shadow." |
82
- | `practicals-only` | vendor | Lights inside the frame are the only light: pools with dark gaps between | Night interiors, cars, bars, kitchens at night · skip when the room must read | "The only light is the open fridge she is standing in; the kitchen behind her is dark." |
83
- | `window-light-falloff` | canon | Bright near the window, then a fast drop across the room | Day interiors, quiet drama · skip big evenly lit spaces | "Grey daylight from the single window on the left; a few steps away the room drops into shadow." |
84
- | `mixed-colour-temperatures` | receipt | Warm and cool sources side by side, uncorrected | Dusk interiors, night streets, cars at night · skip clean commercial | "Warm lamplight on his face; cold blue daylight from the window on the wall behind him." |
85
-
86
- ### 3. Atmosphere and optics — what sits between the lens and the subject
87
-
88
- | Technique | Evidence | What it does | Reach for · skip | Say |
89
- |---|---|---|---|---|
90
- | `haze-in-front` | receipt | Haze, dust or smoke between camera and subject softens the subject's edges | Exteriors, sunbeams, dusty sets · skip crisp product or text shots | "Thin haze crosses the frame in front of her, so her edges are no sharper than the rock beside her." |
91
- | `source-flare` | vendor | Flare from a bright source in the frame | Facing the sun, headlights, stage lights · skip jargon stacks and scenes with no hard source | "The low sun at the edge of the frame throws a flare that crosses in front of her." |
92
- | `halation-on-highlights` | canon | A soft reddish glow bleeds past bright edges | Night practicals, candles, neon, film looks · skip clean digital register | "Bright lights have a soft reddish glow bleeding past their edges." |
93
- | `defocus-as-outcome` | receipt | Planes separate: only the subject is sharp | Close and medium shots · skip wides where the place must read | "On a 200mm telephoto lens only she and the pan are sharp; the background melts into soft shapes and the foreground rock edge falls out of focus." |
94
- | `soft-overall-no-sharpening` | receipt | Lower microcontrast, no halos along edges | Photoreal people, film register · skip product detail and dense text | "The image is slightly soft overall; edges carry no crisp outline." |
95
- | `grain-in-shadows` | vendor | One texture note | Film or low-light register · never stacked with other noise words | "Fine grain is visible in the shadows." |
96
- | `edge-falloff` | canon | The corners sit darker than the centre | Film looks, night · skip flat graphic compositions | "The corners of the frame are darker than the centre." |
97
- | `glass-or-weather-between` | receipt | Rain, smudges or condensation between the lens and the subject | Cars, cafés, storms, observed framing · skip when the face must be sharp | "Seen through a rain-streaked car window; the drops are sharp and she is soft behind them." |
98
-
99
- ### 4. Colour and grade — preserve the reference unless a change is requested
100
-
101
- | Technique | Evidence | What it does | Reach for · skip | Say |
102
- |---|---|---|---|---|
103
- | `warm-muddy` | receipt | Warm but desaturated; whites read cream, greens olive | Dusty or earthy exteriors, fatigue, nostalgia · skip crisp commercial | "The colour is warm and a little muddy rather than clean." |
104
- | `restrained-desaturated` | canon | Muted overall; at most one colour stays strong | Drama, cold or bleak moods · skip joyful or brand-colour work | "Colours are muted and low in saturation; only the red of her jacket holds its colour." |
105
- | `uncorrected-white-balance` | receipt | The colour cast is left in | Phone or documentary register, shade, fluorescents · skip product colour accuracy | "White balance left a little cool and uncorrected; the white mug looks bluish." |
106
- | `tungsten-in-daylight` | canon | The daylight scene renders blue-cyan | Cold mornings, alienation · skip warm romance | "Daylight renders cold and blue, as if the camera were set for indoor lamps; skin looks pale." |
107
- | `sodium-vapour-mono` | canon | Street light collapses colour to amber | Urban night, industrial areas, parking lots · skip scenes that need colour separation | "Orange streetlight flattens every colour to amber and brown; shadows go brown-black." |
108
- | `bleach-bypass-look` | canon | High contrast, drained colour, silvery skin | War, grit, harsh drama · skip warm or intimate scenes | "Colour almost drained out, contrast harsh, skin grey-silver, heavy shadows." |
109
- | `teal-orange` | vendor | Warm skin against teal shadows; the generic blockbuster look | Only when the brief asks for blockbuster register · never as a default | "Skin stays warm while the shadows and sky are pushed toward teal." |
110
- | `era-or-device-register` | vendor | One phrase shifts colour, grain and flash together | Period or amateur looks · one per prompt | "As if shot on 1980s colour film, slightly grainy." |
111
- | `cross-processed` | vendor | Hard colour shifts: cyan shadows, magenta highlights | Music video, fashion, 90s editorial · skip naturalism | "Colours shifted hard, cyan in the shadows and magenta in the highlights." |
112
-
113
- ### 5. Time and weather presets — bundles of the above, and mutually exclusive
114
-
115
- | Technique | Evidence | What it does | Reach for · skip | Say |
116
- |---|---|---|---|---|
117
- | `golden-hour-backlit` | receipt | Sun low behind, long shadows toward camera, rim light, face in bounce, sky near the sun white, warm haze | Warm exteriors · never with noon shadows or overcast softness | "The sun sits just above the ridge behind her; long shadows run toward the camera; a hard rim on her hair; her face in cool bounce; the sky around the sun burns white." |
118
- | `after-sunset` | canon | No direct sun, soft shadowless light, sky fading pink to blue, practicals just on | Quiet exteriors · never with rim light or hard shadows | "The sun has just set; soft shadowless light; the sky fades from pink to deep blue; porch lights have just come on." |
119
- | `blue-hour` | receipt | Cool even light; warm practicals run hot against it; faces dim | Streets and cafés at dusk · never with a warm key on the face | "Deep blue dusk light, almost no shadows; the café windows glow hot orange; her face is dim and blue." |
120
- | `hard-noon` | practitioner | Bleached sky, short hard shadows, squinting | Heat, desert, exhaustion · skip anything that must flatter | "Midday sun straight overhead; tiny hard shadows under her brows and chin; she squints." |
121
- | `overcast-flat` | practitioner | No shadows, low contrast, honest skin | Plain daylight, street realism · never with rim light or flare | "Flat grey overcast light, no shadows, low contrast, colours slightly dull." |
122
- | `night-practicals` | canon | Pools of light, dark gaps, colour casts, blooming highlights | Night streets and interiors · never with "evenly lit" | "The street is dark between the orange streetlights; he is lit only when he passes under one." |
123
- | `firelight` | canon | Warm flicker from below, fast falloff, black past a few metres | Campfires, candles · never with daylight fill | "The campfire is the only light: warm and flickering from below, their faces half lit, everything beyond the circle black." |
124
- | `moonlight-day-for-night` | canon | Cool, low saturation, one faint hard shadow direction, sky darker than the ground | Night exteriors · skip when warm practicals dominate | "Cold blue moonlight from one side; faint hard shadows; colour almost gone; faces only just readable." |
125
- | `rain-wet-night` | canon | Wet surfaces smear reflections; rain shows only where it passes a light | Urban night · rain across the whole frame, never in one corner | "Rain shows as bright streaks where it passes the streetlight; the wet asphalt reflects the lights as long smears." |
126
- | `fog-or-dust` | canon | Depth falls off to grey; figures layer by distance | Mystery, scale · never with crisp distant detail | "Fog swallows everything past the second streetlight; the far figures are pale grey shapes." |
127
-
128
- ### 6. Composition and camera placement
129
-
130
- | Technique | Evidence | What it does | Reach for · skip | Say |
131
- |---|---|---|---|---|
132
- | `dirty-foreground-occlusion` | receipt | An out-of-focus object near the lens covers part of the frame | Anything that should feel observed rather than staged · only objects that belong in the space | "The edge of a pine branch crosses the left third of the frame, close to the lens and completely out of focus." |
133
- | `off-centre-cropped-subject` | practitioner | The subject sits near an edge, partly cut by the frame | Candid and documentary register · skip deliberate symmetry | "She sits in the right third of the frame; her elbow is cut off by the edge." |
134
- | `negative-space` | canon | A small subject in a large empty area | Isolation, scale · in a video plate give the empty area texture, or it moves with the foreground | "She is a small figure at the bottom right; the rest of the frame is pale, cloud-streaked sky." |
135
- | `frame-within-frame` | canon | A doorway, window or vehicle surrounds the subject | Observed feel, confinement · skip when it hides the action | "Seen through the open barn door; the dark door frame surrounds her on three sides." |
136
- | `over-the-shoulder-foreground` | vendor | A foreground head or shoulder, dark and soft | Dialogue, two-person scenes | "The back of his head and shoulder fill the left edge, dark and out of focus; she faces him, sharp." |
137
- | `compression-as-outcome` | receipt | The long-lens look: the background looms huge and close | Making a background loom, crowds, heat haze · skip intimate interiors | "Shot from far away on a 200mm telephoto lens, the peaks loom huge and close behind her, stacked right up against her shoulders." |
138
- | `camera-height` | receipt | Ground level, hip height or overhead, picked on purpose | Every shot · eye level only by choice | "The camera sits on the ground by the stove, looking up at her past the pan." |
139
- | `grabbed-framing` | untested | Horizon slightly off, framing a beat late | Documentary or UGC register · skip composed cinema | "The horizon tilts slightly and the framing is a little late; her head is near the top edge." |
140
- | `reflection-partial` | receipt | The subject seen in glass, steel or a puddle | Night, cities, variety across a set · never a bathroom mirror | "We see her only as a reflection in the dark shop window, overlapped by the street behind the glass." |
141
-
142
- ### 7. Texture, wardrobe and set
143
-
144
- | Technique | Evidence | What it does | Reach for · skip | Say |
145
- |---|---|---|---|---|
146
- | `name-the-capture-context` | receipt | Says what kind of picture this is, instead of listing flaws | Every photoreal shot · never a flaw inventory, which reads as tokens and turns plastic | "A frame from a film shot on location, not a studio portrait." |
147
- | `skin-under-real-conditions` | vendor | Skin carries the environment: wind, sun, sweat | People in real conditions · never a stack of pore and blemish words | "Wind-chapped cheeks and a sunburnt nose after a day on the mountain; skin shiny with sweat at the hairline." |
148
- | `hair-state` | receipt | Flyaways, wind, strands stuck to the forehead | Weather, action, fatigue · vary the state, never the style that carries identity | "Wind has pulled strands loose across her face." |
149
- | `wardrobe-wear` | vendor | Creases, dust, fading | Lived-in characters · skip fashion hero shots | "Her jacket is creased at the elbows and faded at the seams; dust on the knees." |
150
- | `full-wardrobe-spec` | receipt | Names top, legwear and footwear so a reference cannot fill the gap | Any shot built from a character reference · not optional | "Grey hiking jacket zipped up, dark hiking trousers, scuffed brown boots." |
151
- | `closed-prop-list` | receipt | A positive, closed inventory of what is in the frame | Any frame where the model adds junk · never a "no extra props" list | "The only things on the rock are the stove and the pan." |
152
- | `lived-in-wear-on-named-things` | practitioner | Wear goes on objects already named, never as new objects | Sets that should feel used · never "add clutter" | "The pan is blackened underneath and the rock around the stove is stained with old soot." |
153
- | `material-specificity` | vendor | Names the physical material | Hero objects · never a generic noun | "A dented enamel mug, a scratched aluminium pot, a waxed-cotton jacket going pale at the seams." |
154
-
155
- ### 8. Moment, performance and motion
156
-
157
- | Technique | Evidence | What it does | Reach for · skip | Say |
158
- |---|---|---|---|---|
159
- | `caught-mid-action` | receipt | The action is under way and the camera goes unnoticed | People, by default · skip deliberate portraits and address-the-lens beats | "Her right hand works a wooden spatula in the pan mid-stir." |
160
- | `eyeline-off-lens` | receipt | The eyes are on the task, another person or out of frame | Images and B-roll · never a lip-sync beat, where eyes on the lens are the point | "She looks down at the pan." |
161
- | `unresolved-expression` | receipt | Not a stock smile: squinting, chewing, tired, mid-thought | Realism · skip brand-joy beats | "She squints against the glare, jaw set, tired." |
162
- | `motion-blur-on-the-mover` | practitioner | Only the moving part blurs | Hands, tools, hair, passing vehicles · never on text or a face that must read | "Her hand with the spoon is a slight blur of movement; the pan and the rock are sharp." |
163
- | `focus-slightly-missed` | untested | Focus landed just behind the subject | Documentary register · skip identity-critical shots | "Focus landed on the rock just behind her; her face is a touch soft." |
164
- | `handheld-operator-body` | receipt | For video: write the body holding the camera, not the path | Documentary, UGC, tension · skip locked-off formal shots | "Handheld, the operator breathing; the frame sways slightly, drifts off her and corrects back." |
165
- | `weight-and-consequence` | practitioner | For video: mass moves through the body and the world reacts | Any physical action · skip static dialogue | "She shifts her weight onto her back foot as she lifts the heavy pan; the stove wobbles." |
166
- | `frame-zero` | receipt | In a still that feeds video, the event has not happened yet | Every image-to-video plate · never an aftermath plate | Describe the moment just before the event: the pole still straight, the glass still whole. |
167
-
168
- <!-- @catalogue:end -->
169
-
170
- ## Techniques that clash
171
-
172
- - **`near-silhouette` against a recognisable face or lip-sync.** On identity-critical shots use `subject-under-key` with `face-in-bounce`; keep silhouettes for wides.
173
- - **`dense-shadows-with-ramp` against murk.** Always say the light falls off gradually and keep one detail readable in the dark. On video dark work keep the subject readable; `slates-blocking-to-prompt`'s "no crushed blacks" is scoped to that lane.
174
- - **`lifted-matte-blacks` against `dense-shadows-with-ramp`.** Pick one.
175
- - **One colour-temperature story.** `warm-muddy` does not go with `tungsten-in-daylight` or a cool `uncorrected-white-balance`.
176
- - **Presets exclude each other.** Golden hour has no noon shadows; overcast has no rim light or flare; `practicals-only` has no even room light.
177
- - **Haze or flare against readable text or product.** Keep the atmosphere away from the text, or drop it.
178
- - **`defocus-as-outcome` against a place that must read.** Keep it for close and medium shots.
179
- - **Motion blur, handheld sway or missed focus against text, lip-sync or identity.** Keep them off the face and off the text.
180
- - **`closed-prop-list` against `lived-in-wear-on-named-things`.** Wear goes on the named objects, never as new ones.
181
-
182
- ## On video
183
-
184
- - **The grade lives in the still.** A motion prompt describes how the light behaves as things move — the flare slides as the camera turns, haze drifts across the foreground, her face stays in shadow as she turns — and preserves the still's grade unless the user requests a change.
185
- - **Lens and film-stock names translate; they do not paste.** The rule and ByteDance's own wording: `slates-prompting-seedance` → "Don't cross-pollinate image-model syntax".
186
- - **A negative-prompt field can cancel a technique.** Never suppress in `negative_prompt` something the prompt asks for (Kling: `slates-prompting-kling-v3`).
187
-
188
- ## Model notes
189
-
190
- - **GPT Image 2.5.** Ask for a real photograph or film still outright. In the recorded summit tests, it tended to brighten faces, clean up colour and add props; visible-outcome wording gave more control than gear names alone. References route through its edit endpoint.
191
- - **Nano Banana 2.1.** GPT Image 2.5 Sunburst stays the default: its frames are more cinematic, with more natural light. A Sunburst roll can come back with grainy, patterned AI noise; when it does, reroll the same prompt on Nano Banana 2.1, or run 2.1 as a finish pass over that frame. 2.1 fails the other way, with too little detail and plasticky, too-smooth skin. Both can look fully photoreal and neither wins every roll, so judge the frame, not the model (Eric, 2026-10-23). Receipt (2026-10-23, three scenes against Sunburst, N=1 per scene): asked for one-sided blue TV light in a night bar, 2.1 lit the face warm and from the front, brighter than asked, so on 2.1 state the light system plainly and early and describe the exposure as it should look. Google recommends named cameras, film eras, chiaroscuro lighting and positive framing, so gear names are a sanctioned lever here: still add what they do to the picture. In an edit, scope each requested change and name what should stay; the retired Nano Banana Pro changed more of the frame than asked when that was left out.
192
- - **FLUX 3.** No negative prompt at all, and its guide asks for one or two strong effects in sentences that name visible things, so state the one light system plainly rather than stacking techniques.
193
- - **Seedream 5 Lite.** Keep it short: pick fewer techniques to fit its prompting guide's roughly 100-word ceiling. See `slates-prompting-seedream-5-lite`.
194
-
195
- ## Worked examples
196
-
197
- **Route 1, IMG-A197 (Sunburst, 2026-09-15).** Image 1 is the character identity sheet, image 2 a look reference. One light system, one exposure decision, the wardrobe and the foreground named. Eric: *"just so well done."*
198
-
199
- <!-- @example:img-a197:start -->
200
- ```text
201
- A film still shot on location, lit and graded like image 2. The woman from image 1 cooks on a rocky summit high in the Rockies at golden hour. She stands facing camera behind a stainless steel frying pan of sliced vegetables on a camp stove on the rock in the lower foreground, framed from mid-thigh up. Her right hand works a wooden spatula in the pan mid-stir, her left rests on the pan handle. She looks down at the pan with a slight smile. Long wavy blonde hair down. Grey hiking jacket zipped up, the word "SLATES" once in small plain letters on the left chest, and dark hiking trousers. The only things on the rock are the stove and the pan. Behind her: pine tops, a deep valley and snow-capped peaks running to the horizon.
202
-
203
- The sun sits just above the far peaks behind her right shoulder and the whole frame is exposed for that sky. She is close to a silhouette: her face and jacket fall into deep shadow, her features only just readable, lit by nothing but a faint warm bounce off the rock. A hard orange rim of light traces her hair, the edge of her cheek and one shoulder. The sky around the sun burns out to white, flare washes across the upper half of the frame and lowers the contrast, and steam off the pan glows where the sun comes through it. The shadows are dense and slightly crushed, the rock in the foreground is nearly black, and the colour is warm and a little muddy rather than clean. No other text in the image.
204
- ```
205
- <!-- @example:img-a197:end -->
206
-
207
- **Route 1 with a lens, IMG-A198 (Sunburst, 2026-09-15).** The same frame, with the lens named and its effect described. Real compression and depth of field came back.
208
-
209
- <!-- @example:img-a198:start -->
210
- ```text
211
- A film still shot on location from far away on a 200mm telephoto lens, lit and graded like image 2. The woman from image 1 cooks on a rocky summit high in the Rockies at golden hour. She stands facing camera behind a stainless steel frying pan of sliced vegetables on a camp stove on the rock in the lower foreground, framed from mid-thigh up. Her right hand works a wooden spatula in the pan mid-stir, her left rests on the pan handle. She looks down at the pan with a slight smile. Long wavy blonde hair down. Grey hiking jacket zipped up, the word "SLATES" once in small plain letters on the left chest, and dark hiking trousers. The only things on the rock are the stove and the pan.
212
-
213
- The long lens compresses the distance: the snow-capped peaks loom huge and close behind her, stacked right up against her shoulders, and they melt into soft out-of-focus shapes. Only she and the pan are sharp. The pine tops between her and the peaks are a smear of dark green, and the foreground rock edge falls out of focus too.
214
-
215
- The sun sits just above the far peaks behind her right shoulder and the whole frame is exposed for that sky. She is close to a silhouette: her face and jacket fall into deep shadow, her features only just readable, lit by nothing but a faint warm bounce off the rock. A hard orange rim of light traces her hair, the edge of her cheek and one shoulder. The sky around the sun burns out to white, flare washes across the upper half of the frame and lowers the contrast, and steam off the pan glows where the sun comes through it. The shadows are dense and slightly crushed, the rock in the foreground is nearly black, and the colour is warm and a little muddy rather than clean. No other text in the image.
216
- ```
217
- <!-- @example:img-a198:end -->
218
-
219
- **Route 1, platform revision (IMG-A200 and IMG-A204).** IMG-A199 followed its written hot lamp and crushed blacks, but Eric wanted the reference's flatter, darker, softer grade. This exact revision subsequently produced A200 and A204 using neutral identity sheets and the original look reference. Eric preferred A204 to the scene-reference remixes A201–A203; A203 and A204 used the same model and quality settings. Prompt and references changed together, so their individual contributions are not isolated.
220
-
221
- <!-- @example:platform-flat-untested:start -->
222
- ```text
223
- A film still shot on location from a distance on an 85mm lens, lit and graded like image 2. The young woman from image 1 waits alone at the far end of an empty country train platform at blue hour. She stands side-on to the camera in the right third of the frame, framed from the chest up, looking down the empty track toward where a train would come from, her lips slightly parted. A dark wool coat hangs open over a grey hooded sweatshirt, hood down. The wind has pulled a few strands of hair loose across her cheek. The only things near her are the edge of the concrete platform and a single old lamp post, its lamp not yet switched on.
224
-
225
- The sun is gone and the light is almost gone with it. The whole frame is underexposed and flat: everything sits in a narrow range of dark, muddy navy blue, nothing in it is bright and nothing is truly black. The brightest thing in the picture is the dull grey-blue sky above the trees. Her face is lit only by that weak sky from behind and to her left, so it is dim and blue and barely separates from the dark trees behind her; her features are there, but you have to look for them. There is no light in front of her, no rim of light on her hair, no catchlight in her eyes, and no contrast anywhere to make her stand out.
226
-
227
- The long lens compresses the distance: the trees sit close behind her as soft dark shapes, and only her face is in focus, and even that is slightly soft. It looks like a camera pushed to its limit in low light: low contrast, a little murky, fine noise in the dark blues, and colour drained to a cold blue-grey. No text anywhere in the image.
228
- ```
229
- <!-- @example:platform-flat-untested:end -->
230
-
231
- **Route 2, IMG-A184 (Sunburst, 2026-09-09).** Image 1 was a finished blue-hour frame, image 2 a character. The whole prompt: *"take this image 1 and just change the character to the character in image 2"*. Composition, grade, light and depth of field held exactly. That base frame was not one Slates owns, so the receipt proves the technique, not a shippable workflow: use your own frame.
232
-
233
- ## Adding or changing a technique
234
-
235
- 1. Record the evidence first: a row in the research doc's technique table, with its tag and source.
236
- 2. Add or change the row here, with the same id and the same tag.
237
- 3. Run the build. The catalogue check fails until both files agree.
@@ -1,88 +0,0 @@
1
- ---
2
- name: slates-content-policy
3
- description: "Check provider-sensitive content before prompting a brief with conflict, creatures, crowds, violence, destruction, weapons, real likenesses or young characters. Use its scoped refusal receipts and scene alternatives alongside the selected model guide."
4
- ---
5
-
6
- # Content-policy-safe construction — read before any risk-surface prompt
7
-
8
- <!-- @banned:start -->
9
- <!-- slates-only -->
10
- <!-- Content-policy guidance. Read this list alongside the selected model's
11
- own prompting guide. -->
12
- <!-- /slates-only -->
13
- **Never use**: each one is a filter tripwire with a substitution in the table below:
14
- - `civilians in panic`, `crowds fleeing`, `blood`, `gore`, `corpse`
15
- - `ignite`, `catch fire`, `on fire` applied to a person — frame body-contact effects as magical or harmless VFX
16
- - `candle-like`, `flame-like` and any real object used as a metaphor for an effect
17
- - a real, named public figure
18
- <!-- @banned:end -->
19
-
20
- Don't depict the harm — depict the energy, the aftermath, the threat, or the scale. Build the scene safe from the first word.
21
-
22
- Write scenes that hit full cinematic impact without ever *needing* to depict prohibited content. This is a craft move, not a compromise — the substitutions below usually read as more cinematic, not less, and they keep your generation from getting silently rejected or degraded by the model's filter. A standoff is more tense than a massacre; an evacuated city is eerier than a crowd in panic; a roar lands harder than a kill. Load this whenever a prompt involves conflict, creatures, crowds, destruction, weapons, or young characters.
23
-
24
- ## Substitution table
25
-
26
- | Avoid | Use instead |
27
- |---|---|
28
- | Civilians in panic, crowds fleeing under debris | An evacuated / empty city; abandoned streets; a lone figure for scale |
29
- | Weapons firing into buildings or at people | Energy-discharge standoffs, searchlights sweeping, charged auras, shockwaves with no muzzle fire |
30
- | Creatures tearing into each other, gore | A grapple / standoff — roars, near-misses, circling, an energy clash; combat that stays contained (in/on the water, never lifting into the air) |
31
- | Destruction with people in harm's way | Destruction in uninhabited terrain — glaciers, deserts, ruins, open sea, evacuated zones |
32
- | Realistic guns as the focus | Stylized / fantasy implements, weapons slung-not-fired, the weapon as silhouette or prop only |
33
- | Blood, wounds, death | Impact light, dust, debris, buckling and collapse, a silhouette dropping out of frame |
34
- | Real, named public figures | Original / anonymous characters |
35
- | Real brand logos | Original or generalized branding — except the user's own product, which is the whole point of a brand film |
36
-
37
- ## The safe benchmark
38
-
39
- When a scene starts drifting risky, pull it back toward this shape: **one original creature, in a generalized monument or amphitheatre, in daylight, no weapons present, performing expressive action** (rising, roaring, spreading wings). Original design, generalized location, daylight, expressive rather than violent. That's the confirmed-safe envelope — most epic ideas re-stage into it without losing the punch.
40
-
41
- ## Containment rule — it doubles as a physics win
42
-
43
- Give any creature or combat scene a **containment rule** that grounds the physics at the same time:
44
- - "the fight STAYS at the sea surface — they breach, dive, grapple, submerge, but never fly or get carried into the air"
45
- - "boss scale locked ~2.5 human-heights, NOT kaiju-giant"
46
- - "destruction stays in the evacuated valley"
47
-
48
- This improves coherence (the model isn't inventing absurd escalation) AND keeps the scene inside policy — same clause buys both.
49
-
50
- ## Scale and stakes without harm
51
-
52
- Epic stakes come from environmental danger and reaction, not depicted victims: tiny figures diving clear of *collapsing* terrain (not being crushed), a war-horn over an *empty* field, an army *scrambling* across a frozen valley as a titan tears free of a glacier. The danger is the environment; the figures are reacting, not dying. Snow plumes, glowing runes, splintering ice, shockwaves, and dust carry the chaos.
53
-
54
- ## Minors — hard rule
55
-
56
- Never write romantic, sexual, or suggestive content involving or directed at minors, and never anything that sexualizes a young-presenting character. Any scene with children stays wholesome and age-appropriate. Non-negotiable — it overrides every stylistic goal.
57
-
58
- ## Pre-flight (run before delivering any risk-surface prompt)
59
-
60
- - [ ] No civilians depicted in panic/harm; crowds are evacuated or absent.
61
- - [ ] No weapons firing at people/buildings; threat is energy / searchlight / silhouette.
62
- - [ ] No creature-on-creature or creature-on-person gore; combat is grapple / standoff / roar, contained.
63
- - [ ] Destruction is in uninhabited / evacuated terrain.
64
- - [ ] Creatures are original ("not based on any franchise"); no real public figures; no real brand logos except the user's own product.
65
- - [ ] Anything with children is wholesome and age-appropriate.
66
-
67
- If a box fails, apply the substitution table before writing the prompt.
68
-
69
- ## Editing real footage (Kling O3 edit / Omni Flash edit) — real people in the SOURCE
70
-
71
- Video edit takes the user's own footage, which often contains real people. Rules:
72
-
73
- - The user must hold rights/consent for any real person's likeness in footage they edit — ask once when it's clearly someone other than the user, then proceed.
74
- - Kling's video-to-video filter behavior on real faces is **not yet verified** (unlike Seedance, where the consent-gated real-person option is confirmed). If an edit of real-person footage is rejected by the model's filter, do NOT retry-spam variations — tell the user the filter blocked it and offer a no-face crop/segment or an AI-character swap instead.
75
- - **Omni Flash: own-footage editing of the uploader's own face PASSED live 2026-07-09** (real talking-head clip, edited in Slates) despite Google's documented "recognizable people" restriction — treat that restriction as aimed at third-party/public figures, but expect probabilistic refusals and never promise passage.
76
- - Never use edit to put a real, named public figure into a scene, or to make someone appear to say/do something they didn't. Faceless b-roll (hands, products, landscapes, crowds-from-behind) edits freely.
77
-
78
- ## Gemini / Omni Flash filter regime (video gen + edit) — receipts 2026-07-09
79
-
80
- Google's filter is its own regime (stricter than Kling about harm-to-a-person, looser than Seedance about faces). Live receipts:
81
-
82
- | Blocked (`content_policy_violation`) | Passed |
83
- |---|---|
84
- | "his fingertips **ignite** with a small real flame" (fire ON a body part = harm) | "small **magical** flames appear on his fingertips … vanish when he blows on them" |
85
-
86
- - **Harm-to-person framing is the tripwire**, not the effect itself. Reframe body-contact effects as magical / supernatural / harmless VFX: "magical flames", "a glowing aura", "sparks of light dance on". Avoid ignite / burn / on fire / catch fire applied to a person.
87
- - **Never use a real object as a metaphor** — "candle-like flame" rendered a literal candle in the subject's hand. Describe the effect, not an object that resembles it.
88
- - The block is a 422 refund (no credits lost) and arrives mid-generation — one reframe per the substitution mindset above, don't retry-spam.
@@ -1,150 +0,0 @@
1
- ---
2
- name: slates-cost-discipline
3
- description: "Estimate and announce generation spend, aggregate batches, follow existing consent and inspect uncertain jobs before retrying. Use when planning or submitting paid media generation."
4
- ---
5
-
6
- # Slates cost discipline — read before every generation
7
-
8
- Generation costs real money. Every call is on the user's credits. The user can't see what you're about to spend until you tell them. **Tell them first, generate second.**
9
-
10
- ## The 4 rules
11
-
12
- ### 1. Pre-flight estimate — never call generate without one
13
-
14
- Before ANY `slates_generate_*` call, run `slates_estimate_generation_cost` first. Inputs you must lock before estimating:
15
-
16
- - **Model** — the id you are about to pass, whatever it is. `slates_estimate_generation_cost` takes the same base ids the generate ops take and resolves the billing key itself; do not build one by hand.
17
- - **Resolution** — use the selected model default unless the user or delivery requires another size. Estimate and generate with the same settings.
18
- - **Aspect ratio** — never let the op default to 1:1. Pick from the use case (cinematic → 16:9, mobile vertical → 9:16, square feed → 1:1).
19
- - **Count** — explicit. Don't generate 4 when 1 will tell you if the prompt works.
20
-
21
- If the aspect ratio cannot be inferred from the intended delivery, ask. A missing resolution uses the model default; it does not require another question.
22
-
23
- ### 2. Announce in credits, plainly, before spending
24
-
25
- Slates bills abstract **credits** (they never expire). Announce the credit total the estimate returns — never dollars.
26
-
27
- Format: `About to spend N credits on M image(s) at [resolution] [aspect ratio]. Proceed?`
28
-
29
- Examples:
30
- - `About to spend 4 credits on 1 image at 1k 16:9. Proceed?`
31
- - `About to spend 24 credits on 4 images at 2k 9:16 (variants). Proceed?`
32
-
33
- Follow the user's and host's generation approval policy before spending. A cost estimate or a small charge does not override a required prompt approval. An approved enumerated batch covers its calls; added calls or changed inputs need the confirmation described below. The code's separate confirm threshold is:
34
-
35
- <!-- @inject:thresholds -->
36
- <!-- GENERATED from @slatesvideo/shared — do not edit between the markers.
37
- Source: CONFIRM_CREDITS, DEVIATION_FACTOR and the audio bounds in
38
- packages/shared/src/operations/index.ts. Every number here is REFUSED by an
39
- op when a prompt gets it wrong, which is why none of them is typed by hand
40
- any more: this block replaced four claims that contradicted the code. -->
41
-
42
- **The thresholds, from the code that enforces them:**
43
-
44
- - **Confirm gate:** above **17 credits** an op returns `requires_confirm` and will not
45
- 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.
46
- - **Deviation pause:** the desktop Slates Director stops and re-asks when projected generation spend
47
- exceeds the approved plan by more than **20%**. You do not trigger this; the app does.
48
- - **Seed Audio duration:** **3–120 seconds.** There is no duration
49
- parameter on the model — the number you pass is written into the prompt AND is what the user is
50
- billed. Outside that range the op refuses rather than clamping.
51
- - **Sound Effects duration:** **1–22 seconds**, billed per second, never left for the
52
- model to pick.
53
-
54
- Never quote a credit figure from memory: `slates_estimate_generation_cost` returns the real one.
55
- <!-- @end:thresholds -->
56
-
57
- ### 3. Aggregate batches into ONE upfront announcement
58
-
59
- If you're planning a multi-call workflow (5 storyboard frames, 3 character variants, a grid of options), **announce the total before the first call**, not five small announcements after the fact.
60
-
61
- Format: `Plan: N generations totaling C credits. [Brief description of the sequence.] Proceed with the batch?`
62
-
63
- Example: `Plan: 6 frame generations at 1k 16:9 totaling 24 credits — establishing wide, push-in, two-shot, reverse, OTS, insert. Proceed?`
64
-
65
- ### 3b. Batch authorization — one approval covers the enumerated batch
66
-
67
- When the user approves a batch plan with one aggregated cost total up front ("8 scenes, ~$X total — go"), that single approval authorizes `confirm=true` on **each enumerated call in that batch** — and nothing beyond it. You do not need to re-ask per call; that's the point of the upfront announcement. Hands-off multi-scene runs depend on this.
68
-
69
- Boundaries that re-trigger confirmation:
70
-
71
- - Any call's actual estimate exceeds what the announced plan implied → stop, surface the delta, get a fresh OK. The app enforces its own ceiling on top of this (see the thresholds above); do not wait for it to catch you.
72
- - New calls are added that weren't in the enumerated plan (extra variants, retries beyond the plan, a new scene) → those are NOT covered. Announce and confirm separately.
73
- - The batch scope changes (different model, resolution, or duration than announced) → re-announce, re-confirm.
74
-
75
- One approval = that plan, as enumerated, at those prices. Nothing else.
76
-
77
- ### 4. Track the running total
78
-
79
- After each generation completes, the response includes `cost_credits` (when available). Keep a running tally in your context. Surface it every 3 generations or whenever the user asks "how much have we spent?"
80
-
81
- ## Resolution decision rules
82
-
83
- Use the model defaults below for ordinary work. For cheap exploration, choose a supported lower setting and compare the quote. For final delivery, use the size the output needs. When comparing prompts, hold model, quality, size and references constant.
84
-
85
- <!-- @inject:image-defaults -->
86
- **Image default:** gpt-image-2-5-sunburst, quality `high`, 3k. User overrides take priority. Without a project, generation uses the headless Nano Banana 2.1 seat. When to reroll a frame on Nano Banana 2.1 instead: `slates-cinematic-look` § Model notes.
87
-
88
- | Model | Default resolution |
89
- |---|---|
90
- | nano-banana-2-1 | 2k |
91
- | gpt-image-2-5-flare | 2k |
92
- | gpt-image-2-5-sunburst | 3k |
93
- | flux-3 | 1k |
94
- | seedream-5-lite | 2k |
95
- <!-- @end:image-defaults -->
96
-
97
- **4K VIDEO is Pro-only (2026-07-07).** The ladder above is for IMAGES (open at every tier). For VIDEO, where the selected model supports 4K, it requires a Slates Pro account; a base-tier 4K video gen is rejected server-side with `PRO_REQUIRED`. Default video to 1080p or lower and only reach for 4K when the user is on Pro and explicitly asks. 4K *images* are never gated.
98
-
99
- ## Aspect ratio decision rules
100
-
101
- Ask the user when ambiguous. Otherwise:
102
-
103
- | Context cue | Aspect ratio |
104
- |---|---|
105
- | "cinematic", "film", "movie", "wide" | 16:9 |
106
- | "TikTok", "Reels", "Story", "mobile vertical", "phone" | 9:16 |
107
- | "square", "Instagram feed", "thumbnail" | 1:1 |
108
- | "ultra-wide", "anamorphic", "cinemascope" | 21:9 if supported; otherwise 16:9 |
109
- | "portrait", "magazine cover", "vertical" | 3:4 |
110
- | "landscape photo", "horizontal" | 4:3 |
111
-
112
- Pick a ratio the chosen model accepts; check its `aspectRatio` options before submitting.
113
-
114
- If the user prompt mixes signals (e.g. "cinematic Instagram post"), ask. Don't guess.
115
-
116
- ## When the gate fires
117
-
118
- The server returns `requires_clarification` when required composition inputs are missing, and `requires_confirm` when total spend crosses the gate above. In both cases:
119
-
120
- 1. Surface the gate response to the user
121
- 2. Get a clean answer
122
- 3. Re-call with the explicit values + `confirm: true` if applicable
123
-
124
- Don't bypass the gate by silently filling in defaults. The gates exist because defaults waste money.
125
-
126
- ## Video is slow + async — a timeout is NOT a failure
127
-
128
- Video gens take minutes (Seedance 4K can run far longer). A client/CLI timeout or a slow, empty-looking response is **not** a failed generation — the job is still running on the provider.
129
-
130
- - **Never re-submit a video gen because it "timed out."** That double-charges the user for one video. Re-rolling a slow gen is the single most expensive mistake here.
131
- - **Poll, don't re-roll.** Use `background: true` on `slates_generate_video`, then poll `slates_get_generation_status` (free, read-only) until it reports `completed` or `failed`. In-flight jobs survive app restarts and are recovered.
132
- - A gen has only failed when the status comes back `failed` — and a provider *rejection* **refunds** the credits, so failed isolation tests are ~free. Until you see a terminal status, the job is in flight. Wait.
133
-
134
- ## 🔴 The still-gate — the most expensive mistake in the pipeline
135
-
136
- <!-- @inject:still-gate -->
137
- **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.
138
-
139
- 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.
140
- <!-- @end:still-gate -->
141
-
142
- The check itself lives in `slates-vision-feedback-loop` (the five slop tells and the per-model accents). The **stop** is a cost rule and belongs here: before every image→video call, confirm the source frame passed the still scan. If it didn't, spending video credits on it is not iteration; it is buying a more expensive copy of a defect you already found.
143
-
144
- <!-- @inject:iteration-diagnosis -->
145
- ## Diagnose repeated failures
146
-
147
- 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.
148
-
149
- 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.
150
- <!-- @end:iteration-diagnosis -->
@@ -1,46 +0,0 @@
1
- ---
2
- name: slates-cuts
3
- description: "Tighten an edit on a Slates timeline: trim, roll, ripple, slip, split, speed, J-cuts and L-cuts."
4
- ---
5
-
6
- # Cutting — Slates craft
7
-
8
- This is the editing pass after clips are on the timeline: making the cut play. Every tool here changes the timeline only; source files are untouched, nothing is generated and nothing is spent. Read the cut first with `slates_get_timeline` (clip ids, `startFrame`, `endFrame`, `sourceInFrame`, `sourceOutFrame`, frame rate).
9
-
10
- ## Which edit
11
-
12
- All of these are `slates_edit_timeline_clips`:
13
-
14
- - **Trim** (`action: "trim"`, `edge`, then `frame` or `deltaFrames`): shorten or lengthen one end. A trim cuts media and never changes speed.
15
- - `mode: "ripple"`: the lane's later clips move by the change, so no gap opens and nothing is covered. Use it to tighten a sequence.
16
- - `mode: "roll"`: moves the cut between this clip and the one that meets it; the lane keeps its length. Use it to make a cut land on an action or a word.
17
- - `mode: "overwrite"` (default): grows over a neighbour, covering it.
18
- - **Slip** (`action: "slip"`, `deltaFrames` or `deltaSourceFrames`): keeps a clip's place and length and shows a different part of its file. Use it when the timing is right but the moment is not.
19
- - **Move** (`action: "move"`, `startFrame` or `deltaFrames`, optional `trackId`): `mode: "insert"` pushes the lane's later clips right; `overwrite` covers what it lands on. `trackId` moves clips onto another lane of the same type, such as a B-roll lane above the main one.
20
- - **Split** (`action: "split"`, `frame` or `sec`): cuts every clip there, or only `clipIds`. Split, then trim or remove a piece, to drop a stumble from the middle of a take.
21
-
22
- To remove a clip and close its gap, use `slates_remove_clip` with `ripple: true` and the `projectId`.
23
-
24
- ## Pacing
25
-
26
- - Cut on action: end a clip mid-motion and start the next on the same motion.
27
- - Trim the air: the frames before an action starts and after it ends are where an edit feels slow. Ripple-trim them.
28
- - Ads: the first second carries the hook. Ripple the opening clip until something happens in its first frame.
29
- - Hold a beat longer on a reveal or a punchline than feels necessary; cut faster through a list.
30
-
31
- ## J-cuts and L-cuts
32
-
33
- `slates_update_clip` with `audioOffsetFrames` on a video clip moves its own sound against its picture, in sync:
34
-
35
- - **J-cut** (below 0): the next scene's sound starts before its picture. The viewer hears where they are going; it pulls them across a scene change and is the usual way into dialogue.
36
- - **L-cut** (above 0): a clip's sound runs on after its picture has cut away. Use it for a reaction shot while someone keeps talking, or to let a line land over the next image.
37
-
38
- Half a second (12 frames at 24 fps) is a common starting point. The clip next to it gives way to the shifted sound.
39
-
40
- ## Speed and level
41
-
42
- `slates_update_clip` also sets `speed` (2 is twice as fast and half as long; 0.5 is slow motion and twice as long; `ripple: true` moves the lane's later clips by the change), `volume` (linear gain, 1 unchanged), and fades in frames for the picture (`fadeInFrames`, `fadeOutFrames`) and the sound (`audioFadeInFrames`, `audioFadeOutFrames`). A fade out to black at the end of a piece and a short sound fade on music edges are almost always right. Transitions between two clips: `slates-transitions`.
43
-
44
- ## Check the cut
45
-
46
- After a pass, read the timeline again and watch it in the open Cut, or export it (`slates_export_video`) and look at the frames around each change. Say what you changed in the user's words: "tightened the opening by half a second, rolled the cut to her line".