Skip to content

lispking/video-skills / manim-video-teacher

manim-video-teacher

Verified

专注于使用 Manim 生成动画教学视频的完整流程与专业建议。适用于用户用中文提示语让 Codex 生成脚本、分镜、Manim 代码、渲染命令或优化教学视频质量与节奏,并输出 MP4。

FileKindSize
SKILL.mdskill md5.1 KB
scripts/concat_audio.pyscript1.3 KB
scripts/make_cover.pyscript1.5 KB
scripts/mux_av.pyscript1019 B
scripts/pipeline.pyscript3.8 KB
scripts/tts_generate.pyscript2.4 KB

scripts/make_cover.py

View on GitHub
#!/usr/bin/env python3
import argparse
from PIL import Image, ImageDraw, ImageFont


def parse_args() -> argparse.Namespace:
    parser = argparse.ArgumentParser(
        description="Generate a simple 16:9 cover image",
    )
    parser.add_argument("--title", required=True)
    parser.add_argument("--subtitle", default="")
    parser.add_argument("--output", default="cover.png")
    parser.add_argument("--width", type=int, default=1920)
    parser.add_argument("--height", type=int, default=1080)
    parser.add_argument("--bg", default="#0E1A2B")
    parser.add_argument("--accent", default="#FFB000")
    parser.add_argument("--font", help="Optional path to a .ttf font")
    return parser.parse_args()


def load_font(path: str | None, size: int) -> ImageFont.ImageFont:
    if path:
        return ImageFont.truetype(path, size)
    return ImageFont.load_default()


def main() -> None:
    args = parse_args()
    img = Image.new("RGB", (args.width, args.height), args.bg)
    draw = ImageDraw.Draw(img)

    title_font = load_font(args.font, 96)
    subtitle_font = load_font(args.font, 48)

    margin_x = int(args.width * 0.1)
    margin_y = int(args.height * 0.18)

    draw.text((margin_x, margin_y), args.title, font=title_font, fill="white")
    if args.subtitle:
        draw.text(
            (margin_x, margin_y + 130),
            args.subtitle,
            font=subtitle_font,
            fill=args.accent,
        )

    img.save(args.output)


if __name__ == "__main__":
    main()
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall