Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By yuzhang-zhongv1.0.0MITIn 1 marketplace
No-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.
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
简体中文 · English (full README)
陪你聊刚刚看见的故事,不抢先讲下一幕。
一套根据 .srt / .vtt 字幕播放时间轴严格防剧透的 AI 陪看电影 Agent Skill 与 Python 同步脚本,边看边聊人物、台词和剧情,范围停在你已经看到的这一幕。
A spoiler-free movie watch-along Agent Skill and Python SRT/VTT subtitle helper that tracks your playback timestamp and keeps discussion strictly within the scenes you have already watched.
一句话速览 / Quick answer: 看悬疑片脸盲认不清谁是谁、看外语片没听懂台词典故,搜百科怕被瞬间剧透结局,问 AI 又怕它顺嘴说出后面的反转?
movie-companion(电影搭子)是一套零依赖 Python 标准库脚本与 AI 陪看 Skill:按你报出的播放时间点截断.srt/.vtt字幕(默认再留 8 秒缓冲),只把已经看过的台词送进上下文,从源头防剧透。 / Lost track of characters or missed an idiom mid-movie, and afraid to search online for spoilers?movie-companionis a zero-dependency Python standard-library helper and watch-along Agent Skill that slices.srt/.vttsubtitles up to your playback timestamp minus an 8-second safety lag, keeping future lines out of the prompt.
电影看到一半忘了人物关系、没听清一句对白,或者只是想吐槽一句「这一幕太窒息了」,都可以直接找它聊。电影搭子把当前播放位置和对应字幕片段交给 Codex,把讨论框在你已经看过的进度里,语气像一起窝在沙发上的观影朋友,也不需要你截屏。
| 你提供 | 脚本负责 | Skill 负责 |
|---|---|---|
合法取得的 .srt / .vtt 字幕 | 解析成带起止时间的字幕索引 | 依据已看字幕解释对白、人物和场景 |
| 开始或继续时屏幕上的时间点 | 按墙钟时间与播放倍速估算当前进度 | 每次回答前重新拉取安全上下文 |
| 可选描述字幕、SDH 或口述影像文本 | 合并对白轨与描述轨 | 缺少画面证据时直接说不知道 |
这是一个 Codex Skill 加 Python 辅助脚本,不是播放器插件。 它不会读取播放器内核进度,也不会控制视频播放。脚本默认把字幕截止点设在估算时间之前 8 秒以降低提前泄密风险,但无法做出绝对零剧透保证。
需要支持本地 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 / statusBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub yuzhang-zhong/moviecompanion.skill --plugin movie-companionPlugins from other owners that cover similar ground