Index of every page on this site: llms.txt
All skills
utillayer avatar

/yt-chapters

@e0ac1e7
Run it yourself

Draft YouTube chapters from a transcript and check them against YouTube's rules so they actually appear. Use for "add chapters", "timestamps", "split this video into sections".

Use this Skill: https://skilld.dev/gh/utillayer/youtube-agent-skill/yt-chapters

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈47 tokens for metadata: the name and description. ≈410 when used: this file.

Description uses 2.4% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈190 characters, or 2.4%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

yt-chapters

python3 ${CLAUDE_SKILL_DIR}/chapters.py transcript.srt --target 8

The tools live in this skill's folder. ${CLAUDE_SKILL_DIR} is that folder in Claude Code; anywhere it does not expand (claude.ai, Codex), use the folder this SKILL.md was loaded from. It reads transcripts with ../yt-edit/deadair.py, so install the two together.

To fetch a video's own captions:

yt-dlp --skip-download --write-auto-subs --sub-langs en --sub-format vtt -o transcript "<video url>"

Before you start

Read ~/.claude/youtube/voice.md if it exists: chapter titles are the creator's words, not yours. Without it, title plainly and mention that the voice file would sharpen them.

YouTube's rules

A list that breaks any of these silently is not shown as chapters at all:

  • the first timestamp is 00:00
  • at least three chapters
  • each at least ten seconds long
  • in ascending order

The tool checks all four and says so when a list fails. Some channels must also enable advanced features in Studio before chapters appear; if a valid list does not show, check that first.

Retitle every line

chapters.py is good at boundaries - it scores the pauses taken and how much the vocabulary changes across them. Its titles are just the topic words. Rewrite each as the promise of that section, in three to five words, in the creator's voice.

A section you cannot name in five words is two sections, or filler. That is worth telling the creator too.

Before you hand it over

This skill drafts; you publish. End with the copy-ready block and one question: post it as is, or another pass?

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning6d3 checks · Risk SAFE
  • Gen Agent Trust Hub6d

    The skill is a utility for generating YouTube chapters from video transcripts. It processes local files to identify section boundaries and provides formatted timestamps. No malicious patterns or security risks were identified.

  • Socket6d

    No alerts

  • Snyk6d

    Risk: MEDIUM · 1 issue

Signed by skilld at e0ac1e7. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 weeks ago.

Activeupdated 4 weeks ago
What it can do
Runs commands
All 1 allowed tools
Bash(python3 ${CLAUDE_SKILL_DIR}/chapters.py *)

README badge

README badge for utillayer/youtube-agent-skill/yt-chapters