Recursive Math Animator banner
Science-Prof-Robot Science-Prof-Robot

Recursive Math Animator

Git community

Description

Cursor and Claude Code skill: Manim animations, manim-voiceover, git-based scene versioning, optional Gemini TTS

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Recursive Maths Animator

Manim-based animations for mathematics, technical explainers, and physics. The project is designed for reproducible MP4s with a verification loop that catches layout, overlap, clipping, and motion problems before delivery.

What it includes

  • LaTeX-free Manim examples using Text, lines, paths, and custom graphing.
  • Optional voiceover through manim-voiceover.
  • Physics through manim-physics 0.4.0: mechanics, optics, fields, waves, and deterministic custom models.
  • Smoke tests, high-quality renders, frame extraction, and visual review.
  • Optional S3 publishing through the ignored local publisher. Video files and credentials must never be committed to a public repository.

Quick install

python3 -m venv .venv
source .venv/bin/activate
pip install -r recursive-maths-animator/requirements.txt

Install `ffmpeg` and `ffprobe` with your operating system package manager. LaTeX and SoX are not required for the included silent examples.

Codex prompt

Read `recursive-maths-animator/SKILL.md` and use it as the project workflow. Use the physics section for physics scenes. Start with a low-quality render, extract verification frames, fix all overlap/clipping issues, then render the final MP4.

Claude Code prompt

Read `recursive-maths-animator/SKILL.md` before editing. Follow its Manim, physics, responsive-layout, verification, and S3 rules. Do not commit rendered videos, credentials, or ignored upload tooling.

Render an example

source .venv/bin/activate
.venv/bin/manim -ql recursive-maths-animator/examples/convex_lens_object_to_infinity.py \
  ConvexLensObjectToInfinity --format mp4 --disable_caching
.venv/bin/manim -qh recursive-maths-animator/examples/convex_lens_object_to_infinity.py \
  ConvexLensObjectToInfinity --format mp4 --disable_caching

Video examples

The original verified examples are committed under [`videos/`](videos/):

Table to bar chart