Install movie-companion as a Claude plugin.
npx claudepluginhub yuzhang-zhong/moviecompanion.skillNo-spoiler AI movie watch-along buddy Skill and Python subtitle timestamp-sync helper that explains characters and dialogue strictly up to your current playback position without spoiling upcoming scenes.
一个人看电影看到一半,突然脸盲认不出角色、没听清一句对白里的典故,或者单纯想吐槽一句「这一幕太窒息了」,去搜百科容易被瞬间剧透结局,直接问 AI 又怕它顺嘴聊出后面的反转。
电影搭子想做的,就是一个一起窝在沙发上的观影朋友。你把合法取得的 .srt 或 .vtt 字幕交给它,顺手报一下屏幕上的播放时间;每次聊天前,配套的本地脚本会根据经过的时间和播放倍速估算你看到哪儿了,并默认再往回留 8 秒缓冲,只把已经看过的台词递给模型,不需要你频繁截屏。
这是一个 Codex Skill 加 Python 辅助脚本,不是播放器插件。它不会读取播放器内部进度,也不会控制影片播放;8 秒缓冲能大幅降低提前泄密的风险,但无法做出绝对零剧透保证。如果字幕附带 SDH 或口述影像描述轨,它可以一并参考,缺画面证据时则会直接说不知道。
需要支持本地 Skills 的 Codex 以及 Python 3。辅助脚本只用 Python 标准库,无需额外装包。
在 Codex 中通过 Skill 安装器安装:
$skill-installer install the movie-companion skill from yuzhang-zhong/MovieCompanion.skill with path skills/movie-companion
安装完成后重启 Codex,用 $movie-companion 调用。
git clone https://github.com/yuzhang-zhong/MovieCompanion.skill.git movie-companion
cd movie-companion
bash scripts/install.sh
Windows PowerShell 用户在仓库根目录执行 powershell -File .\scripts\install.ps1。脚本默认安装到 ~/.codex/skills/movie-companion;Bash 脚本支持用第一个参数指定目标目录。
通过开放 Skills CLI 安装:
npx skills add yuzhang-zhong/MovieCompanion.skill --agent codex
若弹出列表,选中 movie-companion,安装后重启 Codex。
使用 $movie-companion。我有这部电影的对白字幕 /path/to/movie.srt。
开始观看 00:17:42。请只聊我已经看到的内容。
之后就可以直接问:「刚才那句什么意思?」「看到这儿,这俩人到底什么关系?」
| 实际操作 | 告诉搭子 |
|---|---|
| 暂停影片 | 暂停 |
| 继续、跳转、回看或改倍速 | 开始观看 00:28:10,并说明新的倍速 |
| 结束本次观看 | 关闭放映模式 |
网络缓冲、字幕版本对不上或忘了报暂停都会让估算时间偏掉。拿不准时直接照播放器上的时间重新同步即可。
仓库自带三条虚构对白,不需要电影文件、API key 或第三方依赖。在仓库根目录运行:
python skills/movie-companion/scripts/movie_sync.py index \
--subtitle skills/movie-companion/examples/sample-dialogue.srt \
--movie "Sample dialogue" --output .movie-companion/sample-index.json
python skills/movie-companion/scripts/movie_sync.py start \
--index .movie-companion/sample-index.json --at 00:00:20 \
--rate 0 --session .movie-companion/sample-session.json
python skills/movie-companion/scripts/movie_sync.py ask \
--session .movie-companion/sample-session.json --before 900
这里 --rate 0 只是为了让示例停在第 20 秒,正常观影默认倍速为 1。返回的核心字段如下:
{
"estimated_time": "00:00:20.000",
"safe_time": "00:00:12.000",
"future_window_seconds": 0.0,
"cues": [
{"start": 1.0, "end": 3.0, "text": "The door is locked.", "track": "dialogue"},
{"start": 8.0, "end": 10.0, "text": "I heard something upstairs.", "track": "dialogue"}
]
}
第 30 到 32 秒的第三条对白被挡在了安全上下文之外。日常陪看请始终用 ask;底层的 context --after 只用于调试,观影时不要开启未来窗口。
运行单元测试:
python -m unittest discover -s tests
文档与入口:
index / start / where / context / ask / pause / close / status本仓库采用 MIT License,版权所有 (c) 2026 Vincent Zhong,详见 LICENSE。
Yuzhang Zhong 维护的其他双语日常与媒体 Agent Skills:
7-day visitors to each marketplace page
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.
tasteskill 2.5.1: professional company websites at the figma.com and x.ai level, checked in a real browser.