krillinai-cli
它能做什么
这项技能指导使用 KrillinAI 命令行工具,它负责字幕、配音、视频渲染和封面图。适合希望将视频本地化或二次利用的创作者。
适用场景
- ✓当你想为视频生成第二种语言的字幕的时候。
- ✓当你想为视频生成另一种语言的配音音频的时候。
- ✓当你需要把横屏视频改为竖屏版本的时候。
技能链接
https://github.com/krillinai/OpenCreator/blob/master/skills/krillinai-cli/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我为我的英文 YouTube 视频制作中文字幕和配音版本,再做一个竖屏版本?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会为你的目标选择正确的 KrillinAI 命令,例如字幕、配音或渲染,并读取结果文件以确认每一步都已成功。每个阶段都在各自的工作文件夹中运行。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
KrillinAI CLI
Use this as the top-level routing skill for KrillinAI command-line work.
Build And Locate The Binary
Build both KrillinAI binaries through the repository script:
pnpm krillinai:build
For the current machine, locate the CLI without assuming a platform or architecture:
TARGET="$(node -p "process.platform + '-' + process.arch")"
SUFFIX="$(node -p "process.platform === 'win32' ? '.exe' : ''")"
KRILLINAI_CLI="$PWD/.runtime/build/krillinai/$TARGET/bin/krillinai-cli$SUFFIX"
test -f "$KRILLINAI_CLI"
The CLI loads config/config.toml relative to its process working directory. For real runs from a source checkout, use runtime/krillinai as the process working directory and create its ignored config/config.toml from config/config-example.toml without overwriting an existing file. A release archive should be run from its unpacked package root.
For build layout, configuration, JSON, manifest, output, and error details, read:
skills/krillinai-cli/references/cli-contract.md
Choose The Command
| User intent | Command / skill |
|---|---|
| Generate source, target, bilingual, and short vertical subtitles | subtitle; use krillinai-subtitle |
| Generate target-language dubbing from subtitles | tts; use krillinai-tts |
| Create landscape videos | render-horizontal; use krillinai-render-horizontal |
| Create portrait/short-form videos | render-vertical; use krillinai-render-vertical |
| Generate a cover from a complete image prompt | cover; use krillinai-cover |
| Generate speech from plain text | speech |
| List provider voice codes for Aliyun, OpenAI, or MiniMax | voices |
| Validate a requested multi-stage output plan | pipeline --dry-run; use krillinai-pipeline |
pipeline only validates plans in dry-run mode; non-dry-run execution returns unsupported_command. status is reserved and unsupported.
Operating Rules For Agents
- Use a dedicated
--workdir; do not scatter outputs in the repo root. - Use
--dry-runfor command-shape validation before external calls. - Parse stdout as JSON lines. The terminal response is the object containing
ok; OpenCreator mode may emit progress frames first. - Treat
krillinai_manifest.jsonand actual output files as the source of truth after a real stage. - Reuse manifest outputs for later stages instead of guessing filenames.
- If a command fails, classify by
error.kind:usage,retryable,dependency, orinternal. - Avoid rerunning expensive stages if the manifest already has valid upstream outputs.
- Do not claim that
coverconsumed a reference image: the current CLI accepts a complete text prompt and size only. - Do not request an Edge TTS voice catalog:
voicescurrently supportsaliyun,openai, andminimax.
Minimal Workflow
REPO_ROOT="$PWD"
WORKDIR="$REPO_ROOT/tasks/demo"
mkdir -p "$WORKDIR"
(cd "$REPO_ROOT/runtime/krillinai" && "$KRILLINAI_CLI" subtitle \
"https://www.youtube.com/watch?v=VIDEO_ID" \
--origin-lang en \
--target-lang zh_cn \
--workdir "$WORKDIR" \
--caption-source any \
--prepare-video)
(cd "$REPO_ROOT/runtime/krillinai" && "$KRILLINAI_CLI" render-vertical \
--workdir "$WORKDIR")
常见问题
这个工具从哪里读取设置?
从它运行所在文件夹中的配置文件读取,需要用你的服务商信息进行设置。
它能从 YouTube 链接开始工作吗?
能。字幕步骤可以从链接开始,优先使用平台字幕,如果没有则进行转录。
各个步骤是一次运行一个吗?
每个阶段都作为独立命令运行,结果保存在同一个工作文件夹中。
详情
作者的原始描述
Use when an agent needs to build or operate the embedded KrillinAI CLI, choose a supported command, or interpret its JSON, manifest, subtitle, dubbing, render, cover, speech, and voice outputs.
repo: krillinai/OpenCreator
热度
- GitHub 星标
- 14k
- 排名
- #11252
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
krillinai-cover
14k帮你的智能体根据文字提示为视频生成封面图,然后检查图片和保存的提示词。
krillinai-pipeline
14k帮你的智能体在执行每个步骤之前,检查包含字幕、配音和渲染等多个 KrillinAI 视频阶段的计划。
krillinai-render-horizontal
14k让你的智能体使用 KrillinAI 渲染带双语字幕的横屏视频,或带目标语言字幕的配音版本。
krillinai-render-vertical
14k让你的智能体把视频转换为竖屏版本,配上简短的双语字幕或配音音频,并检查字幕是否易于阅读。