Process study references (YouTube, PDFs, websites), create Obsidian vault notes under 'Things to Study', add Google Tasks, and consolidate learnings back into the vault. Use when: user says 'let's study this' / 'add this to study' with links, OR 'consolidate' / 'I finished studying' to merge learnings into existing vault notes.
Two modes: Study (add new references) and Consolidate (merge learnings back into vault).
Triggered by: /study-this <urls>, "let's study this", "add this to study"
Parse all URLs. Classify each as:
youtube.com/watch, youtu.be/, or youtube.com/playlist.pdf or user mentions it's a PDFYouTube videos:
python3 "$HOME/.claude/skills/youtube-playlist/youtube_metadata.py" "<url>" --format json
YouTube playlists:
python3 "$HOME/.claude/skills/youtube-playlist/youtube_playlist.py" "<url>" --format json --limit 20
Websites: Use the WebFetch tool to get the page content and extract title + description.
PDFs: If it's a local file, use the Read tool. If it's a remote URL, use WebFetch to download it, then read.
From the collected metadata, determine a concise, descriptive topic name. If references cover different topics, create separate notes.
IMPORTANT: Before creating the study note, search the vault for existing notes about this topic.
/Applications/Obsidian.app/Contents/MacOS/Obsidian search vault="Leo Knowledge" query="<topic keywords>" 2>&1 | grep -v "^2026\|installer\|Loading\|asar"
Also search with Grep for broader matches:
Grep: pattern="<topic keyword>" path="/Users/leonardoaraujo/work/leo-obsidian-vault" glob="*.md"
Exclude results from Things to Study/ folder — we want knowledge notes, not other study notes.
If existing notes are found:
[[Note Name]]Write to: /Users/leonardoaraujo/work/leo-obsidian-vault/Things to Study/<Topic Name>.md
Before creating, check if a note on the same topic already exists in Things to Study/. If it does, append the new references instead of creating a duplicate.
Template:
---