manimgl-best-practices
Trigger 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 c
Security Assessment
About manimgl-best-practices
This skill is a best-practices and reference guide for ManimGL, Grant Sanderson's (3Blue1Brown) OpenGL-based mathematical animation engine, as distinct from Manim Community Edition. It solves the frequent confusion between the two Manim variants and the many API differences (for example `from manimlib import *` versus `from manim import`, and `ShowCreation` versus `Create`) by giving targeted guidance that triggers specifically on ManimGL usage, imports, and CLI commands.
It is structured as a large set of rule files (scenes, mobjects, animations, transforms, Tex and text, tex_to_color_map coloring, styling, 3D and camera control, interactive development, and CLI/config), a substantial library of complete worked example scripts (neural networks, attention mechanisms, physics, linear algebra, quantum gates, and more), copy-and-modify scene templates, and reference write-ups explaining the 3Blue1Brown scene-design thinking process. It documents the interactive workflow (the `-se` flag, `self.embed()`, `checkpoint_paste()`), camera frame control via `frame.reorient()`, and quick-reference render commands.
The target users are creators of mathematical and scientific animations, educators, and developers who work specifically with the 3b1b ManimGL toolchain and want idiomatic patterns and ready-made examples. Usage involves reading rule files, adapting example scenes, and invoking the `manimgl` CLI to render or preview animations. The only execution it implies is running the local manimgl renderer on scene files, which is a safe, developer-driven operation.
FAQ
Is this for Manim Community Edition?
No. It is specifically for ManimGL (the 3Blue1Brown OpenGL version). The skill explicitly states it is NOT for Manim Community Edition, which uses `manim` imports and the `manim` CLI.
What is included besides rules?
Rule files by topic, a large set of complete example scripts, scene templates to copy and modify, and reference guides that explain the scene-design thinking process.
How do I render a scene?
Use the manimgl CLI, e.g. `manimgl scene.py MyScene` to preview, `-w` to write to file, `-l` for low quality, and `-se <line>` to drop into interactive mode.
What ManimGL-specific features does it cover?
InteractiveScene, Tex with tex_to_color_map (t2c), camera frame control (frame.reorient, Euler angles, fix_in_frame), 3D surfaces and lighting, self.embed() debugging, and checkpoint_paste() workflow.
Does it require anything special to run examples?
You need a working ManimGL installation; the examples import from manimlib and are rendered with the manimgl command.
All Files
107 filesInstall manimgl-best-practices
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
adithya-s-k/manim_skill