Tooluck logoTooluck
SKILL.md

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)

skills/krillinai-subtitle/SKILL.md

Apache-2.0Full file
1# KrillinAI Subtitle
2
3Use 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.
4
5## Command
6
7```bash
8(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```
15
16## Inputs
17
18- 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.
21
22## Important Flags
23
24| 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 |
35
36## Outputs
37
38After a real run, read paths from `krillinai_manifest.json`. Main files:
39
40- `origin_language_srt.srt`
41…

Excerpt shown under the repository's Apache-2.0 license.

More skills in OpenCreator

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates