SkillsGrove
SkillsGrove/Videoproduktion/Mng-dev-ai/explainer-video/explainer-video

explainer-video

Installation

$npx skills add https://github.com/Mng-dev-ai/explainer-video --skill explainer-video
$git clone --depth 1 https://github.com/Mng-dev-ai/explainer-video.git /tmp/explainer-video && mkdir -p ~/.claude/skills && cp -r /tmp/explainer-video/. ~/.claude/skills/explainer-video
Bitte installiere diesen Agent Skill für mich: https://github.com/Mng-dev-ai/explainer-video/tree/1a534c29ac89cfc5d8ecb68402cbe41b6ef897e4/ – lies zuerst seine SKILL.md und seine Skripte und installiere ihn erst dann in meinen Skills-Ordner, wenn du bestätigt hast, dass er sicher ist.

Zusammenfassung

Originalbeschreibung · MITGenerate an animated narrated explainer video (MP4). Claude writes a custom HTML animation page tailored to the topic, then the skill handles voiceover (free Edge TTS), recording (Playwright), and merging (ffmpeg). Use when the user says "make an explainer video about X", "generate an animated narrated video for [topic]", "create an explainer video". Output is a 1280×720 H.264 MP4 with synced narration.
Die folgende SKILL.md ist aus Mng-dev-ai/explainer-video (Commit 1a534c2) unter der Lizenz MIT wiedergegeben. Der Text ist unverändert; lediglich die Metadaten im Dateikopf sind weggelassen, Bilder werden als Links angezeigt und sehr lange Dateien werden gekürzt. Copyright 2026 Michael Nagy. Lizenz: LICENSE. Es wird nur die Anleitungsdatei angezeigt; etwaige Skripte finden Sie im Original-Repository.

Explainer Video Skill

End-to-end pipeline: topic → custom HTML page (you write) → MP4.

Each video gets its own visual language designed around its topic. A CRISPR video shouldn't look like a quantum computing video shouldn't look like a supply chain video. Design something fresh every time; the skill handles the plumbing.

Pipeline

1. Claude writes the narration script
2. Claude writes a complete custom HTML page (with GSAP animations)
3. Pipeline generates voiceover via Edge TTS (free, no API key)
4. Pipeline measures audio duration and injects it into the page
5. Page reads window.__AUDIO_DURATION and scales scene timing
6. Pipeline records the page playback via headless Chromium
7. Pipeline merges the recorded video + voiceover MP3 into final MP4

Prerequisites

  • ffmpeg on PATH
  • Run once from this skill's directory: cd lib && npm install --silent

No API keys or accounts required — voiceover uses Microsoft Edge's free neural TTS endpoint.

How Claude should invoke this skill

Step 1 — Clarify

Briefly ask the user for: topic, length (60-90s default), voice (brian default), and any tone notes. Don't over-ask — sensible defaults are fine.

Step 2 — Write the script

150–220 words for 60–90s. TTS-friendly:

  • Numbers as words ("three hundred", not "300")
  • Em dashes (—) and ellipses (...) for natural pauses
  • Short sentences; vocal variety
  • Save it to <workdir>/script.txt

Step 3 — Write a custom HTML page

Save to <workdir>/page.html. The HTML must satisfy this contract:

  1. Viewport: 1280×720. Set html/body width/height explicitly.
  2. Load GSAP: <script src="https://cdn.jsdelivr.net/npm/gsap@3.12.5/dist/gsap.min.js"></script>
  3. Read window.__AUDIO_DURATION (seconds, float) — the pipeline injects this before the page runs. Use it to scale your animation timing so visuals stay synced to the voiceover.
  4. Set window.__done = true when your animation finishes. The pipeline waits for this flag.
  5. No external network requests other than the jsdelivr GSAP CDN — pipeline runs headless and won't have arbitrary network.

Everything else is up to you: design language, animation style, scene structure, palette, typography, illustrations, motion. Build what fits the topic.

See examples/quantum.html for one reference implementation. Don't copy it — design something fresh for the new topic.

Step 4 — Run the pipeline

From this skill's directory:

node lib/pipeline.js \
  --html /path/to/page.html \
  --script /path/to/script.txt \
  --voice brian \
  --out /path/to/output.mp4

Or with a single config JSON:

{
  "title": "My Explainer",
  "voice": "brian",
  "script": "Full narration...",
  "html": "/abs/path/to/page.html"
}

Run with --config /path/to/config.json --out output.mp4.

Audio caching. Voiceover MP3s are cached by sha256(voice + script) at ~/.cache/explainer-video/voice/<hash>.mp3. Re-running with the same script + voice reuses the cached MP3 (faster startup). Iterate freely on visuals.

To reuse a specific audio file (e.g. one you generated externally), pass --audio path/to.mp3 and TTS is skipped entirely.

Step 5 — Report

Give the user the output path. Offer to iterate on script, voice, or visual design.

Voices

Friendly names map to Azure neural voices via Edge TTS:

brian (calm documentary) · adam (deep authoritative) · rachel (warm friendly) · sarah (confident modern) · antoni (younger energetic) · emma · ryan (British) · sonia (British)

You can also pass any Azure neural voice ID directly (e.g. en-GB-RyanNeural, en-AU-NatashaNeural, es-ES-ElviraNeural).

Design tips for the HTML you write

  • Match the topic's emotional register. Quantum → cosmic, mysterious. CRISPR → biological, precise. History → editorial, restrained. Climate → urgent, grounded.
  • Use GSAP timelines to coordinate entrance/exit/hold for each scene.
  • Kinetic typography (word-by-word stagger, character splits) reads well at 1280×720.
  • Time the animation to AUDIO_DURATION. If you have 5 scenes, distribute proportionally to script segments — not equal slices.
  • Avoid arbitrary stock-feel motion. Make every animation reinforce a specific idea from the narration.
  • Flat colors render well. Heavy gradients/glows can flash during the headless capture.
  • Keep CSS animations smooth — Playwright records at ~25fps.

Gotchas

  • The pipeline injects <script>window.__AUDIO_DURATION=…</script> just before </head>. Make sure your page has a </head> tag.
  • If your animation never sets window.__done = true, the pipeline will timeout after audioDur + 30s.
  • Render time ≈ realtime (60s of video takes ~60s to record).
Vollständigen Lizenztext ansehen (MIT)
MIT License

Copyright (c) 2026 Michael Nagy

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.