Youtube Translate logo

Youtube Translate

Community
0xSero
youtube-translate

Given YouTube links (videos, channels, playlists) or local folders/files (subtitles or media), produce per-language translated SRT subtitle files (default en, uk, de, fr, es, pl) ready to upload to YouTube, plus accuracy QA. Works with any OpenAI-compatible endpoint, or with no endpoint at all — the calling model does the translation itself. Not for dubbing/voice-over, video editing, or titles/thumbnails.

Overview

Publisher0xSero
Repositoryyoutube-translate-skill
Skill nameyoutube-translate
Stars
46
Forks
5
Bundled files
3
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.

  • 3 bundled files

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

  • Open source

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

Installation

Install the Youtube Translate 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/0xSero/youtube-translate-skill/tree/main
  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/0xSero/youtube-translate-skill.git \
  .claude/skills/youtube-translate
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Youtube Translate 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 Youtube Translate 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 Youtube Translate 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.

YouTube / media → translated subtitles

Everything is in scripts/. Requirements: python3 (stdlib only) and yt-dlp on PATH for YouTube inputs. Translation is done either by an OpenAI-compatible endpoint or by you, the calling model. Local media without subtitles is transcribed only if an ASR tool is installed (faster-whisper, mlx_whisper, or the whisper CLI); otherwise that item is marked needs-asr and the run continues.

Inputs

Pass any mix of:

  • YouTube video, channel (https://youtube.com/@Handle, /videos, /streams), or playlist URLs. --latest N = newest N per channel/playlist (0 = all).
  • Local folders or files: .srt, .vtt, YouTube .json3, or media (.mp4/.mkv/.mov/.webm/.mp3/.m4a/.wav). A sidecar subtitle with the same stem is used when present; otherwise media is transcribed (if an ASR tool exists).

--langs sets target codes (default en,uk,de,fr,es,pl); the source language is skipped automatically.

Output (per item, stable across re-runs)

<out>/<source>/<YYYYMMDD>_<slug>_<id>/
  video.json               metadata, cues, status
  original-script.md       full original transcript in paragraphs
  original.<src>.srt       timed original captions
  translations/<lang>.srt  one SRT per target language, same cues/timings
  translations/<lang>.md   readable transcript in that language (same paragraph breaks as original-script.md)

Mode A — you have an OpenAI-compatible endpoint

bash
export YT_TX_BASE_URL=http://<host>:<port>/v1 YT_TX_API_KEY=<key> YT_TX_MODEL=<served-model>
python3 scripts/yt_translate.py run <inputs...> --langs en,uk,de --out ./out --concurrency 8

Re-running is safe: finished <lang>.srt files are skipped and every chunk is cached under <video>/.cache/.

Mode B — no endpoint: you translate (agent mode)

  1. prepare — ingest and write numbered work items (no network model needed for translation):
    bash
    python3 scripts/yt_translate.py prepare <inputs...> --langs en,uk,de --out ./out
    This writes, per video and language, chunks at <video>/.work/<lang>/<n>.in.json:
    json
    {"_meta": {"source_language": "...", "target_language": "...", ...},
     "1": "first source line", "2": "second source line", ...}
  2. translate each work item yourself. For every <n>.in.json:
    • Read it. Translate each numbered value from _meta.source_language into _meta.target_language.
    • Lines are consecutive speech fragments; a sentence may span lines — translate so they read naturally in order.
    • Write <n>.out.json next to it: the same numbered keys (no _meta), each value a non-empty translated string.
    • Fan this out with subagents or parallel calls if your harness supports it — the items are independent.
  3. check what's left (optional): python3 scripts/yt_translate.py status --out ./out lists pending items.
  4. assemble — validate every .out.json and write the SRTs:
    bash
    python3 scripts/yt_translate.py assemble --out ./out
    Any item with missing/extra keys or empty values is reported as invalid; incomplete languages are reported and skipped. Fix those .out.json files and run assemble again.

Accuracy QA

bash
# structural only (always available, no model):
python3 scripts/qa.py run ./out --sample 0
# with an endpoint GEMBA-MQM judge (use a DIFFERENT model than the translator if you can):
export YT_QA_BASE_URL=... YT_QA_MODEL=... YT_QA_API_KEY=...
python3 scripts/qa.py run ./out --sample 40 --review en,uk
# agent-mode judge (no endpoint): prepare -> fill qa/.judge/*/1.out.json -> assemble
python3 scripts/qa.py prepare ./out --sample 40
python3 scripts/qa.py assemble ./out

The judge follows GEMBA-MQM (Kocmi & Federmann, 2023): per line it lists errors by category (accuracy/mistranslation, omission, addition, terminology, fluency/grammar) × severity (critical 25 / major 5 / minor 1). Line score = 100 − penalties, clipped at 0. Outputs: qa/report.md, qa/flags.jsonl, qa/judge.jsonl, qa/review-*.md.

Upload to YouTube

YouTube Studio → Subtitles → the video → Add language → Upload file → "With timing" → translations/<lang>.srt.

Known failures

  • Members-only/private videos fail in yt-dlp ("Join this channel…") and are logged; the rest continue.
  • Videos with captions disabled (or music only) end up no-captions.
  • Dubbed videos expose several *-orig ASR tracks; only the declared-language one is the true original.
  • Some videos need cookies: set YT_DLP_COOKIES_FROM_BROWSER (e.g. chrome, brave:Profile 1) or YT_DLP_COOKIES (a cookies.txt path).

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 Youtube Translate AI skill do?

Given YouTube links (videos, channels, playlists) or local folders/files (subtitles or media), produce per-language translated SRT subtitle files (default en, uk, de, fr, es, pl) ready to upload to YouTube, plus accuracy QA. Works with any OpenAI-compatible endpoint, or with no endpoint at all — the calling model does the translation itself. Not for dubbing/voice-over, video editing, or titles/thumbnails.

Why use Youtube Translate on TypingMind?

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

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/0xSero/youtube-translate-skill/tree/main. 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 Youtube Translate?

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 Youtube Translate?

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

Is the Youtube Translate AI skill free?

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