Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

youtube-to-knowledge-doc

БесплатноБез исполняемых скриптовНе проверен

Use when user provides YouTube URL and says "document this", "create notes", or "save this video". Automatically extracts transcript, determines folder…

teklinerот tekliner★ 17 звёзд на GitHub

Об этом скилле

YouTube to Knowledge Documentation Skill

Transform YouTube videos into structured Knowledge Framework documents with automatic transcript extraction, intelligent folder placement, and proper academic attribution.

When to Use This Skill

Use this skill when:

  • User wants to preserve video knowledge in repository structure
  • Converting external learning materials into internal knowledge base
  • Creating structured documentation from video content

Quick Start Checklist

When user provides YouTube URL:

[ ] 1. Extract transcript with yt-dlp (--write-auto-sub)
[ ] 2. Get video metadata (title, description, upload date)
[ ] 3. Analyze content and propose folder location
[ ] 4. Confirm folder with user before creating file
[ ] 5. Get Claude Code session ID (get_session_id.py --quiet)
[ ] 6. Generate Knowledge Framework doc (Thesis, Overview, Mermaid, MECE)
[ ] 7. Include clickable timestamp links ([timestamp MM:SS](URL?t=SECONDS))
[ ] 8. [OPTIONAL] Upload to Notion using youtube_to_notion.py library (NO temp scripts!)
[ ] 9. Add Author Checklist at end

5-Second Decision Tree:

  • User provides YouTube URL? → Extract transcript + analyze content
  • Content about AI agents? → algorithms/product_div/Ai Agent/
  • Content about market research? → algorithms/product_div/market_research/

Practical Workflow

BEFORE creating documentation:

  1. Extract content: yt-dlp --skip-download --write-auto-sub --sub-lang en
  2. Analyze topic: AI agents? Architecture? Market research?
  3. Propose location: Use folder-finder logic (algorithms/product_div/...)
  4. Get session ID: python get_session_id.py --quiet
  5. Generate doc: Thesis + Overview + Mermaid (TD+LR) + MECE sections
  6. Add citations: Clickable timestamp links with ?t=SECONDS format

Example rapid application:

User: "Document https://www.youtube.com/watch?v=ABC123 about AI agent security"

Agent thinks:
- Extract transcript using yt-dlp
- Topic: AI agent security patterns
- Folder: algorithms/product_div/Ai Agent/
- Check last file: 01_xxx.md → new: 02_ai_agent_security.md
- Get session ID: 21fc9ab9-7ffd-40b7
- Generate with clickable timestamps: [23:11](URL?t=1391)

How It Works

Step 1: Extract Video Content

¶1 Get transcript using yt-dlp:

# Download transcript
yt-dlp --skip-download --write-auto-sub --sub-lang en --sub-format vtt \
  --output "/tmp/video_title" "YOUTUBE_URL"

# Clean and deduplicate
cat /tmp/video_title.en.vtt | \
  grep -v "^WEBVTT" | grep -v "^Kind:" | grep -v "^Language:" | \
  grep -v "^[0-9][0-9]:" | grep -v "^$" | \
  sed 's/<[^>]*>//g' | \
  awk '!seen[$0]++' > /tmp/video_clean.txt

¶2 Extract video metadata:

yt-dlp --skip-download --print "%(title)s|%(description)s|%(upload_date)s" "YOUTUBE_URL"

Step 2: Analyze Content and Determine Folder

¶1 Use folder-finder skill logic:

  • AI Agent development/research → algorithms/product_div/Ai Agent/
  • Architecture/design patterns → algorithms/product_div/00_Architecture/
  • Market research/industry → algorithms/product_div/market_research/
  • Multi-agent systems → algorithms/product_div/Multi_agent_framework/
  • Personal learning/exploration → algorithms/A8_G&A_div/Daniel Personal/

¶2 Ask user for confirmation:

Based on video content about [TOPIC], I recommend:
**Folder:** algorithms/product_div/[subfolder]/
**Reasoning:** [Why this location fits]
**Filename:** NN_descriptive_title.md

Proceed? Or prefer different location?

Step 3: Generate Knowledge Framework Document

¶1 Required structure (MANDATORY):

  1. Thesis: One sentence previewing all MECE sections with specific outcome
  2. Overview paragraph: Introduces each major section
  3. Mermaid diagrams: BOTH Continuant (TD) and Occurrent (LR) for complex topics
  4. MECE sections: 3-7 numbered sections (1.0, 2.0, 3.0)
  5. Paragraph numbering: ¶1, ¶2, ¶3 within sections
  6. Ground truth attribution: Primary source in Overview + inline citations

¶2 Get Claude Code session ID:

# Get current session ID
SESSION_ID=$(~/project/claude_venv/bin/python \
  ~/project/data_sources/claude_code/get_session_id.py --quiet)

¶3 Attribution template for YouTube sources:

**Primary source:** [Video Creator] "[Video Title]" YouTube (YYYY-MM-DD) [URL]
**Transcript extracted:** yt-dlp (YYYY-MM-DD)
**Generated by:** Claude Code session `SESSION_ID` by Daniel Kravtsov (YYYY-MM-DD)

¶3 Inline timestamp citations (MUST be clickable links):

❌ WRONG - Not clickable:

**Source:** Video timestamp 23:11-23:32
**Quote:** "Direct quote from video" (timestamp 23:11)

✅ CORRECT - Clickable YouTube links:

**Source:** [Video timestamp 23:11-23:32](https://youtu.be/VIDEO_ID?t=1391)
**Quote:** "Direct quote from video" ([timestamp 23:11](https://youtu.be/VIDEO_ID?t=1391))

Timestamp URL Format:

Полный SKILL.md на GitHub

Установить youtube-to-knowledge-doc в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.mdSKILL_RELEASE_LOG.md

FAQ

Что делает скилл youtube-to-knowledge-doc?

Use when user provides YouTube URL and says "document this", "create notes", or "save this video". Automatically extracts transcript, determines folder placement, and generates Knowledge Framework documentation with MECE structure, Mermaid diagrams, and clickable timestamp citations.

Как установить скилл youtube-to-knowledge-doc?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл youtube-to-knowledge-doc запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить youtube-to-knowledge-doc с