Vid2note — Communication skill for Claude Code
把 YouTube 链接转成带时间戳的 Markdown 笔记和中文摘要,写入 Obsidian.
How to install Vid2note
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open HeartY1ng/vid2note and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Vid2note does
把 YouTube 链接转成带时间戳的 Markdown 笔记和中文摘要,写入 Obsidian。Claude Code skill。
Alternatives in Communication
- YouTube Shorts Research: Claude SEO — YouTube Shorts Research: Claude SEO skill 5k ★
- YouTube Clipper Skill — Download videos, generate semantic chapters, clip segments, translate subtitles to bilingual format, and burn 1.6k ★
- Qiaomu Anything To Notebooklm — Claude Skill: Multi-source content processor for NotebookLM 1.4k ★
README
vid2note
把 YouTube 链接变成一篇能直接放进 Obsidian 的中文笔记。
YouTube 链接 → yt-dlp 抓官方字幕 → 带时间戳 Markdown → 中文凝练 → 写入 Obsidian
输出的笔记结构:
---
title: "How memories form and how we lose them"
source: https://www.youtube.com/watch?v=...
channel: "TED-Ed"
duration: "4m20s"
published: 2015-09-24
processed: 2026-09-02
subtitle: "en (official)"
tags: [video-note]
---
## 核心观点
1. **一句话观点** —— 展开
2. ...
3. ...
## 关键细节
- 具体的数字、人名、方法步骤 `[01:14]`
## 可执行建议
- 动词开头,今天就能动手做的一步
---
## 带时间戳全文
**[00:36](https://www.youtube.com/watch?v=...&t=36s)** 正文……
全文每段的时间戳都是可点的跳转链接,读到某一条能直接回到视频对应位置。
安装
需要 [yt-dlp](https://github.com/yt-dlp/yt-dlp):
brew install yt-dlp # macOS;其他平台用 pipx install yt-dlp
作为 Claude Code skill 安装(仓库本身就是 skill 目录):
git clone https://github.com/HeartY1ng/vid2note ~/.claude/skills/vid2note
配置你的 Obsidian 库 —— 脚本能直接读出 Obsidian 自己的库列表,不用手动找路径:
python3 ~/.claude/skills/vid2note/scripts/vid2note.py --list-vaults
按提示把库路径写进 `~/.config/vid2note/config.json`(放在仓库外,`git pull` 不会冲突, 真实路径也不会误提交)。
用法
在 Claude Code 里,直接给链接就行:
把这个视频转成笔记 https://www.youtube.com/watch?v=xxxx
摘要由当前会话生成,不需要额外的 API key 或登录。
也可以直接跑脚本:
python3 ~/.claude/skills/vid2note/scripts/vid2note.py <链接>
| 参数 | 作用 |
|---|---|
--dry-run |
打到 stdout,不碰知识库 |
--lang en |
强制指定字幕语言(报错时会列出可用代码) |
--summarizer none |
只出字幕全文,摘要留占位符 |
--vault <路径> / --subfolder <名> |
临时改写入位置 |
--list-vaults |
列出 Obsidian 的库 |
--open |
写完直接在 Obsidian 里打开 |
--cookies FILE |
Netscape cookies.txt,仅用于年龄限制/会员视频(见下方警告) |
配置也可以用环境变量:`VID2NOTE_VAULT`(库路径)、`VID2NOTE_CONFIG`(配置文件位置)。
一些实现上的取舍
**自动字幕的滚动重复行会被去重。** YouTube 的自动字幕把每一行在连续 cue 里重复一遍来做 滚动效果,直接拼接会得到一份结巴的双倍文本。解析器用一个滑窗做去重,并剥掉 `` 内联 时间标签;HTML 实体先反转义再剥标签,否则字幕里写成 `<b>` 的内容会变成真标记漏进笔记。
**选轨优先原声语言。** 顺序是「视频原声 → `sub_langs` 列表 → 官方轨优先于自动轨」。 转写比翻译忠实,而摘要反正都出中文,少一次翻译损耗 —— 一个英文视频同时有官方 en 轨和 社区 zh-CN 轨时,取 en。yt-dlp 的机翻变体(`en-zh-Hans` 这类)和 `live_chat` 轨会被忽略。
**⚠️ 默认不给 YouTu
Related Skills
TikTok Hooks
Save TikTok opening hooks and first frames to Markdown or Obsidian with Claude
Claude Defuddle
Claude Code skill: extract clean notes from any web page or YouTube video into your Obsidian vault
Wise Hive
Long-term memory and an agent team for Claude on Windows: a brain folder every chat reads, Obsidian vault, A b
YouTube To Obsidian Notes
Claude Code skill that turns YouTube videos & playlists into deep Obsidian study notes - original explanation,
Download YouTube Transcript
Download YouTube workout video, extract transcript, analyze workout details, and create formatted markdown fil
Autopilot Qiaomu Anything To Notebooklm
Official Build & Verified Release Claude Skill: Multi-source content processor for NotebookLM. Supports WeChat
Related Agents
Vault Structure Agent
Analyze any Markdown or Obsidian vault structure using manifest-first methods. Use for first-pass structure de
Local Writer
Use for high-token repetitive writing (docstrings, inline code comments, Markdown documentation, CHANGELOG/REA
Editor And Vault Curator
Curator for the editor-and-vault lane in Obsidian Plugin Brain. Use when maintaining source coverage, workflow