Skip to content
cccskills
FreePublished on GitHub

krillinai-cli

Choose and operate KrillinAI CLI commands for subtitles, dubbing, video rendering, covers, and speech. This skill guides setup and helps interpret structured responses, output records, generated files, and errors.

OriginalShow the original description

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.

See how to install

Good for

  • Choose commands for subtitles, dubbing, and video output
  • Build and configure the CLI
  • Check generated files and diagnose errors
  • Find voice codes supported by providers

Files included (2)

  • SKILL.md3.4 KB
  • references/cli-contract.md5.2 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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 intentCommand / skill
Generate source, target, bilingual, and short vertical subtitlessubtitle; use krillinai-subtitle
Generate target-language dubbing from subtitlestts; use krillinai-tts
Create landscape videosrender-horizontal; use krillinai-render-horizontal
Create portrait/short-form videosrender-vertical; use krillinai-render-vertical
Generate a cover from a complete image promptcover; use krillinai-cover
Generate speech from plain textspeech
List provider voice codes for Aliyun, OpenAI, or MiniMaxvoices
Validate a requested multi-stage output planpipeline --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")

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

krillinai-cover

FreeSummary

Generates a cover image through KrillinAI CLI from a complete prompt describing the title, language, composition, and style. Also checks image-provider configuration, validates the output image, and confirms that the submitted prompt was saved accurately.

  • Creating a cover image with specified title text and style
  • Generating a cover at a chosen image size
  • Keeping the submitted prompt alongside the generated image
krillinai/OpenCreator13.7KUpdated Oct 19, 2026

Validate a KrillinAI production plan combining subtitles, dubbing, landscape or portrait videos, and covers. The skill explains how to run stages separately, verify their files, and resume failed work using existing outputs.

  • Validate a plan with several media outputs
  • Map requested outputs to individual commands
  • Resume a failed stage using existing files
krillinai/OpenCreator13.7KUpdated Oct 19, 2026

Render landscape videos with KrillinAI CLI, combining original footage with bilingual subtitles or prepared dubbed footage with target-language subtitles. Optionally replace audio, adjust subtitle styling, and verify the output video and subtitle placement.

  • Render landscape videos with bilingual subtitles
  • Add target-language subtitles to prepared dubbed footage
  • Replace audio or customize subtitle styling
krillinai/OpenCreator13.7KUpdated Oct 19, 2026

Render portrait videos with KrillinAI CLI using short bilingual subtitles or prepared dubbed footage with target-language subtitles. Add titles and check the resulting video for readable captions, working audio, and correctly displayed text.

  • Convert source footage to portrait format
  • Render portrait videos with short bilingual subtitles
  • Add subtitles and titles to prepared dubbed footage
krillinai/OpenCreator13.7KUpdated Oct 19, 2026

Creates original-language, translated, and bilingual SRT subtitle files from YouTube links, local videos, or other supported media. Uses platform captions when available, falls back to Whisper transcription, and provides subtitle output for short vertical videos.

  • Creating translated subtitles from a YouTube video
  • Transcribing a local video into subtitles
  • Producing bilingual SRT files
krillinai/OpenCreator13.7KUpdated Oct 19, 2026

krillinai-tts

FreeSummary

Creates target-language speech from SRT subtitle files using KrillinAI CLI, with optional dubbed video output. Covers voice selection, choosing the target lines in bilingual subtitles, and checking the generated audio and video files.

  • Creating narration from translated SRT subtitles
  • Generating a dubbed version of an existing video
  • Reading only the target language in bilingual subtitles
krillinai/OpenCreator13.7KUpdated Oct 19, 2026

See all skills by krillinai

Report a problem with this skill