--- name: yt-chapters description: >- 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". allowed-tools: Bash(python3 ${CLAUDE_SKILL_DIR}/chapters.py *) --- # yt-chapters ```bash 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: ```bash yt-dlp --skip-download --write-auto-subs --sub-langs en --sub-format vtt -o transcript "