manimce-best-practices
できること
このスキルは、Manim Community Editionのアニメーションコードを正しく書く開発者を支援します。Pythonで数学や理科のアニメーションを作るプログラマー向けです。
使う場面
- ✓Manim Community Editionライブラリを使って、Pythonコードを書いているとき。
- ✓Manimで数式、テキスト、図形をアニメーションさせる必要があるとき。
- ✓Manimで3Dシーンを作っていて、正しいカメラとオブジェクトのルールが必要なとき。
スキルのリンク
https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/manimce-best-practices/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“正方形が円に変わり、短いテキストのラベルが付くManimのシーンを書いてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルは、シーン、図形、アニメーション、LaTeXの数式、色、配置のルールと例を示します。これにより、エージェントは動作するManimのコードを書けます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
How to use
Read individual rule files for detailed explanations and code examples:
Core Concepts
- rules/scenes.md - Scene structure, construct method, and scene types
- rules/mobjects.md - Mobject types, VMobject, Groups, and positioning
- rules/animations.md - Animation classes, playing animations, and timing
Creation & Transformation
- rules/creation-animations.md - Create, Write, FadeIn, DrawBorderThenFill
- rules/transform-animations.md - Transform, ReplacementTransform, morphing
- rules/animation-groups.md - AnimationGroup, LaggedStart, Succession
Text & Math
- rules/text.md - Text mobjects, fonts, and styling
- rules/latex.md - MathTex, Tex, LaTeX rendering, and coloring formulas
- rules/text-animations.md - Write, AddTextLetterByLetter, TypeWithCursor
Styling & Appearance
- rules/colors.md - Color constants, gradients, and color manipulation
- rules/styling.md - Fill, stroke, opacity, and visual properties
Positioning & Layout
- rules/positioning.md - move_to, next_to, align_to, shift methods
- rules/grouping.md - VGroup, Group, arrange, and layout patterns
Coordinate Systems & Graphing
- rules/axes.md - Axes, NumberPlane, coordinate systems
- rules/graphing.md - Plotting functions, parametric curves
- rules/3d.md - ThreeDScene, 3D axes, surfaces, camera orientation
Animation Control
- rules/timing.md - Rate functions, easing, run_time, lag_ratio
- rules/updaters.md - Updaters, ValueTracker, dynamic animations
- rules/camera.md - MovingCameraScene, zoom, pan, frame manipulation
Configuration & CLI
- rules/cli.md - Command-line interface, rendering options, quality flags
- rules/config.md - Configuration system, manim.cfg, settings
Shapes & Geometry
- rules/shapes.md - Circle, Square, Rectangle, Polygon, and geometric primitives
- rules/lines.md - Line, Arrow, Vector, DashedLine, and connectors
Working Examples
Complete, tested example files demonstrating common patterns:
- examples/basic_animations.py - Shape creation, text, lagged animations, path movement
- examples/math_visualization.py - LaTeX equations, color-coded math, derivations
- examples/updater_patterns.py - ValueTracker, dynamic animations, physics simulations
- examples/graph_plotting.py - Axes, functions, areas, Riemann sums, polar plots
- examples/3d_visualization.py - ThreeDScene, surfaces, 3D camera, parametric curves
Scene Templates
Copy and modify these templates to start new projects:
- templates/basic_scene.py - Standard 2D scene template
- templates/camera_scene.py - MovingCameraScene with zoom/pan
- templates/threed_scene.py - 3D scene with surfaces and camera rotation
Quick Reference
Basic Scene Structure
from manim import *
class MyScene(Scene):
def construct(self):
# Create mobjects
circle = Circle()
# Add to scene (static)
self.add(circle)
# Or animate
self.play(Create(circle))
# Wait
self.wait(1)
Render Command
# Basic render with preview
manim -pql scene.py MyScene
# Quality flags: -ql (low), -qm (medium), -qh (high), -qk (4k)
manim -pqh scene.py MyScene
Key Differences from 3b1b/ManimGL
| Feature | Manim Community | 3b1b/ManimGL |
|---|---|---|
| Import | from manim import * |
from manimlib import * |
| CLI | manim |
manimgl |
| Math text | MathTex(r"\pi") |
Tex(R"\pi") |
| Scene | Scene |
InteractiveScene |
| Package | manim (PyPI) |
manimgl (PyPI) |
Jupyter Notebook Support
Use the %%manim cell magic:
%%manim -qm MyScene
class MyScene(Scene):
def construct(self):
self.play(Create(Circle()))
Common Pitfalls to Avoid
- Version confusion
よくある質問
Manim Community Editionとは何ですか?
数学や理科のアニメーションを作るための、コミュニティが保守しているPythonライブラリです。
数式にも対応していますか?
はい。MathTexを使うLaTeXの数式と、数式の一部に色を付ける方法を扱います。
3Dにも対応していますか?
はい。3Dシーンとカメラの制御を扱います。
詳細
作者による元の説明
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).
repo: calesthio/OpenMontage
人気
- GitHubのスター
- 75k
- ランキング
- #2673
- ライセンス
- AGPL-3.0
- 更新日
- 2026/10/28
コメント
- …
このリポジトリの他のスキル
3d-asset-generation
75kシーンに使う3Dオブジェクトの作り方を、カタログ、テキストや画像から3Dへのツール、最終的な組み立てのための Blender の中から選ぶよう、エージェントを支援します。
acestep
75k動画用の背景音楽、曲、ジングル、ステムを、オープンな ACE-Step の音楽生成ツールを使って作るよう、エージェントを支援します。
agents
75kElevenLabs を使って、顧客対応のボットやインタラクティブな音声キャラクターなど、音声のAIアシスタントを作ります。
ai-video-gen
75kテキストの説明や参考画像から、いくつかの動画生成サービスの中から選んで、AI の動画クリップを生成するよう、エージェントを支援します。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。