Manim Video 标志

Manim Video

社区
AlexAI-MCP
manim-video

使用 Manim Community 创建数学动画和讲解视频,通过代码制作数学、计算机科学概念和数据可视化动画。

Add to TypingMind

概览

发布者AlexAI-MCP
代码仓库hermes-CCC
技能名称manim-video
星标数
134
复刻数
22
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 AlexAI-MCP 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Manim Video AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/AlexAI-MCP/hermes-CCC/tree/master/skills/manim-video
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AlexAI-MCP/hermes-CCC.git /tmp/hermes-CCC
mkdir -p .claude/skills
cp -r /tmp/hermes-CCC/skills/manim-video .claude/skills/manim-video
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Manim Video,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Manim Video。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Manim Video 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Manim Video

Purpose

  • Use this skill to create precise, code-driven animations for mathematics, computer science, algorithms, and data visualization.
  • Prefer Manim when the content is structural, symbolic, or instructional rather than cinematic live-action editing.
  • Manim is especially strong for equations, graphs, geometric constructions, and animated explanations of abstract systems.

Install

bash
pip install manim
  • On some systems you may also need FFmpeg and LaTeX-related dependencies for full math rendering support.
  • Verify the installation with manim --version.

Mental Model

  • A Manim scene is a Python class.
  • You place visual objects into the scene.
  • You animate transitions between states.
  • The render command converts the scene into a video file.
  • The code is the asset, which makes revisions reproducible.

Minimal Scene Structure

python
from manim import *

class MyScene(Scene):
    def construct(self):
        text = Text("Hello, Manim")
        self.play(Write(text))
        self.wait()

Basic Workflow

  1. Create a Python file such as scene.py.
  2. Define one or more scene classes.
  3. Render the desired scene by name.
  4. Inspect the output video.
  5. Revise the code and rerender.

Render Command

bash
manim -pql scene.py MyScene
  • -pql means preview plus quality low.
  • Use -pqh when you want a higher-quality render for export or sharing.
  • Low-quality previews are much faster during iteration.

Core Objects

  • Circle
  • Square
  • Text
  • MathTex
  • Axes
  • NumberPlane
  • Arrow

These cover a large fraction of introductory math and CS explainer work.

Shapes Example

python
from manim import *

class Shapes(Scene):
    def construct(self):
        circle = Circle(color=BLUE)
        square = Square(color=GREEN).shift(RIGHT * 2)
        arrow = Arrow(circle.get_right(), square.get_left(), color=YELLOW)

        self.play(Create(circle), Create(square))
        self.play(Create(arrow))
        self.wait()

Text and Labels

  • Use Text for plain words, labels, titles, and UI-like annotations.
  • Use MathTex for equations and symbolic math.
  • Keep labels short and readable.
  • Position text relative to objects with helpers like .next_to() and .to_edge().

Math Rendering

python
from manim import *

class Derivative(Scene):
    def construct(self):
        expr = MathTex(r"\frac{d}{dx} x^2 = 2x")
        self.play(Write(expr))
        self.wait()
  • Use raw strings for LaTeX-heavy expressions.
  • Split long formulas into chunks if you want to animate parts independently.
  • MathTex is one of Manim's highest-value primitives for educational video.

Graphs

python
from manim import *

class PlotExample(Scene):
    def construct(self):
        ax = Axes()
        graph = ax.plot(lambda x: x**2, color=BLUE)
        label = ax.get_graph_label(graph, label="x^2")

        self.play(Create(ax))
        self.play(Create(graph), FadeIn(label))
        self.wait()
  • Use Axes() for standard 2D coordinate systems.
  • Use NumberPlane() when you want a visible grid.
  • Use .plot() for function graphs.
  • Add labels only when they clarify the message.

Coordinate Grid Example

python
from manim import *

class PlaneExample(Scene):
    def construct(self):
        plane = NumberPlane()
        point = Dot(plane.c2p(2, 3), color=RED)
        note = Text("Point (2, 3)").scale(0.5).next_to(point, UP)

        self.play(Create(plane))
        self.play(FadeIn(point), Write(note))
        self.wait()

Common Animations

  • Create
  • Write
  • Transform
  • FadeIn
  • FadeOut
  • MoveAlongPath

These are enough to build most educational sequences.

Animation Example

python
from manim import *

class AnimateBasics(Scene):
    def construct(self):
        circle = Circle(color=BLUE)
        square = Square(color=GREEN)

        self.play(Create(circle))
        self.play(Transform(circle, square))
        self.play(FadeOut(circle))

Move Along Path

python
from manim import *

class AlongPath(Scene):
    def construct(self):
        path = Circle(radius=2, color=WHITE)
        dot = Dot(color=YELLOW).move_to(path.point_from_proportion(0))

        self.add(path, dot)
        self.play(MoveAlongPath(dot, path), run_time=3)
        self.wait()
  • MoveAlongPath is useful for state machines, orbital motion, and process flow visuals.
  • Use it for conceptual journeys, packets moving through systems, or points moving across graphs.

Layout Helpers

  • .shift()
  • .move_to()
  • .next_to()
  • .align_to()
  • .to_edge()
  • .to_corner()
  • VGroup(...) for grouping and arrangement

Good layout discipline saves time during revision.

Colors

  • RED
  • BLUE
  • GREEN
  • YELLOW
  • WHITE
  • ORANGE
  • PURPLE
  • TEAL

Use consistent semantic coloring across the scene.

Color Strategy

  • Use one color for inputs, another for transformations, and another for outputs.
  • Keep background contrast in mind.
  • Avoid using too many unrelated colors in the same explanation.
  • Use WHITE or light tones for neutral reference geometry.

Camera Control

python
from manim import *

class CameraExample(Scene):
    def construct(self):
        plane = NumberPlane()
        self.add(plane)
        self.play(self.camera.frame.animate.scale(0.5))
        self.wait()
  • Camera animation helps when zooming into local detail.
  • Use it sparingly so viewers do not lose context.
  • Zooming is most useful for dense graphs, local geometry, or multi-part explanations.

Output

  • Manim writes rendered video outputs under media/videos/.
  • Preview renders and partial intermediates also appear under the media/ tree.
  • Treat the Python source as canonical and the rendered MP4 as generated output.
  • Final videos are typically MP4 files.

Timing

  • Use self.wait() to hold the frame.
  • Adjust run_time= on animation calls to tune pacing.
  • Move slower for conceptual reveals and faster for purely decorative transitions.
  • Educational clarity depends on timing as much as layout.

Narration-Oriented Design

  • Write scenes as if a narrator is speaking over them.
  • Introduce one concept at a time.
  • Avoid changing too many objects in the same beat.
  • Keep equations readable on screen long enough to be processed.
  • Use transforms to show continuity rather than replacing everything at once.

Reusable Pattern for Explainers

  1. Title the concept.
  2. Show the initial objects.
  3. Animate the transformation or derivation.
  4. Highlight the result.
  5. Pause.

This pattern works for algorithms, math derivations, and data stories.

Computer Science Use Cases

  • Sorting algorithm visualizations
  • Graph traversal animations
  • Finite-state machines
  • Distributed systems message flow
  • Complexity intuition with plotted growth curves
  • Data structure operations such as stack and queue updates

Data Visualization Use Cases

  • Plot a function or data series
  • Animate parameter changes
  • Show area under a curve
  • Reveal axes, labels, and legend in stages
  • Compare two functions through Transform

Three-Dimensional Scenes

python
from manim import *

class My3DScene(ThreeDScene):
    def construct(self):
        axes = ThreeDAxes()
        sphere = Sphere(radius=1, color=BLUE)
        self.set_camera_orientation(phi=75 * DEGREES, theta=30 * DEGREES)
        self.play(Create(axes), FadeIn(sphere))
        self.begin_ambient_camera_rotation(rate=0.2)
        self.wait(3)
  • Use ThreeDScene for surfaces, vectors, and spatial intuition.
  • Keep 3D scenes simple unless the extra dimension is genuinely explanatory.
  • Camera motion in 3D should support understanding, not distract from it.

Debugging Tips

  • Start with -pql for fast feedback.
  • Build the scene incrementally.
  • Comment out complex sections while debugging layout.
  • If math fails to render, verify the TeX environment and formula syntax.
  • Use small prototype scenes before composing a long final animation.

Production Guidance

  • Keep one concept per scene unless continuity demands otherwise.
  • Name classes clearly so render commands stay obvious.
  • Break long videos into scene modules and concatenate later if needed.
  • Use higher quality only after content and timing are stable.

Summary

  • Install with pip install manim.
  • Build scenes with class MyScene(Scene): def construct(self):.
  • Use objects like Circle, Square, Text, MathTex, Axes, NumberPlane, and Arrow.
  • Animate with Create, Write, Transform, FadeIn, FadeOut, and MoveAlongPath.
  • Render with manim -pql scene.py MyScene and switch to -pqh for higher quality.
  • Use MathTex(r"\\frac{d}{dx} x^2 = 2x") for math and Axes().plot(...) for graphs.
  • Use self.camera.frame.animate.scale(0.5) when zooming improves comprehension.
  • Expect MP4 output under media/videos/.

常见问题

Manim Video AI 技能有什么作用?

使用 Manim Community 创建数学动画和讲解视频,通过代码制作数学、计算机科学概念和数据可视化动画。

为什么在 TypingMind 中使用 Manim Video?

因为您只需安装一次,就能搭配任何模型使用。Manim Video 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Manim Video?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/AlexAI-MCP/hermes-CCC/tree/master/skills/manim-video。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Manim Video?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Manim Video 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Manim Video 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Manim Video AI 技能免费吗?

是的。AlexAI-MCP 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇