Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

youtube-kr-subtitle

БесплатноЗапускает вложенные скриптыНе проверен

Download YouTube videos, extract English subtitles, translate them to Korean using Claude's own translation capabilities (with video context and web search)…

Koomookот Koomook★ 25 звёзд на GitHub6 установок в других каталогах

Об этом скилле

YouTube Korean Subtitle Translator

Overview

This skill enables Claude to download YouTube videos and create new versions with Korean subtitles burned directly into the video. Unlike traditional approaches that use Google Translate, this skill leverages Claude's own translation capabilities with full context awareness - including video metadata, web research about the content, and understanding of the subject matter.

When to Use This Skill

Use this skill when users request:

  • "Add Korean subtitles to this YouTube video: [URL]"
  • "Translate this YouTube video to Korean"
  • "Download this video and burn Korean subtitles into it"
  • "Create a Korean version of this YouTube video"

Workflow

Step 0: Environment Setup Check (First Time Only)

Before processing any videos, verify that the environment is properly configured:

python scripts/setup_check.py

This script checks:

  • Python version (3.7+)
  • Virtual environment existence
  • Required packages (yt-dlp, pysrt, ffmpeg-python, deep-translator)
  • FFmpeg installation

Auto-fix mode: To automatically create venv and install packages:

python scripts/setup_check.py --auto-fix

Output: JSON containing:

  • success: boolean indicating if all checks passed
  • results: detailed information about each component
  • actions_taken: list of automatic fixes performed (if --auto-fix used)

What the script does in auto-fix mode:

  1. Creates virtual environment if it doesn't exist
  2. Installs all required Python packages from requirements.txt
  3. Verifies FFmpeg is installed (provides installation instructions if not)

Error Handling: If FFmpeg is not installed, the script will provide platform-specific installation commands. FFmpeg cannot be auto-installed and must be installed manually.

Important: Run this check before your first video processing. Once the environment is set up, you don't need to run this again unless you encounter dependency issues.

Step 1: Download Video and Subtitles

Run the download script to fetch the YouTube video, English subtitles, and metadata:

python scripts/download_youtube.py "<youtube_url>" downloads/

Output: JSON containing:

  • video_path: Downloaded video file path
  • subtitle_path: English subtitle SRT file path (or null if not available)
  • title: Video title
  • description: Video description
  • duration: Video duration in seconds
  • video_id: YouTube video ID

Error Handling: If subtitle_path is null, inform the user that the video lacks English subtitles and cannot be processed in the current version.

Step 2: Extract Subtitle Text

Extract only the text content from the SRT file for translation:

python scripts/extract_subtitle_text.py <subtitle_path>

Output: JSON containing:

  • texts: Array of subtitle text strings (preprocessed and grouped into sentences)
  • metadata.total_count: Number of subtitle entries
  • metadata.processed_count: Number after preprocessing (overlap fixes, grouping)

Important: The script automatically:

  • Fixes overlapping timestamps (YouTube's rolling caption format)
  • Removes short duplicate subtitles (<150ms)
  • Groups consecutive subtitles into sentence units for better translation context

Step 3: Gather Context for Translation

Before translating, build comprehensive context to ensure high-quality, contextually-aware translation:

3a. Analyze Video Metadata

Review the video title and description from Step 1. Identify:

  • Subject matter (technology, education, entertainment, etc.)
  • Key topics or themes
  • Technical terminology that may require specialized translation
  • Tone and style (formal, casual, educational, etc.)

3b. Web Search for Additional Context

Perform web searches to understand the content better:

Search queries to consider:
- "[video_title]" - Find related content and context
- "[key_topics] Korean translation" - Find established Korean terminology
- "[subject_matter] 한글 용어" - Find domain-specific Korean terms

Save findings to a context file for reference during translation.

3c. Create Translation Context File

Write a context file (e.g., downloads/video_context.md) containing:

# Translation Context for [Video Title]

## Video Overview
- **Title:** [title]
- **Subject:** [subject matter]
- **Duration:** [duration]
- **Key Topics:** [list of main topics]

## Key Terminology
[Table of English terms and their appropriate Korean translations]

## Tone and Style
[Description of the appropriate translation style]

## Additional Notes
[Any web research findings, cultural considerations, or translation guidelines]

Step 4: Translate Subtitles with Claude

Now perform the actual translation using the context gathered above. This is where Claude's capabilities shine:

Translation Guidelines:

  1. Read the context file created in Step 3c
  2. Review the first few subtitle texts to understand the flow
  3. Translate each subtitle text t
Полный SKILL.md на GitHub

Установить youtube-kr-subtitle в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

scripts/download_youtube.pyscripts/extract_subtitle_text.pyscripts/merge_translated_subtitle.pyscripts/process_video.pyscripts/setup_check.py

FAQ

Что делает скилл youtube-kr-subtitle?

Download YouTube videos, extract English subtitles, translate them to Korean using Claude's own translation capabilities (with video context and web search), and burn Korean subtitles into the video. Use this skill when the user requests Korean subtitle insertion for YouTube videos or asks to translate YouTube content to Korean.

Как установить скилл youtube-kr-subtitle?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл youtube-kr-subtitle запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить youtube-kr-subtitle с