manimce-best-practices
Manim Community EditionというPythonアニメーションエンジンで、Scene構造やアニメーション、数式表現、3D、カメラ操作、スタイル設定、CLIコマンド利用など、より良い動画を作るための実践的な方法をアドバイスするSkill。
📜 元の英語説明(参考)
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).
🇯🇵 日本人クリエイター向け解説
Manim Community EditionというPythonアニメーションエンジンで、Scene構造やアニメーション、数式表現、3D、カメラ操作、スタイル設定、CLIコマンド利用など、より良い動画を作るための実践的な方法をアドバイスするSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o manimce-best-practices.zip https://jpskill.com/download/9659.zip && unzip -o manimce-best-practices.zip && rm manimce-best-practices.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/9659.zip -OutFile "$d\manimce-best-practices.zip"; Expand-Archive "$d\manimce-best-practices.zip" -DestinationPath $d -Force; ri "$d\manimce-best-practices.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
manimce-best-practices.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
manimce-best-practicesフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
使い方
詳細な説明とコード例については、個々のルールファイルをお読みください。
コアコンセプト
- rules/scenes.md - シーンの構造、construct メソッド、およびシーンの種類
- rules/mobjects.md - Mobject の種類、VMobject、Groups、およびポジショニング
- rules/animations.md - Animation クラス、アニメーションの再生、およびタイミング
作成と変換
- rules/creation-animations.md - Create, Write, FadeIn, DrawBorderThenFill
- rules/transform-animations.md - Transform, ReplacementTransform, モーフィング
- rules/animation-groups.md - AnimationGroup, LaggedStart, Succession
テキストと数式
- rules/text.md - Text mobject、フォント、およびスタイリング
- rules/latex.md - MathTex, Tex, LaTeX レンダリング、および数式の着色
- rules/text-animations.md - Write, AddTextLetterByLetter, TypeWithCursor
スタイリングと外観
- rules/colors.md - Color 定数、グラデーション、および色の操作
- rules/styling.md - Fill, stroke, opacity, および視覚的プロパティ
ポジショニングとレイアウト
- rules/positioning.md - move_to, next_to, align_to, shift メソッド
- rules/grouping.md - VGroup, Group, arrange, およびレイアウトパターン
座標系とグラフ作成
- rules/axes.md - Axes, NumberPlane, 座標系
- rules/graphing.md - 関数のプロット、パラメトリック曲線
- rules/3d.md - ThreeDScene, 3D 軸、サーフェス、カメラの向き
アニメーション制御
- rules/timing.md - Rate 関数、イージング、run_time, lag_ratio
- rules/updaters.md - Updaters, ValueTracker, 動的アニメーション
- rules/camera.md - MovingCameraScene, ズーム、パン、フレーム操作
設定と CLI
- rules/cli.md - コマンドラインインターフェース、レンダリングオプション、品質フラグ
- rules/config.md - 構成システム、manim.cfg、設定
図形とジオメトリ
- rules/shapes.md - Circle, Square, Rectangle, Polygon, および幾何学的プリミティブ
- rules/lines.md - Line, Arrow, Vector, DashedLine, およびコネクタ
動作例
一般的なパターンを示す、完全でテスト済みのサンプルファイル:
- examples/basic_animations.py - 図形の作成、テキスト、遅延アニメーション、パス移動
- examples/math_visualization.py - LaTeX 方程式、色分けされた数式、導出
- examples/updater_patterns.py - ValueTracker, 動的アニメーション、物理シミュレーション
- examples/graph_plotting.py - Axes, 関数、領域、リーマン和、極プロット
- examples/3d_visualization.py - ThreeDScene, サーフェス、3D カメラ、パラメトリック曲線
シーンテンプレート
これらのテンプレートをコピーして変更し、新しいプロジェクトを開始します。
- templates/basic_scene.py - 標準的な 2D シーンテンプレート
- templates/camera_scene.py - MovingCameraScene (ズーム/パン付き)
- templates/threed_scene.py - 3D シーン (サーフェスとカメラ回転付き)
クイックリファレンス
基本的なシーン構造
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)
レンダリングコマンド
# Basic render with preview
manim -pql scene.py MyScene
# Quality flags: -ql (low), -qm (medium), -qh (high), -qk (4k)
manim -pqh scene.py MyScene
3b1b/ManimGL との主な違い
| 機能 | Manim Community | 3b1b/ManimGL |
|---|---|---|
| インポート | from manim import * |
from manimlib import * |
| CLI | manim |
manimgl |
| 数式テキスト | MathTex(r"\pi") |
Tex(R"\pi") |
| シーン | Scene |
InteractiveScene |
| パッケージ | manim (PyPI) |
manimgl (PyPI) |
Jupyter Notebook のサポート
%%manim セルマジックを使用します。
%%manim -qm MyScene
class MyScene(Scene):
def construct(self):
self.play(Create(Circle()))
避けるべき一般的な落とし穴
- バージョンの混同 -
manim(Community) を使用していることを確認してください。manimgl(3b1b バージョン) ではありません。 - インポートの確認 -
from manim import *は ManimCE です。from manimlib import *は ManimGL です。 - 古いチュートリアル - ビデオチュートリアルは古い可能性があります。公式ドキュメントを優先してください。
- manimpango の問題 - テキストレンダリングが失敗する場合は、manimpango のインストール要件を確認してください。
- PATH の問題 (Windows) -
manimコマンドが見つからない場合は、python -m manimを使用するか、PATH を確認してください。
インストール
# Install Manim Community
pip install manim
# Check installation
manim checkhealth
便利なコマンド
manim -pql scene.py Scene # 低品質プレビュー (開発用)
manim -pqh scene.py Scene # 高品質プレビュー
manim --format gif scene.py # GIF として出力
manim checkhealth # インストール確認
manim plugins -l # プラグイン一覧 📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
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 - Ensure you're using
manim(Community), notmanimgl(3b1b version) - Check imports -
from manim import *is ManimCE;from manimlib import *is ManimGL - Outdated tutorials - Video tutorials may be outdated; prefer official documentation
- manimpango issues - If text rendering fails, check manimpango installation requirements
- PATH issues (Windows) - If
manimcommand not found, usepython -m manimor check PATH
Installation
# Install Manim Community
pip install manim
# Check installation
manim checkhealth
Useful Commands
manim -pql scene.py Scene # Preview low quality (development)
manim -pqh scene.py Scene # Preview high quality
manim --format gif scene.py # Output as GIF
manim checkhealth # Verify installation
manim plugins -l # List plugins