Bili Video Notes — Documentation skill for Claude Code
把B站视频转成不丢内容的结构化Markdown学习笔记:官方字幕/本地whisper双路转录、时间锚点覆盖校验、Mermaid配图、合集章节合并.
How to install Bili Video Notes
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open principlesF1rst/bili-video-notes and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Bili Video Notes does
把B站视频转成不丢内容的结构化Markdown学习笔记:官方字幕/本地whisper双路转录、时间锚点覆盖校验、Mermaid配图、合集章节合并。Agent Skill(Claude Code / Kimi Code等)
Alternatives in Documentation
- Create Release — Create a tagged GitHub release with structured release notes 238 ★
- Remotion Video — English 使用 Remotion 框架编程式创建视频的 Claude Code Skill 183 ★
- ThinkWiki — Install once, talk to your agent 32 ★
README
bili-video-notes
把 B 站视频转成**不丢内容**的结构化 Markdown 学习笔记的 Agent Skill(Claude Code / Kimi Code 等支持 SKILL.md 的 AI 编程助手均可使用)。
核心原则:**笔记是"重组 + 索引",不是"压缩"**——所有知识点、数据、结论、例子、代码都必须保留,只去掉寒暄和重复,并且有脚本做确定性校验,不是嘴上说说。
特点
- 双路转录:优先抓 B 站官方字幕(秒级);无字幕时自动降级本地 whisper 转写(faster-whisper,CPU 可跑,有 N 卡自动 CUDA 加速,语言自动检测)
- 防丢内容是机器校验:每章必须带时间锚点,校验脚本检查笔记是否覆盖整个视频时间轴 + 关键术语,不通过不交付
- Mermaid 配图:只看字幕语义生成(mindmap / flowchart / sequenceDiagram / erDiagram),每个节点连线必须能从字幕追溯,拒绝脑补
- 合集工程化:批量转写(断点续跑)→ 分集笔记 → 按
chapters.json合并章节 → 全量链接校验,分集与章节笔记双向跳转 - 零持续成本:全程本地免费,无 API key 依赖;音视频只做中转、用完即删,最终只留纯文本
- 有分寸的 UX:首次使用逐项征得同意后安装工具;之后零打扰;发链接≠转写,意图不明先确认
工作流程
flowchart TD
A["B站链接 / BV号"] --> B{"有官方字幕?"}
B -->|"有(需 cookie)"| C["抓官方字幕"]
B -->|"没有"| D["yt-dlp 下载音频"]
D --> E["faster-whisper 本地转写"]
C --> F["transcript.md 完整存档"]
E --> F
F --> G["AI 结构化重组 + Mermaid 配图"]
G --> H["notes.md"]
H --> I["check_coverage 时间/术语覆盖校验"]
I -->|"不通过"| G
I -->|"通过"| J{"合集?"}
J -->|"是"| K["merge_chapters 章节合并 + 链接校验"]
J -->|"否"| L["交付"]
K --> L
安装
前置:Python 3.10+、git。Windows 已完整实测;macOS/Linux 理论可行(路径已做兼容,未实测)。
- 把本仓库克隆到你的 Agent skills 目录(或任意位置):
git clone https://github.com/principlesF1rst/bili-video-notes.git - 让 Agent 读取
SKILL.md,或直接对它说:"帮我装好 bili-video-notes 这个 skill 的环境"。Agent 会先跑:
然后把缺失项和体积(yt-dlp ≈17MB、ffmpeg ≈190MB、faster-whisper ≈200MB、模型 ≈460MB,均可选/必选项分明)列给你,征得同意后逐项安装到python <仓库目录>/scripts/doctor.py<仓库目录>/tools/(已在 .gitignore 排除,不污染系统)。
使用
对 Agent 说即可,例如:
把这个视频转成笔记:https://www.bilibili.com/video/BVxxx把这套教程 P1 到 P88 全部整理成笔记(批量 + 章节合并)提取这个视频的字幕
合集产出结构:
<课程目录>/
├── 中间产物/ # 每集 transcript.md + notes.md
├── 笔记/ # 最终章节合并 md(含分集/转录跳转链接)
└── chapters.json # 章节划分配置(自己维护,可改粒度)
`chapters.json` 示例:
{
"series": "课程名",
"chapters": [
{ "name": "01-基础篇", "from": 1, "to": 26 },
{ "name": "02-进阶篇", "epi
Related Skills
Observational Memory
Local-first shared memory for Claude Code, Codex, OpenCode, Kimi, Grok, Cowork, and Hermes, with bounded obser
SlyTerm
A macOS terminal that floats over your game: click-through overlay, global hotkeys, Claude Code and Codex stat
Video Default
Provide a comprehensive scene-by-scene breakdown of this video. Organize the analysis into a Markdown table wi
Douyin Video Distiller
抖音视频蒸馏 Skill:链接 → 无水印下载 → NVIDIA Omni 原生视频理解 → 带时间戳证据的知识卡片,直接落盘 Markdown/Wiki
Docplay
랜덤 문서 정비 한 판 — 허접 후보를 뽑아 front matter/title/tags/links를 보완하는 훈련 (notes/org/markdown 모두)
Cut Release
Automate version bumping, changelog generation, tagging, and release notes
Related Agents
Rene
Acquire and clean YouTube or podcast transcripts into immutable Raw video notes with accurate metadata. Use on
Frame Reader
Reads one batch of video frames for SkipWatch and writes a notes JSON file with verbatim on-screen text. Dispa
Clip Editor
Edits ONE raw clip into a short vertical video with burned-in captions, a cover image and notes. Use one clip-