# anything2explainer

> A Claude Code / Codex skill that turns a topic into a narrated motion-graphics explainer video, every frame drawn in code with Remotion

- Category: Multimodal Generation / Video Generation
- Language: TypeScript
- Licence: PolyForm Noncommercial 1.0.0 (source-available; commercial use requires prior authorization from the author; bundled fonts under SIL OFL 1.1)
- Repository: https://github.com/Vincentwei1021/anything2explainer
- Canonical page: https://ai-tldr.dev/tools/anything2explainer/

## In short

anything2explainer is a Claude Code / Codex skill that turns a topic, or an article you hand it, into a black-canvas motion-graphics explainer video with TTS voiceover, subtitles and a chapter progress bar, in Chinese or English. It sits in the Video Generation category of the Multimodal Generation tools and is open-source, written in TypeScript and licensed PolyForm Noncommercial 1.0.0 (source-available; commercial use requires prior authorization from the author; bundled fonts under SIL OFL 1.1).

## Overview

anything2explainer is a Claude Code / Codex skill that turns a topic, or an article you hand it, into a black-canvas motion-graphics explainer video with TTS voiceover, subtitles and a chapter progress bar, in Chinese or English. Every frame is drawn in code with Remotion (React + TypeScript): no stock footage, no generative video model and no frames lifted from other people's work. The README is explicit that it is not a CLI — what ships is the method an AI coding agent needs to finish the film: a compilable Remotion template, a primitives and lighting library, tooling for voiceover, storyboard, rendering and quantitative QC, written style and motion specs, a multi-agent division-of-labour protocol and one complete reference film as the quality bar.

The agent works through nine stages defined in `SKILL.md`: scaffold the project, research the topic with a sourced document, write the narration and generate a voiceover whose per-word boundaries become a frame-accurate timeline and subtitle table, storyboard every shot, build overlays and primitives, pilot the first shot group, then dispatch parallel build agents that each write one Remotion component per shot. After the full render it runs frame metrics, and QC agents review the rendered frames against written criteria before fix agents and delivery notes. The run stops at exactly four checkpoints — length and language, narration sign-off, voiceover engine, and a first 30-second cut — so you can steer before mistakes become expensive.

Output is a 1280×720, 30fps H.264 MP4 with synchronized voiceover, word-boundary-aligned subtitles, chapter cards, a top HUD and a bottom chapter progress bar, plus the full paper trail: research doc with sources, narration, storyboard, per-shot source code and QC reports. Two to eight minutes all work; the README's reference tier of 3–5 minutes uses about 8 build agents and roughly two hours of wall clock. The toolkit is under PolyForm Noncommercial 1.0.0 — free for noncommercial use, with commercial use requiring the author's prior authorization — while the videos you make with it are yours.

## What it does

- Agent-driven nine-stage pipeline from research to delivery, with parallel build agents writing 5–7 Remotion shot components each and QC agents reviewing the rendered frames
- Four checkpoints where the run waits for you: length and language, narration sign-off, voiceover engine, and a rendered first 30 seconds
- Sourced facts: every number, year, organisation and English term on screen must trace back to a URL in the film's research document
- Voiceover with word-boundary timing: edge-tts `zh-CN-YunxiNeural` for Chinese, local kokoro-82m `am_liam` for English, plus `kokoro_onnx`, `piper` and `edge` engines via `TTS_ENGINE`, or your own finished audio
- Persistent layers on every frame: subtitles, a bottom chapter progress bar, a top capsule HUD, an optional pipeline rail and chapter cards
- Reproducible renders: every animation is a pure function of the frame number with seeded randomness, so re-rendering produces identical frames
- One deliberate visual style — black canvas, white line art, purple accents — with a `bg` switch between a dot-field wave and a star field with fog

## Getting started

You need Node 18 or newer, FFmpeg and Python 3. The shell scripts are zsh + Python 3, developed and verified on macOS; the README says Linux should work (with notes for Raspberry Pi / ARM) and Windows is untested. No GPU is needed: Remotion renders through headless Chromium on the CPU.

1. Clone the skill and link it into your agent

```bash
git clone https://github.com/Vincentwei1021/anything2explainer.git
ln -s "$PWD/anything2explainer" ~/.claude/skills/anything2explainer   # Claude Code
ln -s "$PWD/anything2explainer" ~/.codex/skills/anything2explainer    # Codex
```

2. Install the dependencies

   The README pins edge-tts because it tracks a Microsoft endpoint and breaks across upgrades. `scipy` is only used by the QC script `frame_metrics.py`; kokoro and espeak-ng are only needed for English narration.

```bash
brew install ffmpeg

python3 -m venv ~/.venvs/a2e && source ~/.venvs/a2e/bin/activate
pip install 'edge-tts==7.2.8' numpy pillow scipy

# only needed for English narration (kokoro-82m runs locally)
pip install kokoro soundfile && brew install espeak-ng
```

3. Ask for a video

   In Claude Code or Codex, just say what you want and the skill triggers itself. It asks for length and language first, then waits for your narration sign-off, your voiceover choice and a look at the first 30 seconds.

```text
Make me an explainer video about vector databases.
```

4. Or drive the template by hand

   Scaffold a project from the template and run the same steps yourself: research, narration and TTS, storyboard, config, shots, a 30-second preview, then the full render and frame metrics.

```bash
template/scripts/new_project.sh ~/work/my-video myslug
cd ~/work/my-video
python3 scripts/tts_build.py
python3 scripts/render_storyboard.py
scripts/preview.sh 30
VER=v1 scripts/render.sh
python3 scripts/frame_metrics.py
```

5. Pick another TTS engine on Linux / ARM

   kokoro is hard to install on ARM / Python 3.13, so pass a different engine via `TTS_ENGINE` — the edge engine is a cloud call and needs no local model. On ARM, point Remotion at system Chromium with `REMOTION_BROWSER_EXECUTABLE`.

```bash
TTS_ENGINE=edge VOICE=en-US-AndrewNeural python3 scripts/tts_build.py
```

## When to use it

- Reach for it when you want a diagram-driven explainer of a technical concept where every on-screen number traces to a source, not footage synthesised by a generative video model
- Reach for it when you already work in Claude Code or Codex and want the agent to research, script, voice, storyboard and build the film in parallel while you sign off at four checkpoints
- Reach for it when you need the same explainer in Chinese and English — the reference film shares one storyboard across both cuts, re-timed to each voiceover
- Reach for it when you want a video you can fix frame by frame: each shot is its own Remotion component and re-renders are identical
