Communitygithub.com

koubo-video

把一份口播稿子直接做成竖屏口播视频(9:16,适合视频号/抖音/小红书):AI 配音(免费微软语音,或火山引擎克隆音色)、城市航拍背景、「上标题 · 中画面 · 下栏目名」三段式版式、逐句字幕与关键词高亮、角标随段落切换、自动配乐和进度条。只要用户给了稿子/文案/脚本并想要成片、出视频、做口播视频、配音加字幕、批量做短视频,或者要改这类视频的栏目名、标题、角标、配音音色、素材、配乐、颜色,都使用这个 skill——即使用户没提到「skill」或「口播」。

koubo-video 是什么?

koubo-video is a Claude Code agent skill that 把一份口播稿子直接做成竖屏口播视频(9:16,适合视频号/抖音/小红书):AI 配音(免费微软语音,或火山引擎克隆音色)、城市航拍背景、「上标题 · 中画面 · 下栏目名」三段式版式、逐句字幕与关键词高亮、角标随段落切换、自动配乐和进度条。只要用户给了稿子/文案/脚本并想要成片、出视频、做口播视频、配音加字幕、批量做短视频,或者要改这类视频的栏目名、标题、角标、配音音色、素材、配乐、颜色,都使用这个 skill——即使用户没提到「skill」或「口播」。.

兼容平台✓Claude Code✓Codex CLI✓Cursor
npx skills add https://github.com/wuhaotian2026-svg/koubo-video/tree/HEAD/skills/koubo-video

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Talking-Head Video: A Script → A Vertical Video

All editing is done by scripts/kv.py; results are stable and reproducible. Your job: tidy up the script, fill in the configuration, run the commands, check the preview and validation images, and deliver the final video. The user's primary desire is "give a script, get a video". Unless genuinely missing critical information, do not stop to ask a flurry of questions—use sensible defaults to produce a video first, then inform the user what can be changed.

Hereafter, KV refers to python "<path to this skill's directory>/scripts/kv.py".

This skill does not depend on a specific AI tool: as long as you can run terminal commands and read/write files, you can produce a video following the workflow below (Claude Code, Codex, DeepSeek Harness, Cursor, etc. are all possible). Be aware of two capability differences:

  • Cannot view images: In the workflow, steps like "read preview.jpg / check_image.jpg" should be replaced by relying on warnings prefixed with ! in the command output, and then opening build/plan.json to verify subs (each subtitle's text and start/end times) and tags (tags for each segment). During delivery, explicitly ask the user to take a look at preview.jpg and check_image.jpg.
  • Commands have timeouts: make often takes 2–6 minutes. Set the command timeout to at least 10 minutes; if that's not possible, run it in the background and wait for it to finish (only considered complete when the last line shows "Done ✔"). Do not restart it mid-way—restarting will compete for memory and overwrite outputs.

Commands

CommandDescription
KV checkCheck Python, ffmpeg, dependencies, and fonts. Run this first before using.
KV init <project> [--script script_file]Create a new project folder with config.toml + script.txt.
KV preview <project>Generate a preview.jpg in a few seconds to preview title, tags, section name, and subtitle style.
KV make <project> [--force]Produce final_video.mp4, also generating check_image.jpg and footage_sources.txt. Steps that haven't changed are automatically reused from cache.
KV sheet <project>Re-extract frames from the final video to compose a new check image.
KV save-default <project>Save the project's section name, voiceover, and style as defaults for future new projects.

If check reports missing items: Python packages can be installed with pip install -r scripts/requirements.txt; ffmpeg is a system-level tool—inform the user of the installation command (Windows: winget install Gyan.FFmpeg, Mac: brew install ffmpeg) and get their consent before installing.

Workflow

1. Confirm Script Source

Only turn original or authorized scripts into videos. If the user indicates or it's obvious that the script is copied from someone else's video (e.g., "make this blogger's script into my video"), first explain that this is equivalent to copying someone else's work and carries risks of infringement and being flagged as reused content. Propose writing an original script under the same topic; only continue if the user confirms they have authorization. For user-written scripts, no further questions are needed.

2. Create Project, Organize Script

  • Place the project folder in the user's current working directory, with a name like talking-head-<topic>, e.g., talking-head-compound-interest. If the user provides a script file, use init --script to copy it in. If the user pastes the text, after init overwrite script.txt with it (init creates a sample script; forgetting to overwrite will make a video using the sample—make will warn about this).
  • Script format: separate paragraphs with a blank line. Each paragraph is a section, corresponding to one lower-third tag and usually one or two shots. The optional first line can be Title: first line / second line.
  • If the user provides a single block of text, break it into 3–7 paragraphs logically; only adjust the paragraph breaks, do not change the user's wording. Delete any editing notes in the script (e.g., [insert image here]).
  • Time reference: voiceover is about 4–5 characters per second, 1 minute ≈ 250 characters. For scripts over 10 minutes, suggest splitting into multiple videos.

3. Fill in config.toml (Field descriptions in references/config.md)

  • Title [title] lines: Set it here (this overrides any Title: line in the script). If the script doesn't provide a title, write a two-line hook title. Each line should be no more than 9 characters. First line hooks with a question/number, second line gives the conclusion, e.g., "The Most Valuable Things / In the Next Three Years".
  • Tags [tags] labels: One per section, matching the number of paragraphs. Format: "prefix · content" (the · and space are not counted in the character limit, content part ≤ 6 characters), e.g., "Point 1 · Set Agenda". The opening section often uses "Today's Topic", the final section "In Conclusion".
  • Highlighted Keywords [subtitle] keywords: Pick 2–4 most memorable words per paragraph—numbers, conclusions, contrasting words, action words. List them all in a single list. They must match the script text exactly, character for character. Note:
    • The list applies to the entire video; the same word appearing elsewhere will also be highlighted in red. Choose specific words.
    • Avoid selecting a short phrase that exactly matches a full subtitle line (the whole line turning red defeats the purpose of "emphasis")—pick the core few words within the sentence.
    • Words that span punctuation marks will not be highlighted. If make prints "! Keyword... not highlighted", follow the prompt and change the word.
  • Brand [brand]: If the user has saved default configurations, init automatically applies them.
    • When the user provides a new brand name (name), also update the slogan (the small text under the brand name) with a tagline suited to the new brand (≤ 10 characters). If you can't think of one, set it to ""—the template's "One Underlying Logic Every Day" is only a placeholder. end_card contains {name} which is auto-replaced; usually no changes needed.
    • If the brand still uses the placeholder "Wise Station" and the user hasn't provided a brand name, still produce the video, but during delivery remind them: "The brand name is a placeholder. Tell me your account name and I can change it."
  • Voice [voice]: Default is free edge-tts. For the user's own cloned voice, set engine = "volc" and fill in volc_speaker (starts with S_). The API Key is only read from the environment variable VOLC_API_KEY—never write the Key into any file. If the user pastes the Key in the chat, only pass it via the environment variable for the current command, and suggest the user reset it in the console afterwards.
  • Footage and background music default to the built-in free list; generally no changes needed.

4. Preview First, Then Produce

  1. Run KV preview <project>, then read preview.jpg. It is a representative frame: a subtitle with highlighted keywords, paired with the lower-third tag for that section. Check whether the title looks cramped, the tag style and text, and the brand name and slogan are correct. If something is wrong, modify the configuration and preview again—it's fast. (Before voiceover is generated, it uses an estimated timeline, which only affects the preview, not the final video.)
  2. Run KV make <project>. The first run requires voiceover and footage downloads; a 1–2 minute video typically takes 3–6 minutes (see timeout handling at the beginning). Lines starting with ! in the output are warnings that need attention. The last line gives the output path and duration.
  3. Read check_image.jpg (cover frame + beginning of each section + end card; if you cannot view images, adapt by inspecting build/plan.json as described at the beginning). Verify: at 0.3 seconds, the title is centered (cover frame); each section's tag matches its content; subtitles do not exceed the white box; keywords are highlighted in red; the end card text is correct. If you find issues, fix the configuration and rerun—do not deliver directly.

5. Delivery

Inform the user: the final video path and duration (last line of make); the title, tags, and brand slogan you have set (so they know what can be changed); the purpose of footage_sources.txt (for footage attribution review); and to check the "Content is AI-generated" declaration when publishing (AI-synthesized voice counts as AI content). Finally, briefly explain how to modify elements (see table below), and once the user is satisfied with the brand name/voiceover, suggest KV save-default so future projects automatically use these settings.

What to Change → Where to Change

What to Changeconfig.tomlWhat is Redone on Re-make
Brand name, bottom slogan, end card[brand] name / slogan / end_cardGraphics + compositing (~1–2 minutes)
Title[title] linesGraphics + compositing
Tag text[tags] labelsGraphics + compositing
Highlighted keywords, max subtitle chars[subtitle] keywords / max_charsGraphics + compositing
Colors[style]Graphics + compositing
Voice tone, speech rate[voice]Everything from voiceover onward
Script contentscript.txtEverything from voiceover onward
Footage source / shots per section[footage]Footage + compositing
Background music, music volume[music]Compositing

Troubleshooting

  • Errors starting with ✘ are descriptive messages; follow the instructions provided.
  • edge-tts failure: Usually a network issue; retry later.
  • Volcengine error 45000000 / resource ID mismatched: The voice ID is wrong, or volc_resource does not match the voice version (Replica 2.0 → seed-icl-2.0, 1.0 → seed-icl-1.0). HTTP 403: The corresponding resource is not enabled.
  • Subtitles out of sync with audio: First check build/timing.json for that sentence's timestamps. Use KV make <project> --force to redo everything.
  • Pexels mode returns no footage: Switch to English keywords, or use source = "default" / "folder".
  • Computer lagging / insufficient memory: Rendering uses approximately 1–2 GB RAM; close other heavy programs before running.

相关技能