本文へスキップ
Skillpedia
一般的なプログラミング75k · #2673

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がスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/manimce-best-practices/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“正方形が円に変わり、短いテキストのラベルが付くManimのシーンを書いてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

このスキルは、シーン、図形、アニメーション、LaTeXの数式、色、配置のルールと例を示します。これにより、エージェントは動作するManimのコードを書けます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

How to use

Read individual rule files for detailed explanations and code examples:

Core Concepts

Creation & Transformation

Text & Math

Styling & Appearance

Positioning & Layout

Coordinate Systems & Graphing

Animation Control

Configuration & CLI

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:

Scene Templates

Copy and modify these templates to start new projects:

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

  1. 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

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル