daftai-subtitle-translatorlisted
Install: claude install-skill daftAI2026/daftAI-skills
# Subtitle Translator
Translate subtitle files between languages with accuracy validation.
> **Scripts**: All scripts are in `scripts/` relative to this SKILL.md.
> **CRITICAL**: When running any `bun scripts/...` command, you MUST set the working directory (`cwd`) to this skill's base directory. Do NOT run from the user's project directory.
## Workflow
```
- [ ] Step 1: Input validation (file exists, format supported)
- [ ] Step 2: Detect source language + confirm target language
- [ ] Step 3: Preprocess (VTT → SRT if needed)
- [ ] Step 4: Terminology scan (extract terms, build session glossary)
- [ ] Step 5: Translate subtitles (batch, with validation)
- [ ] Step 6: Review (optional, check consistency & quality)
- [ ] Step 7: Bilingual merge (optional)
- [ ] Step 8: Output report
```
### Flow
```
Input → [Step 1: Validate] → File exists, format check
↓
[Step 2: Language] → Auto-detect source + confirm target
↓
[Step 3: Preprocess] → VTT → SRT convert (if needed)
↓
[Step 4: Term Scan] → Extract terms, build session glossary
↓
[Step 5: Translate] → Batch translate (20 lines) + count validation
↓
[Step 6: Review] → Consistency & quality check (optional)
↓
[Step 7: Merge] → Bilingual SRT (if requested)
↓
[Step 8: Report] → Output paths + counts
```
---
### Step 1: Input Validation
**Goal**: Confirm subtitle file exists and format is supported
1. User provides subtitle file path
2. Supported formats: `.srt`, `.vtt