视频摘要器
youtube-anycaption-summarizer
by arthurli202602-commits
Turn YouTube videos into dependable markdown transcripts and polished summaries — even when caption coverage is messy. This skill works with manual closed captions (CC), auto-generated subtitles, or no usable subtitles at all by using subtitle-first extraction with local Whisper fallback. Supports private/restricted videos via cookies, batch processing, transcript cleanup, language backfill, source-language or user-selected summary language, and end-to-end completion reporting. Ideal for YouTube research, technical walkthroughs, founder content, tutorials, private/internal uploads, and batch video summarization workflows.
安装
claude skill add --url https://github.com/openclaw/skills文档
YouTube AnyCaption Summarizer
The YouTube summarizer that still works when captions are broken, missing, or inconsistent.
Outputs: raw markdown transcript + polished markdown summary + session-ready result block.
Unlike caption-only tools, this skill still works when subtitles are missing by falling back to local Whisper transcription.
Generate a raw transcript markdown file and a polished summary markdown file from one or more YouTube videos.
This skill is self-contained. It does not require any other YouTube summarizer skill or prior workflow context.
Best for
- founder videos, operator walkthroughs, and technical explainers
- long tutorial videos that need transcript + implementation summary
- private/internal YouTube uploads that may require cookies
- mixed-caption environments where some videos have CC, some only have auto-captions, and some have no usable subtitles
- batch research workflows where many YouTube links need standardized markdown outputs
- users who want reliable markdown artifacts, not just a one-off chat summary
Why choose this over simpler transcript skills?
- manual CC first, auto-captions second, local Whisper fallback last
- keeps working when subtitle coverage is weak or missing
- supports private/restricted YouTube videos via cookies
- returns durable markdown artifacts, not just chat text
- supports batch processing and session-ready completion reporting
Install dependencies
For a fresh macOS setup, new users should be able to copy-paste the following exactly:
brew install yt-dlp ffmpeg whisper-cpp
MODELS_DIR="$HOME/.openclaw/workspace"
MODEL_PATH="$MODELS_DIR/ggml-medium.bin"
mkdir -p "$MODELS_DIR"
if [ ! -f "$MODEL_PATH" ]; then
curl -L https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-medium.bin \
-o "$MODEL_PATH.part" && mv "$MODEL_PATH.part" "$MODEL_PATH"
else
echo "Model already exists at $MODEL_PATH — leaving it unchanged."
fi
command -v python3 yt-dlp ffmpeg whisper-cli
ls -lh "$MODEL_PATH"
What this does:
- installs
yt-dlp,ffmpeg, andwhisper-cli - creates the default models directory used by this skill if it does not already exist:
~/.openclaw/workspace - downloads the default Whisper model file only if it is missing
- avoids touching
~/.openclaw/openclaw.jsonor any other OpenClaw config file - does not delete, replace, or overwrite other files in your existing workspace folder
- verifies that the required binaries and model file are present
If you want to store models elsewhere, pass --models-dir /path/to/models when running the workflow.
Example requests
- “Summarize this YouTube video into markdown.”
- “Generate a transcript and polished summary for this YouTube link.”
- “Process this private YouTube video with my browser cookies.”
- “Batch summarize these YouTube links and give me transcript + summary files.”
- “Use subtitles when available, otherwise transcribe locally.”
- “Create a Chinese summary from this English YouTube video.”
Quick start
Single video
python3 scripts/run_youtube_workflow.py "https://www.youtube.com/watch?v=VIDEO_ID"
This creates a dedicated per-video folder, writes the raw transcript markdown, creates the summary placeholder markdown, and prints JSON describing the outputs plus the exact follow-up commands/prompts needed to finish the summary step.
Important: the workflow script alone is not the finished deliverable. The current OpenClaw session must still:
- infer/backfill the language if the workflow left it as
unknown - overwrite the placeholder
Summary.mdwith a real polished summary - run
scripts/complete_youtube_summary.pyto validate/finalize the result
Force simplified Chinese summary
python3 scripts/run_youtube_workflow.py "https://www.youtube.com/watch?v=VIDEO_ID" \
--summary-language zh-CN
Restricted video with cookies
python3 scripts/run_youtube_workflow.py "https://www.youtube.com/watch?v=VIDEO_ID" \
--cookies /path/to/cookies.txt
or
python3 scripts/run_youtube_workflow.py "https://www.youtube.com/watch?v=VIDEO_ID" \
--cookies-from-browser chrome
Batch / queue mode
See references/batch-input-format.md.
python3 scripts/run_youtube_workflow.py --batch-file ./youtube-urls.txt
Why this skill stands out
This skill is designed to keep working across the messy reality of YouTube:
- if a video has manual closed captions (CC), use them first
- if it only has auto-generated subtitles, use those next
- if it has no usable subtitles at all, fall back to local Whisper transcription
That makes it materially more reliable than caption-only workflows. It works well for caption-rich videos, caption-poor videos, and private/internal uploads where subtitle coverage is inconsistent.
Core capabilities:
- fetch YouTube metadata first and derive safe output paths
- support single-video mode and batch / queue mode
- handle manual CC, auto-generated subtitles, or no subtitles via subtitle-first extraction with local Whisper fallback
- support restricted/private videos via cookies or browser-cookie extraction
- normalize noisy transcript text before summarization
- create a placeholder summary file, overwrite it with the final summary, and finalize end-to-end timing
- clean up only known intermediates created by the workflow unless explicitly told otherwise
What this skill produces
For each video, create exactly one dedicated output folder containing these final deliverables:
SANITIZED_VIDEO_NAME_transcript_raw.mdSANITIZED_VIDEO_NAME_Summary.md
By default, delete only the known intermediate media, subtitle, and WAV files created by the workflow. Do not wipe unrelated files that may already exist in the per-video folder.
Required local tools
Verify these tools exist before running the workflow:
yt-dlpffmpegwhisper-clipython3
The workflow also requires a supported Whisper ggml model file in the configured models directory.
Bundled scripts
Use these scripts directly:
scripts/run_youtube_workflow.py— main deterministic workflow for metadata, download/subtitles, transcription, placeholder summary creation, cleanup, and workflow metadata emissionscripts/backfill_detected_language.py— updatetranscript_raw.md,Summary.md, and workflow metadata after the current session LLM decides the major transcript languagescripts/complete_youtube_summary.py— validate thatSummary.mdis no longer a placeholder, optionally backfill language, compute the final end-to-end timing report for one item, and emit a session-ready result blockscripts/normalize_transcript_text.py— convert raw timestamped transcript text into cleaner summary input without modifying the raw transcript filescripts/finalize_youtube_summary.py— lower-level timing helper used by the completion flowscripts/prepare_video_paths.py— derive sanitized folder and output file paths from a title and video ID
Useful references:
references/detailed-workflow.md— full operational workflow, completion rules, batch guidance, naming rules, and practical notesreferences/summary-template.md— required structure and writing rules for the finalSummary.mdreferences/session-output-template.md— required user-facing output format to return to the current OpenClaw session after completionreferences/batch-input-format.md— input format for queue / batch processing
Defaults
- Default parent output folder:
~/Downloads - Default whisper model:
ggml-medium - Supported whisper models:
ggml-base,ggml-small,ggml-medium - Default media mode: audio-only
- Default transcript language: auto-detect if transcription is needed
- Default summary language:
source - Raw transcript keeps timestamps
Public workflow overview
At a high level, the skill does this:
- fetch metadata first and create safe output paths
- try manual subtitles, then auto-captions, then local Whisper fallback
- write
SANITIZED_VIDEO_NAME_transcript_raw.md - create
SANITIZED_VIDEO_NAME_Summary.mdas a placeholder - have the current OpenClaw session overwrite the placeholder with a real summary
- run
scripts/complete_youtube_summary.pyto validate completion, backfill language if needed, and emit a session-ready result block
What counts as completion
For a normal end-to-end request, completion means all of the following are true:
- the workflow script succeeded
- if language was initially
unknown, the language was backfilled into both markdown files - the placeholder summary file was overwritten with a real summary
scripts/complete_youtube_summary.pywas run successfully- the user received the resulting output paths and timing/result status
If the workflow script succeeded but the summary/completion step did not happen yet, describe the state as partial/in-progress rather than complete.
When to read the deeper references
Read these as needed:
references/detailed-workflow.mdwhen you need the full implementation contract, batch guidance, naming rules, cleanup rules, timing flow, or debugging detailsreferences/summary-template.mdbefore writing the final polishedSummary.mdreferences/session-output-template.mdbefore returning the final user-facing per-video result blockreferences/batch-input-format.mdwhen handling--batch-file
Practical public promise
This skill is optimized for dependable end-to-end output, not just quick transcript extraction:
- raw transcript markdown
- polished summary markdown
- session-ready completion report
相关 Skills
文档共著
by anthropics
围绕文档、提案、技术规格、决策记录等写作任务,按上下文收集、结构迭代、读者测试三步协作共创,减少信息遗漏,写出更清晰、经得起他人阅读的内容。
✎ 写文档、方案或技术规格时容易思路散、信息漏,它用结构化共著流程帮你高效传递上下文、反复打磨内容,还能从读者视角做验证。
内部沟通
by anthropics
按公司常用模板和语气快速起草内部沟通内容,覆盖 3P 更新、状态报告、领导汇报、项目进展、事故复盘、FAQ 与 newsletter,适合需要统一格式的团队沟通场景。
✎ 按公司偏好的模板快速产出状态汇报、领导更新和 FAQ,既省去反复改稿,也让内部沟通更统一、更专业。
平面设计
by anthropics
先生成视觉哲学,再落地成原创海报、艺术画面或其他静态设计,输出 .png/.pdf,强调构图、色彩与空间表达,适合需要高完成度视觉成品的场景。
✎ 做海报、插画或静态视觉稿时,用它能快速产出兼顾美感与版式的PNG/PDF成品,原创设计更省心,也更适合规避版权风险。
相关 MCP 服务
by nirholas
免费的加密新闻聚合 MCP,汇集 Bitcoin、Ethereum、DeFi、Solana 与 altcoins 资讯源。
by ProfessionalWiki
让 Large Language Model 客户端无缝连接任意 MediaWiki 站点,可创建、更新、搜索页面,并通过 OAuth 2.0 安全管理内容。
by transloadit
借助 86+ 个云端 media processing robots,处理视频、音频、图像和文档。