Youtube Chapters logo

Youtube Chapters

Community
JamalMohafil
youtube-chapters

Use when someone gives a YouTube link (or a local video/audio file) and wants chapter timestamps, a chapter list, video sections, a timeline, or timestamps for the description — including Arabic/RTL videos. Triggers on "get timestamps", "make chapters", "YouTube chapters", "split this video into sections", "توقيتات", "فصول", "شبترات للفيديو".

Overview

PublisherJamalMohafil
Repositoryclaude-skills
Skill nameyoutube-chapters
Stars
27
Forks
3
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by JamalMohafil on GitHub. Read the source before you install it.

Installation

Install the Youtube Chapters AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/JamalMohafil/claude-skills/tree/main/youtube-chapters
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/JamalMohafil/claude-skills.git /tmp/claude-skills
mkdir -p .claude/skills
cp -r /tmp/claude-skills/youtube-chapters .claude/skills/youtube-chapters
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Youtube Chapters in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Youtube Chapters on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Youtube Chapters is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

YouTube Chapters

Overview

Turn any video into ready-to-paste YouTube chapters. Two moves:

  1. Run the helper to get a clean, timestamped transcript.
  2. You cut it into chapters and output them in the exact format below.

The script handles fetching/transcribing (any language). The chaptering judgment — where topics change and what to call them — is yours.

When to use

  • A YouTube URL (any language) and they want chapters / timestamps / sections.
  • A local video or audio file ("here's my video, timestamp it").
  • A transcript or SRT they paste — skip Step 1, go to Step 2.

Not for: summarizing without timestamps (that's just a summary), or cutting/editing the video.

Step 1 — Get a timestamped transcript

python3 scripts/transcript.py "<youtube-url-or-file-path>"

Options: --lang ar (force a language), --window 12 (seconds per line), --out t.txt (also save it).

It prints TITLE, DURATION, LANGUAGE, SOURCE, then M:SS⇥text lines:

  • YouTube with captions → pulled via yt-dlp (fast: subtitle track only, no video download, no speech-to-text). Manual subtitles beat auto-captions.
  • Local file, or a video with no captions → Whisper speech-to-text, using whatever is present: GROQ_API_KEY or OPENAI_API_KEY (Whisper API), else pip install faster-whisper, else the whisper CLI. If none exists, the script prints exactly what to install.

Read the whole transcript before chaptering, and note DURATION — the last chapter must start before it.

Step 2 — Cut it into chapters (your judgment)

  • Mark where the topic changes, not every sentence. Aim for one chapter every ~1–3 minutes — more for long videos, never fewer than 3.
  • Set each chapter's time to the transcript timestamp where that topic starts (use that line's M:SS).
  • The first chapter is always 0:00 — retitle the opening; never invent a line before 0:00.
  • Keep chapters ≥ ~10s apart; the last one must start before DURATION.
  • Titles: short, specific, scannable — say what the section delivers (a question or a payoff beats a vague noun). Write them in the video's spoken language; for Arabic keep it natural dialect (RTL), not formalized.
  • Keep tech/brand terms in Latin for search: Claude Code, Next.js, API, GitHub, Vercel, MCP.
  • Never invent content that isn't in the transcript.

Step 3 — Output format (do exactly this)

Default — YouTube standard, timestamp first, one per line:

0:00 <title>
0:24 <title>
1:05 <title>

YouTube only shows chapters when: the first line is 0:00, there are ≥ 3 lines, and each is ≥ 10s after the previous. Break any of these and no chapters appear.

Deliver as plain lines (no code fence unless asked) and save to <video-title-slug> - youtube chapters.txt.

Variant — timestamp at the END (<title> 0:00): some creators, often Arabic/RTL channels, put the time last and report YouTube still accepts it. Use this only if the creator confirms it works on their channel; otherwise use the standard above. The 0:00 / ≥3 / ≥10s rules still apply.

Quick reference

InputWhat runsNeeds
YouTube URL, has captionsyt-dlp subtitle pullyt-dlp, ffmpeg
YouTube URL, no captionsaudio + Whisper+ one Whisper option
Local video / audio fileffmpeg audio + Whisper+ one Whisper option
Pasted transcript / SRTskip Step 1—

Common mistakes

  • First chapter not 0:00 → YouTube shows no chapters. Always start at 0:00.
  • A chapter per sentence → cut on topic shifts, aim for 1–3 min apart.
  • Time before speech or after the end → keep every chapter within [0:00, DURATION).
  • Formalizing Arabic titles → keep the creator's natural wording; only tech terms in Latin.
  • Quoting a caption as the title → titles describe the section, they don't transcribe it.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Youtube Chapters AI skill do?

Use when someone gives a YouTube link (or a local video/audio file) and wants chapter timestamps, a chapter list, video sections, a timeline, or timestamps for the description — including Arabic/RTL videos. Triggers on "get timestamps", "make chapters", "YouTube chapters", "split this video into sections", "توقيتات", "فصول", "شبترات للفيديو".

Why use Youtube Chapters on TypingMind?

Because you install it once and use it with any model. Youtube Chapters is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Youtube Chapters in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/JamalMohafil/claude-skills/tree/main/youtube-chapters. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Youtube Chapters?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Youtube Chapters?

As many as you like. As long as a model supports skills, you can use Youtube Chapters with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Youtube Chapters AI skill free?

Yes. It is published on GitHub by JamalMohafil under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇