do-gongil/manimgl-skill/manimgl-video

Claude Code and agent skill by do-gongil/manimgl-skill

Trust tier 3
  • community
  • ext:[{"type":"config","description":"Configuration overrides"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Writes math explainer animation code with ManimGL — 3Blue1Brown's own Manim (`pip install manimgl`, `from manimlib import *`). Use when the user wants animated equations, function graphs and coordinate systems, geometric constructions, or ValueTracker-driven continuous change, and when the project targets manimgl / manimlib / 3b1b's engine. Do NOT use for Manim Community Edition (`pip install manim`, `from manim import *`) — the two libraries share class names with different meanings; use a Manim CE skill or the CE docs instead.

Install

npx vskill@latest install do-gongil/manimgl-skill/manimgl-video

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as do-gongil/manimgl-skill/manimgl-video.

ManimGL Video

ManimGL is 3Blue1Brown's personal rendering engine. It is not Manim Community Edition. Both are called "Manim", both define a class named Tex, and the two mean opposite things. Confirm which engine the project uses before writing a line.

Verified against manimgl 1.7.2 on Python 3.13; other versions are untested.

Detect the engine from the project:

  • from manimlib import * / manimgl CLI / custom_config.yml → ManimGL, this skill
  • from manim import * / manim -ql CLI / manim.cfg → Manim CE, stop — this skill does not apply

Do not confuse with Manim CE

Every row below was verified against manimlib source. The Tex row is the dangerous one: the name exists in both engines, so the wrong choice raises no error — it silently renders text as math or math as text.

ManimGL (this skill)Manim CE (different tool)
installpip install manimglpip install manim
importfrom manimlib import *from manim import *
CLImanimgl file.py Scene -w -lmanim -ql file.py Scene
math mode`Tex("x^2")`MathTex("x^2")
text mode (LaTeX)`TexText("hello")`Tex("hello")
draw a shapeShowCreation(mob)Create(mob)
default background#333333#000000

These CE names do not exist in manimlib — using them is an immediate NameError: Create, MathTex, Unwrite, AddTextLetterByLetter, Angle, RightAngle, Star, Axes3D.

Minimal scene

python
from manimlib import *
class Demo(Scene):
def construct(self):
title = Text("Pythagoras", font_size=48)
eq = Tex(R"a^2 + b^2 = c^2", font_size=60)
eq.next_to(title, DOWN, buff=LARGE_BUFF)
self.play(Write(title))
self.play(FadeIn(eq, shift=UP))
self.wait()
bash
manimgl file.py Demo # interactive window, no file written
manimgl file.py Demo -w -l # write low-quality mp4

Every scene subclasses Scene, InteractiveScene, or ThreeDScene and defines construct(self). 3b1b's own video code overwhelmingly uses InteractiveScene (it adds mouse selection and editing in the preview window); plain Scene is correct for headless rendering and is the safer default when writing code for someone else to render.

Ask before writing

A new video starts with one round of questions, asked together in a single message (in Claude Code, one AskUserQuestion call). Skip any question the request or the project already answers; skip the round entirely when all are answered, or when the task is an edit to an existing scene.

  1. Audience — who watches: high school, undergraduate, specialist? Sets how

much is shown versus assumed.

  1. Core idea — the one thing the viewer should leave understanding. This

becomes the outline's spine; anything that does not serve it is cut.

  1. Length — rough duration or number of scenes (e.g. one 30 s scene, three

to five scenes, ~3 min).

  1. On-screen language — English (the default, see below) or another.
  2. Format — 16:9 landscape or 9:16 vertical; final resolution (--hd,

--uhd); 3b1b black background or ManimGL's default grey. Vertical renders with -r 1080x1920: the frame keeps height 8 and narrows to 4.5 units wide, while the FRAME_WIDTH constant stays 14.2 — lay out against self.frame.get_width() instead.

  1. Narration — will a voiceover be laid over it? With narration, keep text

to labels and pace beats with self.wait() gaps; without it, the visuals carry the argument alone.

Give each question a default as its first option so the user can accept quickly. Do not ask about engine, LaTeX, or fonts — detect those (assets/doctor.py). Restate the answers in one line at the top of the scene outline.

Workflow

  1. Write the scene outline in prose first — one thing proved per scene. Do not

open an editor until the beats are decided.

  1. Run manimgl file.py Scene with no -w. The interactive window is the

fast feedback loop; writing a file on every iteration wastes minutes.

  1. Add self.embed() at the point of interest to drop into an IPython shell with

the scene live. Inspect and nudge mobjects there instead of re-rendering.

  1. Look at the frames before anyone else does. python assets/snapshot.py file.py Scene --list

numbers every self.play / self.wait; python assets/snapshot.py file.py Scene 4 9 14 then writes frames/Scene_004.png and so on, a few seconds each, no window needed. Open each PNG and check it against the list below. Re-snapshot only the beats you changed. When the scene is written for someone else to render, this is the only visual check available — do it before handing the code over.

  1. Once composition is settled, -w -l for a low-quality file to judge timing.
  2. Fixing a late beat? -n <index> starts at animation N instead of replaying

everything from the top.

  1. Only after timing is final, render --hd or --uhd.

What to look for in a snapshot:

  • Text crossing other text or a shape — the usual result of next_to without a

buff, or of a label placed before its target was scaled.

  • Anything touching or cut off by the frame edge. The frame is 14.2 × 8 units;

to_edge and .set_width(FRAME_WIDTH - 1) are the fixes.

  • Leftovers from an earlier beat: a mobject never faded out, or one still drifting

because its updater was never removed.

  • Labels that are hard to read at 480p are too small at 1080p too. Raise

font_size, do not rely on the final render.

  • A Tex that rendered as prose, or a TexText that rendered as math — the

silent CE/GL mix-up from the table above.

Tighten typography, color, and spacing after motion works — not before.

On-screen text

Default to English. Labels, titles and annotations are English unless the user asks for another language, or the surrounding project is already in one. Conversing in another language is not by itself such a request — ask if unsure. Why: Latin labels work with the default font and with Write; non-Latin scripts need a platform font and a different reveal animation, described in references/api-core.md.

The animation carries the argument. A sentence that narrates what the viewer is already watching competes with the visual for attention and duplicates whatever a narrator would say over it.

The test: if a narrator could speak the line, it does not belong on screen.

Cut — prose that restates the motion:

  • "Unroll it into one row in reading order" over a grid that is visibly unrolling
  • "Without this, shuffling the patches changes nothing"
  • "After 12 blocks it has gathered information from every patch"

Keep — anything the picture cannot state on its own:

  • labels and names: axis titles, LayerNorm, Q, K, V
  • counts, units, and specs: 4×4 = 16 patches, 224×224 → 196 patches of 16×16
  • formulas: Attn = softmax(QK^T/√d)V
  • emphasis: color coding, a highlighted element, Indicate, FlashAround

Emphasis is not narration — keep every bit of it. Marking one patch red and tracking it across scenes explains more than a caption would.

Prefer noun phrases to sentences, including for section titles: 1. Patch split over 1. The image is cut into patches. Where a scene seems to need a sentence, the usual fix is a clearer visual, not a longer caption.

Reference files

Open only what the current task needs; do not preload all five. A scene longer than two or three beats should start from patterns.md.

FileOpen when
references/api-core.mdTex/Text, geometry shapes, VGroup, positioning, colors
references/api-graphs.mdAxes, NumberPlane, function graphs, ValueTracker, updaters
references/animations.mdWhich animation class to use, timing, lag_ratio, rate functions
references/cli-config.mdCLI flags, custom_config.yml, reproducing the 3b1b look
references/patterns.mdStructuring a multi-beat scene: beat methods, helpers, computed numbers, cleanup after transforms

Runnable starting points, verified against manimlib source:

  • assets/doctor.py — stdlib-only environment check: manimlib, ffmpeg, LaTeX/MiKTeX, dvisvgm, CJK font, custom_config.yml encoding and stale paths. --write-config writes a custom_config.yml with the fixes. Run this first when a render fails for a reason that is not the scene code.
  • assets/snapshot.py — writes a PNG of the scene state at chosen animation indices (-s -w -n 0,K per index). The visual check in workflow step 4.
  • assets/smoke_test.py — geometry and Text only, no LaTeX required. Use this first to prove the install works.
  • assets/equation_graph.py — Tex + Axes + ValueTracker. Requires a working LaTeX install.

Footguns

`Tex` takes multiple strings. Tex("a", "+", "b") splits into indexable submobjects. To reliably address a substring, pass isolate=[...] and retrieve with get_part_by_tex / get_parts_by_tex, or color via t2c={...}. Indexing a Tex by raw integer position breaks the moment the LaTeX changes.

LaTeX is required for `Tex`, `TexText`, and `Brace`. Text and Code render through Pango and need no LaTeX. When LaTeX is unavailable, a scene can still be built entirely from Text plus geometry — say so rather than letting the render fail.

`ShowCreation`, not `Create`. The most common CE reflex, and it fails loudly.

Never `Write` CJK text. Write traces glyph outlines, and a Hangul or Han syllable is several independent contours, so every in-progress glyph renders as disconnected strokes — illegible for the whole animation. Changing the font does not help: regular and thin weights mangle identically. Use FadeIn, or AddTextWordByWord when progressive reveal is wanted. Keep Write for Latin text and Tex.

Updaters must be removed. A mobject with add_updater keeps mutating for the rest of the scene. Call clear_updaters() when the effect is over, or the object will drift during later beats.

`always_redraw(func)` rebuilds the mobject every frame. It is the correct tool for something whose shape depends on a tracker, and the wrong tool for something that merely moves — use add_updater or f_always for that. Rebuilding complex mobjects each frame is the usual cause of a slow preview.

`self.play()` needs an animation, not a mobject. To animate a method call use the .animate syntax: self.play(square.animate.shift(RIGHT)).

Background is `#333333` by default, noticeably lighter than CE's black. 3b1b's production config overrides it to #000000; see references/cli-config.md.

Attribution and licensing

  • 3b1b/manim (the engine) is MIT. Deriving code from manimlib and

example_scenes.py is unrestricted.

  • 3b1b/videos (the per-video scene code) is CC BY-NC-SA 4.0 — non-commercial

and share-alike. Do not copy scenes from it into user projects without telling the user about the license. It also depends on manim_imports_ext.py and the repo's custom/ package (pi creatures, backdrops), so it does not run standalone.

Write fresh code modeled on the API. Do not paste from 3b1b/videos.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Extension points

  • configConfiguration overrides

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/do-gongil/manimgl-skill/manimgl-video/badge)](https://verified-skill.com/skills/do-gongil/manimgl-skill/manimgl-video)

Something wrong with this skill or its page? Tell us.