Chuyển đến nội dung
Skillpedia
Lập trình chung75k · #2673

manimce-best-practices

Skill này làm gì

Skill này giúp lập trình viên viết code hoạt hình Manim Community Edition đúng cách. Nó dành cho lập trình viên làm hoạt hình toán học và khoa học bằng Python.

Khi nào nên dùng

  • ✓Khi bạn viết code Python với thư viện Manim Community Edition.
  • ✓Khi bạn cần làm hoạt hình cho công thức toán, văn bản hoặc hình khối với Manim.
  • ✓Khi bạn xây dựng một cảnh 3D trong Manim và cần quy tắc đúng về camera và đối tượng.

Liên kết skill

https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/manimce-best-practices/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/manimce-best-practices/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Viết một cảnh Manim cho thấy một hình vuông biến thành hình tròn với một nhãn văn bản ngắn.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill đưa ra quy tắc và ví dụ về cảnh, hình khối, hoạt hình, công thức LaTeX, màu sắc và định vị, để agent của bạn có thể viết code Manim chạy được.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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
Câu hỏi thường gặp

Manim Community Edition là gì?

Đó là thư viện Python do cộng đồng duy trì để làm hoạt hình toán học và khoa học.

Có bao quát công thức toán không?

Có. Skill bao quát công thức LaTeX bằng MathTex và cách tô màu từng phần của chúng.

Có bao quát 3D không?

Có. Skill bao quát cảnh 3D và điều khiển camera.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
75k
Vị trí xếp hạng
#2673
Giấy phép
AGPL-3.0
Cập nhật
28/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự