subtitle-translator

subtitle-translator is a skill for Claude Code, Codex from MaKTaiL/gemini-srt-translator. It costs 60 tokens per session (1,317 once invoked), scanned A, a copy of subtitle-translator, MIT.

A subtitle translation workflow for SRT and ASS files, as well as videos with embedded subtitles. It keeps timestamps and subtitle formatting while translating with surrounding dialogue for context.

In plain words
What is it for?
Use it to translate subtitle files or video subtitles into another language while preserving their timing and format.
Why use it?
It avoids losing timing, layout, or consistent meaning when translating subtitles in separate short lines.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to translate subtitle files or video subtitles into another language while preserving their timing and format.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/maktail/gemini-srt-translator/subtitle-translator
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add MaKTaiL/gemini-srt-translator --skill subtitle-translator
Clone the repo
git clone --depth 1 https://github.com/MaKTaiL/gemini-srt-translator

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for subtitle-translator

README.md
[![agentmods](https://agentmods.dev/badge/skills/maktail/gemini-srt-translator/subtitle-translator/github.svg)](https://agentmods.dev/skills/maktail/gemini-srt-translator/subtitle-translator)
Your own site
<a href="https://agentmods.dev/skills/maktail/gemini-srt-translator/subtitle-translator"><img src="https://agentmods.dev/badge/skills/maktail/gemini-srt-translator/subtitle-translator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for subtitle-translator

Your own site · 80×15
<a href="https://agentmods.dev/skills/maktail/gemini-srt-translator/subtitle-translator"><img src="https://agentmods.dev/badge/skills/maktail/gemini-srt-translator/subtitle-translator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,317 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00060 $0.01317
Opus 5 $0.00030 $0.00659
Sonnet 5 $0.00012 $0.00263
Haiku 4.5 $0.00006 $0.00132

Measured 10d ago against content hash 63c57dc53392, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

subtitle-translator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to subtitle-translator — 1 line differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/subtitle-translator/SKILL.md · 111 lines

How it starts

The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Subtitle Translator Skill

🎯 Role & Agent Protocol (CRITICAL)

When this skill is invoked:

  1. YOU ARE THE TRANSLATOR: You (the AI assistant) perform the translation directly in your context window using your own linguistic intelligence.
  2. NO API KEY REQUIRED: Do NOT ask the user for an API key or external credentials. The gst agent protocol runs completely locally and does not require an API key.
  3. DO NOT RUN EXTERNAL TRANSLATION SCRIPTS: Do NOT look for or execute external Python scripts. Use ONLY the gst agent CLI commands below.
  4. VIRTUAL ENVIRONMENT EXECUTION: gst may be installed in a project virtual environment (.venv or venv) rather than globally. If gst is not recognized:
    • Use the virtual environment binary: .venv/bin/gst (Linux/macOS) or .venv\Scripts\gst.exe (Windows)
    • Or use environment package runners: uv run gst ... / poetry run gst ...

When to Use

  • When the user asks to translate a subtitle file (.srt or .ass) into another language.
  • When translating multi-part dialogue requiring context awareness and consistent character tone/gender agreement.
  • When working with video files (.mp4, .mkv, etc.) that contain extractable subtitle streams.

Subtitle Translation Protocol

Step 1: Start a Translation Session

Run the start command to initialize the session and receive the first batch of subtitle lines:

gst agent start <INPUT_FILE> -l "<TARGET_LANGUAGE>" [--batch-size N] [--context-size N] [--description "<OPTIONAL_CONTEXT>"] [--pretty]

<INPUT_FILE> can be a subtitle file (.srt, .ass) or a video file (.mp4, .mkv, .avi, etc. — embedded subtitles will be automatically extracted).

CLI Options Reference
Flag Description Default
-l, --target-language Target language name (e.g. "French", "Spanish") Required
-b, --batch-size Number of subtitle lines per batch 100
--context-size Preceding lines to include in context fields 0 (agent retains chat history)
-o, --output-file Custom output subtitle path <input>_translated.srt/.ass
-d, --description Background context notes (e.g. series name, character tone) None
--pretty Pretty-print JSON responses with indentation false (compact JSON)
--no-resume Start fresh without resuming previous .progress false

Read the full file on GitHub · 111 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 111 lines · 60 tokens per session scan A 63c57dc53392

Subscribe to this mod's changes

subtitle-translator is a skill published in the GitHub repository MaKTaiL/gemini-srt-translator (352 stars, last pushed 8d ago), licensed MIT. It adds 60 tokens to every session and 1,317 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to subtitle-translator, differing in 1 line, and is treated as a copy.

Related

Other skills, from other repositories

chinese-documentation

A Chinese technical-documentation style guide covering spacing, punctuation, numbers, terminology, and links when Chinese and English appear together.

jnMetaCode/superpowers-zh · 62 tokens

azure-ai-translation-text-py

Azure AI Text Translation SDK for real-time text translation, transliteration, language detection, and dictionary lookup. Use for translating text content in applications. Triggers: "text translation", "translator", "translate text", "transliterate", "TextTranslationClient".

microsoft/skills · 60 tokens

harden

Improve interface resilience through better error handling, i18n support, text overflow handling, and edge case management. Makes interfaces robust and production-ready. Use when the user asks to harden, make production-ready, handle edge cases, add error states, or fix overflow and i18n issues.

fengshao1227/ccg-workflow · 62 tokens

seedance-vocab-ja

This skill should be used when the user asks for Japanese Seedance 2.0 prompt wording, Japanese cinematic vocabulary, or translation of camera, lighting, action, VFX, audio, and production terms into Japanese.

Emily2040/seedance-2.0 · 50 tokens

asc-subscription-localization

Bulk-localize subscription, subscription-group, and in-app purchase display names across App Store locales using asc, including API 4.4.1 version-scoped v2 resources. Use when filling or updating subscription/IAP names and descriptions without App Store Connect UI work.

rorkai/app-store-connect-cli-skills · 60 tokens

i18n-helper

A helper for adding internationalization, which lets software show different languages and regional text. It finds user-visible text written directly in code and moves it into language files.

laolaoshiren/claude-code-skills-zh · 33 tokens