Back to Skills

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

1,032stars86forksUpdated 8/5/2026

Security Assessment

Safe(95/100)
Security Score95/100

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 files
examples/attention_softmax_masking.py3.7 KB
View
examples/complex_s_plane.py9.8 KB
View
examples/eigenvector_flow_field.py6.5 KB
View
examples/bloch_sphere_3d.py6.9 KB
View
examples/damped_solutions_splane.py9.2 KB
View
examples/embedding_matrix.py5.5 KB
View
examples/laplace_integral.py9.3 KB
View
examples/attention_arcs_animation.py8.1 KB
View
examples/block_collision_basic.py5.4 KB
View
examples/dot_product_visualization.py5.5 KB
View
examples/equation_transforms.py10.0 KB
View
examples/light_polarization.py11.2 KB
View
examples/mlp_network_icon.py3.2 KB
View
examples/network_block_flow.py8.4 KB
View
examples/query_key_dot_products.py4.2 KB
View
examples/solve_damped_ode.py9.1 KB
View
examples/token_probability_distribution.py6.5 KB
View
examples/wave_amplitude_visualization.py12.8 KB
View
examples/attention_pattern_dots.py4.3 KB
View
examples/blocks_3d.py7.2 KB
View
examples/double_slit_interference.py11.1 KB
View
examples/exponential_derivative.py8.2 KB
View
examples/linear_regression.py3.8 KB
View
examples/mlp_neuron_activation.py7.7 KB
View
examples/neural_network_basic.py4.3 KB
View
examples/query_key_space_mapping.py6.3 KB
View
examples/spring_mass_system.py9.6 KB
View
examples/token_sampling.py6.1 KB
View
examples/weight_matrix_product.py5.7 KB
View
references/parallax_starfield.md4.4 KB
View
rules/animation-groups.md9.9 KB
View
rules/embedding.md10.1 KB
View
examples/attention_scenes.py33.9 KB
View
examples/collision_phase_space.py10.0 KB
View
examples/eigenvalue_equations.py7.2 KB
View
examples/fibonacci_eigenvalues.py5.9 KB
View
examples/llm_prediction_pipeline.py9.3 KB
View
examples/mlp_neurons_flow.py10.1 KB
View
examples/basic_multihead.py5.0 KB
View
examples/cube_projection_3d.py6.3 KB
View
examples/elastic_collision_vectors.py10.5 KB
View
examples/integration_visualization.py6.9 KB
View
examples/max_random_process.py5.8 KB
View
examples/mlp_weight_matrix.py8.5 KB
View
examples/quantum_gates.py8.7 KB
View
examples/simple_test.py1.8 KB
View
examples/three_d_vector_space.py3.3 KB
View
examples/value_matrix_transform.py7.0 KB
View
LICENSE.txt1.5 KB
View
references/transit_animation.md2.3 KB
View
rules/colors.md8.1 KB
View
examples/autoregressive_flow.py7.0 KB
View
examples/cost_function.py3.9 KB
View
examples/eigenvector_matrix_transformation.py6.2 KB
View
examples/hexagon_cube_correspondence.py2.8 KB
View
examples/lozenge_tiling.py3.2 KB
View
examples/mlp_vector_space.py8.6 KB
View
examples/probability_output.py12.1 KB
View
examples/semantic_similarity.py5.8 KB
View
examples/three_d_surfaces.py6.4 KB
View
examples/transit_animation.py6.2 KB
View
examples/zone_plate_hologram.py11.5 KB
View
examples/gradient_descent_basic.py6.8 KB
View
examples/lorenz_attractor.py5.3 KB
View
examples/mlp_relu_visualization.py5.3 KB
View
examples/probability_distribution.py12.2 KB
View
examples/rotating_exponentials.py9.3 KB
View
examples/superposition_effect.py9.0 KB
View
examples/tokenization_demo.py6.0 KB
View
examples/word_vector_analogy.py5.6 KB
View
references/spring_mass_system.md3.0 KB
View
rules/camera.md10.2 KB
View
examples/mlp_forward_pass.py8.7 KB
View
examples/multi_head_attention.py8.3 KB
View
examples/qubit_state_vector.py6.0 KB
View
examples/softmax_visualization.py4.8 KB
View
examples/token_embeddings_flow.py5.9 KB
View
examples/vector_fields.py7.5 KB
View
references/equation_transforms.md2.5 KB
View
examples/parallax_starfield.py6.3 KB
View
examples/radial_wave_visualization.py7.6 KB
View
examples/sqrt_random_process.py4.8 KB
View
examples/token_to_embedding.py8.1 KB
View
examples/weights_vs_data.py6.5 KB
View
references/rotating_exponentials.md2.5 KB
View
rules/animations.md3.8 KB
View
references/integration_visualization.md2.3 KB
View
rules/3d.md8.1 KB
View
rules/creation-animations.md8.2 KB
View
references/three_d_surfaces.md2.5 KB
View
rules/cli.md8.1 KB
View
rules/mobjects.md3.5 KB
View
SKILL.md7.3 KB
View
references/vector_fields.md2.6 KB
View
rules/config.md8.2 KB
View
rules/styling.md9.2 KB
View
rules/frame.md3.4 KB
View
rules/text.md5.1 KB
View
rules/interactive.md3.2 KB
View
rules/transform-animations.md10.0 KB
View
rules/scenes.md2.3 KB
View
templates/3d_scene.py6.5 KB
View
rules/t2c.md5.8 KB
View
templates/interactive_scene.py1.7 KB
View
rules/tex.md2.9 KB
View
templates/math_scene.py8.1 KB
View
templates/basic_scene.py3.4 KB
View

Install manimgl-best-practices

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill