Youtube content

From gquthier/CLAWG · View interactive version

Youtube content is an AI agent skill from the GitHub repository gquthier/CLAWG. Fetch YouTube video transcripts and transform them into structured content (chapters, summaries, threads, blog posts).

How to use this skill

Skill file

YouTube Content Tool

Extract transcripts from YouTube videos and convert them into useful formats.

Setup

pip install youtube-transcript-api

Helper script

This skill includes fetch_transcript.py — use it to fetch transcripts quickly:

# JSON output with metadata
python3 SKILL_DIR/scripts/fetch_transcript.py "https://youtube.com/watch?v=VIDEO_ID"

# With timestamps
python3 SKILL_DIR/scripts/fetch_transcript.py "https://youtube.com/watch?v=VIDEO_ID" --timestamps

# Plain text output (good for piping into further processing)
python3 SKILL_DIR/scripts/fetch_transcript.py "https://youtube.com/watch?v=VIDEO_ID" --text-only

# Specific language with fallback
python3 SKILL_DIR/scripts/fetch_transcript.py "https://youtube.com/watch?v=VIDEO_ID" --language tr,en

# Timestamped plain text
python3 SKILL_DIR/scripts/fetch_transcript.py "https://youtube.com/watch?v=VIDEO_ID" --text-only --timestamps

SKILL_DIR is the directory containing this SKILL.md file.

URL formats supported

The script accepts any of these formats (or a raw 11-character video ID):

Output formats

After fetching the transcript, format it based on what the user asks for:

Workflow

  1. Fetch the transcript using the helper script
  2. If the transcript is very long (>50K chars), summarize in chunks
  3. Transform into the requested output format using your own reasoning

Error handling

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.