krillinai-subtitle
Agent skill fromkrillinai/OpenCreator
Use when generating subtitles with KrillinAI CLI from a YouTube link, Bilibili/local video, or existing media, including platform caption download, Whisper fallback, translation, bilingual SRT, and short vertical subtitle output.
How to install krillinai-subtitle
install krillinai-subtitle
# install the OpenCreator pack with the skills CLI
npx skills add krillinai/OpenCreator# or add only this skill to Claude Code: copy the folder
skills/krillinai-subtitle/
# into
~/.claude/skills/krillinai-subtitle/ (all projects)
.claude/skills/krillinai-subtitle/ (one project)
1# KrillinAI Subtitle23Use this skill for the `subtitle` stage. Read `skills/krillinai-cli/references/cli-contract.md` first for binary location, execution working directory, configuration, and JSON behavior.45## Command67```bash8(cd "$KRILLINAI_CWD" && "$KRILLINAI_CLI" subtitle "<input>" \9 --origin-lang en \10 --target-lang zh_cn \11 --workdir "$WORKDIR" \12 --caption-source any \13 --prepare-video)14```1516## Inputs1718- YouTube URL: prefer `--caption-source any`; platform captions are used first, then Whisper fallback.19- Local file: use `local:/abs/path/video.mp4` or a path accepted by the CLI.20- Bilibili or other yt-dlp supported links: use when media download works; platform caption behavior may differ, so expect transcription fallback.2122## Important Flags2324| Flag | Use |25|---|---|26| `--origin-lang` | Source language, such as `en`, `zh`, `ja` |27| `--target-lang` | Target language, such as `zh_cn` |28| `--workdir` | Dedicated task directory |29| `--caption-source any` | Prefer platform captions, fallback to transcription |30| `--caption-source whisper` | Force transcription |31| `--prepare-video` | Require the original video for later render stages |32| `--bilingual-top=true` | Put target language on top in bilingual SRT |33| `--subtitle-style-file` | Merge a JSON subtitle-style override |34| `--dry-run` | Validate without downloads or AI calls |3536## Outputs3738After a real run, read paths from `krillinai_manifest.json`. Main files:3940- `origin_language_srt.srt`41…
Excerpt shown under the repository's Apache-2.0 license.
