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★ 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:
- Extract content:
yt-dlp --skip-download --write-auto-sub --sub-lang en - Analyze topic: AI agents? Architecture? Market research?
- Propose location: Use folder-finder logic (algorithms/product_div/...)
- Get session ID:
python get_session_id.py --quiet - Generate doc: Thesis + Overview + Mermaid (TD+LR) + MECE sections
- 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):
- Thesis: One sentence previewing all MECE sections with specific outcome
- Overview paragraph: Introduces each major section
- Mermaid diagrams: BOTH Continuant (TD) and Occurrent (LR) for complex topics
- MECE sections: 3-7 numbered sections (1.0, 2.0, 3.0)
- Paragraph numbering: ¶1, ¶2, ¶3 within sections
- 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:
- Pattern: `https://youtu.be/VIDE
Установить youtube-to-knowledge-doc в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic