manim-agent
Skill19 starsChanged 5 months agoMITView on GitHub
Use when Codex needs to create, run, review, debug, or package Manim Agent workflows for mathematical or technical explainer videos: Manim animations, narrated teaching videos, formula or proof visualization, concept explainers, render review, DashScope CosyVoice TTS, FFmpeg muxing, or the local gqy20/manim-agent CLI/Web pipeline. Trigger on requests such as "做一个 Manim 动画", "生成讲解视频", "把这个公式可视化", "做数学动画", "带配音", "渲染成 mp4", "检查 Manim Agent", or "包装/维护这个 manim-agent skill".
- Reads credentials
In this repository19 other files it gives its agents.
- academic-writingSkill
- cognitive-profileSkill
- experiment-designSkill
- find-science-skillsSkill
- giiisp-paper-search-apisSkill
- giiisp-scientific-image-generationSkill
- mcp-criticagentSkill
- papercheckSkill
- practical-course-producerSkill
- research-baseline-builderSkill
- research-dreamSkill
- sci-employee-deep-researchSkill
- scientific-humanizationSkill
- scisparkSkill
- skill-criticagentSkill
- statistical-analysisSkill
- thesis-audit-reviewerSkill
- visual-deck-builderSkill
- world-threads-entrySkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 6 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
Use this skill to run the full Manim Agent production workflow, not a simplified one-off Manim snippet.
- Very specific: line 14
Run scripts/check_manim_agent_env.py before the first real render in a session, or whenever a failure suggests missing dependencies.
- Distinctive: line 15
Prefer the CLI path for direct video delivery.
- Distinctive: line 25
If Phase 1 fails before rendering, check the LLM provider first: expired plan, invalid model name, missing auth token, or incompatible …
- Very specific: line 32
Read references/repo-runtime.md for installation, environment variables, CLI/Web commands, ports, and local paths.
- Very specific: line 33
Read references/pipeline-workflow.md before running or explaining the end-to-end pipeline.
- Very specific: line 34
Read references/production-quality.md before generating or reviewing teaching animation content.
- Very specific: line 35
Read references/recovery-and-review.md when a render, structured output, TTS, mux, or frontend/backend task fails.
- Very specific: line 45
Use --no-tts for the first smoke run unless the user explicitly wants narration and a supported TTS key is available.
- Very specific: line 51
Default runs do not enable independent AI frame review.
- Distinctive: line 60
Never claim the video is ready until the MP4 path exists and is readable.
- Distinctive: line 61
If a dependency is missing, report the exact missing dependency and the next command to fix it.
- Distinctive: line 62
If a secret is provided in chat, use it only for the current run when necessary.
- Distinctive: line 63
If the user asks for a packaged skill or reusable workflow, update this skill rather than scattering notes into the repository.
- Very specific: line 64
Do not expose API keys, database URLs, R2 credentials, or .env values in responses.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Manim Agent
Use this skill to run the full Manim Agent production workflow, not a simplified one-off Manim snippet. Locate the local repository from MANIM_AGENT_HOME, the current workspace, or a user-provided path; if it is missing, clone https://github.com/gqy20/manim-agent.git before running project commands.
Operating Mode
- Clarify the requested output only when needed: topic, target duration, audience, voice/TTS need, quality level, and final file path.
- Run
scripts/check_manim_agent_env.pybefore the first real render in a session, or whenever a failure suggests missing dependencies. - Prefer the CLI path for direct video delivery. Use the Web path only when the user asks for task history, SSE progress, browser UI, or backend persistence.
- Preserve the repository pipeline: planning, implementation, render resolution/review, narration, TTS, and mux. Do not replace it with a handmade
scene.pyunless the user explicitly asks for a raw Manim scene. - Produce concrete artifacts: final MP4, generated scene/code location, logs or error summary, and the command used.
Required Interfaces
- A language-model interface is required for normal pipeline runs. Manim Agent uses Claude Agent SDK to plan scenes and write or fix Manim code; Manim and FFmpeg alone are not enough.
- A working local runtime is required before generation: Python 3.12+,
uv, Manim, FFmpeg,claude-agent-sdk, andhttpx. Runscripts/check_manim_agent_env.pyinstead of guessing. - The LLM interface uses Aliyun DashScope / Bailian Model Studio through the Claude Code compatible route (
https://dashscope.aliyuncs.com/apps/anthropic) and a supported model such asqwen3.7-plus. The OpenAI-compatible route is not the right path for this repository's SDK flow. - These qwen models run in hybrid/extended-thinking mode by default on this route; there is no separate "-nothinking" model id. The repo keeps thinking enabled by default for release-quality generations. Use
MANIM_AGENT_THINKING_MODE=disabledonly for low-latency smoke tests or when diagnosing provider latency. - If Phase 1 fails before rendering, check the LLM provider first: expired plan, invalid model name, missing auth token, or incompatible structured-output behavior.
- TTS is optional. Use
--no-ttsfor smoke tests. For narrated output, configure DashScope CosyVoice withDASHSCOPE_API_KEY; do not expect the skill package to contain an API key. Apply for a DashScope/Bailian API key athttps://help.aliyun.com/zh/model-studio/get-api-key. - The speech route is Aliyun DashScope CosyVoice. Default model:
cosyvoice-v3-flash; default voice:longanyang. The adapter downloads the returned audio URL and measures real duration before muxing. - Database and R2 credentials are not required for direct CLI MP4 generation; they are only needed for the Web/backend persistence path.
Reference Routing
- Read
references/repo-runtime.mdfor installation, environment variables, CLI/Web commands, ports, and local paths. - Read
references/pipeline-workflow.mdbefore running or explaining the end-to-end pipeline. - Read
references/production-quality.mdbefore generating or reviewing teaching animation content. - Read
references/recovery-and-review.mdwhen a render, structured output, TTS, mux, or frontend/backend task fails.
Default CLI Pattern
From the local manim-agent repository:
uv run python -m manim_agent "解释傅里叶变换的核心直觉" --target-duration 30 --quality high --no-tts -o outputs/fourier.mp4Use --no-tts for the first smoke run unless the user explicitly wants narration and a supported TTS key is available. For production narration:
uv run python -m manim_agent "证明勾股定理" --target-duration 30 --quality high --voice longanyang -o outputs/pythagorean.mp4Default runs do not enable independent AI frame review. Add --render-review only when the user asks for strict visual review, release QA, frame-by-frame inspection, or when a previous render showed overlap, cropping, unreadable math, or other visual risk:
uv run python -m manim_agent "证明勾股定理" --target-duration 30 --quality high --voice longanyang --render-review -o outputs/pythagorean_reviewed.mp4Delivery Rules
- State whether the run used no-TTS, TTS, render review, intro/outro, full render, or segment render.
- Never claim the video is ready until the MP4 path exists and is readable.
- If a dependency is missing, report the exact missing dependency and the next command to fix it.
- If a secret is provided in chat, use it only for the current run when necessary; do not write it into this skill, logs, examples, or user-visible output.
- If the user asks for a packaged skill or reusable workflow, update this skill rather than scattering notes into the repository.
- Do not expose API keys, database URLs, R2 credentials, or
.envvalues in responses.
Local Repo Awareness
The upstream repo already contains a production plugin at plugins/manim-production/ with scene planning, scene building, layout safety, narration sync, render review, and intro/outro rules. Reuse those rules when working inside the repo. This Codex skill is the stable outer entrypoint: it decides when to invoke the repo, which path to run, what checks to perform, and what evidence to return.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

