logseq-wiki: Skill for Claude Code

.skills/ingest-youtube-history/SKILL.md

ingest-youtube-history is a skill for Claude Code, Codex from ystreibel/logseq-wiki. It costs 109 tokens per session (1,771 once invoked), scanned A, original, MIT.

A workflow that imports watched YouTube videos into a Logseq wiki, a local system for organising notes. It filters videos by topic and date, then adds their transcripts.

In plain words
What is it for?
Use it for weekly or time-bounded collections such as technology, making, or other themed videos.
Why use it?
YouTube watch history is private and is not available through the usual download tools, so this provides a way to collect it from a logged-in browser.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

This is ystreibel/logseq-wiki's own configuration. It tells Claude Code and Codex how to work on logseq-wiki itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything logseq-wiki configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/ystreibel/logseq-wiki/main/.skills/ingest-youtube-history/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ystreibel/logseq-wiki

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for ingest-youtube-history

README.md
[![agentmods](https://agentmods.dev/badge/skills/ystreibel/logseq-wiki/ingest-youtube-history/github.svg)](https://agentmods.dev/skills/ystreibel/logseq-wiki/ingest-youtube-history)
Your own site
<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.

agentmods 80×15 button for ingest-youtube-history

Your own site · 80×15
<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>
Per session 109 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,771 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 11d ago against content hash 18d8f1d80ec8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/fetch_transcripts.py, scripts/prepare_weekly.sh, scripts/run_auto.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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:
.skills/ingest-youtube-history/SKILL.md · 117 lines

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/history in a logged-in Chrome debug instance
  • Transcripts are fetched by NotebookLM (nlm CLI), 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)

  1. Config — read ~/.logseq-wiki/config for LOGSEQ_VAULT_PATH.
  2. 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,1080 is 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.
  3. NotebookLM CLI authenticated — nlm notebook list should return JSON. If it errors:
    • Keep nlm (package notebooklm-mcp-cli) up to date — pip install -U notebooklm-mcp-cli. Old versions (e.g. 0.5.x) lack the auth command and crash with a traceback; ≥0.15 has nlm auth refresh which run_auto.sh calls 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 refresh can't recover (session fully dead): nlm login --clear --force (interactive; opens Chrome). Note login --check may wrongly report "expired" even when notebook list works — trust notebook list.
  4. pip install websocket-client if the scraper reports it missing.

Read the full file on GitHub · 117 lines

Files

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.

Changes

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.

  1. 11d ago Changed · +7 lines 18d8f1d80ec8
  2. 1mo ago First seen · 110 lines · 109 tokens per session scan A 4fdd1c56bd32

Subscribe to this mod's changes

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.

Related

ingest-youtube-history compared with skills from other repositories

ingest-youtube-history next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ingest-youtube-historyystreibel/logseq-wikiSkill511d agoMITA109Claude Code, Codex
interactive-loginyc-software/qmSkill16kyesterdayMITA46Claude Code, Codex
pinchtab-mcppinchtab/pinchtabSkill11k10d agoMITA52Claude Code, Codex
azure-messaging-webpubsub-javamicrosoft/skillsSkill3.2kyesterdayMITA43Claude Code
cua-driverdavidondrej/skillsSkill4.3k3d agoMITA68Claude Code, Codex
open-design-browsercompozy/compozySkill2.8kyesterdayMITA56Claude Code, Codex
southwestborski/travel-hacking-toolkitSkill895todayMITA40Claude Code