youtube-chapters-tags

youtube-chapters-tags is a skill for Claude Code from naveedharri/benai-skills. It costs 153 tokens per session (1,764 once invoked), scanned A, original, MIT.

A tool that creates YouTube chapters and a list of video tags from the video's timestamped transcript. Chapters mark where each topic begins; tags are words used to describe the video for YouTube.

In plain words
What is it for?
It helps add accurate chapter times and tags to an Unlisted YouTube video after captions are available.
Why use it?
It avoids inventing timestamps from a script or outline when the video does not yet have captions.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the all-skills plugin — 109 skills shipped together

Good fit It helps add accurate chapter times and tags to an Unlisted YouTube video after captions are available.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/naveedharri/benai-skills/youtube-chapters-tags
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add naveedharri/benai-skills --skill youtube-chapters-tags
Clone the repo
git clone --depth 1 https://github.com/naveedharri/benai-skills

Made for: Claude Code.

Or install all-skills, the plugin that ships this one along with the rest of its 109 skills.

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 youtube-chapters-tags

README.md
[![agentmods](https://agentmods.dev/badge/skills/naveedharri/benai-skills/youtube-chapters-tags/github.svg)](https://agentmods.dev/skills/naveedharri/benai-skills/youtube-chapters-tags)
Your own site
<a href="https://agentmods.dev/skills/naveedharri/benai-skills/youtube-chapters-tags"><img src="https://agentmods.dev/badge/skills/naveedharri/benai-skills/youtube-chapters-tags/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 youtube-chapters-tags

Your own site · 80×15
<a href="https://agentmods.dev/skills/naveedharri/benai-skills/youtube-chapters-tags"><img src="https://agentmods.dev/badge/skills/naveedharri/benai-skills/youtube-chapters-tags.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 153 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,764 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.00153 $0.01764
Opus 5.5 $0.00061 $0.00706
Sonnet 5.5 $0.00031 $0.00353
Haiku 4.5 $0.00015 $0.00176

Measured 1mo ago against content hash 968fadd4aa4e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

youtube-chapters-tags 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 1mo 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.

YouTube is IP-blocked from the sandbox. `youtube-transcript-api` and `curl` both fail; do not
plugins/all-skills/skills/youtube-chapters-tags/SKILL.md · 146 lines

How it starts

The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.

YouTube Chapters and Tags

Stage 4. Two deliverables from one video, run independently so either can be asked for alone.

  1. Chapters: MM:SS – Title for the description and YouTube's chapter UI.
  2. Tags: a tag string matching the pattern measured across Ben's recent videos.

Precondition: the video has to be Unlisted

A Studio draft has no caption track. No captions means no timestamped transcript means no chapters. YouTube generates captions only after the video is saved at a real visibility and its checks finish. Private does not work either.

So youtube-studio-setup runs first. If the video is still a draft, or Unlisted but not yet captioned, say so plainly and stop. Do not fake chapters from the script, the Notion card, or the outline. Every timestamp has to come from the transcript.

Check for captions before anything else:

const h = await (await fetch('/watch?v=VIDEO_ID')).text();
h.includes('captionTracks')

False means come back later. It usually clears within the same session for a video under 20 minutes.

Workflow A: chapters

1. Pull the timestamped transcript

YouTube is IP-blocked from the sandbox. youtube-transcript-api and curl both fail; do not retry them. Everything goes through Claude in Chrome.

Use the transcript-panel recipe in references/chrome-transcript-extraction.md.

Do not try to fetch the caption track's baseUrl out of captionTracks. It gets blocked, because that URL carries session tokens. Found 2026-08-25. The DOM panel is the working path.

Store the result on window.__ts. JS responses cap at about 1000 characters, so read it back in slices of roughly 8 lines. Tabs also die mid-session and take window with them, so re-derive rather than assuming state survived.

2. Find the transitions cheaply

Reading 100 segments at 8 lines a call is a dozen round trips. Filter first, read only the windows around each candidate:

const p = /(first|second|thirdly|lastly|and last|best practice|now let me|moving on|
             demo|review|recommend|here above|show you)/i;
window.__ts.map((l,i)=>({i,l})).filter(o=>p.test(o.l)).map(o=>o.i+' '+o.l.slice(0,40)).join('\n')

Read the full file on GitHub · 146 lines

Files

What ships with it

5 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. 1mo ago Changed · +1 lines 968fadd4aa4e
  2. 1mo ago First seen · 145 lines · 153 tokens per session scan A 0f72ad0e4b96

Subscribe to this mod's changes

youtube-chapters-tags is a skill published in the GitHub repository naveedharri/benai-skills (74 stars, last pushed 16d ago), licensed MIT. It adds 153 tokens to every session and 1,764 once invoked, about $0.0006 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

Other skills, from other repositories

project

A single starting point for setting up an AI-assisted project in Claude Cowork. It asks questions about the work, reviews available add-ons, and creates project instructions, custom agents, and connected workflows.

modu-ai/moai-cowork · 475 tokens

doc-html-slide

A renderer that turns presentation content into a single HTML slide deck that opens directly in a browser. It creates a 16:9 slide sequence with navigation, fullscreen viewing, printing to PDF, and speaker-note controls.

modu-ai/moai-cowork · 438 tokens

cs-channel-message

A channel-message writing tool for search ads, advertising, customer relationship messages, and app notifications. It uses the NCM sequence—Need, Channel, Moment, Message, and CTA—to adapt wording to where and when customers see it.

modu-ai/moai-cowork · 465 tokens

media-higgsfield-explainer

A Higgsfield workflow for making non-photorealistic narrated explainer videos. It pairs each narration line with a 10-second animated clip and joins the clips into one finished video.

modu-ai/moai-cowork · 244 tokens

setup-mcp-connector

A step-by-step setup guide for connecting Cowork to services such as Google Drive, Notion, and Higgsfield, plus Korean public-data, document, statistics, architecture, and law services. It explains authentication, API keys, test calls, and troubleshooting.

modu-ai/moai-cowork · 191 tokens

media-gpt-image-prompt

An image-prompt writing tool that turns a natural-language idea into detailed prompts for GPT Image 2.5. It can also adapt the same idea for Gemini 3 Pro Image and Midjourney.

modu-ai/moai-cowork · 334 tokens