Generates Marp slides or short video clips from YouTube videos using subtitle-based keyframe selection and ffmpeg extraction. Useful for creating visual summaries, slide decks, or digest clips from video content.
Ships in presentation. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
YouTube URL → スライドデッキ or 切り抜き動画 の2モード。字幕 → LLMでキーフレーム選定 → ffmpegで抽出。
| Mode | Output | Use Case |
|---|---|---|
| slides | slides.md (Marp) + frames/*.png | 動画の要点スライド化(PKM・ブログ等) |
| clips | clips/*.mp4 (1-3分の切り抜き) | SNS・ダイジェスト用 |
| both | 両方 | スライドと切り抜きを同時生成 |
# Default output directory (PKMのInbox配下)
OUT="Projects/PKM/youtube-slides/<video-slug>"
mkdir -p "$OUT/frames" "$OUT/clips"
cd "$OUT"
# Video (prefer 720p to save space)
yt-dlp -f 'bv[height<=720]+ba/b[height<=720]' \
--merge-output-format mp4 \
--write-auto-subs --write-subs --sub-lang en,ja --sub-format vtt \
--convert-subs srt \
-o 'video.%(ext)s' "$URL"
--merge-output-format mp4 を付けること。付けないと結合結果が video.webm /
video.mkv になり、以降の video.mp4 決め打ちの ffmpeg コマンドが全部落ちる。
それでも拡張子が変わることがあるので、続くコマンドは実ファイルを拾って使う:
VIDEO=$(ls video.mp4 video.mkv video.webm 2>/dev/null | head -1)
Fields of interest after download:
$VIDEO(通常 video.mp4) — full videovideo.en.srt or video.ja.srt — transcriptRead the SRT. For a target of N slides (default 10-15):
[{ts: "00:01:23", title: "...", summary: "..."}]{start, end, title})Prompt pattern for transcript → keyframes:
This is a video transcript (SRT). Select {N} key moments that best represent the video.
For each, output:
- ts: timestamp in HH:MM:SS (pick a moment ~2-5s after speaker introduces topic to catch the explanation frame)
- title: ≤30 char headline
- summary: 1-2 sentence body
# Per keyframe (ts = HH:MM:SS)
ffmpeg -ss "$ts" -i "$VIDEO" -vframes 1 -q:v 2 "frames/$(printf '%02d' $i)-$slug.png"
Tips:
-ss before -i = fast seek (input-level)-q:v 2 = high quality JPEG (or omit for PNG)-vf scale=1280:-1# Lossless cut (fast, no re-encode)
ffmpeg -ss "$start" -to "$end" -i "$VIDEO" -c copy "clips/$(printf '%02d' $i)-$slug.mp4"
# Re-encode (needed if keyframe alignment matters, smooth cut)
ffmpeg -ss "$start" -to "$end" -i "$VIDEO" -c:v libx264 -c:a aac "clips/$(printf '%02d' $i)-$slug.mp4"
For SNS切り抜き: consider vertical crop
ffmpeg -i clip.mp4 -vf "crop=ih*9/16:ih,scale=1080:1920" -c:a copy vertical.mp4
See references/marp-template.md for the slide structure.
Key points:
Projects/PKM/youtube-slides/<slug>/slides.mdnpx @marp-team/marp-cli slides.md -o slides.pdfAdd to the original Readwise inbox file (Inbox/readwise-*.md) or Journal:
### Slide Deck
- slides
- Source: <video URL>
- Generated: YYYY-MM-DD
slides | clips | both (default: slides)en, ja, auto)Projects/PKM/youtube-slides/<slug>/--write-auto-subs (auto-generated). If still none, use whisper or ask user.--cookies-from-browser for members-only or age-restricted-ss before -i is fast but can be ~1s off on some codecs; use -ss after -i for frame-accurate at cost of speedSee references/commands.md for full yt-dlp / ffmpeg command cookbook.
Projects/PKM/youtube-slides/<slug>/ (submodule-safe location)Inbox/readwise-*.md fileWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
youtube, slide-generation, video-clips, ffmpeg, marp, keyframe-extraction
Other plugins' skills for the same job
3 skills in this plugin
/speech-slidesGenerate PPTX slide decks from a speech script or talking points — built for the 5-minute Monday morning speeches at Syla. Use when the user already has a script / 原稿 / メモ and asks to turn it into slides, a deck, or a presentation. Not for slides derived from a video — use youtube-slide-maker for that. Uses PptxGenJS directly (NOT html2pptx.js). Provides 4 slide template patterns, D3.js chart generation, and AI image integration./visual-explainer-setGitHub リポジトリや Web サービス・記事を一次情報から調べて、目次 + 10〜15 枚の図解中心 HTML 解説セット(解剖図鑑)を作る。確認は 1 回だけ(既定値つき)、主張には 観察/資料/推測 のタグ、版を固定して根拠リンクを付ける。Use when ユーザーが「〇〇を 10〜15 枚で図解して / 解剖図鑑を作って / アーキテクチャを図で解説して / どういうスタックか解説して / visual-explainer-set」と言ったとき。/presentation:youtube-slide-makerfrom presentation
npx claudepluginhub t4ku/agent-skills --plugin presentation