跳到正文
Skillpedia
视频剪辑14k · #11252

krillinai-cli

它能做什么

这项技能指导使用 KrillinAI 命令行工具,它负责字幕、配音、视频渲染和封面图。适合希望将视频本地化或二次利用的创作者。

适用场景

  • ✓当你想为视频生成第二种语言的字幕的时候。
  • ✓当你想为视频生成另一种语言的配音音频的时候。
  • ✓当你需要把横屏视频改为竖屏版本的时候。

技能链接

https://github.com/krillinai/OpenCreator/blob/master/skills/krillinai-cli/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/krillinai/OpenCreator/blob/master/skills/krillinai-cli/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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-run for 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.json and 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, or internal.
  • Avoid rerunning expensive stages if the manifest already has valid upstream outputs.
  • Do not claim that cover consumed a reference image: the current CLI accepts a complete text prompt and size only.
  • Do not request an Edge TTS voice catalog: voices currently supports aliyun, openai, and minimax.

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能