STEM Storyboard Director (Median Dark-Studio & stem_engine)
Translate spoken STEM scripts into uncluttered, dark-studio visual choreography where every camera move, vector, curve, and equation earns its screen time.
Phase Boundary: Narrative prose and open loops belong in stem-video-scriptwriter. This skill owns visual state transitions, shot timing, spatial layout on 1920×1080, audio/SFX sync, and stem_engine (SceneBuilder) primitive mapping.
Select Output Tier
Choose the tier matching the deliverable:
- Tier 1 — Long-Form Audio-Visual Beat Sheet (for 5–30 min YouTube scripts):
- Break chapters into
10–25svisual beats. - Specify backdrop mode, foreground subject, visual state change, camera framing, key on-screen text (
<= 5words) or LaTeX card, sync phrase, and music/SFX cue.
- Break chapters into
- Tier 2 —
stem_engineProduction Shot Spec (for15–90srendered MP4s or chapter showcases like examples/incline.py and examples/chemistry_electron.py):- Break into
3–8sshots with exact[t0, t1]timestamps,1920×1080centered coordinates insideSafeArea, exactSceneBuilderprimitive calls, precomputeddt = 1/240sphysics/trajectory notes,active_windowoverlap guards, andAudioCueSFX events.
- Break into
Core Direction Principles
Read ./references/median-visual-grammar.md for visual tokens and ./references/stem-engine-mapping.md for exact SceneBuilder APIs before authoring a storyboard.
- One Visual Claim Per Shot (No Slide Clutter): Never dump 4 unrelated diagrams on screen at once. Each shot answers one physical question or performs one transformation.
- Phenomenon & Geometry Before Algebra: Animate the physical object, vector, or wave
0.4–1.0sbefore revealing its label or formula card. - Transform, Don't Replace: Maintain spatial continuity. Pan/zoom (
sb.camera.move_to), morph point clouds (OrbitalCloud.morph), or dim older derivation lines (Formula.dim_to(0.35)) instead of cutting abruptly to blank screens. - Separate Narration from On-Screen Text: Never copy full spoken sentences onto the canvas. Keep on-screen text to crisp labels (
<= 5words) or compact MathJax cards; let subtitles carry the spoken stream. - Scientific vs. Presentation State Separation: Derive trajectories, vector magnitudes, and plot curves from deterministic fixed-timestep physics (
dt = 1/240s); apply squash, glow, and camera easing strictly to presentation items. - Mandatory Breathing Room & Purposeful SFX: Hold major visual reveals (
FormulaCard, graph traces, measurement collapse) for0.8–2.0sbefore transitioning. Anchor state changes with subtleAudioCueSFX (Chime,Click,Contactatgain = 0.12–0.20). - Layout & Overlap Discipline: Keep every
screen_space=Truetext, formula, and badge insideSafeArea(x in [-888, 888],y in [-486, 486]) and always declareactive_window=(t0, t1)sosb.check_overlaps()catches collisions before rendering.
5-Step Storyboard Workflow
- Lock Visual Palette & Backdrop: Pick either Classical Starfield (Newtonian mechanics, astronomy, kinematics) or Quantum Void Studio (atomic/wave/micro-scale with optional 3D perspective floor grid). Lock semantic colors (
#F3F5F8primary/normal,#59C975gravity/accel,#EB5E55friction/resist,#F2C94Cangle/displacement/highlight,#999FABmuted context). - Segment Script into Shots/Beats: Align shot boundaries to natural clause/pause boundaries (
[.],[..],[...],[BEAT]). Estimate duration from VO word count (~2.3–2.4 words/sec) plus0.5–1.5svisual absorption holds. - Design Spatial Zones & Transitions: Use ./templates/storyboard-template.md. Map each shot to one of Median's 8 signature compositions (Center Stage, Top Formula Card + Lower Diagram, Right-Column Derivation Stack, Split-Screen System + Live Plot, Viewfinder Framing, Sequential Numbered Callouts, Stroboscopic Motion Trail, Perspective Floor Grid).
- Map to
stem_enginePrimitives & Audio Cues (Tier 2): AnnotateSceneBuildercalls (add_box,add_vector,add_vector_label,add_graph,add_formula_card,add_orbital_cloud,add_numbered_callout,add_viewfinder_brackets,add_stickman), trajectory sampling, andAudioCuetimestamps. - Validate Timing & Export Manifests: Run the deterministic validator:
.venv\Scripts\python.exe .agents/skills/stem-storyboard-director/scripts/validate_storyboard.py <storyboard.md> --mode shot --export-srt <out.srt> --export-cues <cues.json>
For Tier 1 long-form beat sheets (10–45s beats), pass --mode beat. Fix any timeline gaps/overlaps, negative durations, or excessive VO density (> 3.2 words/sec) before handing off to Python scene coding.
Pass-Threshold Gates
- Timeline is contiguous and strictly monotonic (
t1 > t0, no unintended gaps or overlaps >0.15s). - Every shot/beat states both Visual & Layout and Motion & Camera (zero static PowerPoint slides).
- Spoken VO density stays breathable (
<= 3.2 words/secper shot) with post-reveal hold windows. - Semantic colors are locked consistently across all shots; on-screen labels are
<= 5words. validate_storyboard.pypasses with0errors; any generatedstem_enginePython file passessb.check_overlaps() == []and renders cleanly viapython -m stem_engine render ....- Reference worked example consulted when needed: ./examples/sample-storyboard-con-lac.md.