A Python-based animation engine for creating mathematical visualizations and educational videos.
Install
mkdir -p .claude/skills/manim && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/768" && unzip -o skill.zip -d .claude/skills/manim && rm skill.zipInstalls to .claude/skills/manim
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Comprehensive guide for Manim Community - Python framework for creating mathematical animations and educational videos with programmatic controlKey capabilities
- →Create mathematical animations programmatically
- →Render LaTeX equations and formulas
- →Orchestrate scene-based animation sequences
- →Apply transformations to geometric mobjects
- →Visualize coordinate systems and graphs
How it works
The framework uses Python classes to define scenes and mobjects, which are then transformed and animated through programmatic control and rendered into video files.
Inputs & outputs
When to use manim
- →Create mathematical animations
- →Render LaTeX equations
- →Build educational video sequences
- →Visualize coordinate systems and graphs
About this skill
Manim Community - Mathematical Animation Engine
Comprehensive skill set for creating mathematical animations using Manim Community, a Python framework for creating explanatory math videos programmatically, popularized by 3Blue1Brown.
When to use
Use this skill whenever you are dealing with Manim code to obtain domain-specific knowledge about:
- Creating mathematical animations and visualizations
- Building educational video content programmatically
- Working with geometric shapes and transformations
- Animating LaTeX equations and mathematical formulas
- Creating graphs, charts, and coordinate systems
- Implementing scene-based animation sequences
- Rendering high-quality mathematical diagrams
- Building explanatory visual content for teaching
Core Concepts
Manim allows you to create animations using:
- Scenes: Canvas for your animations where you orchestrate mobjects
- Mobjects: Mathematical objects that can be displayed (shapes, text, equations)
- Animations: Transformations applied to mobjects (Write, Create, Transform, FadeIn)
- Transforms: Morphing between different states of mobjects
- LaTeX Integration: Native support for rendering mathematical notation
- Python Simplicity: Use Python to programmatically specify animation behavior
Key Features
- Precise mathematical object positioning and transformations
- Native LaTeX rendering for equations and formulas
- Extensive shape library (circles, rectangles, arrows, polygons)
- Coordinate systems and function graphing
- Boolean operations on geometric shapes
- Camera controls and scene management
- High-quality video rendering
- IPython/Jupyter notebook integration
- VS Code extension with live preview
How to use
Read individual rule files for detailed explanations and code examples:
Core Concepts
- references/scenes.md - Creating scenes and organizing animations
- references/mobjects.md - Understanding mathematical objects and shapes
- references/animations.md - Core animation types and techniques
- references/latex.md - Rendering LaTeX equations and formulas
For additional topics including transforms, timing, shapes, coordinate systems, 3D animations, camera movement, and advanced features, refer to the comprehensive Manim Community documentation.
Quick Start Example
from manim import *
class SquareToCircle(Scene):
def construct(self):
# Create a square
square = Square()
square.set_fill(BLUE, opacity=0.5)
# Create a circle
circle = Circle()
circle.set_fill(RED, opacity=0.5)
# Animate square creation
self.play(Create(square))
self.wait(1)
# Transform square into circle
self.play(Transform(square, circle))
self.wait(1)
# Fade out
self.play(FadeOut(square))
Render with: manim -pql script.py SquareToCircle
Best Practices
- Inherit from Scene - All animations should be in a class inheriting from Scene
- Use construct() method - Place all animation code inside the construct() method
- Think in layers - Add mobjects to the scene before animating them
- Use self.play() - Animate mobjects using self.play(Animation(...))
- Test with low quality - Use
-qlflag for faster preview renders - Leverage LaTeX - Use Tex() and MathTex() for mathematical notation
- Group related objects - Use VGroup to manage multiple mobjects together
- Preview frequently - Use
-pflag to automatically open rendered videos
Command Line Usage
# Preview at low quality (fast)
manim -pql script.py SceneName
# Render at high quality
manim -pqh script.py SceneName
# Save last frame as image
manim -s script.py SceneName
# Render multiple scenes
manim script.py Scene1 Scene2
Resources
- Documentation: https://docs.manim.community/
- Repository: https://github.com/ManimCommunity/manim
- Examples Gallery: https://docs.manim.community/en/stable/examples.html
- Discord Community: https://www.manim.community/discord/
- 3Blue1Brown Channel: https://www.youtube.com/c/3blue1brown
- License: MIT
When not to use it
- →For non-mathematical general video editing
- →When manual frame-by-frame drawing is preferred
Prerequisites
Limitations
- →Requires Python environment
- →Requires LaTeX installation for math rendering
- →Limited to programmatic animation logic
How it compares
This method allows for precise, reproducible mathematical animations defined in code, as opposed to traditional manual keyframe animation software.
Compared to similar skills
manim side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| manim (this skill) | 29 | 6mo | Review | Intermediate |
| manimce-best-practices | 3 | 6mo | Review | Beginner |
| manimgl-best-practices | 3 | 6mo | Review | Advanced |
| jianying-editor | 38 | 2mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by davila7
View all by davila7 →You might also like
manimce-best-practices
adithya-s-k
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).
manimgl-best-practices
adithya-s-k
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).
jianying-editor
luoluoluo22
剪映 (JianYing) AI自动化剪辑的高级封装 API (JyWrapper)。提供开箱即用的 Python 接口,支持录屏、素材导入、字幕生成、Web 动效合成及项目导出。
vectcut-api
sun-guannan
VectCutAPI is a powerful cloud-based video editing API tool that provides programmatic control over CapCut/JianYing (剪映) for professional video editing. Use this skill when users need to: (1) Create video draft projects programmatically, (2) Add video/audio/image materials with precise control, (3) Add text, subtitles, and captions, (4) Apply effects, transitions, and animations, (5) Add keyframe animations, (6) Process videos in batch, (7) Generate AI-powered videos, (8) Integrate with n8n workflows, (9) Build MCP video editing agents. The API supports HTTP REST and MCP protocols, works with both CapCut (international) and JianYing (China), and provides web preview without downloading.
lecture-transcript-slide-matcher
az9713
Combines YouTube lecture transcripts with PDF slides to create an interactive HTML page. Matches each slide to corresponding transcript segments, organized by key concepts. Use when users want to create synchronized lecture notes from transcript text files and slide PDFs.
openevidence-install-auth
jeremylongshore
Install and configure OpenEvidence API authentication. Use when setting up a new OpenEvidence integration, configuring API credentials, or initializing OpenEvidence in your healthcare application. Trigger with phrases like "install openevidence", "setup openevidence", "openevidence auth", "configure openevidence API key".