Index of every page on this site: llms.txt
All skills
norton77930 avatar

/video-explainer

@ea99771
Run it yourself

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.

  • 9 files
  • 146.4 KB
  • Updated last month
  • GitHub
Use this Skill: https://skilld.dev/gh/norton77930/understanding-ai-outputs/video-explainer

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈108 tokens for metadata: the name and description. ≈3k when used: this file. ≈8.9k more on demand in 5 files.

Description uses 5.4% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈431 characters, or 5.4%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at ea99771. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated last month

README badge

README badge for norton77930/understanding-ai-outputs/video-explainer