/minli-skill:explain-videofrom minli-skill
Turns a concept into a narrated explainer video via HTML slide deck, TTS voiceover, subtitles, background music, and Playwright/ffmpeg screen recording.
Ships in minli-skill. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Turns a concept into a finished narrated video. No digital human, no avatar — an HTML deck is the source of truth, and everything else is generated from it.
The whole point of doing it this way: an HTML deck is code. It diffs, it takes a scripted screenshot, it re-renders identically, and one file drives both the visuals and the narration text. Drag-and-drop slide tools cannot do that.
concept ──discuss──▶ framework.json ──▶ index.html + narration.{txt,json,md}
│
┌─────────────────────────┴──────────────────────┐
▼ ▼
TTS (voicebox/edge/say) Playwright records
audio/voice.wav the animated deck
│ │
build_srt.py trim the lead-in
audio/voice.srt ─────────▶ caption PNGs ────▶ overlay + mux ────▶ final/*.mp4
│ ▲
mix_bgm.sh ──────────────────────────────────────────┘
Steps 1–2 are authoring (do them with the user). Steps 3–7 are mechanical and
scripts/build_video.sh runs them.
Do not open an editor yet. Talk the concept through with the user, then write
framework.json:
{
"concept": "...", "audience": "...", "one_liner": "...",
"total_pages": 8, "target_duration_sec": 94,
"structure": [{ "page": 1, "role": "钩子", "point": "..." }]
}
Rules that hold up: 8 pages ≈ 90–110 seconds. One point per page. Give every page a role (hook / context / why / overview / method / method / method / close), not just a title. Show the framework and get a yes before drafting.
Copy references/deck-template.html to presentations/<slug>/index.html and
rewrite the slides. Write the narration into the slides as
data-narration, with data-duration in seconds — that markup is the single
source, and everything downstream reads it.
Narration voice: spoken, not written. Short sentences. No academic register. One to two sentences per page. Read it out loud; if you stumble, so will the TTS.
Then emit four sibling files:
| file | what | consumed by |
|---|---|---|
index.html | the deck | recording |
narration.json | per-slide title / narration / duration_sec | timeline |
narration.txt | continuous script, one blank-line-separated paragraph per slide, same order | TTS + SRT |
narration.md | human-readable script + page/time table | the user |
narration.txt's paragraph-per-slide structure is load-bearing — build_srt.py
uses paragraph boundaries to place the pauses between slides. Pressing E in
the deck exports narration.json directly from the markup.
Let the user read narration.md and approve before spending TTS time.
S=~/.claude/skills/minli-skill/skills/explain-video/scripts
bash $S/build_video.sh presentations/<slug> --bgm audio/music.mp3
--tts auto (the default) uses the local Voicebox daemon if it answers, else
edge-tts if installed, else macOS say. Nothing downstream cares which one
ran, so a first pass on say is a legitimate way to see the whole pipeline
work before setting up a real voice:
bash $S/build_video.sh presentations/<slug> --tts say # zero install
bash $S/build_video.sh presentations/<slug> --tts edge --voice zh-CN-YunxiNeural
bash $S/build_video.sh presentations/<slug> --tts voicebox --voice <profile> # cloned voice
python3 $S/tts.py --engine edge --list # what voices exist
Each step skips if its output exists, so iterating is cheap:
bash $S/build_video.sh presentations/<slug> --only mix,compose --bgm-volume 0.12 # BGM too loud
bash $S/build_video.sh presentations/<slug> --from record # deck changed
bash $S/build_video.sh presentations/<slug> --only srt,compose # captions off
bash $S/build_video.sh presentations/<slug> --force # rebuild all
Scripts, if you need one on its own:
tts.py — narration → audio/voice.wav on whichever engine is available.tts_voicebox.py — the Voicebox backend on its own. --list shows profiles.build_srt.py — narration + measured audio duration → audio/voice.srt.deck_capture.py timeline|slides|video — timeline scaled to real audio; static PNGs; animated webm.render_captions.py — SRT → transparent PNGs + record/burn_caps.sh.mix_bgm.sh — voice + music → audio/voice_with_bgm.wav.compose.sh — align, burn captions, mux → final/<slug>.mp4.Use .venv/bin/python if the project has one (Playwright and Pillow live
there); build_video.sh finds it automatically.
Audio duration is the master clock. Authored data-duration values are
estimates. TTS decides the real length. Everything — slide timeline, captions,
recording — gets scaled to the measured voice.wav duration, never the other
way round. Never hardcode a duration; always ffprobe it.
Playwright's webm is longer than the sum of the waits. Browser startup
happens before the first deckAPI.go(), and that surplus sits at the head of
the file. compose.sh trims vid_dur - audio_dur off the front before burning
captions. Skip that and every caption lands late by ~2–3 seconds. This was the
"字幕和音频不同步" bug.
subtitles= may not exist. Homebrew ffmpeg is frequently built without
libass. Check with ffmpeg -filters | grep subtitles. compose.sh falls back
to Pillow-rendered transparent PNGs overlaid with
enable='between(t,start,end)' — which also gives better CJK font control.
Caption PNG chains scale fine to ~50 cues; past a few hundred, split the video.
amix normalizes by default. It divides each input's gain by the input
count, so the BGM disappears and raising volume= does nothing. Always
normalize=0 and set levels explicitly. Voice at loudnorm=I=-16, BGM at
volume=0.20, alimiter=limit=0.97 on the sum. Verify with volumedetect
rather than trusting the graph.
Synthesized sine pads sound like tinnitus. The "滋滋声" complaint. Use a real
music file. --bgm synth is only a no-network fallback.
Voicebox hangs need clearing. /generate/{id}/status is a blocking SSE
stream — poll /history/{id} with Accept: application/json instead. A crashed
worker leaves jobs stuck in generating forever and blocks new ones;
tts_voicebox.py --cancel-stuck clears them. If the daemon itself is
unresponsive, kill the orphaned voicebox-server and reopen the app.
Don't ASR your own script for subtitles. The text is already known exactly;
Whisper only adds transcription errors. What's missing is timing, and
distributing known text across the measured duration by character weight lands
within ~0.3s per cue. (Voicebox's /transcribe also failed on every model tier
in practice.)
A deck sized for the preview looks empty at 1920×1080. The "右边太空了"
problem. Two causes, both fixed in the template's body.record-mode block:
max-width on slide children strands the right third, and rem-capped
clamp() font sizes tuned for the ~1120px preview stage stay small when the
stage grows to full frame. Record mode drops the ceilings and sizes type in
vw, and reserves padding-bottom: 16vh so vertically-centred content sits
above the caption band instead of behind it. Always eyeball a real frame
(ffmpeg -ss <t> -i final.mp4 -frames:v 1 f.png) before calling it done.
presentations/<slug>/
framework.json index.html narration.{json,txt,md}
audio/ voice.wav voice.srt bgm_loop.wav voice_with_bgm.{wav,mp3}
record/ timeline.json animated_capture.webm aligned.mp4
caps/ caps_meta.json burn_caps.sh captioned.mp4
final/ <slug>.mp4
Required: ffmpeg + ffprobe; Python 3.9+ with playwright (then
python -m playwright install chromium) and pillow.
pip install playwright pillow && python -m playwright install chromium
brew install ffmpeg # macOS; any recent ffmpeg works
For the voice, one of: Voicebox on 127.0.0.1:17493 (cloned voice, best),
pip install edge-tts (free neural voices, cross-platform), or macOS say
(already there). A CJK font is needed for Chinese captions — render_captions.py
probes for Arial Unicode.ttf, Hiragino Sans GB, or STHeiti.
Developed and run on macOS (Apple Silicon). The Python and ffmpeg steps are
portable; --tts say is the only macOS-only piece.
references/deck-template.html — working deck with the full deckAPI recording
contract, staggered enter animations, and [data-step] progressive highlights.README.en.md (opens in a new tab)README.ja.md (opens in a new tab)README.ko.md (opens in a new tab)README.md (opens in a new tab)README.pt-BR.md (opens in a new tab)references/deck-template.html (opens in a new tab)scripts/build_srt.py (opens in a new tab)scripts/build_video.sh (opens in a new tab)scripts/compose.sh (opens in a new tab)scripts/deck_capture.py (opens in a new tab)scripts/mix_bgm.sh (opens in a new tab)scripts/render_captions.py (opens in a new tab)scripts/tts.py (opens in a new tab)scripts/tts_voicebox.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
explainer-video, slide-deck, tts, screen-recording, video-pipeline, narration
Generated from the plugin's indexed repository (limin112/min-skill) — no native marketplace selected
npx claudepluginhub p/limin112-minli-skill8 skills in this plugin
/copy-kakasi「copyKakasi / 逐镜复刻」:把一段有权使用的视频(MV、短片、广告)按原片分镜 1:1 重拍——构图、机位、动作、节奏、配乐都照原片,只把演员换成用户本人、本人明确同意的成年人或 AI 虚构角色。流程:切镜头 → 选镜头、剪歌 → 取首尾帧 → 换脸或打码重画 → 用户自己部署的 MiniMax H3 首尾帧模式逐镜头生成 → 重采样回原帧数、去油腻调色 → 拼接配歌 → 上下对照版。触发:copyKakasi、copy-kakasi、「逐镜复刻」「1:1 复刻」「照着原片一镜一镜重拍」「把这段 MV 换成我来演」,以及成片后按镜头返工(「这镜不要说话」「动作太快」「脸崩了」「跟原片剧情不符」)。不用于:把未同意的真人、未成年人、公众人物的脸放进去;只仿风格、内容重写的新片。/digital-human-koubo把任意一篇文章(技术教程、产品发布、新闻解读、读书笔记、论文、公众号长文……)做成数字人讲解视频,全程本地开源模型、不接云端生成服务:读文章 → 写多角色口播稿(每段带一个声明式画面 visual:大字、配图、圈重点、数据卡、终端、流程、标签、柱状图、金句、片尾阵容)→ 本地文生图出角色首帧(默认 MOSS-Image,可挂自己训的人物 LoRA)→ 本地 MiniMax H3(ComfyUI + Turbo 加速,双卡)按段生成「画面 + 原生配音」→ whisper 逐段回听 → 逐字对齐 → 通用 Remotion 模板出片(配色 / 配乐有魔幻、科技、温暖、史诗四种情绪预设,配乐代码合成无版权)。支持多角色同台(真人感主讲、搭档吐槽、Pixar 风动物、二次元 Q 版)、多语言混说(如英式英语开场切普通话)、双语字幕;另有花字口播 / 发布解读 / 多主播等风格和 48 个包装组件。触发:讲解这篇文章、把文章做成视频、数字人口播、数字人讲解、AI 主播讲一下、用我的数字人讲、本地 H3 生成口播、做个教程讲解视频、加花字 / 加包装。不用于:冒充真人、用别人的脸或声音。/freetoken-botsFree-model radar, quota tracker and zero-cost router for OpenRouter + OpenCode Zen. Discovers free models daily (new / no-longer-free / limited-time / anonymous), tracks free quota and rate limits, runs a local OpenAI-compatible router (Chat Completions + Responses API) that fails over only between OpenRouter free models, and uses OpenCode as the harness for OpenCode Zen free models (which official docs restrict to the OpenCode client) — any shell-capable agent can hand tasks to OpenCode with `ftb delegate`. Works with Pi, Codex CLI, OpenCode, Grokbot, Hermes and any OpenAI-compatible agent. Activates when the user mentions OpenRouter, OpenCode Zen, free tokens, free models, zero-cost models, 免费 token, 免费模型, 白嫖模型, or wants an agent to run on free models./handwriting-stand-upTurn a screen recording of handwriting (or a photo of handwritten text) into a single-file HTML "continuation" — the recording plays, the ink lifts off the page as solid 3D letters, a short animated story plays out in front of them (medieval-marginalia characters on a pop-up paper stage, captions, synthesized sound), and everything lies back down on the page at the end. Use when the user sends a video or photo of handwriting and asks to make it 立起来 / 站起来讲故事 / 做成 HTML 延续 / 让手写字变 3D / animate handwritten words into a story, or asks for a new story on an existing stand-up project./hdr-videoConvert an SDR video (or a clip of it) into a 10-bit HEVC HLG / BT.2020 HDR file whose highlights glow on HDR screens, and build a left/right SDR-vs-HDR comparison in a single file. Pure ffmpeg plus a generated 3D LUT (no zscale / libplacebo needed); parameters are chosen from measured luma stats, and the output tags are verified. Use when asked to make a video HDR / 做成 HDR / SDR 转 HDR / HLG / 亮瞎 / 高光发光, to make a clip look like an HDR reference, to compare SDR and HDR side by side (左右对比), or to judge or describe a scene that suits HDR./video-remake「videoRemake / 视频翻拍」:给一段有权使用的视频,聊几句,出另一个版本——镜头运动、节奏、每个节拍的时间点都照原片,内容整个换掉:换世界观(现代街头 → 古代皇宫、欧洲中世纪)、换画风(真人 → 动漫、水墨、黏土)、换完整角色(脸、身体、服装一起换)、或者一路穿越不同画风。流程:拆原片 → 和用户定节拍表 → 定妆图 → 逐张重绘关键帧(原片里的人先换成灰模)→ 按节拍分段、每段首尾都钉在关键帧上逐段生成 → 变速对齐、拼片配声 → 节点图管理页。生成视频这一步不绑定任何平台:用户说用什么就用什么——自己的显卡和本地模型、任何视频平台的接口、或者在网页上手工生成后把片子放回来。触发:videoRemake、video-remake、「翻拍这个视频」「把这个视频改成古代 / 中世纪 / 动漫风」「照这个视频的运镜做一个…版本」「换成另一个世界观」「整个角色换掉」「穿越不同画风」,以及成片后按段返工。只换演员的脸、别的都不动,用 copy-kakasi。不用于:把未同意的真人、未成年人、公众人物放进去;去水印;绕过平台下载限制。Other plugins' skills for the same job