Install
openclaw skills install video-notes把任何 YouTube 视频变成一份精美的结构化笔记。自动提取字幕、识别关键时刻并截图、生成核心论点总结和 SVG 图表,输出带侧边导航和全文搜索的单文件 HTML 文档。适用于技术演讲、公开课、播客、产品发布会等场景。This skill should be used when a user provides a YouTube URL and asks to take notes, summarize a video, or create a study document from video content.
openclaw skills install video-notesConvert any YouTube video into a polished, self-contained HTML notes document with:
python3 ~/.claude/skills/video-notes/scripts/extract_subtitles.py <youtube_url> --output /tmp/subs.json
en. Pass --lang zh or --lang zh-Hans for Chinese.Output: [{"t": "mm:ss", "s": 123.4, "text": "..."}]
Run the keyframe script. It scores subtitles using heuristics, selects the most important moments (spaced ≥60s apart), downloads only those short video sections, and extracts frames:
python3 ~/.claude/skills/video-notes/scripts/capture_keyframes.py \
<youtube_url> /tmp/subs.json \
--max-frames 8 \
--output-json /tmp/keyframes.json
Output: [{"t": "mm:ss", "s": 123.4, "text": "...", "score": 0.5, "image_b64": "..."}]
{{KEYFRAMES_JSON}} to [] in the template — the gallery section will auto-hide.--max-frames is 8; reduce for faster generation or increase for longer videos.Read the subtitle text to understand:
Use assets/note-template.html as the foundation. Fill in each placeholder:
| Placeholder | Content |
|---|---|
{{TITLE}} | Page <title> tag |
{{SIDEBAR_NAV}} | .sb-logo block + .nav-a links for each section |
{{SUMMARY}} | Executive summary HTML (see below) |
{{MAIN_CONTENT}} | Hero block + all note sections |
{{SUBTITLE_SEC_NUM}} | Section number for the subtitle panel (e.g. 6) |
{{VIDEO_URL}} | Full YouTube URL |
{{VIDEO_ID}} | YouTube video ID (e.g. dQw4w9WgXcQ) |
{{SUBTITLE_JSON}} | Full JSON array from Step 1 |
{{KEYFRAMES_JSON}} | Full JSON array from Step 2 (or [] if skipped) |
{{SECTION_IDS}} | JS array: ['hero','summary','s1','s2','keyframes','subtitles'] |
{{SUMMARY}})Write ~300 words of HTML paragraphs inside <p> tags. Structure:
Use <strong style="color:var(--text)"> for emphasis. Keep line-height loose (line-height:2).
Always include a hero section (id="hero") with:
.hero-badge: speaker name + event/source<h1>: video title (concise, impactful).hero-sub: speaker · role · note type.chips: 3–5 topic tags.hero-quote: the single most memorable quoteFor each major topic area, create <div class="sec" id="sN"> with:
.sec-hd header (numbered .sec-n + .sec-title).card, .g2/.g3 grids, .diag SVG diagrams, .tl timelines, .ql quotes.diag blocks)Generate SVGs for comparisons, progressions, and architectures:
Background: rgba(R,G,B,.4) fill + rgba(R,G,B,.3) stroke
Labels: fill="#fff" font-weight="700"; sublabels: fill="#aaa" font-size="9-10"
Arrows: › in <text>, colored to match the row
Connectors: stroke="rgba(255,255,255,.12)" stroke-dasharray="3,3"
Color palette:
#5b8dee → #9b7cf4 | Green flow: #3ecf8e → #5b8deergba(244,63,94,.4) | Mid: rgba(240,169,70,.4) | New: rgba(62,207,142,.4)<div class="sb-logo">
<div class="sb-logo-icon">🎬</div>
<h2>{{Short Title}}</h2>
<p>{{Speaker}} · {{Source}}</p>
</div>
<a class="nav-a active" href="#hero"><span class="nav-icon">🏠</span>概览</a>
<a class="nav-a" href="#summary"><span class="nav-icon">✦</span>核心总结</a>
<!-- one .nav-a per note section -->
<div class="nav-sep"></div>
<a class="nav-a" href="#keyframes"><span class="nav-icon">🎬</span>关键画面</a>
<a class="nav-a" href="#subtitles"><span class="nav-icon">📄</span>原始字幕</a>
open /tmp/<video-id>-notes.html # macOS
Tell the user: save path, subtitle entry count, keyframe count, sections covered.