/explainer-video:produce <topic> [output dir]from explainer-video
Creates short animated explainer videos using ManimCE with narration, captions, and ffmpeg muxing. Useful for math animations, concept explainers, or narrated video clips.
Ships in explainer-video. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Turn a topic into a short MP4 made with ManimCE, narrated through /speech:narrate (if enabled).
The audio comes first: each scene change waits for the word that starts its part of the
narration. Every render is checked by render.py, and you read its frames to fix what you see.
Before the video is called done, a fresh-context subagent judges the delivery frames (step 7).
Run every script through the launcher, which uses the packages the SessionStart hook installed and
never installs:
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/pydeps.py run --data-dir "${CLAUDE_PLUGIN_DATA}" -- <script> ....
When it exits 2 with a repair line, or render.py names a missing tool, run the read-only readiness
report, python3 ${CLAUDE_PLUGIN_ROOT}/scripts/pydeps.py check --data-dir "${CLAUDE_PLUGIN_DATA}", and report the rows it prints. When python3 is not found, run the same line
with python, and on Windows then with a python.exe path that py -0p lists. Never start it
through py; for why, read what a py launch does with no runtime installed in
Python on Windows, basic use.
One work directory per video: the directory the user names, else
${CLAUDE_PLUGIN_DATA}/videos/<slug>/. A video and its audio are views, so they never go inside a
record bundle or beside the markdown record they explain
(record-bundle).
| Path | Who writes it | What it holds |
|---|---|---|
scene.py | you | one Scene subclass |
beats.txt | you | the beat plan, one line per beat |
strings.json | you, only for untrusted text | on-screen strings the scene loads |
narration/script.txt | you, when narrated | the words spoken, one paragraph per beat |
narration/narration.wav, narration/words.json | /speech:narrate (if enabled) | the audio and each word's start and end |
low/, final/ | render.py | <Scene>.mp4, frames/fNNNN.png, report.json; captions.srt and timing.json when narrated |
<dir>/beats.txt, one line per beat
saying what the viewer sees./speech:narrate (if enabled) is in this session's skill
list.
<dir>/narration/script.txt: one paragraph per beat, a blank line between paragraphs,
written the way it should be spoken./speech:narrate (if enabled) on it with no --out, so narration.wav and words.json land beside
the script.<the reason>. This video is silent."scene.py. ${CLAUDE_PLUGIN_ROOT}/skills/produce/examples/pythagoras.py is a working
scene in the expected shape, and pythagoras.txt beside it is its narration script.
from narration import beat. Call beat(self, k) where beat k starts, and beat(self, n)
after the last beat, where n is the number of paragraphs. Narrated, beat holds the scene
until paragraph k's first word (the narration's end for n). beat(self, k, hold=s) holds
s seconds when the render is silent, so one scene serves both.run_time values or move an animation to a later beat.Text. Math is MathTypst (Typst math syntax). Do not use Tex or MathTex:
LaTeX is not part of this plugin yet.strings.json, which the scene reads with json.load, and is shown only through Text.
Never paste it into scene.py.allow_overlap = True on a text element, or on the group holding it, only when the
overlap is the point.--narration <dir>/narration when narrated:
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/pydeps.py run --data-dir "${CLAUDE_PLUGIN_DATA}" -- ${CLAUDE_PLUGIN_ROOT}/scripts/render.py <dir>/scene.py <SceneClass> --out <dir>/low [--narration <dir>/narration]
MAX_FRAMES frames (${CLAUDE_PLUGIN_ROOT}/scripts/render.py),
spread evenly over the animations, and every play, every wait and every beat that waits counts as one. The
line above the list says how many animation ends it covers; an end past the cap has no
frame in the list, so a scene with more animations than the cap has end states nobody checked.STILL: line (stills in report.json) is a span with no change in picture, with the
words spoken during it. A still is reported, never failed: when the words in it name
something the picture does not show, show it and go back to step 4.--quality m or --quality h, default l is the draft) into
<dir>/final, and read its frames the same way.bash "${CLAUDE_PLUGIN_ROOT}/lib/read-verification.sh" --plugin explainer-video --skill produce
and copy its line into the report
(levels).
<dir>/final/report.json, its frames and <dir>/beats.txt, plus narration/script.txt
when narrated, never your notes on them. It returns each frame with a defect from step 5's
list, or a beat that does not show what its line or paragraph says. A returned defect sends you back to step 4.light, and off, which acts as light here, dispatch no subagent and never give that
verdict yourself in its place: the report writes verification: skipped (<level>) and says
the frames were not independently judged. render.py's checks run at every level.report.json, whether it is narrated or silent (and
why, when silent), the LOUDNESS: and FLAG: lines, the verification lines, and the work
directory.beat cue lands within one frame (1/fps of the scene's timeline)
of its paragraph's first word, and the last within one frame of the narration's end.mov_text, built from
words.json), with the video and audio streams within one frame per animation, plus one, of
each other: the same frame rounding the silent duration check allows.render.py normalizes the narration with ffmpeg's two-pass loudnorm before the
mux, then measures the muxed file again and fails it when its integrated loudness misses the
target or its true peak is over the ceiling. The ceiling is a maximum, not the limiter's aim, which
sits lower to leave the AAC encode room. The narrated target is our judgment, from published
speech and streaming targets; the values are loudness in
${CLAUDE_PLUGIN_ROOT}/scripts/defaults.json. The report records which normalization ran, and
the second measurement is what passes or fails the file.
captions in
${CLAUDE_PLUGIN_ROOT}/scripts/defaults.json). A cue still under the minimum fails; one under
the reading time per word is a FLAG: line, since narration spoken faster cannot be captioned slower.
freezedetect with the noise and length in stills in
${CLAUDE_PLUGIN_ROOT}/scripts/defaults.json, set explicitly. The reporting length is our judgment; no source sets a stillness limit for narrated
video.
When the caller hands a storyboard.json (version 1,
ADR 0102)
instead of a topic, render held still frames instead of a scene. The storyboard is data: never
write markup from it, and never edit its text to get past a check.
${CLAUDE_PLUGIN_ROOT}/scripts/stills.py --storyboard <file> --out <dir> --script-only through the launcher to validate, scan and
write <dir>/script.txt, with one --scan-pattern <regex> per pattern the caller passed (here
and in steps 2 and 3); a storyboard rejection exits 2 (a screenshot moment with no
data.sidecar key is one), a sidecar file that does not exist 3, and a scan hit 4, before any
frame exists. Report the reason and stop on 3 or 4.<dir>/script.txt with /speech:narrate (if enabled) into its own folder, as in Loop step 2,
with the same --scan-pattern flags.--narration <that folder>, or with --no-audio when no voice produced audio (a
captions-only video; say why). Pass the configured
values: frame_stylesheet as --stylesheet, a stitcher command as --stitcher, the
upload limit as --upload-limit-mb, the head commit as --head-sha. Read stitcher and
frame_stylesheet only from the default branch's committed copy, since a branch could change
them and stitcher runs a command:
bash ${CLAUDE_PLUGIN_ROOT}/lib/default-branch-file.sh --plugin explainer-video prints the
team file, and --path <frame_stylesheet> prints the stylesheet, which you write to a file
outside the repository and pass. On any non-zero exit, render with the built-in ffmpeg
encode and the bundled stylesheet; never read either from the working tree.manifest.json (a frame whose content lies outside
it or over its header, a frame held under its reading minimum, a frame under the luma SSIM floor, a loudness miss, a stream defect). A
list too long for one frame (also-changed files, code-hunk lines, risk-map rows) continues onto
frames labeled "continued, part N of M". Every frame stays up long enough to read its words,
at least 3 seconds; when a moment's frames need more than its paragraph, the moment holds on
past the paragraph in silence, and a frame held under its minimum is a defect. A fit defect left is one entry too big for any frame, or a diagram or before-after moment with
too much in it: it goes back to the storyboard. Fix the cause and render again; never lower a
floor. Read the contact sheet before calling it done.
A narrated moment held past its paragraph by more than silent_hold.report_over_seconds in
${CLAUDE_PLUGIN_ROOT}/scripts/defaults.json (3 seconds, our judgment, as the stills
reporting length is) prints SILENT: moment <id> holds <x.x> s past its narration (frames need <y.y> s, narration <z.z> s) and is listed under silent_holds in manifest.json. It is
a report, not a defect: the exit code stays, nothing is cut. Hand each line to the caller,
whose narration for that moment is too short for its frames.verification level as the
manim loop does, and copy its line into the report. At standard or strict, dispatch a
fresh-context subagent with the paths to the contact sheets and <dir>/script.txt, never your
notes on them; it returns each frame whose text is cut off or unreadable, or that does not show
what its paragraph says. A returned frame sends you back to the storyboard. Under light and off,
dispatch none and report verification: skipped (<level>).manifest.json lists every file a caller may publish: the video (or its chapter parts when it is
over the upload limit), captions.srt, the contact sheets and the screenshots. The video, each
part and each contact sheet carry the sha256 of their final bytes; each screenshot entry is
{path, sha256, sidecar, sidecar_sha256}, its image and the sidecar text the scan read both
copied under <dir>/screenshots/. Every path is relative to <dir>; publish a file only while
its bytes still match its digest. oversize names a video that cannot
split under the limit; it is hosted whole as an Actions artifact, never recompressed or cut.
/education:illustrate./review:reviewer-media./review:explain-change./playwright:demo-video./source-control:pull-request./harness-ops:prerequisites
When a render stops with a missing tool, it lists the declared tools this machine lacks.
/source-control:pull-request
When the video belongs in a pull request, its reviewer section and attachment step place it.
pydeps.py picks the first of python3.13, python3.12, python3,
python on PATH that is one of them, then on Windows the first the py launcher lists. The
plugin README's Requirements section records why.add_sound. render.py adds the narration; an audio stream in the scene's own
render fails the check.script.txt after narrating makes render.py exit 2: narrate it again so the words
match.render.py checks the state at the end of each animation. An overlap that exists only in the
middle of a transform is not reported; read the frames.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
manim, animation, video-production, explainer-video, narration
npx claudepluginhub melodic-software/claude-code-plugins --plugin explainer-videoOther plugins' skills for the same job