summaryrefslogtreecommitdiff
path: root/youtube-transcript/SKILL.md
blob: e8625efd5d85924a754b11ed5b338dc8fbd6efc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
name: youtube-transcript
description: Fetch and save YouTube video transcripts as clean plain text. Use when the user provides a YouTube URL or wants to extract a transcript from a podcast, interview, or talk.
---

# YouTube Transcript

Extracts clean, deduplicated plain-text transcripts from YouTube videos using `yt-dlp`.

## Dependencies

- `yt-dlp` (must be installed and on PATH)
- Python 3.10+

## Usage

Fetch a transcript and save it to a file:

```bash
python3 .pi/skills/youtube-transcript/yt_transcript.py "YOUTUBE_URL" -o transcript.txt
```

Options:
- `-l LANG` — subtitle language code (default: `en`)
- `-o FILE` — output file path (default: stdout)

## Workflow

When the user gives a YouTube URL:

1. **Fetch transcript** — Run the script, optionally with `-o <path>` to save to a file.
2. **Review** — Read through the transcript and summarise the key points if the user asks.