Turn any topic, doc, codebase, or URL into a crisp explainer video with custom visuals, web media, voiceover, captions, and more using Claude, ChatGPT, Gemini, or your favorite agent.
video-explainer-demo.mp4
Watch the full tutorial or read the step-by-step guide to see how I built this skill.
The best way to learn something these days is to just get AI to make a short video explainer about it. But by default, AI makes explainers in boring static slides.
/video-explainer makes it easy to create short engaging video explainers in 3 visual styles:
- Motion (default): High-energy 2D kinetic graphics.
- Illustrated: Hand-drawn illustrations.
- 3D: Single-take Three.js camera flythroughs with studio lighting, reflections, bloom, and optional Blender meshes.
Here's /video-explainer how do black holes form in each style:
video-explainer-three-styles.mp4
The skill can also add the following automatically:
- Captions that match the voiceover word for word, or none if you turn them off.
- Web media, screenshots, and quotes pulled online with source attribution to ground what you're explaining.
- Voiceover (optional) generated free on your computer with a local voice model, in the cloud with Gemini TTS, or skipped for music-only videos.
- Music and sound effects synthesized locally and synced to key words, or made with Gemini Lyria using a Gemini API key.
To install the skill, just paste this into your agent:
Install the /video-explainer skill globally from https://github.com/petergyang/video-explainer
You can also install it with npx:
npx skills add petergyang/video-explainer --skill video-explainer --global --yesThe first time you run the skill, it'll check if you have the following installed and offer to install what's missing. Plan for around 400 MB of disk space (or ~1.4 GB if you enable local voiceover):
- ffmpeg to mix audio and encode video.
- Python 3.10 or newer to run the pipeline scripts.
- Node.js 22 or newer for HyperFrames, the free, open-source tool that renders HTML, Canvas, and WebGL into 1080p video and aligns speech on your computer with the Parakeet model.
- Optional: yt-dlp to pull web video clips, and Blender to sculpt or fracture custom 3D meshes.
- Optional: A Gemini API key with billing enabled, to generate expressive voiceover with Gemini TTS and music with Lyria. Get a key at Google AI Studio and set
GEMINI_API_KEYin~/.config/video-explainer/.env.
I've made this skill as simple as possible to use, just follow these 4 steps:
-
Install. Paste the install prompt above into Claude Code, the ChatGPT desktop app, or another agent. You only do this once.
-
Prompt. Give the skill any topic, doc, codebase, or URL:
/video-explainer explain how black holes form -
Pick a style. Choose Motion (default), Illustrated, or 3D, and whether you want captions. You can also ask for ELI5, technical depth, a different length, silent mode, or vertical
9:16. Your agent verifies the facts, writes the script, generates voiceover and visuals, and runs 10 automated QA checks. Before you see a draft, a second agent reviews the frames and sends back anything that looks like a slide deck or clip art. -
Iterate. Once your agent finishes a draft, it opens the review page in your browser so you can play the video, pause on any frame, and leave feedback:
Each draft saves a single 1080p MP4 and keeps only the version before it, so you can compare the last two without filling up local storage (pass --share if you also want a small 720p copy in renders/share/). The final render replaces every earlier draft.
Fonts, colors, themes (default, paper, blueprint), and caption style come from a small style.json. Save yours at ~/.config/video-explainer/style.json and every explainer uses it. The keys are in reference.md.
SKILL.mdcontains the workflow and visual craft rules.reference.mdcontains the commands, thescript.mdformat, the 3 visual engines, and style options.eval.mdcontains the checks the skill runs before handing back a video.assets/contains the built-in engines for Motion (stage.js,stage.css), Illustrated (illustrated.js), and 3D (studio3d.js).scripts/contains the scripts for setup, media fetching, voiceover, sound design, Blender export, rendering, the review page, and QA.
Become a paid member at Behind the Craft to get all my AI skills, $600+ in AI tool discounts, and my personal AI course.
Subscribe to my YouTube channel and newsletter for practical AI tutorials and interviews.
MIT. The bundled Inter font is under the SIL Open Font License.