A toolbox of film styles made in code for Claude Code: 66 ready to use, and your own. Each style is a style prompt plus a demo film made entirely in code by Claude Opus 5.5, with no video model. By Lemomo. · 一套用代码做片的风格工具箱:66 种现成风格,也能做出你自己的
JavaScript agent-skillsai-agentsai-short-filmai-videoanimationcanvasclaudeclaude-codeclaude-code-pluginclaude-code-skillcreative-codingffmpegfilmmakingmotion-graphicsopus-5-5prompt-librarytext-to-speechthreejsvideo-productionwebgl
#!/bin/sh
# One command: THE LONG WAY HOME 绕远路回家 (Silkscreen Travel Poster demo), 50 s, 1920×1080, 24 fps
# sh demo/build.sh fonts if missing, voice if missing + speech check, subtitles, events, score, mix, picture, master,
# readcheck, poster and the gallery style frame
# VOICE=1 sh demo/build.sh regenerate the narration before the check
# WORKERS=3 sh demo/build.sh more render workers (default 2)
# sh demo/build.sh 28 36 only a span of the film (film seconds) → demo/out/film-28-36.mp4
# Needs the voice tier (Kokoro model, faster-whisper) and the FreePats, Karoryfer, VCSL and VSCO 2 CE sample libraries:
# sh plugin/skills/lemo-opuscar/scripts/setup.sh deps voice
# sh tools/fetch.sh instruments freepats; sh tools/fetch.sh instruments karoryfer; sh tools/fetch.sh instruments vcsl; sh tools/fetch.sh instruments vsco2ce
set -e
HERE=$(cd "$(dirname "$0")" && pwd) # .../styles/silkscreen-poster/demo
FILM=$(cd "$HERE/.." && pwd) # .../styles/silkscreen-poster
LIB=${LIB:-$(cd "$HERE/../../.." && pwd)} # library root
export LIB
[ -f "$LIB/core/render/video.mjs" ] || { echo "set LIB to the library folder"; exit 1; }
PY=${PY:-"$LIB/.venv/bin/python"}
NAME=silkscreen-poster
WORKERS=${WORKERS:-2}
A=${1:-0}; B=${2:-50}
cd "$LIB"
mkdir -p "$HERE/out/voice" "$HERE/stills"
sh "$HERE/tools/fetch_fonts.sh"
# narration: Kokoro bf_emma, one clip per line; every clip must pass the speech-to-text check
if [ "${VOICE:-0}" = "1" ] || [ ! -f "$HERE/out/voice/L10.wav" ]; then
"$PY" core/tts/tts.py "$HERE/voice/lines.json" "$HERE/out/voice"
fi
"$PY" core/tts/asr_check.py "$HERE/voice/lines.json" "$HERE/out/voice" --lang en
if [ "$A" != 0 ] || [ "$B" != 50 ]; then # a span, for checking a part of the film
"$PY" "$HERE/tools/cues.py" "$A" "$B" "$HERE/out/film-$A-$B.srt"
node core/render/events.mjs "$HERE"
"$PY" "$HERE/music/compose.py"
"$PY" "$HERE/mix.py" "$A" "$B"
node core/render/video.mjs "$HERE" --q "a=$A&b=$B" --fps 24 --workers "$WORKERS" --out "$HERE/out/video-$A-$B.mp4"
sh core/render/mux.sh "$HERE/out/video-$A-$B.mp4" "$HERE/out/mix.wav" "$HERE/out/film-$A-$B.mp4" 24 2
echo "done: $HERE/out/film-$A-$B.mp4"; exit 0
fi
"$PY" "$HERE/tools/cues.py" # voice/cues.json + ../silkscreen-poster.srt
node core/render/events.mjs "$HERE" # → events.json (film times)
"$PY" "$HERE/music/compose.py" # → music/score.wav
"$PY" "$HERE/mix.py" # → out/mix.wav
node core/render/video.mjs "$HERE" --fps 24 --workers "$WORKERS" --out "$HERE/out/video.mp4"
sh core/render/mux.sh "$HERE/out/video.mp4" "$HERE/out/mix.wav" "$FILM/$NAME.mp4" 24 2
# checks, poster and the gallery style frame (Beijing at night, without subtitles)
node core/render/readcheck.mjs "$HERE" > "$HERE/out/readcheck.txt" && echo "readcheck ok" || { grep -v '^OK' "$HERE/out/readcheck.txt" | tail -8; }
node core/render/still.mjs "$HERE" 44.5 --q nocap=1 --out "$HERE/out/poster" > /dev/null
ffmpeg -v error -y -i "$HERE/out/poster/t_44.5.jpg" -q:v 3 "$FILM/poster.jpg"
cp "$FILM/poster.jpg" "$HERE/stills/styleframe.jpg"
echo "done: $FILM/$NAME.mp4"