Skip to content

anbeime/skill / skills/ancient-rap-battle/ancient-rap-battle

ancient-rap-battle

Verified

古人说唱 Battle:把两个历史上的死对头(诸葛亮 vs 司马懿、岳飞 vs 秦桧……)做成一条 AI 说唱对决短视频,从选题写词(每句配史料注释)、Suno 做歌、Midjourney 定妆、即梦 Seedance 2.5 网页版分段生成(提示词按半句精确到 0.01 秒写歌词,口型一次对好),到自动逐镜头对齐、拼接、字幕包装、封面和发布文案一条龙。用户说"做一期 A vs B"、"古人说唱 battle"、"历史人物说唱"、"rap battle 视频",或者要改已有一期的歌词、镜头、字幕、封面时使用。Make an AI rap-battle short between two historical rivals, end to end, with Seedance 2.5 (or MiniMax H3).

scripts/setup_check.py

View on GitHub
# -*- coding: utf-8 -*-
"""Step 0 - check the local environment and print exactly what is missing.

usage: python scripts/setup_check.py
"""
import importlib.util
import shutil
import subprocess
import sys

NEED = {"numpy": "numpy", "scipy": "scipy", "soundfile": "soundfile", "PIL": "pillow",
        "demucs": "demucs", "faster_whisper": "faster-whisper", "pypinyin": "pypinyin"}
OPTIONAL = {"mediapipe": "mediapipe", "cv2": "opencv-python"}


def main():
    ok = True
    print("python", sys.version.split()[0], "->", sys.executable)
    if sys.version_info < (3, 9):
        print("  ! Python 3.9+ needed")
        ok = False
    ff = shutil.which("ffmpeg")
    if not ff:
        print("  ! ffmpeg not found (Windows: winget install Gyan.FFmpeg | macOS: brew install ffmpeg)")
        ok = False
    else:
        filters = subprocess.run(["ffmpeg", "-hide_banner", "-filters"], capture_output=True, text=True).stdout
        print("ffmpeg", "OK" if "rubberband" in filters else "found, but WITHOUT rubberband (voice pitch shift needs a full build)")
        if "rubberband" not in filters:
            ok = False
    missing = [pip for mod, pip in NEED.items() if importlib.util.find_spec(mod) is None]
    opt = [pip for mod, pip in OPTIONAL.items() if importlib.util.find_spec(mod) is None]
    if missing:
        ok = False
        print("  ! missing:", " ".join(missing))
        print("    install: %s -m pip install %s   (about 1-2 GB with PyTorch)" % (sys.executable, " ".join(missing)))
    if opt:
        print("  optional (lipcheck.py only):", " ".join(opt))
    print("\nREADY" if ok else "\nNOT READY - fix the lines marked !")
    print("Also needed: a Suno account, a Midjourney account, and a Jimeng (即梦) membership for Seedance 2.5.")
    print("Optional H3 path: a MiniMax API key in the env var MINIMAX_API_KEY.")


if __name__ == "__main__":
    main()
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall