YouTube chapters from a transcript
Condense a timestamped transcript, then validate the chapters your agent proposes against YouTube's rules (start at 0:00, 3 or more, 10 s minimum) and format them for the description.
What it does
Builds the chapter list (table of contents) for a YouTube description from the video's transcript. Your agent finds topic changes and writes titles; the bundled script handles the format checks.
- Reads SRT/VTT captions, speech-to-text JSON (start/end/text),
0:00 textlines and transcripts copied from YouTube - Condenses long transcripts into windows (for example 30 s) so the agent can read the whole video
- Validates the proposed chapters against YouTube's rules: first at 0:00, at least 3, each at least 10 seconds, none after the end
- Snaps each chapter start to the nearest sentence start in the transcript
- Shows style hints such as duplicate or very long titles
- Prints
00:00style under one hour and0:00:00for longer videos, consistently
How to use
python scripts/chapters.py parse transcript.srt --window 30 --out condensed.txt
python scripts/chapters.py validate chapters.txt --transcript transcript.srt --snap 5
Ask your agent to make chapters from a transcript. It reads the condensed transcript, proposes chapters, fixes them until validation passes and returns a paste-ready list.
Requirements
- Python 3 (standard library only)
Caveats
- It does not connect to YouTube or read video files; you paste the result into the description yourself.
- Plain text transcripts have no video length; pass
--durationso the last chapter can be checked too. - If an automatic transcript is inaccurate, the titles can only be as good as the transcript.
How to install
- Unzip the downloaded file (it contains a
video-chapters-from-transcript/folder withSKILL.md). - Copy the whole folder into your agent's skills folder.
- Claude:
~/.claude/skills/(per project:.claude/skills/) - Hermes Agent:
~/.hermes/skills/ - Codex:
~/.agents/skills// Cursor:~/.cursor/skills/ - Claude app (claude.ai): upload the ZIP in Customize → Skills
- Claude:
- Restart the agent and check that the skill appears in its skill list.
Seller
44 published skills