agentleFS
awesome-skillsawesome-skills/manim-skill/SKILL.md

manim

Skill10 starsChanged 17 days agoMITView on GitHub

Create and edit programmatic explanatory animations, videos, and GIFs with Manim Community Edition. Use for mathematical animation, algorithm animation, animated technical diagrams, or an explicit Manim request. Static diagrams, ordinary charts, and interactive web UI do not need this skill unless the user chooses Manim.

3 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. iart-ai/manim-skills★ 13same name
    2. willlee1995/skills★ 1same name
    3. thibautbeaudet-stack/claude-skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use Manim Community Edition (CE), not manimgl / manimlib, unless the user explicitly requests that engine.

    line 10
  2. Distinctive:

    Write a runnable scene in the user's project, keeping output media separate from source.

    line 19
  3. Distinctive:

    Run from the environment containing Manim:

    line 39
  4. Very specific:

    Use Code(code_string=..., language=..., formatter_style=...).

    line 75
  5. Distinctive:

    Use Cairo for a portable starting point.

    line 78

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Manim animations

Use Manim Community Edition (CE), not manimgl / manimlib, unless the user explicitly requests that engine. Preserve an existing project's engine and dependency constraints; migration is a separate choice.

This edition targets ManimCE 0.22.x, Python 3.11+. Check python --version and python -m manim --version in the project's environment before writing version-sensitive code. For an older project, read the matching official docs rather than silently upgrading it. See setup and migration for installation, optional math backends, output changes, and troubleshooting.

Workflow

  1. Establish the explanation: what changes over time, what the viewer should understand, and the requested output (video/GIF/still, duration, aspect ratio, language). Infer sensible defaults for unspecified presentation choices; ask only when the answer changes the work materially.
  2. Before coding a new animation or improving its appearance, read visual direction. Choose a focal object and sketch a short shot list: question, visible action, insight, timing. Make the changing geometry carry the explanation; use captions to support it. Use explicit labels as well as color to convey state. For object transfers, continuous plots, causal flows, timing choices or portrait composition, read the matching animation craft recipe. Choose palette/type and motion rules for this subject; keep a stable identity for each tracked item.
  3. Write a runnable scene in the user's project, keeping output media separate from source. Use public scene APIs. Configure resolution, renderer, and output before constructing a scene; use CLI flags or tempconfig rather than changing global config after super().__init__().
  4. Render a low-quality video first. Inspect opening, intermediate, and final frames, and review transitions for pacing and semantic correctness. Check essential labels at the intended display width, not only in enlarged frames. A last-frame PNG or a successful command alone does not verify an animation. Fix clipping, unreadable labels, overlaps, wrong states, and unexpected jumps before increasing quality.
  5. Render the requested artifact and verify it exists, decodes, and has the intended dimensions, duration, and format. Deliver the source path, artifact path, exact render command, environment version, and any verification limits. Do not claim visual acceptance when only syntax or rendering was checked.

For a blog embed, a short 16:9 MP4 is a reasonable starting point; GIF is useful when required but can be larger and less efficient. Follow the user's duration and style rather than imposing a fixed length or banning titles.

Small starting point

from manim import BLUE, Circle, Create, Scene, Text, VGroup, DOWN

class Explain(Scene):
    def construct(self):
        circle = Circle(color=BLUE)
        label = Text("Input", font_size=32).next_to(circle, DOWN)
        group = VGroup(circle, label)
        self.play(Create(group))
        self.wait(1)

Run from the environment containing Manim:

python -m manim render -ql scene.py Explain
python -m manim render -qh --format mp4 scene.py Explain
python -m manim render -qm --format gif scene.py Explain
python -m manim render -ql --format png scene.py Explain

-p opens the completed artifact; omit it in headless runs. --format png writes only the last frame. For all frames use png-sequence; --format none evaluates without producing media. --dry_run remains supported, but is not visual verification. Standard presets: -ql 480p15, -qm 720p30, -qh 1080p60, -qk 2160p60. See setup and migration for 0.22 output semantics.

Read only what the scene needs

NeedReference / runnable starting point
Composition, visual storytelling, choreography, appearance reviewvisual direction; examples/visual_story.py: VectorStory
Refined / beautiful / premium appearanceaesthetic refinement; examples/interference_study.py, examples/area_scale_story.py
Visual language, item transfers, continuous state, causal timing, portraitanimation recipes; merge_step.py, wave_superposition.py, packet_journey.py in examples/
Labels, formulas, code, axes, graphs, layoutmobjects; examples/basic_scene.py
Easing choices and equal-time motion comparisonmotion clock; examples/motion_timing.py
Transforms, timing, live values, object identityanimations
Camera-led focus, local/global comparisoncamera-led explanation; examples/local_linearity.py
Continuous handoff between representationsvisual anchor; examples/circle_to_wave.py
Multi-beat physical explanationaesthetic refinement; examples/damping_story.py
Bézier construction, curve parameters and path speedcontinuous state; examples/bezier_construction.py
Explanatory 3D, exploded views and camera-safe labels3D; examples/exploded_layers.py
Camera, 3D, updaters, programmatic renderingadvanced; examples/advanced_scene.py
Formula without a TeX installation, including labeled derivationsmobjects: math backends; examples/typst_scene.py, examples/typst_derivation.py
Records becoming counts / visible aggregationanimation recipes; examples/data_to_decision.py
Process, state, comparison, algorithm explanationstorytelling patterns; examples/flowchart.py, examples/state_diagram.py, examples/quicksort.py
Installation or older Manim codesetup and migration

Reliability notes

  • Text uses Pango and installed fonts. Check glyph coverage for the requested language; inspect rendered text for missing characters. Text does not require TeX. Some convenience objects (including default numeric labels) do; choose Text labels when avoiding TeX.
  • In 0.22, formulas can use Tex/MathTex (external TeX tools) or Typst/MathTypst (optional manim[typst] dependency). Typst math uses its own syntax, not LaTeX syntax.
  • Use Code(code_string=..., language=..., formatter_style=...). Syntax and line-number colors come from Pygments, not paragraph_config["color"].
  • Transform(source, target) changes the source; keep animating the source variable. ReplacementTransform replaces it with the target. Avoid two simultaneous animations mutating the same mobject.
  • Frame dimensions are scene units, distinct from output pixels. Fit the complete composition inside config.frame_width / frame_height with margins, including arrowheads, labels, and motion extrema. Inspect portrait layouts separately.
  • Use Cairo for a portable starting point. OpenGL requires a functioning display/graphics environment and has different camera APIs; test it explicitly when requested.

Repository checks

For changes to this skill or its examples, follow the contributing checks. The smoke runner renders examples, probes media, and extracts contact sheets. Its report distinguishes skipped optional backends and rendering success from human visual review.

Official references: versioned 0.22 docs, changelog, source.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.