ManimGX: Math & 3D Animation

academa-labs/manimgx

Create mathematical explanations and 3D animations in Python, inspect their layout and timing, and export MP4 videos with editable scene source.

Contenuto aggiornato: SKILL.md
Punteggio di qualità 94/100
npx skills add academa-labs/manimgx --skill manimgx
2721Stelle190ForkUltimo push del repository

Informazioni sullo Skill

Give your agent a mathematical explanation, a geometry concept or a 3D scene brief. This Skill guides it to write a Python scene with ManimGX, inspect sampled frames and the timeline, correct unintended overlap or clipping, and export a video at your requested resolution and frame rate. The result includes the MP4 and its editable Python scene. ManimGX uses a Rust and wgpu renderer with a Python API based on Manim Community Edition.

SKILL.md

Autore: Academa Labs · academa-labs/manimgx · MIT · SKILL.md @ 1fb4dd7

---
name: manimgx
description: Create and refine mathematical or 3D animations in Python with ManimGX, including scene authoring, layout inspection, and video export.
license: MIT
---

# ManimGX

Use ManimGX to turn the user's explanation into a scene, inspect its layout and timing,
and deliver the rendered video with its editable Python source.

Use the project's existing Python environment. For a standalone installation,
`uv tool install --python 3.14 manimgx` provides the `manimgx` command. Python 3.13 or newer
is required. Text, mathematics, and video encoding are included in the package.

Import `manimgx as m`. Its authoring API follows Manim Community Edition; check ManimGX's
own [reference](https://manimgx.academa.ai/reference/) for supported options and behavior.
[The agent primer](https://manimgx.academa.ai/llms.txt) links the guides and examples as
Markdown. Read the relevant page when using an unfamiliar feature.

## Author a scene

Put the animation in a `Scene` subclass's `construct` method. Time advances through
`self.play(...)` and `self.wait(...)`; `self.add(...)` only adds objects. Compose placement
with `VGroup`, `next_to`, `arrange`, and `to_edge` so labels follow their subjects. Use `Text`
for prose and `MathTex` with raw strings for LaTeX mathematics.

For example, save this as `scene.py`:

```python
import manimgx as m


class CircleArea(m.Scene):
    def construct(self) -> None:
        circle = m.Circle(radius=1, color=m.BLUE, fill_opacity=0.3)
        formula = m.MathTex(r"A = \pi r^2").next_to(circle, m.RIGHT, buff=0.6)
        m.VGroup(circle, formula).center()
        self.play(m.Create(circle), m.Write(formula))
        self.wait(1)
```

For changing values, animate a `ValueTracker` and derive dependent geometry from its
value. An updater should use elapsed time or current state, not the number of frames;
changing the export frame rate should preserve the motion. Use `ThreeDScene` for a 3D
camera.

## Inspect and deliver

```sh
manimgx inspect scene.py CircleArea
manimgx render scene.py CircleArea -r 1280x720 --fps 30 -o draft.mp4
```

`inspect` writes a storyboard and reports the timeline and sampled 2D layout problems.
Look at the pictures and fix unintended overlap or clipping; use `-t 0.5,end` to inspect
particular moments. These are sampled checks, and 3D scenes receive storyboards without
2D layout checks. Review the draft's motion as well as its still frames.

Render the final video at the user's requested size and frame rate (`-r WIDTHxHEIGHT`
and `--fps RATE`). Without those options, export is 1920×1080 at 60 fps. Include the output
path and the scene source when delivering it.

Perché lo abbiamo scelto

A task-focused Skill for turning an explanation into a renderable scene. It guides scene authoring, storyboard inspection and video delivery using the ManimGX engine. The preview is the upstream author’s helicoid-to-catenoid demonstration.

A cosa serve

  • Explain formulas, functions, geometry and changing values with animated diagrams.
  • Create 3D objects, surfaces and camera movements for educational or technical videos.
  • Iterate on an animation from its storyboard, then deliver an MP4 and reusable Python source.

From brief to finished video

  1. Define the scene

    Describe the idea, audience, duration, dimensions and frame rate. Use existing Python environment and install the rendering engine if needed.

  2. Write editable Python

    Author a Scene or ThreeDScene, arrange labels with their subjects, and animate changes through play and wait.

  3. Inspect and refine

    Generate the storyboard and timeline, inspect representative moments, and correct unintended overlaps or clipping. 3D inspection provides storyboards without 2D layout checks.

  4. Render and deliver

    Review the draft’s motion, render at the requested size and frame rate, and deliver both the video and Python source.

Official installable SkillAgent setup and rendering primer

Rendering commands

After creating scene.py and installing the engine, inspect before rendering. The scene class in these commands is CircleArea, from the official Skill example.

ComandoA cosa serve
uv tool install --python 3.14 manimgxInstall the engine in an isolated tool environment.
manimgx inspect scene.py CircleAreaWrite a storyboard and report the timeline and sampled layout issues.
manimgx render scene.py CircleArea -r 1280x720 --fps 30 -o draft.mp4Render a review video at 720p and 30 fps.

Official installable SkillAgent setup and rendering primer

Preview and practical limits

The preview is a compressed copy of the author’s full helicoid-to-catenoid film, linked below with its Python example. It illustrates the engine’s output; your agent creates a scene for your own brief.

Layout inspection samples selected moments; it does not guarantee every frame is free from overlap. Review the full video. Check ManimGX’s own reference for supported API behavior when adapting Manim CE code.

Official installable SkillManimGX API referenceAuthor’s original animated demonstrationEditable helicoid and catenoid scene

Prima di usarlo

  • An agent that can load SKILL.md, run shell commands, edit Python and inspect images. The skills installer requires Node.js and network access.
  • Python 3.13 or newer and the manimgx package. Use an existing suitable Python environment, or install the engine with uv tool install --python 3.14 manimgx.
  • A supported graphics backend: Metal on macOS, Direct3D 12 on Windows or Vulkan on Linux. Linux wheels also bundle a CPU rendering fallback.
  • Text, math typesetting, fonts and video encoding are bundled. Optional generated narration needs a separately configured speech provider and may incur charges.
  • The Skill and ManimGX’s own code are MIT-licensed. Bundled runtime components retain their own licenses. Agent or model usage follows your provider’s pricing.

Agenti supportati

Claude CodeCodex CLICursorGitHub CopilotDeepSeek HarnessGemini CLIGrok BuildHermes AgentOpenCodePiKiroRovo DevQoderMistral VibeGoogle Antigravity

Domande frequenti

Does it produce a finished MP4?

Yes. With the ManimGX engine installed, the agent writes and renders a Python scene and delivers the video together with the scene source.

Do I need a separate LaTeX or FFmpeg installation?

The released ManimGX package includes text and math typesetting, fonts and video encoding. Follow the official installation instructions for your platform.

Is video generation free?

The Skill and local rendering engine are free to install. Agent/model usage, computing resources and any optional speech provider can have separate costs.

Fonti e riferimenti

Le fonti originali sono collegate qui sotto. Gli spunti pratici sono suggerimenti editoriali di SkillHey.