Claude Code Turns Any Topic Into Animated Explainer Videos Instantly
A Claude Code skill reverse engineers viral Douyin knowledge shorts, generating storyboards and rendering finished videos frame by frame with Canvas and Playwright.
Takeaways
- vibe-knowledge-film is a Claude Code skill that generates Douyin style knowledge explainer shorts.
- Two preset styles: Nocturne for hard science topics, Fable for behavioral and psychological concepts.
- Renders frame by frame with Canvas, Playwright, and ffmpeg, not a video diffusion model.
- Agent handles script, storyboard, subtitle track, sound effects, and a 30 second preview cut.
- MIT licensed engine and scripts, with separate licensing for reference analyses from third party videos.
- Requires local Chrome, ffmpeg, Playwright, and installs into
~/.claude/skills/.
Developer HeyChengC has released vibe-knowledge-film, a Claude Code skill that generates short, animated explainers from a topic or finished script. The project recreates a format popular on Chinese short-video platforms, where dense lessons on subjects such as protein folding and behavioral psychology use kinetic typography, diagrams, narration, and tightly synchronized motion graphics. The repository has 846 GitHub stars.
The project packages the creative workflow as code. Claude selects a visual system, writes subtitles, plans shots, scaffolds the rendering project, and produces a preview before rendering the full video. Developers get editable, repeatable output without training or running a video-generation model.
Two visual systems, two kinds of story
HeyChengC derived two presets from analyses of popular examples. Each preset constrains typography, color, composition, transitions, and pacing so the generated scenes share a coherent visual language.
| Preset | Flag | Best suited to |
|---|---|---|
| Nocturne | C |
Abstract ideas, technical subjects, and hard science |
| Fable | B |
Behavioral and psychological concepts that benefit from narrative scenes |
The --world option selects the preset when creating a film. These constraints keep the renderer focused on two established aesthetics instead of attempting arbitrary visual styles.
Canvas frames replace generated footage
JavaScript and Canvas draw every frame programmatically. Playwright controls a headless browser and captures the rendered sequence, then ffmpeg combines the frames, narration, generated sound effects, and user-supplied background music into the final video.
This architecture produces deterministic scenes with stable typography and consistent layouts. It also avoids temporal flicker, malformed text, and short clip limits commonly associated with diffusion-based video tools. Because each scene is code, developers can revise timing, coordinates, colors, text, or animation logic and render the same result again.
The renderer’s scope follows from that architecture. It handles typography, diagrams, geometric animation, and interface-like compositions well. Photoreal footage, expressive characters, and unsupported art styles require additional assets or custom Canvas code.
Claude handles planning and scaffolding
The project follows Anthropic’s Agent Skills pattern. A skill is a filesystem directory containing instructions, scripts, and reference material that Claude Code loads when a request matches its purpose.
Users can provide either a topic or a completed script. The skill then performs the production sequence:
- Selects Nocturne or Fable for the subject.
- Drafts or adapts the narration and subtitle track.
- Creates a shot-by-shot storyboard.
- Scaffolds the JavaScript rendering project.
- Renders an approximately 30-second preview for review.
- Produces the full video after revisions.
The preview stage gives developers a faster way to inspect pacing, composition, and subtitle density before paying the rendering cost of the complete sequence.
Local setup and dependencies
Installation requires copying the skill into the Claude Code skills directory and installing its Python and browser dependencies:
pip install -r requirements.txt
python -m playwright install
python engine/get_fonts.py
The machine also needs Chrome and ffmpeg. The renderer launches the local Chrome installation, while ffmpeg assembles the captured frames and audio tracks. Fonts are downloaded separately under the SIL Open Font License instead of being bundled in the repository.
Claude Code discovers user-installed skills under ~/.claude/skills/. Once installed, the workflow can be invoked conversationally, with the generated project remaining available for direct code edits and repeated renders.
Where the approach works
- Explainer graphics: Kinetic subtitles, diagrams, charts, and abstract visual metaphors fit the existing renderer.
- Repeatable production: Code-based scenes support version control, precise revisions, and deterministic reruns.
- Format consistency: The presets enforce stable visual rules across shots and videos.
- Limited realism: Photoreal scenes and character-driven animation fall outside the built-in visual vocabulary.
- Chinese-first conventions: Storyboards, prompts, and reference briefs reflect Chinese short-video pacing and composition, so other languages and markets may require prompt, typography, and timing changes.
Licensing needs a closer look
The engine, scripts, and methodology documentation use the MIT License. Some reference materials have a different practical constraint: references/analysis.md, references/prompts.md, examples/stim_B, and info_C derive from other creators’ videos. The author identifies them as learning references and says they should not be republished as original work.
Teams building a commercial content pipeline should separate the MIT-licensed implementation from those derivative examples. Original prompts, storyboards, assets, and style references provide a cleaner foundation for published work.
A workflow packaged as a skill
Vibe-knowledge-film shows how Claude Code skills can distribute specialized production workflows without a hosted service or custom model. The repository combines instructions, reference material, rendering scripts, and two constrained visual systems in a folder that any Claude Code user can install.
For developers, the useful result is an inspectable video pipeline. Claude performs the planning and project setup, while Canvas, Playwright, and ffmpeg produce assets that remain editable, reproducible, and suitable for version control.