Agent skill · Backend & API

gemini-caption-translate

Translate subtitles to target language using Gemini API with context-aware translation

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill gemini-caption-translate --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 4 KB
Bundled scripts: none
Path: skills/ai-llm/gemini-caption-translate/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Gemini Subtitle Translation Skill Use this skill to translate subtitle files while preserving timestamps and formatting. ## Installation ```bash # Using uv (recommended) uv pip install gemini-caption-skills # Or using pip pip install gemini-caption-skills ``` ## Prerequisites ### Get Your API Key 1. Visit: https://aistudio.google.com/apikey 2. Sign in with your Google account 3. Click **"Create API Key"** 4. Copy the key ### Configure API Key (choose one) **Option 1: Save to config (recommended)** ```python from gemini_caption import set_api_key set_api_key("your-api-key-here") ``` Config location: `~/.config/gemini-caption/config.json` **Option 2: Environment variable** ```bash export GEMINI_API_KEY="your-api-key-here" ``` ## Usage ### Translate Subtitle File ```python from gemini_caption.translation import GeminiTranslator translator = GeminiTranslator(verbose=True) # Translate SRT to Chinese translator.translate( input_file="video.srt", output_file="video.zh.srt", target_language="zh", ) # Translate VTT to Japanese translator.translate( input_file="video.vtt", output_file="video.ja.vtt", target_language="ja", ) ``` ### Generate Bilingual Subtitles ```python from gemini_caption

What's inside
Steps it walks through
  1. Installation
  2. Prerequisites
  3. Get Your API Key
  4. Configure API Key (choose one)
  5. Usage
  6. Translate Subtitle File
  7. Generate Bilingual Subtitles
  8. Transcribe and Translate in One Step
  9. Configuration
  10. Supported Languages
  11. Input/Output Formats
  12. Translation Quality Tips
  13. Error Handling
  14. CLI Usage (Coming Soon)
Ships with 1 file
  • metadata.json
Commands it runs
Using uv (recommended)
uv pip install gemini-caption-skills
Or using pip
pip install gemini-caption-skills
export GEMINI_API_KEY="your-api-key-here"
Translate subtitle
gemini-translate input.srt output.zh.srt --lang zh
Generate bilingual
gemini-translate input.srt output.srt --lang zh --bilingual
Transcribe and translate
More from claude-skill-registry
All skills →
About this skill
What does the gemini-caption-translate skill do?

Translate subtitles to target language using Gemini API with context-aware translation

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill gemini-caption-translate --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going