ToggleOps

Subtitle skill

Subtitles done properly: generate, check, translate and burn in.

Open in the library

What it does

Deterministic subtitle validation, SRT/WebVTT generation, video caption burn-in, machine translation of subtitle documents (offline Argos Translate by default, optional OPUS-MT on CTranslate2, a local Ollama LLM, DeepL, or a caller translation memory; timecodes kept, line length and reading speed re-checked for the target language), and multi-language soft-subtitle mux. Given an already-decided, typed subtitle document (cue text, timing, optional speaker/style), validate its timeline, generate an SRT or WebVTT file, translate it, or burn/mux it into a video by delegating to ffmpeg-skill's caption tool. Use this skill only after another agent has already decided what the subtitle cues should say and how they should be split -- it performs no transcription, no diarization, no cue-splitting judgement, and no "does this look right" visual check.

What’s inside

27files
321 KBin total
2,639words of method
51hard numbers
SKILL.md19 KB
Markdown · 322 lines · 2,639 words · sha 8ff292b3b17b
subtitle-skill5 lines
When to use this skill31 lines
Building a SubtitleDocument41 lines · 11 numbers
Fatal vs. warning: read `observation`, don't assume success mean28 lines · 10 numbers
Ruby, vertical text and regional profiles17 lines · 3 numbers
`generate` vs. `render`87 lines · 21 numbers
`translate` and `mux`36 lines · 6 numbers
ffmpeg-skill dependency9 lines
Unsupported operation / format4 lines
Failure handling15 lines
__init__.py2 KB
__main__.py79 B
cli.py6 KB
contract.py17 KB
doctor.py5 KB
engine.py45 KB
errors.py2 KB
fonts.py11 KB
installer.py5 KB
locales.py14 KB
models.py13 KB
operations.py56 KB
pathpolicy.py4 KB
placement.py17 KB
provenance.py1 KB
regional.py5 KB
security.py1 KB
shorts.py6 KB
translation.py41 KB
validation.py10 KB
formats6 files · 42 KB
__init__.py778 B
_text.py1 KB
ass.py12 KB
srt.py6 KB
ttml.py20 KB
vtt.py2 KB

The text is never on this site. It loads into your Claude when a task needs it.

More skills

ExploreFor creatorsDiscordTermsPrivacy
Not affiliated with Anthropic. Claude is a trademark of Anthropic.
Get early access