Nov 11, 2026

Manim Best-Practice Skills: Math Animations in Manim or ManimGL Without the API Guesswork

Two skill packs that keep your coding agent on the right API for Manim Community Edition or ManimGL, with best-practice guides for scenes, animations, text, camera and 3D.

#tutorial#python#scientific-computing

Ask an agent for a Manim animation and it can blend two frameworks that share a name but not an API. manim_skill, a 1k-star repository, ships one skill per framework, each activating on that framework's imports and CLI commands.

Why This Skill Matters

There are two Manims. Manim Community Edition (manim, imported with from manim import *) is the community-maintained version; ManimGL (manimgl, imported with from manimlib import *) is Grant Sanderson's original with OpenGL rendering. The README is blunt about the gap: these are separate, incompatible frameworks, and code written for one will not work with the other without modifications. The repository's two skills carry best practices, code examples and pitfalls for each side.

Installation

Both versions need Python 3.7+, FFmpeg for video encoding, and LaTeX for mathematical typesetting (TeX Live, MiKTeX, or MacTeX); ManimGL on macOS ARM additionally needs arch -arm64 brew install pkg-config cairo. Install the framework you want with pip install manim or pip install manimgl, then add both skills in one command:

npx skills add adithya-s-k/manim_skill

To install one pack at a time:

# Install Manim Community Edition best practices
npx skills add adithya-s-k/manim_skill/skills/manimce-best-practices

# Install ManimGL best practices
npx skills add adithya-s-k/manim_skill/skills/manimgl-best-practices

Real Workflow: A First Scene in Each Framework

Ask your agent for a filled circle that draws itself. With the Community Edition skill loaded, the scene is the README's own example:

from manim import *

class BasicExample(Scene):
    def construct(self):
        circle = Circle()
        circle.set_fill(BLUE, opacity=0.5)
        circle.set_stroke(BLUE_E, width=4)

        self.play(Create(circle))
        self.wait()

Render it with a preview at low quality:

manim -pql scene.py BasicExample

The ManimGL version of the same scene changes three things — the import, the base class, and the creation animation:

from manimlib import *

class BasicExample(InteractiveScene):
    def construct(self):
        circle = Circle()
        circle.set_fill(BLUE, opacity=0.5)
        circle.set_stroke(BLUE_E, width=4)

        self.play(ShowCreation(circle))
        self.wait()
manimgl scene.py BasicExample --write_file

The README lists when each skill loads. manimce-best-practices activates when you import from manim, use the manim CLI, work with Scene classes, mathematical animations or LaTeX rendering, or create educational videos or visual explanations with Manim Community. manimgl-best-practices activates on from manimlib import *, the manimgl CLI, InteractiveScene, 3D rendering or camera frame control, and interactive mode with .embed() or checkpoint_paste().

Second Workflow: Port a Scene Between Versions

Found a ManimGL snippet but run the Community Edition? Hand the agent the scene and ask for a port. The README's differences table lists the mapping, and the skill files carry their own notes on API differences between versions: ShowCreation() becomes Create(), Tex() becomes MathTex(), camera control moves from self.camera.frame to MovingCameraScene, and configuration moves from YAML files to Python config.

Tips

  • Start with the guides the README recommends. For the Community Edition, in skills/manimce-best-practices/rules/: scenes.md, animations.md, mobjects.md, colors.md, text.md. For ManimGL, in skills/manimgl-best-practices/rules/: scenes.md, animations.md, camera.md, 3d.md, interactive.md.
  • The repository includes tests for its code examples. Run uv run python tests/manimce/test_all_skills.py, or pass a filename such as animations.md to test one guide.
  • Keep parallel test runs small. The README warns that many workers can cause out-of-memory errors and suggests 4-6 workers at most.
  • If manim or manimgl is not found, the README's first check is pip list | grep manim; for LaTeX errors, install a full LaTeX distribution rather than a basic one.

When Not to Use This

The skills teach an agent how to write Manim code; they do not replace the frameworks, FFmpeg or LaTeX, which you still install yourself. Choosing between the two is also your call, and the README's "Best For" lines are the guide: the Community Edition for production use, educational content and collaborative projects; ManimGL for interactive development, 3D scenes and rapid prototyping.


See the leaderboard for more skills.