manimkit
Make Manim (Community Edition) animations with an AI agent: an agent skill, a searchable corpus of working scenes, a linter for the classic LLM mistakes, and a render-and-look loop.
pip install manimkit # plus `pip install manim` (or manimkit[render]) to render
manimkit check # manim / LaTeX / dvisvgm present? how to install what isn't
manimkit search "bar chart that re-sorts" # find a working example to adapt
manimkit show bar_chart_story # its full, runnable source
manimkit lint scene.py # ManimGL names, removed APIs, LaTeX traps
manimkit render scene.py MyScene # render -ql, sample frames, report
Then tell your agent "make me a 10-second manim animation explaining X". The shipped skill (manimkit/data/skills/manimkit/SKILL.md) teaches it the loop: plan a storyboard, retrieve examples, write the scene, lint, render, look at the contact sheet, fix, final render.
Why
LLMs write Manim well enough to be dangerous. The recurring failures are: ManimGL or pre-0.18 API names (ShowCreation, TextMobject, GraphScene, Code(code=...)), LaTeX strings that are not raw strings, text running off the frame, labels on top of each other, and videos of the wrong length. Published agent systems for this (TheoremExplainAgent, Manimator, PhysicsSolutionAgent) converge on the same remedies: plan first, retrieve working code, and feed rendered frames back to the model. manimkit packages those remedies as plain functions and a CLI, so any agent host can use them.
What is in the box
- A corpus of retrievable scenes: 21 original, curated full scenes (data stories, line and bar and pie charts, flowcharts, cycle and sequence diagrams, array algorithms, equation derivations, linear transformations, calculus with trackers, visual proofs, graph traversal, sorting, timelines, code walkthroughs, neural-net diagrams, vectors, camera zooms), the 27 scenes of the official ManimCE example gallery (MIT, with attribution), and every
.. manim::example in the docstrings of your installed manim (about 400 in manim 0.20), harvested on the fly so their API always matches the version you render with. Every shipped scene is rendered in the repo's verification run. - Search (
search_examples,manimkit search): dependency-free BM25 over titles, tags, descriptions and the Manim identifiers each scene uses, with--no-latexto keep only scenes that render without a TeX install.scorer=is the seam for embedding retrieval. - Lint (
lint_scene,manimkit lint): known wrong-API patterns with the right replacement, plus every capitalised name your file uses that the installed manim does not define, with close matches (LIGHT_BLUE-> did you meanLIGHT_BROWN,BLUE...). - Render and inspect (
render_check,manimkit render): renders in a child process, records a timeline of everyplay/waitwith start and end seconds, checks the layout after each (text cut off at the frame edge, text overlapping text, text crossed by a shape's outline, shapes partly off-screen), samples frames into one contact-sheet PNG, and reports errors as the exception plus the lines of your file that led to it, a hint for known failure signatures, and the LaTeX log's error lines for LaTeX failures.--no-latexmakes any use of LaTeX fail, for scenes that must run on a machine without TeX. Each timeline entry and layout warning names the line of your file that calledplay/wait(also from a loop or a helper). The cheap lint checks run in your process and the name check, which imports manim, runs in the render's child process.
Python API
from manimkit import search_examples, get_example, lint_scene, render_check
for hit in search_examples("move a dot along a curve", k=3, latex=False):
print(hit)
print(get_example("flowchart_process").runnable_code)
report = render_check("scene.py", "MyScene", quality="l", n_frames=6)
print(report) # duration, timeline, layout warnings, contact sheet path
report.ok, report.contact_sheet, report.layout_warnings
# a caller that renders for a film: exact fps and size (no resampling afterwards),
# and manim's per-play cache kept across renders while each render's frames stay apart
render_check(
"scene.py",
frame_rate=24,
pixel_size=(1080, 1920),
media_dir="~/.cache/my_app/manim_media",
out_dir="renders/shot_03",
)
Your own scenes can join the corpus: search_examples(query, sources=["curated", "api", "/path/to/my/scenes"]). A header docstring (first line = title, then tags:, scene:, source: lines, then a description) makes them rank well; without one the file name and code identifiers are still indexed.
Installing the agent skill
The skill ships inside the package (manimkit skill-path prints where). For Claude Code, link it into your skills folder:
ln -s "$(manimkit skill-path)/manimkit" ~/.claude/skills/manimkit
or, with the GitHub CLI, gh skill install thorwhalen/manimkit manimkit.
System requirements
Rendering needs the manim package (Cairo and Pango come with its wheels on macOS and Windows; on Linux install libcairo2-dev libpango1.0-dev first) and, for MathTex/Tex/numbered axes, a LaTeX distribution with dvisvgm. manimkit check tells you what is missing and the command to install it on your platform. See the Manim installation guide.
Licence
MIT. The gallery scenes in manimkit/data/examples/gallery/ are from the Manim Community documentation, MIT, (c) the Manim Community Developers; see the NOTICE.md there.
Metadata
Release files for manimkit 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| manimkit-0.0.5.tar.gz | 80.4 kB | Without provenance | Details for manimkit-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| manimkit-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for manimkit-0.0.5-py3-none-any.whl |
Total release size: 172.0 kB
Release files / manimkit-0.0.5.tar.gz
| Download URL | manimkit-0.0.5.tar.gz |
|---|---|
| Size | 80.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c4f699d8d77735c78220ddc5d202dc554e7a5373d46b90c2bd3bd8532a7aa8f5
|
|
BLAKE2b-256 checksum How to use checksums |
4317fbf9de71aaafdf0ff0a6369a081e2a02b1b2286bc8090dde89b86362f4fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / manimkit-0.0.5-py3-none-any.whl
| Download URL | manimkit-0.0.5-py3-none-any.whl |
|---|---|
| Size | 91.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2db60a2208d508a21f29be18cf6b995328d923d1936fa6543fc7deb5bd45c329
|
|
BLAKE2b-256 checksum How to use checksums |
f7227c0b6ec8e2423ae4758668db3443391c4450c89bb68debabecbe62473788
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for manimkit 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.