返回 Skill 列表
extension
分类: 内容与媒体无需 API Key

summarize-youtube

使用本地summarize CLI结合yt-dlp + whisper.cpp转录和默认的Claude CLI进行高质量YouTube视频摘要。当需要对YouTube视频进行摘要、从音频(而非字幕)中提取文本,或运行可重复的最佳质量视频摘要工作流程时,请使用此方法。

person作者: jakexiaohubgithub

Summarize YouTube

Overview

Produce best-quality summaries from YouTube videos by transcribing audio with yt-dlp + whisper.cpp and summarizing with Claude CLI. This avoids caption-track errors and keeps the workflow reproducible.

Quick Start

  1. Run the script with the video URL: scripts/summarize_youtube.sh "<youtube-url>"
  2. The summary is printed to stdout. Redirect to a file if needed: scripts/summarize_youtube.sh "<url>" > /tmp/summary.md

Workflow

  1. Confirm a whisper.cpp GGML model exists at: ~/.cache/whisper.cpp/ggml-medium.en.bin
  2. If missing, download it with: nix shell nixpkgs#whisper-cpp --command whisper-cpp-download-ggml-model medium.en --output-dir ~/.cache/whisper.cpp
  3. Run scripts/summarize_youtube.sh to transcribe via yt-dlp + whisper.cpp and summarize with Claude.

Options

  • --cli <provider>: claude (default), codex, gemini
  • --length <preset>: short|medium|long|xl|xxl (default: xxl)
  • --model <id>: whisper.cpp model id (default: medium.en)
  • --timeout <duration> and --retries <count>: pass through to summarize
  • --extract: transcript only (no LLM summary)

Script

scripts/summarize_youtube.sh is the canonical entry point. Prefer it over hand-crafted commands so the workflow stays consistent.