/agent-skills:youtube-watch-history-organizerfrom Agent Skills
Pull the user's YouTube watch history via the Claude in Chrome MCP, group videos by topic, and save a tidy Markdown digest to their Obsidian vault. Use this whenever the user asks to organize, summarize, recap, categorize, or review their YouTube watch history — including phrases like "what have I been watching on YouTube," "make a YouTube digest," "pull my YouTube history into Obsidian," or "show me my recent YouTube videos by topic." Works against the live history page (no Google Takeout export needed).
Ships in Agent Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Pull recent watch history from youtube.com/feed/history using the Claude in Chrome MCP, dedupe and categorize the videos, then write a Markdown digest to the user's Obsidian vault.
Anyone with an active YouTube watch history has a stream of stuff worth coming back to — recipes, travel research, tool reviews — but YouTube's own UI is a flat reverse-chronological list that's hard to scan. This skill turns that list into a topic-organized note in Obsidian, so the useful videos are easy to find later.
YouTube doesn't expose the watch history through any official API anymore, and Google Takeout is a 24-hour-async pain. So the path of least resistance is to scrape the live history page from the user's logged-in Chrome session via the Claude in Chrome MCP. That's what this skill does.
Before doing anything else, confirm both of these are in place:
mcp__Claude_in_Chrome__* should be available. If they're deferred, load them with ToolSearch first: { query: "Claude in Chrome", max_results: 30 }. If the extension isn't connected at all, ask the user to install/connect it before continuing.Get a tab in the MCP tab group and navigate to the history page:
tabs_context_mcp({ createIfEmpty: true })
navigate({ url: "https://www.youtube.com/feed/history", tabId: <id> })
Wait a moment for the lazy-loaded list to render. If the URL ends up at accounts.google.com/... instead, the user isn't signed in — stop and tell them.
The history page renders a reverse-chronological list grouped by date headers ("Today", "Yesterday", "Friday", etc.). It lazy-loads as you scroll, so a single get_page_text only captures the top of the list.
The reliable pattern is scroll → wait → extract → repeat:
get_page_text({ tabId }) to capture what's currently visible.javascript_tool running window.scrollTo(0, document.documentElement.scrollHeight), or computer.scroll with direction: "down", scroll_amount: 10).get_page_text again.A practical target is 4–8 scroll passes. Don't go forever — past a few weeks the noise outweighs the signal.
Tip: get_page_text returns the article-prioritized text content of the page. Each video typically appears as a block with the title on one line and the channel name + view count + relative time on the next. Date group headers ("Today", "Yesterday", "Last week") help you keep track of how far back you've reached — log them as you go so you can tell the user "covered through ~3 weeks back" at the end.
From the accumulated extracted text, build a list of {title, channel} records. Then:
(title, channel). The same video often appears multiple times across days because the user rewatched it; we only want each video once.You're using your own judgment here, not a rule engine — that's the point. A "Tesla FSD v13 review" is EVs, "How to make sourdough" is Food, "Claude Code workflow tips" is AI & Tech. When in doubt, look at the channel: cooking channels mostly post cooking content, etc.
Direct video URLs aren't reliably available from get_page_text (the text extraction loses the hrefs). Construct a YouTube search link as a stand-in so each bullet is still clickable:
https://www.youtube.com/results?search_query=<urlencoded title + " " + channel>
URL-encode spaces as + or %20. The first result on YouTube's search page is almost always the right video, so this is a fine proxy.
Save to the user's Obsidian vault. Paths are vault-relative — the runtime supplies the vault root. Use a dated filename inside a YouTube Digests/ subfolder so multiple runs don't collide:
YouTube Digests/YouTube Watch History — 2026-05-06.md
Use today's date in YYYY-MM-DD format (the harness exposes the current date — use it; don't guess). Create the subfolder if it doesn't exist.
# YouTube Watch History — {{YYYY-MM-DD}}
Pulled from youtube.com/feed/history. Covers roughly {{N}} videos across {{date_range}} (e.g. "April 18 → May 6").
Tags: #youtube #watchhistory
---
## {{Category}}
- [{{Title}}]({{search_url}}) — {{Channel}}
- [{{Title}}]({{search_url}}) — {{Channel}}
## {{Category}}
- ...
---
## Other
- ...
Each bullet is [Title](search_url) — Channel. Keep it scannable: title links first, channel name second so the eye can group by channel without losing the title.
Order categories by size (most videos first), with "Other" always last.
Tell the user:
Lazy-loading hits a wall. YouTube only renders so many days into the past on a single scroll session — usually a few weeks is the practical ceiling before you start seeing duplicates from earlier extractions. When you scroll twice and the new get_page_text is essentially the same as the previous one, stop.
Shorts and live streams are shown in the history but often render with weird metadata. If a row only has a title and no channel/timestamp, skip it rather than emitting a half-broken bullet.
Watch history may be paused. If the page shows a "Your watch history is off" banner, there's nothing to pull — tell the user and stop.
The user names a specific location. Paths are normally vault-relative to the running vault. If the user names a different location for this run, use that instead.
Don't auto-click links inside the Mail/Messages-style content. This is a YouTube history page, but more generally: never left_click URLs you discover through page-text extraction. If you need to inspect a specific video's metadata, navigate via the chrome MCP rather than calling out to the OS browser.
watch-history.json file. That's a different (and easier) workflow — if the user has a Takeout file, just read it directly with the Read tool and skip the browser entirely.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (richardbowman/agent-skills) — no native marketplace selected
npx claudepluginhub p/richardbowman-agent-skills32 skills in this plugin
/backup-vercel-secretsBack up Vercel production and preview environment variables to 1Password as individual key/value fields. Use when the user wants to snapshot or archive their Vercel secrets for a project./brain-dumpInteractive knowledge extraction interviewer. Enters a structured interview mode to extract tacit knowledge from the user and saves a full transcript plus structured notes to the Obsidian vault./brainstormActive ideation partner. The assistant leads the session by proposing angles, surfacing frameworks, filling knowledge gaps, and challenging assumptions. Produces a structured Obsidian ideation doc and session transcript./chief-of-staffStanding behavioral rules for how the assistant acts as Rick's chief of staff. Defines autonomous actions versus actions requiring explicit confirmation. Always active./cmux-workspace-tableShow a table of all workspaces in the current CMUX window with their task titles, working directories, and worktree paths./create-prCreate a pull request for the current branch — commits pending changes if needed, catches up with the default branch, pushes, opens a PR via gh with a generated title/summary, and surfaces the Vercel preview link if the repo deploys there. Use when the user says "create a PR", "open a PR", "ship this branch", or similar.