Borrowing it
Nothing to install: this file belongs to ystreibel/logseq-wiki. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/ystreibel/logseq-wiki/main/.skills/ingest-youtube-history/SKILL.mdgit clone --depth 1 https://github.com/ystreibel/logseq-wikiWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/ystreibel/logseq-wiki/ingest-youtube-history)<a href="https://agentmods.dev/skills/ystreibel/logseq-wiki/ingest-youtube-history"><img src="https://agentmods.dev/badge/skills/ystreibel/logseq-wiki/ingest-youtube-history/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/ystreibel/logseq-wiki/ingest-youtube-history"><img src="https://agentmods.dev/badge/skills/ystreibel/logseq-wiki/ingest-youtube-history.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00109 | $0.01771 |
| Opus 5.5 | $0.00044 | $0.00708 |
| Sonnet 5.5 | $0.00022 | $0.00354 |
| Haiku 4.5 | $0.00011 | $0.00177 |
Grade A, and why
ingest-youtube-history scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
`curl -s http://localhost:9222/json/version`. If not, tell the user to run: How it starts
The opening of the file, as written. The whole thing — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Ingest YouTube History — Themed, time-windowed
REQUIRED: Invoke llm-wiki skill first for Logseq syntax and file format rules.
Why this exists
YouTube's watch history is not accessible via yt-dlp (private data, no API since 2016) and exported cookies expire within hours (rotation). This skill solves both:
- History is read by scraping
youtube.com/feed/historyin a logged-in Chrome debug instance - Transcripts are fetched by NotebookLM (
nlmCLI), which ingests YouTube server-side — no cookies, no rate-limit on subtitles
Parameters: --theme "<free text>" (e.g. tech, maker, UTMB, home studio; presets
tech/maker/all) and --period (default 7 days; jour/semaine/mois/année/Nj).
Prerequisites (verify, guide if missing)
- Config — read
~/.logseq-wiki/configforLOGSEQ_VAULT_PATH. - Debug Chrome with a logged-in YouTube session. Check the port responds:
curl -s http://localhost:9222/json/version. If not, tell the user to run:"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" \ --headless=new --remote-debugging-port=9222 "--remote-allow-origins=*" \ --window-size=1920,1080 \ --user-data-dir="$HOME/.logseq-wiki/chrome-debug" >/dev/null 2>&1 &--window-size=1920,1080is required in headless — a small window triggers YouTube's mobile layout and breaks title/channel extraction. To sign in the first time, launch without--headless=new(a visible window), sign in to YouTube once, close it; the session persists in the dedicated profile and later headless runs reuse it. - NotebookLM CLI authenticated —
nlm notebook listshould return JSON. If it errors:- Keep
nlm(packagenotebooklm-mcp-cli) up to date —pip install -U notebooklm-mcp-cli. Old versions (e.g. 0.5.x) lack theauthcommand and crash with a traceback; ≥0.15 hasnlm auth refreshwhichrun_auto.shcalls to re-auth non-interactively (so the weekly cron doesn't die on an expired session). The recurring 400 auth failures traced back to a stale 0.5.15 install, not to cookie expiry per se. - Only if
auth refreshcan't recover (session fully dead):nlm login --clear --force(interactive; opens Chrome). Notelogin --checkmay wrongly report "expired" even whennotebook listworks — trustnotebook list.
- Keep
pip install websocket-clientif the scraper reports it missing.
What ships with it
7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago Changed · +7 lines 18d8f1d80ec8
- 1mo ago First seen · 110 lines · 109 tokens per session scan A 4fdd1c56bd32
ingest-youtube-history is a skill published in the GitHub repository ystreibel/logseq-wiki (5 stars, last pushed 11d ago), licensed MIT. It adds 109 tokens to every session and 1,771 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-12.
ingest-youtube-history compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ingest-youtube-historyystreibel/logseq-wiki | Skill | 5 | 11d ago | MIT | A | 109 | Claude Code, Codex |
| interactive-loginyc-software/qm | Skill | 16k | yesterday | MIT | A | 46 | Claude Code, Codex |
| pinchtab-mcppinchtab/pinchtab | Skill | 11k | 10d ago | MIT | A | 52 | Claude Code, Codex |
| azure-messaging-webpubsub-javamicrosoft/skills | Skill | 3.2k | yesterday | MIT | A | 43 | Claude Code |
| cua-driverdavidondrej/skills | Skill | 4.3k | 3d ago | MIT | A | 68 | Claude Code, Codex |
| open-design-browsercompozy/compozy | Skill | 2.8k | yesterday | MIT | A | 56 | Claude Code, Codex |
| southwestborski/travel-hacking-toolkit | Skill | 895 | today | MIT | A | 40 | Claude Code |