agentleFS
Mng-dev-aiMng-dev-ai/explainer-video/SKILL.md

explainer-video

Skill19 starsChanged 6 months agoMITView on GitHub

Generate 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.

  • Installs packages

6 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions6 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 6

    1. pexoai/pexo-skills★ 800same name
    2. iart-ai/explainer-video-skills★ 29same name
    3. Neelshah1810/Claude-Video-Skills★ 6same name
    4. arthurkatcher/explainer-video★ 4same name
    5. ilkerzg/explainer-video★ 2same name
    6. JagZ999/explainer-video★ 2same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

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

    line 32
  2. Distinctive:

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

    line 34
  3. Very specific:

    Set window.__done = true: when your animation finishes.

    line 57
  4. Very specific:

    Time the animation to AUDIO_DURATION: If you have 5 scenes, distribute proportionally to script segments — not equal slices.

    line 108
  5. Very specific:

    If your animation never sets window.__done = true, the pipeline will timeout after audioDur + 30s.

    line 116

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.