Przejdź do treści
Biblioteka skilli
Marketing i treści · Konwersja i formaty

transcribe-youtube

/transcribe-youtube

Pobiera filmy z YouTube, transkrybuje je przez yt-dlp i Whisper i zapisuje tekst w pliku markdown.

Repozytorium
skills ↗
Licencja
MIT
Ostatnia zmiana repozytorium
01.09.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
4
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
3
Przestarzałość

Brak sygnałów. Repozytorium zmienione 01.09.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Pobiera filmy z YouTube, transkrybuje je przez yt-dlp i Whisper i zapisuje tekst w pliku markdown.

Wyzwalacze z opisu

transcribe youtubetranscribe this videoyoutube transcript
Oryginalny opis (EN)

Download and transcribe YouTube videos to a markdown file using yt-dlp and Whisper. Use when user says "transcribe youtube", "transcribe this video", "youtube transcript", or provides a YouTube URL to transcribe.

Jak działa

  1. Prerequisites
  2. Configuration
  3. Workflow
  4. Error Handling
  5. Notes
Sekcje z nagłówków SKILL.md, w oryginale · 124 linii, 503 słów
Podgląd SKILL.md
---
name: transcribe-youtube
disable-model-invocation: true
description: Download and transcribe YouTube videos to a markdown file using yt-dlp and Whisper. Use when user says "transcribe youtube", "transcribe this video", "youtube transcript", or provides a YouTube URL to transcribe.
---

# YouTube Video Transcription

**Invocation:** `/transcribe-youtube [URL]` in Claude Code; `$transcribe-youtube [URL]` in Codex.

Download a YouTube video's audio and transcribe it to a markdown file using [yt-dlp](https://github.com/yt-dlp/yt-dlp) and [Whisper](https://github.com/openai/whisper).

## Prerequisites

Both tools must be on the user's PATH:

```bash
command -v yt-dlp >/dev/null || echo "Install yt-dlp: https://github.com/yt-dlp/yt-dlp#installation"
command -v whisper >/dev/null || echo "Install Whisper: pip install -U openai-whisper"
```

If either is missing, tell the user how to install it and stop.

## Configuration

- **Output directory:** defaults to `./transcripts/` (relative to the current working directory). If the user names a different destination, use that instead.
- **Whisper model:** `medium` — a good balance of speed and accuracy. Offer `small` for faster/rougher or `large` for slower/more accurate if the user asks.

## Workflow

### Step 1: Set up a temp workspace and output directory

```bash
WORKDIR=$(mktemp -d)
OUTDIR="${OUTDIR:-./transcripts}"   # override by exporting OUTDIR or passing a path
mkdir -p "$OUTDIR"
```

### Step 2: Extract Video Metadata

```bash
yt-dlp --print "%(id)s|||%(title)s|||%(channel)s|||%(upload_date)s" "<URL>"
```

Parse the `|||`-delimited output into:
- `id` — YouTube video ID
- `title` — Video title
- `channel` — Channel name
- `upload_date` — Upload date (YYYYMMDD)

### Step 3: Download Audio

Audio-only is much faster than downloading the full video:

```bash
yt-dlp -x --audio-format mp3 -o "$WORKDIR/%(id)s.%(ext)s" "<URL>"
```

This creates `$WORKDIR/<video-id>.mp3`.

### Step 4: Transcribe with Whisper

```bash
whisper "$WORKDIR/<video-id>.mp3" --model medium --language en --output_format txt --output_dir "$WORKDIR"
```

This creates `$WORKDIR/<video-id>.txt` with the transcript.

### Step 5: Build the Markdown File

Read the transcript and format it with frontmatter:

```markdown
---
title: "<Video Title>"
source: <YouTube URL>
channel: <Channel Name>
date: <YYYY-MM-DD>
transcribed: <today's date>
type: transcript
---

# <Video Title>

**Source:** [<Channel Name>](<YouTube URL>)
**Date:** <YYYY-MM-DD>

---

<Transcript content>
```

### Step 6: Save the Transcript

Sanitize the title for use as a filename:
- Replace `/`, `\`, `:`, `*`, `?`, `"`, `<`, `>`, `|` with `-`
- Limit to 100 characters
- Trim whitespace

Save to: `$OUTDIR/<Sanitized-Title>.md`

### Step 7: Clean Up

Remove the temp workspace (keeps the final markdown, discards the audio and raw transcript):

```bash
trash "$WORKDIR"   # or: rm -rf "$WORKDIR" if trash is unavailable
```

### Step 8: Confirm

Tell the user:
- Where the file was saved (`$OUTDIR/<filename>.md`)
- Video title and channel
- Approximate transcript length

## Error Handling

- **Invalid URL:** If yt-dlp fails to recognize the URL, tell the user it's not a valid YouTube URL.
- **Download failed:** The video may be private, age-restricted, or region-locked — report which if yt-dlp says so.
- **Whisper fails:** Check that the audio file exists in `$WORKDIR` and is non-empty.
- **Long videos:** Warn that videos over ~1 hour may take several minutes to transcribe with the `medium` model.

## Notes

- Only the audio is downloaded, to save time and bandwidth.
- The `medium` Whisper model is the default for good accuracy without excessive processing time.
- All intermediate files live in a `mktemp` workspace, so nothing is left behind outside the output directory.
Pliki w paczce (4)
  • CHANGELOG.md 1 KB
  • README.md 1 KB
  • SKILL.md 4 KB
  • package.json 1 KB

Wersje

W bazie nie ma innych skilli o nazwie transcribe-youtube.

Migawka bazy z 28.10.2026 · wersja paczki 63a03c5da005 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100youtube-transcribe
    Transkrybuje film YouTube: pobiera audio przez yt-dlp, konwertuje ffmpeg, transkrybuje przez whisper CLI i zapisuje pełną transkrypcję oraz streszczenie w dzisiejszym pliku pamięci.
  • 100youtube-transcription
    Transkrybuje filmy YouTube na tekst przez OpenAI Whisper i yt-dlp, w tym napisy SRT i VTT i wyciąganie mowy z adresów URL.
  • 100yt-transcribe
    Pobiera ścieżkę audio z filmów YouTube przez yt-dlp i zamienia ją na tekst przez ElevenLabs Scribe.
  • 100youtube-transcript
    Pobiera transkrypcje filmów YouTube po podaniu adresu URL, także napisy do transkrypcji.
  • 100transcribing-youtube
    Pobiera i transkrybuje filmy z YouTube do czystych dokumentów Markdown z nagłówkami rozdziałów, używając yt-dlp, usuwając artefakty auto-napisów i tworząc wersję z czasami oraz wersję samego tekstu.
  • 100youtube-downloader
    Pobiera transkrypcje filmów YouTube po podaniu adresu URL, także napisy do transkrypcji.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.