/research-explainer:research-explainerfrom research-explainer
Creates 3Blue1Brown-style animated explainer videos and slide decks from research papers, experiments, or studies using Manim Community Edition. Supports English and Persian, multiple voice options, and real data-driven visuals.
Ships in research-explainer. 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.
Turns research into an animated video in the 3Blue1Brown style, built with Manim Community Edition, where every number on screen is traceable to a source and every image comes from real data. The same claims and assets can become a slide deck.
Visual first. The motion is the explanation: objects split, stack, morph, slide across each other, collapse into chart
points, and the camera moves to what matters. Words are labels. Voice and subtitles are optional layers on top; captions are
not burned into the video unless the user asks ("captions": "burn"); an .srt file is always written. Plan every beat by
what moves before deciding what is said.
House rules and the critique loop. Most of a video's quality comes from the setup around the model, not the request: banned generic looks, a reference to copy, springs, a beat grid, and scoring your own frames until every score is 8+. Read references/motion.md before planning any video; it applies to explainers and launch videos.
Bundled companions (install.sh puts them next to this skill): manim-composer (scene planning), manimce-best-practices
(Manim CE code), manimgl-best-practices (only if the user wants ManimGL). Read them when planning and coding scenes.
Everything below happens in a project folder (one per video). scripts/rx.py runs the pipeline; run it from the
project folder: python3 ${CLAUDE_SKILL_DIR}/scripts/rx.py <command> (written rx.py below). ${CLAUDE_SKILL_DIR} is the
folder that contains this SKILL.md; if your agent does not substitute it, use that folder's path.
Start every session with rx.py status in the project folder: a short outline of what exists and the next step.
Some surfaces (for example ChatGPT on the web or mobile) cannot run Manim or FFmpeg. Then do everything that needs no
rendering: intake (1), the claims ledger (3), scenes.md (5), narration and scene code (6), packed as a project folder the
user can download. Tell the user plainly that rendering needs a computer with Claude Code, Codex, or the ChatGPT desktop
app (which runs Codex locally), and give the command: rx.py build <lang> --voice <mode>. Never describe a video as made
when it was not rendered.
Run rx.py check. Required: manim, ffmpeg, fonts Inter + Vazirmatn. Optional: LaTeX, piper, OpenAI key, GPU. If fonts
are missing, run rx.py fonts (installs the bundled fonts for this user). For other missing tools show the user the one-line
fix it prints (system packages need their consent); the repo's AGENTS.md has the full install steps.
Ask these with your question tool (AskUserQuestion in Claude Code), a few at a time, recommended option first. Full list and follow-ups: references/intake.md.
~/.config/openai/key or $OPENAI_API_KEY. Never ask the user to paste a key into the chat; tell them where to
put it and read it only from there.rx.py reference <video>, then
docs/style_guide.md (see references/motion.md).Write the answers into project.json (source_type, audience, languages, voice.mode, ...).
rx.py new <dir> --title "<title>" --langs en,fa --voice none|piper|manual|openai, then copy the sources into
<dir>/sources/. Layout:
project.json scenes list, languages, voice, palette, pronunciations
sources/ papers, notes, result files (read-only inputs)
claims.json the claims ledger: every claim and number, its status and source
experiments/ scripts that make assets (each one deterministic, seeded)
assets/ images and data.json the scenes show; assets/manifest.json says where each came from
scenes.md the scene plan the user approves
narration_<lang>.json beats per scene: "say" (spoken), "caption" (on screen), optional "text" (shorter, text-only video)
strings_<lang>.json translations of on-screen labels (Persian)
scenes/*.py Manim scenes (from explainer.base import *)
build/ everything generated (renders, audio, videos, .srt, contact sheets)
Read the sources completely: every page of each paper (including appendix and tables), the user's code, logs and result
files. Then write claims.json: one entry per claim the video could make, with statement, values, status
(final / reported / development / in progress / planned / preliminary / illustration), source (paper + page/table/figure,
or file + line, or run id) and caveat. Rules in references/accuracy.md. The key ones:
Show the user the ledger (a short table) and get corrections before planning scenes.
Every image or chart that shows data comes from a script in experiments/ that reads the sources (their data, their
model, their logs, or the paper's reported numbers) and writes into assets/. Register each file:
rx.py asset-add assets/x.png --kind measured|reported|illustration|generated --by "<script + args + seed, or citation>".
rx.py assets verifies the hashes. Details, including when to re-run the user's experiments, GPU use, and how to show
changes too small to see (amplified differences with the gain printed on screen), in references/experiments.md.
Generated images (e.g. OpenAI image models) are allowed only for characters, icons and metaphors, never for data, results
or anything a viewer could mistake for an experimental output; mark them generated.
Use the manim-composer method: hook question, narrative arc, one point per beat. For each beat write first what moves
(the transformation the eye follows: "the 64 filters pop in; three lift out; one sweeps the photo while its map paints"),
then the words. Our patterns and the motion vocabulary are in references/scene-patterns.md.
For each scene list: purpose, beats (motion, then words), which claims (ids) and assets it uses. A beat without a
transformation is not a beat. Follow the house rules in references/motion.md: the hook in the first
2 s, something new every 2-4 s, no centred-title-on-gradient or fade-only shots, key words big enough for a phone; with a
reference, write in the style of docs/style_guide.md. Show scenes.md to the user and wait for approval before coding.
narration_<lang>.json: scenes -> beats. One beat = one animation step: "visual" (what moves, from scenes.md), "say"
(voice), "caption" (subtitle), optional "hold" (seconds to rest after the motion, default 0.8). Numbers in the narration
must match the ledger (rx.py claims fails otherwise). Persian: write natural Persian, not a word-by-word translation;
see references/persian.md.scenes/*.py: one class per scene, class S03Chart(Beat): SCENE_ID = "s03_chart", then self.beat(i, fn) for every beat
in order. Read numbers with data(); never type a measured number into scene code. Use the motion vocabulary
(fan, gather, collapse_to, ticker, dot_plot, particles, push_in, spotlight) and Manim's transforms, with
spring timing for moves that should feel physical (rate_func=spring("snappy"), run_time=spring_time("snappy")). Use T() for all text, tag() for
status, source_note() for the source line, framed()/img() for real images, amplified() for invisible differences.
The library is scripts/explainer/base.py; read it once.project.json -> scenes (id, file, class), in playing order.rx.py status # where the project stands, next step
rx.py claims # every number has a source; fix all ERRORs
rx.py assets # every asset registered and unchanged
rx.py render <lang> --quality l # quick preview render (480p) while coding; then rx.py qc <lang>
rx.py build <lang> --voice <mode> # final: voice/reading times, render (720p), assemble, contact sheets
rx.py strings fa # Persian labels still in English -> add to strings_fa.json, render again
Text-only builds do a dry run first to measure each beat's animation, then give each beat the longer of its reading time
and its animation. Voiced builds take beat lengths from the clips. Outputs in build/: <slug>_<lang>_<mode>.mp4
(full quality), _share.mp4 (small, for messaging apps), .srt. More in references/pipeline.md;
voices in references/voice.md.
build/qc/<lang>_<mode>/ and at
rx.py sheets build/<video>.mp4 (whole video, phone size, strips around fast moves). Score hook, phone readability,
motion, variety, composition, accuracy, sound 1-10 in docs/review_log.md; fix the 3 worst (overlaps, cut-off or tiny
text, wrong direction in Persian, empty frames, dead beats), re-render the affected scenes only (--scenes id ...), and
repeat until every score is 8+.rx.py durations; listen or regenerate it
(--only scene:i).python3 scripts/check_cadence.py <video.mp4> on every draft (diorama, short and watercolor
templates too). Exit 1 means a boil or on-twos rate does not divide the frame rate and the video will flicker on
YouTube; fix the rate (references/motion.md, render contract) before export.python3 scripts/check_static.py <video.mp4> --timeline timeline.json (or --srt). Exit 1 means the
picture stays still while the narrator talks (over 2.5 s, or more than 8 % of the spoken time); add word-cued
visual changes, camera moves and step-by-step breakdowns (references/motion.md, "Pace") and re-render.python3 scripts/check_glitch.py <video.mp4> on every FINAL (high-resolution) render. Exit 1 means
single frames were captured half-painted (seen as flicker on YouTube); the renderers wait for paint before each
screenshot, so re-render with the current render_seg.mjs / promo/render.mjs. A clean 480p draft does not prove a
clean 1440p export: run it on the export itself.Same ledger, same assets, same order. See references/slides.md: a Slides artifact when the
environment offers one, otherwise templates/deck.html (a single HTML file, right-to-left ready, prints to PDF) or a
.pptx via a pptx skill.
A 15-25 s promo with kinetic type, real footage from the explainer, music and sound effects, for social posts or a README.
rx.py promo [dir] renders <dir>/index.html frame by frame in headless Chromium and mixes <dir>/promo.json (music +
sound-effect cues from assets/sfx/), then makes review sheets. Start from templates/promo/; read
references/promo.md and the beat-grid section of references/motion.md: write
the state list on the beat grid and show it before code; springs for motion; --format vertical|square for other shapes.
Same accuracy rules: every number and screen on it is real (from claims.json, assets/, or real command output). Music: the
user's track that they may use (measure it: rx.py beats), or original music synthesized in code
("music": {"synth": {"bpm": 120}}, no licence question). Never put a track of unknown licence into a shared repo.
A second, fixed look: a hand-drawn cut-paper diorama with a puppet, crisp graph-paper slips that carry only real data,
sticky notes stamped with their real names and a ladder of ideas, rendered from an HTML/SVG page by Playwright (example:
a 45 s demo on averaging noisy measurements at a baker's bench). When the user asks for the paper-diorama style or for
"the same style as" a video made with it, do not use Manim or re-run style research: read
references/style-diorama.md and start from templates/diorama/.
For a long YouTube episode, plan its section 7 from the storyboard on:
work/measure_voice.py, work/make_cuemap.py, work/music.py,
following references/music-diorama.md);work/probe_motion.mjs finds them, work/audio.py places them);A 30-60 s 9:16 short for YouTube Shorts or LinkedIn, often cut from an explainer: HyperFrames compositions at
540x960 (final render 1080x1920), PixiJS/p5.js canvases on a GSAP timeline, GL Transitions between snapshot stills, a
checked voice, captions timed by Parakeet, an original CC0 sampled score. Read references/shorts.md
and start from templates/short/ (a complete 35.5 s example; ./setup.sh fetches its libraries). Same accuracy rules:
every number on screen comes from a recorded run or a seeded script, and the screen says which.
A vertical short that tells a small story with characters before it explains (example: in a made-up bakery the scale
shows a new number every time; the baker says "weigh it 16 times and average", which leads into why averaging works),
in a painted watercolor look:
an image model paints the empty set and a paper wash once, the engine animates painted puppets in front of it. When the
user asks for the watercolor style, a story or dramatization short, or "the same style as" a video made with it, read
references/style-watercolor.md and start from templates/watercolor-story/
(./setup.sh; looks: watercolor, cut-out, ink). Made-up stories are labelled as dramatizations on screen.
The diorama, short and watercolor templates replace the Manim project pipeline: no rx.py new/claims/assets/build. What
still applies: the intake questions the request does not already answer (step 1; if nobody can answer, e.g. an automated
run, pick sensible defaults, write them at the top of a short plan and go on), a plan of beats (scenes.md or the
template's own plan file) shown before coding when the user is there, the accuracy rules (the data script asserts every
number it shows; the screen says recorded, simulated or made up), the motion review loop (references/motion.md), drafts
first, the cadence check (step 8.4), and the final export only after the user approves the draft.
If a user needs something the pipeline lacks (a chart type, a layout, a voice, a format), do it by hand if you can, and
log it: rx.py request "<what you wanted>" --missing "<what is missing>" --proposal "<how it could work>" --example "<a concrete case>". Tell the user it was logged in feature_requests.md, and that with their OK it can be sent as a GitHub
issue to the maintainers. Never open the issue without their OK.
docs/animation_guide.md first so they all code in one style.agents/openai.yaml (opens in a new tab)assets/fonts/Inter-Bold.otf (opens in a new tab)assets/fonts/Inter-Medium.otf (opens in a new tab)assets/fonts/Inter-OFL.txt (opens in a new tab)assets/fonts/Inter-Regular.otf (opens in a new tab)assets/fonts/Inter-SemiBold.otf (opens in a new tab)assets/fonts/Vazirmatn-Bold.ttf (opens in a new tab)assets/fonts/Vazirmatn-OFL.txt (opens in a new tab)assets/fonts/Vazirmatn-Regular.ttf (opens in a new tab)assets/icon.png (opens in a new tab)assets/sfx/README.md (opens in a new tab)assets/sfx/bong.ogg (opens in a new tab)assets/sfx/click.ogg (opens in a new tab)assets/sfx/drop.ogg (opens in a new tab)assets/sfx/error.ogg (opens in a new tab)assets/sfx/glitch.ogg (opens in a new tab)assets/sfx/impact.ogg (opens in a new tab)assets/sfx/impact_heavy.ogg (opens in a new tab)assets/sfx/key.ogg (opens in a new tab)assets/sfx/pop.ogg (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub sepi2p/research-explainer-skill --plugin research-explainer4 skills in this plugin
/manimce-best-practicesTrigger when: (1) User mentions "manim" or "Manim Community" or "ManimCE", (2) Code contains `from manim import *`, (3) User runs `manim` CLI commands, (4) Working with Scene, MathTex, Create(), or ManimCE-specific classes.
Best practices for Manim Community Edition - the community-maintained Python animation engine. Covers Scene structure, animations, LaTeX/MathTex, 3D with ThreeDScene, camera control, styling, and CLI usage.
NOT for ManimGL/3b1b version (which uses `manimlib` imports and `manimgl` CLI).
/manim-composerTrigger when: (1) User wants to create an educational/explainer video, (2) User has a vague concept they want visualized, (3) User mentions "3b1b style" or "explain like 3Blue1Brown", (4) User wants to plan a Manim video or animation sequence, (5) User asks to "compose" or "plan" a math/science visualization.
Transforms vague video ideas into detailed scene-by-scene plans (scenes.md). Conducts research, asks clarifying questions about audience/scope/focus, and outputs comprehensive scene specifications ready for implementation with ManimCE or ManimGL.
Use this BEFORE writing any Manim code. This skill plans the video; use manimce-best-practices or manimgl-best-practices for implementation.
/manimgl-best-practicesTrigger when: (1) User mentions "manimgl" or "ManimGL" or "3b1b manim", (2) Code contains `from manimlib import *`, (3) User runs `manimgl` CLI commands, (4) Working with InteractiveScene, self.frame, self.embed(), ShowCreation(), or ManimGL-specific patterns.
Best practices for ManimGL (Grant Sanderson's 3Blue1Brown version) - OpenGL-based animation engine with interactive development. Covers InteractiveScene, Tex with t2c, camera frame control, interactive mode (-se flag), 3D rendering, and checkpoint_paste() workflow.
NOT for Manim Community Edition (which uses `manim` imports and `manim` CLI).