Video Add Chapters logo

Video Add Chapters

Community
jykim
video-add-chapters

Add chapters to videos by transcribing, analyzing, and generating structured markdown documents with YouTube chapter markers. Optionally generate highlight videos.

Overview

Publisherjykim
Repositoryclaude-obsidian-skills
Skill namevideo-add-chapters
Stars
52
Forks
10
Bundled files
13
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.

  • 13 bundled files

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

  • Open source

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

Installation

Install the Video Add 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/jykim/claude-obsidian-skills/tree/main/video-add-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/jykim/claude-obsidian-skills.git /tmp/claude-obsidian-skills
mkdir -p .claude/skills
cp -r /tmp/claude-obsidian-skills/video-add-chapters .claude/skills/video-add-chapters
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Video Add 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 Video Add 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 Video Add 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.

video-add-chapters

Transcribe videos using Whisper API, automatically detect chapter boundaries, and generate structured markdown documents with YouTube chapter markers. Optionally create highlight videos from selected segments.

When to Use This Skill

  • Transcribing long videos (20+ minutes) and splitting into chapters
  • Converting video transcripts into structured documentation
  • Generating YouTube chapter markers for video descriptions
  • Cleaning up raw transcripts into readable documents
  • Creating highlight videos from selected transcript segments

Example Results

Requirements

System

  • Python 3.7+
  • FFmpeg (for audio extraction)

Python Packages

bash
pip install -r requirements.txt

Environment Variables

  • OPENAI_API_KEY - Required for Whisper API

How It Works

All steps run automatically without user intervention. Optional review step available if manual adjustment is needed.

Usage

Quick Start (Automated Pipeline)

bash
# Run all steps automatically
python transcribe_video.py "video.mp4" --language ko --output-dir "./output"
python suggest_chapters.py "video.mp4" --output "chapters.json"
python generate_docs.py "video.mp4" --chapters "chapters.json" --output-dir "./output"
python clean_transcript.py "./output/merged_document.md" --backup

Step-by-Step Details

1. Transcribe Video

bash
python transcribe_video.py "video.mp4" --language ko --output-dir "./output"

# Skip if transcript already exists (useful for workflow integration)
python transcribe_video.py "video.mp4" --skip-if-exists
  • Splits video into 15-minute chunks
  • Transcribes using Whisper API
  • Handles timestamp offsets automatically
  • Output: {video} - transcript.json

2. Detect Chapter Boundaries

bash
python suggest_chapters.py "video.mp4" --output "chapters.json"
  • Analyzes transcript for topic transitions
  • Uses transition signal patterns (not pauses)
  • Output: chapters.json with suggested boundaries

3. Generate Documents

bash
python generate_docs.py "video.mp4" --chapters "chapters.json" --output-dir "./output"
  • Creates individual chapter markdown files
  • Generates merged document and index
  • Outputs YouTube chapter markers

4. Clean Transcript

bash
python clean_transcript.py "./output/merged_document.md" --backup
  • Removes filler words
  • Improves sentence structure
  • Enhances paragraph cohesion
  • Preserves timestamps and chapter boundaries

Optional: Manual Review

If chapter boundaries need adjustment:

  1. Edit chapters.json with corrected timestamps
  2. Re-run generate_docs.py to regenerate documents

Highlight Video Generation (Optional)

After completing the chapter workflow, you can create a highlight video by selecting specific segments from the transcript.

Method 1: Annotation in Transcript (Recommended)

Mark highlights directly in the transcript using <u> or == annotations.

Quick Start:

bash
# 1. Open transcript markdown and add annotations:
#    <u>text to highlight</u>  or  ==text to highlight==

# 2. Parse annotations to generate highlight script
python parse_highlight_annotations.py "transcript.md" --video "video.mp4"

# 3. (Optional) Edit the generated highlight script to add titles

# 4. Generate highlight video
python generate_highlights.py "transcript - highlight_script.md" --padding 0.5

Supported Annotation Formats:

  • <u>highlighted text</u> - HTML underline (visible in most editors)
  • ==highlighted text== - Markdown highlight (Obsidian compatible)

Features:

  • Consecutive highlighted segments are automatically merged
  • End times calculated from next segment start
  • Auto-generates titles from first few words

Method 2: Manual Script Editing

Export full transcript as editable script, then delete unwanted lines.

Quick Start:

bash
# 1. Export editable highlight script
python export_highlight_script.py "video.mp4" \
  --transcript "./output/video - transcript.json"

# 2. Edit the script - delete unwanted lines (in any text editor)

# 3. Generate highlight video
python generate_highlights.py "./output/video - highlight_script.md"

Generate Highlight Video

bash
python generate_highlights.py "highlight_script.md" --output "highlights.mp4" --padding 0.5 --title-duration 3
  • Parses [START-END] timestamps from script
  • Adds 0.5s padding before/after each segment to avoid mid-sentence cuts
  • Displays optional segment titles (yellow centered text, Korean font) for 3 seconds
  • Merges all segments into single video using FFmpeg
  • Output: {video} - highlights.mp4

Highlight Script Format

markdown
# Highlight Script: Video Title

**Source Video**: /path/to/video.mp4

---

[00:00:09-00:00:21] {Gemini CLI 설정} 우선은 Gemini에다가 제가 현재 커뮤니티 볼트가...

[01:46-02:15] {설치 완료} 네 설치가 된 것 같습니다. 볼트에서 확인해 볼까요.

[03:56-04:01] 아웃박스 커뮤니티 폴더에 질문을 생성을 했어요.

Format: [START-END] {Optional Title} Text content

  • Titles in {curly braces} are optional
  • If provided, title appears as yellow centered text overlay (144px, Korean font supported)

File Structure

video-add-chapters/
├── SKILL.md                    # This document
├── requirements.txt            # Python dependencies
├── transcribe_video.py         # Step 1: Video → Transcript
├── suggest_chapters.py         # Step 2: Chapter boundary detection
├── generate_docs.py            # Step 3: Document generation
├── clean_transcript.py         # Step 4: Transcript cleaning
├── parse_highlight_annotations.py  # Parse <u> and == annotations from transcript
├── export_highlight_script.py      # Export transcript as editable highlight script
├── generate_highlights.py          # Generate highlight video from script
├── templates/                  # Markdown templates
│   ├── chapter.md
│   ├── index.md
│   └── youtube_chapters.txt
└── examples/                   # Sample outputs
    ├── sample_chapter.md
    └── sample_youtube_chapters.txt

Troubleshooting

IssueCauseSolution
Chapter boundaries don't match contentBoundary set at keyword first mentionUse transition signal patterns for boundaries
Merged document content mismatchManual updates missed in separate filesUpdate all related files when changing boundaries
Transcript timing seems offMisdiagnosed as offset issueVerify: Whisper timestamps = video timestamps (no offset)
Chapter content overlapBoundary doesn't match content transitionUse end signals for endpoints, start signals for start points

Verification Checklist

  1. Verify video timestamp at each chapter start
  2. Confirm next chapter content doesn't start before current chapter ends
  3. Check merged document body matches chapter boundaries
  4. Test YouTube link timestamps are accurate
  5. Verify original meaning is preserved after cleaning

Language Support

Currently optimized for Korean language with hardcoded transition patterns. Multi-language support: TBA.

Cost Estimate

Whisper API pricing: ~$0.006 per minute of audio

  • 1-hour video: ~$0.36
  • Processing is done in 15-minute chunks

Integration

Related Skills

  • video-full-process: Combined workflow with video-clean + chapter remapping
  • video-cleaning: Remove pauses and filler words
  • shorts-extraction: Extract chapters as short-form clips
  • youtube-transcript: Download YouTube video transcripts

Combined Workflow with video-clean

Use video-full-process skill for a unified pipeline that:

  1. Transcribes once (saving ~50% API costs)
  2. Removes pauses and filler words
  3. Remaps chapter timestamps to cleaned video
  4. Embeds chapters into final video
bash
# From video-full-process skill directory
python process_video.py "video.mp4" --language ko

Transcript Reuse

The --skip-if-exists flag enables transcript reuse across skills:

bash
# First transcription
python transcribe_video.py "video.mp4"

# Skip if already transcribed (reuses existing transcript)
python transcribe_video.py "video.mp4" --skip-if-exists

This prevents duplicate API calls when multiple skills need the same transcript

Reference: CHAPTERS Array Format

python
# Format: (start_seconds, title, description)
CHAPTERS = [
    (0, "Intro", "Introduction and welcome"),
    (98, "Setup", "Environment setup guide"),
    (420, "Main Content", "Core tutorial content"),
    # ... each chapter's start time, title, description
]

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 Video Add Chapters AI skill do?

Add chapters to videos by transcribing, analyzing, and generating structured markdown documents with YouTube chapter markers. Optionally generate highlight videos.

Why use Video Add Chapters on TypingMind?

Because you install it once and use it with any model. Video Add 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 Video Add Chapters in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/jykim/claude-obsidian-skills/tree/main/video-add-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 Video Add 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 Video Add Chapters?

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

Is the Video Add Chapters AI skill free?

Yes. It is published on GitHub by jykim 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 👇