Capture a YouTube video transcript as raw material using `ytt`, storing it in the raw/ directory with minimal metadata for later distillation.
Use when you need the raw transcript (plus YouTube title/description) saved to raw/ for later distillation.
Keywords: youtube, transcript, captions, ytt, raw, capture
Required:
url (string): YouTube URL (e.g., https://www.youtube.com/watch?v=... or https://youtu.be/...)Optional:
title_hint (string): Used only if ytt can’t provide a title.This skill produces:
raw/ named YYYYMMDD-HHMMSSZ--<slug>.mddocs/distillation/distillation-pipeline.md:
title (best-effort)source_url (the provided URL)captured_atcapture_type: youtube_transcriptcapture_tool: yttraw_format: markdownstatus: captured (or capture_failed on failure)ytt (no summarization).ytt (this repo’s YouTube transcript utility)python3 (used by the bundled script for slugging and safe YAML string escaping)Capture directly (uses ytt fetch --no-copy internally):
./scripts/ytraw "<youtube_url>"
If the current environment can’t access YouTube (common in sandboxes), run ytt locally and pipe:
ytt fetch --no-copy "<youtube_url>" | ./scripts/ytraw
If you encounter persistent issues capturing a transcript within the sandbox (e.g., network restrictions or tool failures), inform the user they can run the script manually on their local machine.
The script ./scripts/ytraw is designed to extract the URL directly from the clipboard if no arguments are provided.
Instructions for the user:
./scripts/ytraw
Add to ~/.zshrc:
ytraw () { ytt fetch --no-copy "$1" | /path/to/repo/scripts/ytraw --from-stdin }
docs/distillation/distillation-pipeline.md