From c8f6a754ee3ba6717c3ddb8a3a234d123393b1ba Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Wed, 28 Jan 2026 07:58:53 +0700 Subject: [PATCH] feat(opencode): skill to read YouTube transcript --- .../skills/youtube-transcript/SKILL.md | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .config/opencode/skills/youtube-transcript/SKILL.md diff --git a/.config/opencode/skills/youtube-transcript/SKILL.md b/.config/opencode/skills/youtube-transcript/SKILL.md new file mode 100644 index 0000000..9ddc938 --- /dev/null +++ b/.config/opencode/skills/youtube-transcript/SKILL.md @@ -0,0 +1,34 @@ +--- +name: youtube-transcript +description: Extract and read transcripts from YouTube videos +--- + +## What I do + +Extract transcripts/subtitles from YouTube videos for learning and analysis + +## How to use + +List available subtitles: + +```sh +yt-dlp --list-subs "VIDEO_URL" +``` + +Download manual subtitles (higher quality, less common): + +```sh +yt-dlp --write-subs --sub-lang en --sub-format vtt --skip-download -o "/tmp/%(id)s" "VIDEO_URL" +``` + +Fallback to auto-generated subtitles: + +```sh +yt-dlp --write-auto-subs --sub-lang en --sub-format vtt --skip-download -o "/tmp/%(id)s" "VIDEO_URL" +``` + +Read the transcript: + +- Output file: `/tmp/.en.vtt` +- VTT format has timestamps - parse or ignore them as needed +- Clean up `/tmp/.en.vtt` files -- 2.51.2