💡 Summary
This skill generates teaching videos using Manim with optional narration and cover generation.
🎯 Target Audience
🤖 AI Roast: “Turning prompts into videos? Sounds like a great way to procrastinate on actual teaching.”
The skill may execute shell commands and access the filesystem, posing risks like arbitrary code execution. Ensure proper validation of inputs and restrict permissions for scripts.
Manim Video Teacher Skill
A skill package and helper scripts to turn prompts into Manim teaching videos with optional narration, muxing, and cover generation.
Quick start
- Create a virtual environment and install deps:
python -m venv .venv source .venv/bin/activate pip install -r requirements.txt
- Render your Manim scene to a video file (example):
manim -qh your_scene.py YourScene
- Run the pipeline (TTS + mux + cover):
python manim-video-teacher/scripts/pipeline.py \ --video media/videos/your_scene/1080p60/YourScene.mp4 \ --tts-file examples/narration.txt \ --cover-title "Quadratic Vertex Form" \ --cover-subtitle "Learn in 60s" \ --output output.mp4
Scripts
manim-video-teacher/scripts/tts_generate.py: Generate narration audio with edge-tts.manim-video-teacher/scripts/concat_audio.py: Concatenate multiple audio segments.manim-video-teacher/scripts/mux_av.py: Mux audio and video into a single MP4.manim-video-teacher/scripts/make_cover.py: Generate a simple 16:9 cover image.manim-video-teacher/scripts/pipeline.py: One-click pipeline for TTS, mux, and cover.
Requirements
- Python 3.10+
- ffmpeg (installed and on PATH)
Skill installation
Install the skill by placing the folder under your skills directory:
./scripts/install_skill.sh --dest /path/to/skills
If you are using Codex and have $CODEX_HOME set, you can omit --dest:
./scripts/install_skill.sh
Reinstall with overwrite:
./scripts/install_skill.sh --dest /path/to/skills --force
Preview the resolved install target:
./scripts/install_skill.sh --list
Install into a local ./skills folder in the current directory:
./scripts/install_skill.sh --here
If a ./skills folder already exists, the installer will use it by default.
Examples
examples/narration.txt: Sample narration text.examples/scene.py: Minimal Manim scene to render.examples/tts_list.txt: Example ffmpeg concat list file.
Demo script
Run an end-to-end demo (venv + deps + render + pipeline):
./scripts/run_demo.sh
Clean generated files:
./scripts/clean.sh
Skill package
The skill lives in manim-video-teacher/ with its SKILL.md and scripts.
License
Apache License 2.0. See LICENSE.
Pros
- Automates video creation process
- Supports TTS for narration
- Easy to install and use
- Integrates well with Manim
Cons
- Requires Python and ffmpeg installation
- Limited to Manim capabilities
- Might need manual adjustments for complex scenes
- Dependency on external scripts
Related Skills
pytorch
S“It's the Swiss Army knife of deep learning, but good luck figuring out which of the 47 installation methods is the one that won't break your system.”
agno
S“It promises to be the Kubernetes for agents, but let's see if developers have the patience to learn yet another orchestration layer.”
nuxt-skills
S“It's essentially a well-organized cheat sheet that turns your AI assistant into a Nuxt framework parrot.”
Disclaimer: This content is sourced from GitHub open source projects for display and rating purposes only.
Copyright belongs to the original author lispking.
