Creating Sketch Explainer Videos (9:16 & 16:9)
Overview
Produce 30fps 2D hand-drawn graph-paper explainer videos in either vertical 9:16 (1080×1920, Reels/Shorts/TikTok) or horizontal 16:9 (1920×1080, YouTube Long Video) by scaffolding from the bundled Remotion template (./assets/template inside this skill) and syncing scenes, captions, BGM, and SFX to a voice-over generated via ElevenLabs API or supplied by the user.
When to Use
- User invokes
/creating-sketch-explainer-reels(even with no extra prompt text) - User asks
"bikinin video reel/short/long baru..."or requests a TEK101 / Silicon Scribbles style 2D graph-paper explainer video - Adding or customizing scenes in an existing sketch explainer Remotion project (
Vid <N>,Long <N>)
Do not use for live-action edits, AI-generated video pipelines (rea-video + capsule-cinema), or dark-mode 3D/cyberpunk promos.
Required Intake Gate (STOP Before Building)
Before scaffolding, calling any API, or writing code, confirm ALL THREE required inputs:
- Script narasi lengkap (full narration text or file path)
- Format video: Reels / Shorts (
9:16,1080×1920) OR Long Video (16:9,1920×1080) - Sumber voice-over: Generate pakai ElevenLabs API OR kirim/pakai file voice-over sendiri (
.mp3/.wav)
Condition: If ANY of the 3 inputs above is missing — including when the user sends ONLY /creating-sketch-explainer-reels with no additional text:
- STOP immediately. Do NOT scaffold files, do NOT invent a script, do NOT assume
9:16or16:9, and do NOT assume ElevenLabs or uploaded audio. - Reply concisely in the user's language (use concise Indonesian by default on a bare
/creating-sketch-explainer-reelsinvocation). - If some inputs were already provided, briefly acknowledge them and ask only for the missing item(s). On a bare
/creating-sketch-explainer-reels, ask all 3 items using this exact checklist:- Script narasi — scriptnya mana? (paste langsung atau kirim path filenya)
- Format video — mau bikin Reels / Shorts (
9:16) atau Long Video (16:9)? (Untuk16:9, caption pill otomatis di bawah seperti subtitle YouTube — beri tahu juga kalau mau tanpa caption.) - Voice-over — mau generate pakai ElevenLabs atau kirim file voice-over sendiri (
.mp3/.wav)? (Opsional: beri tahu jika ingin ganti folder tujuan atau backsound bawaan; default otomatisG:\Code\Slop Reels\Vid <N>untuk 9:16 danG:\Code\Slop Reels\Long <N>untuk 16:9.)
- Wait for the user's reply before executing Step 1 below.
Additional audio check: If the user chose "kirim file voice-over sendiri" but has not yet attached/specified the .mp3 / .wav path, ask for the audio file and wait before building scenes.
Production Recipe
Follow these steps in order once all 3 intake decisions (script, format, voice-over source) are confirmed:
1. Scaffold from the bundled template (never build from scratch)
- Default target folder if unspecified:
9:16Reels / Shorts → next availableG:\Code\Slop Reels\Vid <N>(e.g.Vid 16)16:9Long Video → next availableG:\Code\Slop Reels\Long <N>(e.g.Long 1,Long 2)
- Run
scaffold_video.ps1with-Format:
Passpowershell -File "C:\Users\eq\.gemini\config\skills\creating-sketch-explainer-reels\scripts\scaffold_video.ps1" -TargetDir "<target-project-dir>" -Format "9:16"-Format "16:9"for Long Videos (and add-NoCaptionsif the user wants 16:9 without burned-in captions). - Do NOT run
npm installinside<target-project-dir>— projects underG:\Code\Slop Reels\automatically inherit the sharedG:\Code\Slop Reels\node_modules(including Chrome Headless Shell viaremotion.config.ts), and external directories are auto-junctioned byscaffold_video.ps1. Only runnpm installonce inG:\Code\Slop Reels\if sharednode_modulesis missing.
2. Prepare Voice-Over Audio & Timestamps
-
Path A — ElevenLabs API (
scripts/elevenlabs_tts.py) — STRICT TWO-STEP CREDIT GATE:- Default Voice ID (always use unless user explicitly asks for another voice):
XA3P1cj7XJexe6Zq0ATX. - Script reads
ELEVENLABS_API_KEY(plus optional overridesELEVENLABS_VOICE_ID,ELEVENLABS_MODEL_ID) from environment or.env(<project>/.env,G:\Code\Slop Reels\.env, or<skill_dir>/.env). If the key is missing, tell the user where to placeELEVENLABS_API_KEY=...and wait. - Model selection (always ask once API is connected, unless the user already specified a
model_id):- Run
models(0 credits) to fetch the live TTS models available on the connected account:python "C:\Users\eq\.gemini\config\skills\creating-sketch-explainer-reels\scripts\elevenlabs_tts.py" models --project "<target-project-dir>" - Show the user the available models (
model_id, nama model, dan tarif kredit per karakter) and ask which model they want to use (no need to ask about Voice ID — keepXA3P1cj7XJexe6Zq0ATX). Wait for their choice before runningplan.
- Run
- Save the clean narration script to
<target-project-dir>\public\audio\script.txt, then runplan(0 credits spent) with voiceXA3P1cj7XJexe6Zq0ATXand the user's chosen--model:python "C:\Users\eq\.gemini\config\skills\creating-sketch-explainer-reels\scripts\elevenlabs_tts.py" plan --project "<target-project-dir>" --script "<target-project-dir>\public\audio\script.txt" --voice "XA3P1cj7XJexe6Zq0ATX" --model "<chosen-model-id>" - STOP BEFORE SPENDING CREDITS: Show the user the exact plan summary (voice, model, chunk count, total billable characters, estimated credits, remaining quota) and ask for explicit confirmation. NEVER pass
--approveuntil the user explicitly confirms. - After explicit confirmation, run
generatewith the exact--plan-hash:
This writespython "C:\Users\eq\.gemini\config\skills\creating-sketch-explainer-reels\scripts\elevenlabs_tts.py" generate --project "<target-project-dir>" --approve --plan-hash <hash><target-project-dir>\public\audio\voiceover.mp3AND<target-project-dir>\public\audio\words.json(exact word-level timestamps for 1:1 caption syncing).
- Default Voice ID (always use unless user explicitly asks for another voice):
-
Path B — User-Supplied Voice-Over File:
- Copy the user's audio into
<target-project-dir>\public\audio\voiceover.<ext>. - Measure exact duration and speech pauses via
ffprobeandffmpeg silencedetect(commands in references/scene-catalog.md).
- Copy the user's audio into
3. Map Narration to Scenes & Write src/data/exampleScript.ts
- Match total scene duration to the measured voice-over length (
+0.4–0.8sbreathing tail on the final scene). Pace avg3.5–4.5sper beat for9:16Reels, or4.5–7.5sper visual beat / chapter card for16:9Long Videos. - Built-in responsive scenes (
9:16+16:9):shelf_hook,stamp_reveal,compare_bars,pivot_chip,curtain_teaser,growth_payoff,outro_cta(no stickman / human figure in the ending). Consult references/scene-catalog.md for schemas, 16:9 safe zones, GPU/CPU catalogs, and adding custom scenes. - Set
format: "9:16" | "16:9",showCaptions: true | false,voiceoverFile: "audio/voiceover.<ext>",bgmFile: "audio/bgm.wav"(bgmVolume: 0.14), word-levelcaptions(derived directly fromwords.jsonwhen using ElevenLabs; highlight 1–2 punch words per line withhighlight: true), and syncedsfxcues (pop,ding,whoosh,slam).
4. Apply Strict Visual & Audio Invariants
- Canvas & Style:
30fps,1080×1920(ExplainerReel) or1920×1080(ExplainerLong), clean warm cream graph paper (#eee8dd,80pxgrid — no brown horizontal shelf line across the background), thick black ink outlines (#16161a), SVG#sketch-wobblefilter, flat accent fills. - Safe Zones & Captions:
9:16: Top floatingCaptionPill(top: 300px). Keep all scene graphics/tags aty >= 480px.16:9: Bottom YouTube-styleCaptionPill(bottom: 44px, occupyingy = 895–1045, or hidden viashowCaptions: false). Keep all widescreen scene graphics/tags insidey = 45–880px.
- Opacity & Staged Reveals: Every element waiting for a cue (
frame < triggerFrame) MUST haveopacity: 0(or be unmounted) and animate cleanly0 → 1on entry — never render visible ghost placeholders (0.12–0.25opacity). Keep active ink artwork, veils, and dimmed/off states solid (opacity: 1) using muted flat colors or shortened geometry. - Outro / Ending: NO stickman / cartoon human character (
StickFigure) in the ending scene. - Audio: Keep
bgmFile: "audio/bgm.wav"(bgmVolume: 0.14, looped with fade-in/out) enabled unless the user asks for no music, plus synced SFX (public/sfx/{pop,ding,whoosh,slam}.wav).
5. Verify Before Delivering
- Run
npm run typecheck(tsc --noEmit) — must pass with zero errors. - Audit every
opacity/fillOpacityinsrc/scenes/to confirm zero pre-entry ghost placeholders (frame >= X ? 1 : 0.x). - Render key still frames for the active composition (
ExplainerReelfor 9:16,ExplainerLongfor 16:9):
Inspect BOTH early pre-trigger frames and peak busy frames (including the outro) visually for pre-entry ghosting, caption overlap, text overflow, layout alignment, and absence of stickman in the ending.npx remotion still <ExplainerReel|ExplainerLong> out/preview_<scene>.png --frame=<N> - Only run full
npm run render(out/video.mp4) after stills pass visual inspection (or offernpm run devStudio preview first).
Quick Reference
| Aspect | Value / File |
|---|---|
| Required intake (3 items) | 1. Narration script · 2. Format (9:16 Reels vs 16:9 Long) · 3. VO source (ElevenLabs API vs user audio) |
| Master template | C:\Users\eq\.gemini\config\skills\creating-sketch-explainer-reels\assets\template |
| Scaffold script | powershell -File "...\scripts\scaffold_video.ps1" -TargetDir "<dir>" -Format "9:16|16:9" [-NoCaptions] |
| ElevenLabs TTS script | python "...\scripts\elevenlabs_tts.py" <quota|voices|models|plan|generate --approve> (voice tetap XA3P1cj7XJexe6Zq0ATX; model dipilih user dari hasil models) |
| Default output folders | 9:16 → next G:\Code\Slop Reels\Vid <N> · 16:9 → next G:\Code\Slop Reels\Long <N> |
| Compositions & FPS | ExplainerReel (1080×1920) · ExplainerLong (1920×1080) · 30fps |
| Caption placement | 9:16 top pill (y = 300px) · 16:9 bottom pill (bottom = 44px, toggle via showCaptions: false) |
| Shared dependencies | G:\Code\Slop Reels\node_modules (auto-inherited under parent root, auto-junctioned outside) |
| Built-in scenes | shelf_hook, stamp_reveal, compare_bars, pivot_chip, curtain_teaser, growth_payoff, outro_cta |
| GPU & CPU catalogs | Auto-triggered by model / label (gpuCatalog.ts, cpuCatalog.ts) |
| Bundled Audio | Auto BGM public/audio/bgm.wav + SFX public/sfx/{pop,ding,whoosh,slam}.wav |
Common Mistakes & Red Flags
| Mistake / Rationalization | Fix |
|---|---|
Assuming 9:16 Reels or uploaded audio on bare /creating-sketch-explainer-reels | STOP at the Intake Gate and ask all 3 items (script, 9:16 vs 16:9, ElevenLabs vs own VO) |
| Scaffolding or writing a dummy script when user only gave a topic or partial inputs | Wait until script + format + VO source are ALL confirmed; ask only for what's missing |
Running elevenlabs_tts.py plan with a guessed model or generate --approve right away | Fetch live models first and ask which model_id the user wants (voice stays XA3P1cj7XJexe6Zq0ATX); then run plan (0 credits), show cost summary, and wait for explicit approval |
Rendering ExplainerReel for a 16:9 video or placing 16:9 graphics at y > 880px | Pass -Format "16:9", render ExplainerLong, and keep stage inside y = 45–880px above bottom CaptionPill |
Running npm install inside a Vid <N> or Long <N> folder | Skip per-video npm install — G:\Code\Slop Reels\node_modules is shared across all projects |
| Drawing a stickman / cartoon person in the ending | Never put StickFigure or people in the outro; use product + clean CTA banner/stamp |
Leaving ghost placeholders (opacity: frame >= X ? 1 : 0.15) before an element's cue | Set opacity: 0 (or conditionally mount) before triggerFrame, animate cleanly 0 → 1 on entry |
| Delivering without inspecting early & peak rendered stills | Audit opacity in src/scenes/ and visually inspect BOTH pre-trigger and peak stills before full render |