LaTeX 提示词和 Manim 动画的专家,擅长 Manim 动画设计,用于创建数学动画。
这个技能帮助你:
- 将简单的动画描述转化为详细的 Manim 动画提示词
- 生成可运行的 Manim 社区版代码
- 自动检查代码中的 LaTeX 格式化和语法问题
- 添加插件市场:
/plugin marketplace add Shirleyshenda/manim-math-plugin- 安装插件:
/plugin install manim-math@Shirleyshenda/manim-math-plugin如果你想手动安装为 Skill:
git clone https://github.com/Shirleyshenda/manim-math-plugin.git ~/.claude/skills/manim-math安装后,在 Claude Code 中直接请求创建 Manim 动画:
帮我创建一个展示二次函数图像的 Manim 动画
技能会自动:
- 生成详细的动画提示词
- 编写 Manim 代码
- 检查代码正确性
- 提供运行指令
用户:帮我制作一个展示勾股定理的动画
助手:好的
[等待用户确认需求后]
第一步:生成详细提示词
- 场景 1:显示直角三角形,标注三边 a, b, c
- 场景 2:在三边外侧分别构建正方形
- 场景 3:通过面积变换展示 a² + b² = c²
...
第二步:生成 Manim 代码
from manim import *
class PythagoreanTheorem(Scene):
def construct(self):
# 创建直角三角形
...
第三步:检查代码
✓ LaTeX 格式化正确
✓ 所有变量已定义
✓ 语法检查通过
运行指令:manim -pql script.py PythagoreanTheorem
- Manim Community Edition
- LaTeX 环境(用于渲染数学公式)
安装 Manim:
pip install manim/plugin update manim-mathMIT License
欢迎提交 Issue 和 Pull Request!