Chuyển đến nội dung
Skillpedia
Dựng video14k · #11252

krillinai-cli

Skill này làm gì

Skill này hướng dẫn sử dụng công cụ dòng lệnh KrillinAI, xử lý phụ đề, lồng tiếng, dựng video và ảnh bìa. Skill dành cho người làm nội dung muốn bản địa hóa hoặc tái sử dụng video của mình.

Khi nào nên dùng

  • ✓Khi bạn muốn có phụ đề bằng ngôn ngữ thứ hai cho một video.
  • ✓Khi bạn muốn có âm thanh lồng tiếng bằng ngôn ngữ khác cho một video.
  • ✓Khi bạn cần phiên bản dọc, khổ chân dung của một video ngang.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/krillinai/OpenCreator/blob/master/skills/krillinai-cli/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Bạn có thể làm phụ đề tiếng Trung và bản lồng tiếng cho video YouTube tiếng Anh của tôi, rồi làm thêm một bản dọc không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent chọn lệnh KrillinAI phù hợp với mục tiêu của bạn, chẳng hạn phụ đề, lồng tiếng hoặc dựng video, rồi đọc các tệp kết quả để xác nhận mỗi bước thành công. Mỗi giai đoạn chạy trong thư mục làm việc riêng.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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")
Câu hỏi thường gặp

Công cụ đọc cài đặt ở đâu?

Từ một tệp cấu hình trong thư mục nơi công cụ được chạy, và tệp này phải được thiết lập với thông tin nhà cung cấp của bạn.

Có thể làm việc từ liên kết YouTube không?

Có. Bước phụ đề có thể bắt đầu từ liên kết, dùng phụ đề có sẵn của nền tảng trước, và chuyển sang phiên âm nếu không có.

Các bước có chạy lần lượt không?

Mỗi giai đoạn được chạy bằng một lệnh riêng, và kết quả được giữ trong cùng thư mục làm việc.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
14k
Vị trí xếp hạng
#11252
Giấy phép
Apache-2.0
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự