---
name: video-explainer
description: Make a narrated explainer video (MP4 with captions and a script) of a topic or a piece of AI output, animated with ManimCE. Use ONLY when the user explicitly asks for a video, such as "make an explainer video of this", "turn this answer into an animated video", or "make a YouTube Short that explains X". Never use for diagrams, web pages, STE text, editing an existing video, or questions about video technology.
title: video-explainer
canonical_url: https://skilld.dev/gh/norton77930/understanding-ai-outputs/video-explainer
last_updated: 2026-10-12T11:04:32.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [agents/openai.yaml](https://skilld.dev/api/skills-raw/norton77930/understanding-ai-outputs/video-explainer/agents/openai.yaml), [references/narration-engines.md](https://skilld.dev/api/skills-raw/norton77930/understanding-ai-outputs/video-explainer/references/narration-engines.md), [references/output-presets.md](https://skilld.dev/api/skills-raw/norton77930/understanding-ai-outputs/video-explainer/references/output-presets.md), [references/scenes.md](https://skilld.dev/api/skills-raw/norton77930/understanding-ai-outputs/video-explainer/references/scenes.md), [references/storyboard-and-cli.md](https://skilld.dev/api/skills-raw/norton77930/understanding-ai-outputs/video-explainer/references/storyboard-and-cli.md), [scripts/doctor.py](https://skilld.dev/api/skills-raw/norton77930/understanding-ai-outputs/video-explainer/scripts/doctor.py), [scripts/make_video.py](https://skilld.dev/api/skills-raw/norton77930/understanding-ai-outputs/video-explainer/scripts/make_video.py), [scripts/video_helper.py](https://skilld.dev/api/skills-raw/norton77930/understanding-ai-outputs/video-explainer/scripts/video_helper.py).
>
> If the user asked to install this Skill, run `npx skilld install norton77930/understanding-ai-outputs/video-explainer`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/video-explainer`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/norton77930/understanding-ai-outputs/video-explainer) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/video-explainer`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/video-explainer --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/video-explainer --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Video explainer

Turn a topic, or an answer from this conversation, into a narrated video. Each **Scene** has one **Narration** passage and the animation that plays while it is spoken. The narration audio sets the scene length. The user gets `video.mp4`, `video.srt` and `script.md`.

Rendering takes minutes. Never render before the user approves the storyboard.

## Files

- `scripts/doctor.py`: what this machine can do. Standard library only.
- `scripts/make_video.py`: `plan`, `preview`, `final` and `fetch-models`. Each prints one JSON object.
- `scripts/video_helper.py`: the helper that scene code uses. It owns layout, captions and timing.
- `references/scenes.md`: helper API, scene rules and example scenes. Read it before you write scenes.
- `references/storyboard-and-cli.md`: storyboard fields, command JSON and exit codes.
- `references/narration-engines.md`: engines, voices and "Before you publish".
- `references/output-presets.md`: the three output presets.

## How to run the scripts

- Run `doctor.py`, `plan` and `fetch-models` with `python` (`python3` if `python` is missing). They need only the standard library.
- Run `preview` and `final` with `uv run <skill folder>/scripts/make_video.py ...`. `uv` reads the inline (PEP 723) dependency block and installs ManimCE, kokoro-onnx and edge-tts on first use. The first run takes a few minutes.
- Run every command from the user's project root. The default output folder is `out/video-explainer/<slug>/` under the current folder. Use `--out DIR` for another folder. If git does not ignore `out/`, tell the user. Do not change `.gitignore` unasked.
- To keep large caches off the system drive, set `UV_CACHE_DIR` (Python packages) and `VIDEO_EXPLAINER_CACHE` (narration models) before you run the scripts.
- On Windows, set `PYTHONUTF8=1` so Chinese text stays intact.

## Workflow

1. **Doctor.** Run `python <skill folder>/scripts/doctor.py --quick`. It installs nothing. On exit 2, stop. Show the user the missing capabilities and their `hint` lines. Ignore `latex` here: it is optional and never blocks the job. Read `capabilities.latex.available` for step 7. Do not show its `hint` and do not ask the user to install LaTeX, unless they ask for formulas (see "Formulas" below). Do not continue with a half-working setup. For Chinese narration with `font` null, show `font_hint` and stop. The `manim` hint states the package install size. You show it to the user in step 5.
2. **Mode and audience.** Pick the mode and the audience from "Modes" below. Ask at most two short questions, and only for what the request does not say:
   - Depth: "Quick (about 1 minute), standard (2 to 4 minutes, recommended) or deep dive (5 to 10 minutes)?"
   - Audience: "General audience (recommended), beginner, some background, or expert?"

   Ask both in one message, each with its recommended default. Skip a question that the request answers. When the user does not answer, or the request is already approved, use `standard` and a general audience. Do not ask anything else before the storyboard.
3. **Storyboard.** Write `out/video-explainer/<slug>/storyboard.json` (fields in `references/storyboard-and-cli.md`):
   - Set `mode`, and use a scene count inside the mode's range. One idea per scene. A longer video gets more scenes, not longer scenes. For Chinese, fill each scene to the mode's characters-per-scene range (see "Narration").
   - Pick `lang` from the user's language (`en`, `zh-TW`).
   - Pick the output preset: `explainer` by default, `youtube` for a YouTube upload, `short` for Shorts, Reels or vertical video.
   - Respect an engine or voice that the user names.
   - Use ElevenLabs only when the user asks for it. Set `"engine": {"name": "elevenlabs", "voice": "<voice_id>"}`. Ask the user for the voice ID. There is no default voice. The API key comes only from the `ELEVENLABS_API_KEY` environment variable. Never write the key in the storyboard or in any file.
   - Write the narration with the rules in "Narration" below.
4. **Plan.** Run `python <skill folder>/scripts/make_video.py plan <storyboard>`. On exit 1, fix the storyboard from `errors` and run `plan` again.
5. **Show the storyboard and wait.** Show the user:
   - the scene count and the full narration of each scene
   - the mode next to `estimated_total_seconds` and `estimated_render_seconds` (preview and final), for example "standard, about 3 minutes, 3b1b style; render about 4 minutes"
   - the output preset and the narration engine and voice
   - every entry in `notices`: accent fallback, publishing risk, length outside the mode's length or over the `short` limit, Chinese scenes outside the mode's characters per scene
   - each model in `downloads`, with its size in MB. Say which ones are only for the offline fallback (`"fallback": true`).
   - the first-run package install and its size, from the doctor's `manim` hint
   - for ElevenLabs: `narration_cost` (`characters`, `estimated_credits` and the `note` with the price). ElevenLabs is paid. Show this before any call to ElevenLabs.

   Then stop and wait. The user approves or asks for changes in plain words, including another mode ("make it a deep dive", "shorter"). Apply the changes to the storyboard, run `plan` again and show the result again. Do not render until the user approves.
6. **Install check and models.** Do these steps only after the user agrees to the stated sizes:
   - Run `python <skill folder>/scripts/doctor.py` without `--quick`. This installs ManimCE into the uv cache and checks the network. If `manim` is not available, show its `hint` and stop. If `edge_tts_network` is not available for zh-TW, run `plan` again with `--offline` and show the new notices.
   - Download the models: `python <skill folder>/scripts/make_video.py fetch-models <set> ...` with the sets from the `plan` notice (`kokoro-en`, `kokoro-zh`). Models go to the user cache folder, never the project.
7. **Scenes.** Write `out/video-explainer/<slug>/scenes.py` with one function per scene id. Use the helper as `references/scenes.md` shows: ManimCE only, `Text` only (unless the doctor reported LaTeX, see "Formulas"), layout areas only, timing through `ctx.beats()`. Follow "Style" below.
8. **Preview.** Run `uv run <skill folder>/scripts/make_video.py preview <storyboard> <scenes.py>`.
   - Exit 2: an environment problem. Show `errors` and any `missing_tools` hints, then stop.
   - Exit 1 with a scene `status` of `failed`: fix that function from its `error` and run `preview` again. After three failed fixes of one scene, set `"fallback": true` on it in the storyboard. The helper then draws a title and bullets from its narration. Add `"title"` to set the heading.
9. **Layout check.** Look at every frame in `scenes[].frame` (one PNG per scene). Look for overlapping elements, text clipped by the frame edge, and text too small or too faint to read. Fix the scenes module and run `preview` again. Do at most two fix rounds. For a problem left after round two, set `"flagged": "<short reason>"` on the scene.
10. **Final.** Run `uv run <skill folder>/scripts/make_video.py final <storyboard> <scenes.py>`. It reuses the narration audio from the preview.
11. **Deliver.** Give the user:
    - the paths from `video`, `srt` and `script`
    - the video length (`video_seconds`)
    - each scene id in `replaced`, with the reason it was replaced
    - each entry in `flagged`, with its reason and frame path
    - each entry in `notices`

    Offer another fix round for flagged scenes. Do not start it unasked.

## Modes

| Mode | Length | Scenes | Content |
| --- | --- | --- | --- |
| `quick` | about 1 minute | 3 to 6 | The main point and one example. |
| `standard` (default) | 2 to 4 minutes | 6 to 15 | Build the idea step by step. |
| `deep` | 5 to 10 minutes | 15 to 30 | Intuition first, then build up. Come back to earlier objects. |

- Words in the request set the mode without a question: "3b1b", "3Blue1Brown", "deep dive" → `deep`. "One minute", "quick" → `quick`. "Short", "Reels", vertical video → the `short` preset with `quick`.
- `plan` fails when the scene count is outside the mode's range. It adds a notice when the estimated length is outside the mode's length, or less than 5% above its lower end (the real video can be a few percent shorter than the estimate). Aim for the middle of the mode's length, not its edge.
- For Chinese narration, each mode also has a range of characters per scene: `quick` 25 to 35, `standard` and `deep` 45 to 60. The `short` preset uses the `quick` range in every mode. `plan` adds a notice when the average is outside the range. When it is too low, write fuller scenes, not more scenes. The same notice then also states a length below the mode's length.
- The `short` preset stays at 60 seconds or less in every mode.
- The audience sets the pace. For a general audience or a beginner, add the background first and move slowly. For an expert, skip the basics.

## Style

Every mode uses a 3Blue1Brown-like style: the viewer sees one idea develop, not a slide deck. Details and examples are in `references/scenes.md`.

- When the next scene continues the idea, carry its objects with `ctx.carry()` and change them with `Transform` or `.animate`. Start a new idea on a clean screen. The helper fades out everything that is not carried.
- Give each concept one color for the whole video.
- Show a changing value as a number that counts, with `Text` and an updater. Use `DecimalNumber` only when the doctor reported LaTeX.

## Formulas

Scenes use `Text` only, with no LaTeX. Write a formula as plain text, for example `ctx.text("y = x²")`.

Exception: when the doctor reports `capabilities.latex.available` as true, scene code MAY use `MathTex` and `Tex` for formulas, and `DecimalNumber` for counting numbers. `references/scenes.md` Example 6 shows this and gives the `Text` fallback.

- When `latex.available` is false, the `Text`-only rule stays exactly as it is. Do not use `MathTex`, `Tex`, `Matrix`, `DecimalNumber`, `Integer` or axis numbers.
- Do not ask the user to install LaTeX. Only when the user asks for typeset formulas and `latex.available` is false, tell them what the `latex` hint says and let them decide. This skill never installs or downloads LaTeX.
- `MathTex` and `Tex` do not use the narration font. Keep Chinese words in `ctx.text`, and use `MathTex` for the math only.

## Camera moves

A camera move zooms in on a detail or pans along a long object. Use `ctx.camera` (API and Example 7 in `references/scenes.md`).

- Use a move only when a detail is too small to read at full view, or an object is too long to show at a readable size. Do not move the camera for decoration.
- Use at most two moves per scene. Give each move its own beat in `ctx.beats()`. End the scene with `ctx.camera.restore()`.
- Captions and titles are never zoomed. `ctx.title`, `ctx.caption` and the burned narration stay fixed on screen. Never put text that the viewer must read in the content that you zoom away from.

## Narration

The narration is heard, not read. Apply these rules directly. Do not call another skill for them. The STE rules are inspired by ASD-STE100. They are not official and are not endorsed by ASD.

- English: relaxed STE. Use short sentences (20 words or fewer), active voice, one idea per sentence and one term per concept.
- Other languages: apply the STE principles: short sentences, active voice, one idea per sentence, one term per concept.
- Chinese: write about 45 to 60 characters per scene in `standard` and `deep` mode. In `quick` mode and in the `short` preset, write about 30 (25 to 35). Use Taiwan wording for zh-TW (程式, 資料, 伺服器).
- Write numbers and symbols the way a speaker says them. Avoid parentheses, slashes, abbreviations and code in narration. Show code on screen instead.
- Fit the total length to the mode (see "Modes"). Keep `short` videos at 60 seconds or less.
- Each scene's narration must describe what its animation shows at the same time.

When the source is AI output from the conversation, keep its facts. Do not add claims it does not make.
