repo-film

Installation
SKILL.md

repo-film:仓库的一段时间 → 一条短片

要支撑的决定:任何仓库的任何一段时间,能不能一行命令、不改场景代码就出一条能发的片子。 放弃条件:到 2026-12-15 为止,除 Keepline 和 Spellbook 两次验收外没有再用过;或者连续两个新仓库都得改 template/scene.html 才能出片。满足任一条就停用,把分支布局脚本并进 motion-stack 的示例。每做完一部,在下方“做过的片子”表里记一行。

用法

node <本 skill 目录>/scripts/make.mjs \
  --repo <仓库路径> --since "2026-11-01 20:00" --until "2026-11-02 06:00" \
  [--branch main] [--map auto|none|<地图 html>] [--config film.json] [--out <目录>] [--sheet-only]
  • 先加 --sheet-only 只出关键帧拼图(out/beats.png),自己看一遍再出片。
  • 成片在 <out>/out/<仓库名>-film.mp4,1920×1080、30fps,响度约 -14 LUFS。没有地图约 13 秒,有地图约 24 秒。
  • --out 默认是 ~/Videos/repo-film/<目录名>-<开始日期>,里面就是完整工程,可以直接改 scene.html 或 <out>/assets/film.js 再用 motion-stack 的 render.mjs 重渲。
  • 依赖:motion-stack skill(装在本 skill 旁边,或在 ~/.claude/skills、~/.codex/skills、~/.agents/skills 里,也可以用 MOTION_KIT 指向它的 kit/;第一次要在 kit/ 里 PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm install)、python3、ffmpeg。Tone.js 优先复用 motion-stack 示例的 node_modules,没有才 npm install。

流水线

Installs
3
GitHub Stars
303
First Seen
Nov 9, 2026