Skip to content
cccskills
FreePublished on GitHub

manimce-best-practices

Trigger 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).

The English summary is being prepared. Showing the original description.

See how to install

Files included (37)

  • SKILL.md5.8 KB
  • examples/3d_visualization.py9.8 KB
  • examples/attention/__init__.py75 B
  • examples/attention/helpers.py14.1 KB
  • examples/attention/scenes.py26.4 KB
  • examples/basic_animations.py5.7 KB
  • examples/graph_plotting.py10.1 KB
  • examples/lorenz_attractor.py4.9 KB
  • examples/math_visualization.py8.4 KB
  • examples/updater_patterns.py9.8 KB
  • LICENSE.txt1.1 KB
  • rules/3d.md5.9 KB
  • rules/animation-groups.md5.1 KB
  • rules/animations.md3.0 KB
  • rules/axes.md4.7 KB
  • rules/camera.md4.8 KB
  • rules/cli.md4.0 KB
  • rules/colors.md4.8 KB
  • rules/config.md4.4 KB
  • rules/creation-animations.md3.2 KB
  • rules/graphing.md5.3 KB
  • rules/grouping.md4.6 KB
  • rules/latex.md4.3 KB
  • rules/lines.md4.8 KB
  • rules/mobjects.md2.8 KB
  • rules/positioning.md4.8 KB
  • rules/scenes.md2.3 KB
  • rules/shapes.md6.0 KB
  • rules/styling.md4.2 KB
  • rules/text-animations.md4.9 KB
  • rules/text.md3.9 KB
  • rules/timing.md4.0 KB
  • rules/transform-animations.md3.9 KB
  • rules/updaters.md5.2 KB
  • templates/basic_scene.py1.6 KB
  • templates/camera_scene.py2.9 KB
  • templates/threed_scene.py4.0 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

How to use

Read individual rule files for detailed explanations and code examples:

Core Concepts

Creation & Transformation

Text & Math

Styling & Appearance

Positioning & Layout

Coordinate Systems & Graphing

Animation Control

Configuration & CLI

Shapes & Geometry

  • rules/shapes.md - Circle, Square, Rectangle, Polygon, and geometric primitives
  • rules/lines.md - Line, Arrow, Vector, DashedLine, and connectors

Working Examples

Complete, tested example files demonstrating common patterns:

Scene Templates

Copy and modify these templates to start new projects:

Quick Reference

Basic Scene Structure

from manim import *

class MyScene(Scene):
    def construct(self):
        # Create mobjects
        circle = Circle()

        # Add to scene (static)
        self.add(circle)

        # Or animate
        self.play(Create(circle))

        # Wait
        self.wait(1)

Render Command

# Basic render with preview
manim -pql scene.py MyScene

# Quality flags: -ql (low), -qm (medium), -qh (high), -qk (4k)
manim -pqh scene.py MyScene

Key Differences from 3b1b/ManimGL

FeatureManim Community3b1b/ManimGL
Importfrom manim import *from manimlib import *
CLImanimmanimgl
Math textMathTex(r"\pi")Tex(R"\pi")
SceneSceneInteractiveScene
Packagemanim (PyPI)manimgl (PyPI)

Jupyter Notebook Support

Use the %%manim cell magic:

%%manim -qm MyScene
class MyScene(Scene):
    def construct(self):
        self.play(Create(Circle()))

Common Pitfalls to Avoid

  1. Version confusion - Ensure you're using manim (Community), not manimgl (3b1b version)
  2. Check imports - from manim import * is ManimCE; from manimlib import * is ManimGL
  3. Outdated tutorials - Video tutorials may be outdated; prefer official documentation
  4. manimpango issues - If text rendering fails, check manimpango installation requirements
  5. PATH issues (Windows) - If manim command not found, use python -m manim or check PATH

Installation

# Install Manim Community
pip install manim

# Check installation
manim checkhealth

Useful Commands

manim -pql scene.py Scene    # Preview low quality (development)
manim -pqh scene.py Scene    # Preview high quality
manim --format gif scene.py  # Output as GIF
manim checkhealth            # Verify installation
manim plugins -l             # List plugins

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Trigger 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.

The English summary is being prepared. Showing the original description.

adithya-s-k/manim_skill1.2KUpdated Jan 24, 2026

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 checkpoint_paste() workflow. NOT for Manim Community Edition (which uses `manim` imports and `manim` CLI).

The English summary is being prepared. Showing the original description.

adithya-s-k/manim_skill1.2KUpdated Jan 24, 2026

See all skills by adithya-s-k

Report a problem with this skill