/documents:explainer-videofrom Documents
Creates short narrated explainer videos on Mac using Manim for animation and local Kokoro TTS for narration. Includes quality checks for audio sync and label placement. No API key needed.
Ships in Documents. 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; scripts run unread.
A narrated Manim animation, made and checked on the user's Mac. Nothing about the video leaves the machine, and the Kokoro voice is Apache-2.0, so the video can be shared or posted.
The worked example is ${CLAUDE_SKILL_DIR}/examples/zigzag/: 46 seconds on why gradient
descent zig-zags in a narrow valley.
Check with command -v manim tts ffmpeg ffprobe latex dvisvgm. What is missing:
brew install uv ffmpeguv tool install --python 3.12 manimtts, from pdf2audio (AGPL-3.0; the voice it makes is Apache-2.0):
uv tool install --python 3.12 git+https://github.com/jonstraveladventures/pdf2audio.
Its first run downloads the Kokoro model from Hugging Face (under 400 MB).MathTex): MacTeX includes everything Manim uses. With BasicTeX, Manim's
installation page lists the extra packages, installed with sudo tlmgr install, which asks for
the Mac's password.If ~/.local/bin is not on PATH after a uv tool install, uv tool update-shell adds it. Ask
before each download and say roughly how large it is. Leave anything that asks for a password to
the user, in the Terminal app.
A polished video persuades whether or not it is right, so it only ever presents results that were checked elsewhere, and it is never evidence for them.
papers plugin's licence check allows:
for a subscription paper, the title, abstract, short quotes and the user's own notes, never its
full text.Work in a folder in the user's project, never in this skill's folder. The scripts are in
${CLAUDE_SKILL_DIR}/scripts/; call that $X below. Copy $X/narrated_scene.py into the
project folder first, since each scene imports it from beside itself.
Narration. Write narration.json: a list of {"id", "text"} lines in playing order, one
line per visual beat, usually 1 to 3 sentences. Write for the ear: short sentences, plain
words, no em-dashes, numbers as they should be said ("zero point one eight"), symbols in words
("eta", not "η"). Then run
python3 $X/narrate.py <folder>
which makes audio/<id>.wav and audio/durations.json. Rerun it after any change to the
text. --voice picks another Kokoro voice (tts --list-voices).
Scene. Write <name>.py in the folder with a class that subclasses NarratedScene; the
example's first lines show the import. Call self.segment("<id>", [(animation, share), ...])
once per narration line: the line's audio starts there, the animations run one after another,
each taking share of the line, and the rest of the line is a pause. Shares add up to 1 or
less. Build everything the narration describes inside the segment that says it.
Render without the cache, always:
manim -qm --disable_caching --media_dir <folder>/media <folder>/<name>.py <Class>
-qm is 720p30 for drafts; -qh is 1080p60 for the version that goes out. The pydub
SyntaxWarning lines at start-up are harmless.
Check before showing anything:
python3 $X/check_video.py <folder> <path to the .mp4>
It fails if the audio track is shorter than the narration, and writes two kinds of sheet.
contact-sheet.png has two frames per line, after the animations have settled.
transitions-1.png and the sheets after it have a frame every quarter second while the
picture is moving, which is where text usually runs into other text. Read every sheet and look
at every frame for text touching a curve, an arrow or another label, captions scrambled or
drawn over each other, labels running off the frame, and anything shown before the narration
names it. Text that is partly written in is expected mid-animation; two texts drawn into each
other are not. Fix, re-render, re-check. State in the report which sheets were inspected; the
sheets sample frames and are not the whole video, and nobody has listened to it unless
someone did.
Deliver. Copy the final render next to its script with a plain name and tell the user where it is.
Axes with equal x and y scale when geometry matters (contours, angles); set x_length
and y_length in proportion to the ranges.Transform or ReplacementTransform between two texts morphs the letters into
each other, and both are unreadable while it plays.arrange: an empty Text has no
size, so the lines around it crowd together or overlap. Use buff on arrange for a gap.MathTex with explicit
color, since its default is white.--disable_caching prevents it, and
check_video.py catches it.segment(), the narration and the
picture slip apart, and the contact sheet's frame times are off by the same amount. Keep every
animation inside a segment.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
manim, explainer-video, animation, tts, kokoro, narrated-animation
npx claudepluginhub shocklab/co-scientist-toolkit --plugin documents4 skills in this plugin
/course-to-pdfBind a static HTML course or documentation site into one textbook-typeset PDF, retypesetting the screen CSS for print. Use whenever someone wants a course, handbook, lesson notes, or docs site as a single printable PDF or book, or asks why an HTML-to-PDF export came out enormous. Triggers include: 'turn the course into a PDF', 'make a single PDF of the lessons', 'can I get this as a book', 'print the whole site', 'the PDF is 300 pages', 'export the docs as PDF'./polished-docs-and-decksBuild polished, themed deliverables: PowerPoint slide decks (.pptx via python-pptx + matplotlib) and typeset PDFs from Markdown (pandoc + xelatex), verified by rendering to images with headless LibreOffice. Use whenever the user wants a slide deck, talk, pitch, or lecture as a .pptx, or a nicely typeset PDF / handout / explainer / report / one-pager from Markdown or notes, or asks to render / preview / proof / check / convert a .pptx or .docx, even if they don't name the tool. Bundles a Unicode-math LaTeX preamble, a python-pptx helper module, a figure-overlap pre-check and the LibreOffice render-to-verify step. Boundaries: an animated HTML deck opened in a browser is a different job; a self-contained HTML document or dashboard is single-html-document. Prefer this over hand-rolling pptx/LaTeX from scratch.Other plugins' skills for the same job