Communitygithub.com

creating-sketch-explainer-reels

>- Use when the user invokes /creating-sketch-explainer-reels or asks to create a new 2D hand-drawn graph-paper explainer video (vertical 9:16 Reels/Shorts/TikTok or horizontal 16:9 YouTube long video), including prompts like "bikinin video reel/long baru", "buatkan short/video tentang [topik]", or TEK101-style sketch explainers.

What is creating-sketch-explainer-reels?

creating-sketch-explainer-reels is a Gemini CLI agent skill that >- Use when the user invokes /creating-sketch-explainer-reels or asks to create a new 2D hand-drawn graph-paper explainer video (vertical 9:16 Reels/Shorts/TikTok or horizontal 16:9 YouTube long video), including prompts like "bikinin video reel/long baru", "buatkan short/video tentang [topik]", or TEK101-style sketch explainers.

Works with~Claude Code~Codex CLI~Cursor✓Gemini CLI
npx skills add https://github.com/kexlyu24/creating-sketch-explainer-reels/tree/HEAD

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

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:

  1. Script narasi lengkap (full narration text or file path)
  2. Format video: Reels / Shorts (9:16, 1080×1920) OR Long Video (16:9, 1920×1080)
  3. 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:16 or 16: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-reels invocation).
  • 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:
    1. Script narasi — scriptnya mana? (paste langsung atau kirim path filenya)
    2. Format video — mau bikin Reels / Shorts (9:16) atau Long Video (16:9)? (Untuk 16:9, caption pill otomatis di bawah seperti subtitle YouTube — beri tahu juga kalau mau tanpa caption.)
    3. 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 otomatis G:\Code\Slop Reels\Vid <N> untuk 9:16 dan G:\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:16 Reels / Shorts → next available G:\Code\Slop Reels\Vid <N> (e.g. Vid 16)
    • 16:9 Long Video → next available G:\Code\Slop Reels\Long <N> (e.g. Long 1, Long 2)
  • Run scaffold_video.ps1 with -Format:
    powershell -File "C:\Users\eq\.gemini\config\skills\creating-sketch-explainer-reels\scripts\scaffold_video.ps1" -TargetDir "<target-project-dir>" -Format "9:16"
    
    Pass -Format "16:9" for Long Videos (and add -NoCaptions if the user wants 16:9 without burned-in captions).
  • Do NOT run npm install inside <target-project-dir> — projects under G:\Code\Slop Reels\ automatically inherit the shared G:\Code\Slop Reels\node_modules (including Chrome Headless Shell via remotion.config.ts), and external directories are auto-junctioned by scaffold_video.ps1. Only run npm install once in G:\Code\Slop Reels\ if shared node_modules is 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 overrides ELEVENLABS_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 place ELEVENLABS_API_KEY=... and wait.
    • Model selection (always ask once API is connected, unless the user already specified a model_id):
      1. 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>"
        
      2. 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 — keep XA3P1cj7XJexe6Zq0ATX). Wait for their choice before running plan.
    • Save the clean narration script to <target-project-dir>\public\audio\script.txt, then run plan (0 credits spent) with voice XA3P1cj7XJexe6Zq0ATX and 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 --approve until the user explicitly confirms.
    • After explicit confirmation, run generate with the exact --plan-hash:
      python "C:\Users\eq\.gemini\config\skills\creating-sketch-explainer-reels\scripts\elevenlabs_tts.py" generate --project "<target-project-dir>" --approve --plan-hash <hash>
      
      This writes <target-project-dir>\public\audio\voiceover.mp3 AND <target-project-dir>\public\audio\words.json (exact word-level timestamps for 1:1 caption syncing).
  • 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 ffprobe and ffmpeg silencedetect (commands in references/scene-catalog.md).

3. Map Narration to Scenes & Write src/data/exampleScript.ts

  • Match total scene duration to the measured voice-over length (+0.4–0.8s breathing tail on the final scene). Pace avg 3.5–4.5s per beat for 9:16 Reels, or 4.5–7.5s per visual beat / chapter card for 16:9 Long 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-level captions (derived directly from words.json when using ElevenLabs; highlight 1–2 punch words per line with highlight: true), and synced sfx cues (pop, ding, whoosh, slam).

4. Apply Strict Visual & Audio Invariants

  • Canvas & Style: 30fps, 1080×1920 (ExplainerReel) or 1920×1080 (ExplainerLong), clean warm cream graph paper (#eee8dd, 80px grid — no brown horizontal shelf line across the background), thick black ink outlines (#16161a), SVG #sketch-wobble filter, flat accent fills.
  • Safe Zones & Captions:
    • 9:16: Top floating CaptionPill (top: 300px). Keep all scene graphics/tags at y >= 480px.
    • 16:9: Bottom YouTube-style CaptionPill (bottom: 44px, occupying y = 895–1045, or hidden via showCaptions: false). Keep all widescreen scene graphics/tags inside y = 45–880px.
  • Opacity & Staged Reveals: Every element waiting for a cue (frame < triggerFrame) MUST have opacity: 0 (or be unmounted) and animate cleanly 0 → 1 on entry — never render visible ghost placeholders (0.12–0.25 opacity). 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 / fillOpacity in src/scenes/ to confirm zero pre-entry ghost placeholders (frame >= X ? 1 : 0.x).
  • Render key still frames for the active composition (ExplainerReel for 9:16, ExplainerLong for 16:9):
    npx remotion still <ExplainerReel|ExplainerLong> out/preview_<scene>.png --frame=<N>
    
    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.
  • Only run full npm run render (out/video.mp4) after stills pass visual inspection (or offer npm run dev Studio preview first).

Quick Reference

AspectValue / 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 templateC:\Users\eq\.gemini\config\skills\creating-sketch-explainer-reels\assets\template
Scaffold scriptpowershell -File "...\scripts\scaffold_video.ps1" -TargetDir "<dir>" -Format "9:16|16:9" [-NoCaptions]
ElevenLabs TTS scriptpython "...\scripts\elevenlabs_tts.py" <quota|voices|models|plan|generate --approve> (voice tetap XA3P1cj7XJexe6Zq0ATX; model dipilih user dari hasil models)
Default output folders9:16 → next G:\Code\Slop Reels\Vid <N> · 16:9 → next G:\Code\Slop Reels\Long <N>
Compositions & FPSExplainerReel (1080×1920) · ExplainerLong (1920×1080) · 30fps
Caption placement9:16 top pill (y = 300px) · 16:9 bottom pill (bottom = 44px, toggle via showCaptions: false)
Shared dependenciesG:\Code\Slop Reels\node_modules (auto-inherited under parent root, auto-junctioned outside)
Built-in scenesshelf_hook, stamp_reveal, compare_bars, pivot_chip, curtain_teaser, growth_payoff, outro_cta
GPU & CPU catalogsAuto-triggered by model / label (gpuCatalog.ts, cpuCatalog.ts)
Bundled AudioAuto BGM public/audio/bgm.wav + SFX public/sfx/{pop,ding,whoosh,slam}.wav

Common Mistakes & Red Flags

Mistake / RationalizationFix
Assuming 9:16 Reels or uploaded audio on bare /creating-sketch-explainer-reelsSTOP 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 inputsWait 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 awayFetch 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 > 880pxPass -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> folderSkip per-video npm install — G:\Code\Slop Reels\node_modules is shared across all projects
Drawing a stickman / cartoon person in the endingNever 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 cueSet opacity: 0 (or conditionally mount) before triggerFrame, animate cleanly 0 → 1 on entry
Delivering without inspecting early & peak rendered stillsAudit opacity in src/scenes/ and visually inspect BOTH pre-trigger and peak stills before full render

Related Skills