html-explainer-video
它能做什么
这个技能指导 AI 智能体制作一部完整的一分钟讲解短片。适合希望用配音和动画场景展示产品或想法的短视频团队。
适用场景
- ✓你想为某个产品或功能制作一分钟讲解视频的时候。
- ✓你需要一部带有配音和字幕的简短引导影片的时候。
- ✓你想用网页场景来制作视频,而不是拍摄真实画面的时候。
技能链接
https://github.com/MengTo/Skills/blob/main/agent-skills/media/html-explainer-video/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我的应用新提醒功能制作一分钟讲解视频,带有配音和字幕。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会撰写脚本并录制配音音轨,然后用 HTML 绘制每个场景,并与字词的时间对齐。场景会逐帧渲染,并与字幕和音乐一起组合成视频。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
HTML Explainer Video
HTML scenes · Fil's video editor over MCP · Playwright · ffmpeg. A scene engine without a framework is in scripts/explainer.js.
An explainer is a voice with pictures cut to it. This skill writes the voice, then draws every picture in HTML from one number: the film's seconds. Each thing on screen lands on the word that names it, because its time is that word's time (T.clock is when the voice says "clock"). It looks like motion design and it's a web page, so its look, its shape and its camera are settings, not rebuilds.
Boundary. Use html-demo for a live app window on a web page (no video file). Use html-reel to turn an existing post, video or page into a 9:16 reel in that source's look. Use website-to-motion-design for a short piece with no voice. Use this skill when the deliverable is a finished explainer film, about one minute, that explains something.
Provenance. Extracted from seven one-minute onboarding films for Fil, 31 October to 1 November 2026. Each had a hook, a benefit, a quick tutorial with numbered headings and an ask, with scenes rendered at 2× and 60 fps and assembled in Fil's video editor. Those were locked to one dark look, one shape (4:3) and a camera slot, and built on Fil's own demo components. Here all three are inputs and nothing depends on Fil's components. The film in demo/ is this skill's own explainer, made with it: one script, in four looks and four shapes, with the camera off or on, and no change to a scene. The rules below are what those films cost to learn.
The mechanism
Every frame is a pure function of one number, and every time is a word. A scene sets everything from t, the film's seconds. HTMLExplainer.times(WORDS) names each word of the voice (T.clock, T.clockEnd, a word said again T.look2). A renderer calls window.__frame(t) once a frame and screenshots; nothing reads a clock.
// film.js: a scene. No colour, no font, no pixel of layout from the shape.
const T = times(window.WORDS);
const step3 = {
id: 'step3', from: T.three - 0.12, tone: 3,
draw(t, $, f) {
show($('.x-head'), t, T.three); // when; the look says how
show($('#code'), t, T.clock); // lands on the word "clock"
ring($('#last'), t, T.word); // a thin line, on "word"
$('#code').textContent = `T.clock = ${T.clock.toFixed(2)}`;
},
};
film({ words: window.WORDS, end: T.end + 2.4, scenes: [hook, step3, end] });
Take that away and all of it breaks. A scene on CSS timelines or timers plays at its own pace, so a new voice means animating it again, and the cuts drift a few frames every time. A frame drawn from t is the same picture every run, so a re-render changes only what you changed.
The three inputs
None of these touches a scene. Read them from the person, or use the defaults.
| input | how it's set | default | what it changes |
|---|---|---|---|
| Look | <html data-look="…"> or ?look=, one block of --x- variables (references/looks.md) |
read from their site, else ask for a style | type, colour, corners, edges, where the headline sits, window chrome, picture treatment, captions, and how things move |
| Shape | shape: or ?shape=: 4:3, 16:9, 1:1, 9:16 |
where it'll be seen; 4:3 if nobody says |
the stage (short side always 1080) and every region: --pic-x, --head-y… |
| Camera | camera: or ?camera=on |
off | off: no slots, no kept corner, scenes fill the frame. On: references/camera.md |
show(el, t, at, leave) is why a look can move differently without a change to a scene: the scene says when, and --x-motion (rise, fade, snap, wipe) says how. A look's block of variables can sit on any element too, which is how the film shows three looks side by side.
Workflow
Ask at most one question before starting, and only if the thing to explain is missing. Say the defaults you took.
- Write Explainer.md: what it is, the one idea someone should leave believing, who it's for, every fact the film may state with where it comes from, and the ask. Read the product's own site, docs or source for those facts. A film can only say what's on this list.
- Set the look (
references/looks.md):scripts/read-look.mjs <their site> --name brandmeasures it intobrand.cssandbrand.md; or they name a style and you write the block. Compare it with their page by eye. Collect their real logo and real pictures now, sized
常见问题
我需要自己拍摄吗?
不需要。讲解视频使用配音音轨和绘制的场景,因此无需拍摄。
视频有多长?
目标时长约一分钟,包括开场钩子、好处说明、简短教程和行动号召。
画面风格可以更改吗?
可以。技能把视觉风格、形状和镜头都视为设置项,因此无需重新构建就能更改风格。
详情
作者的原始描述
Turn a product, a feature or an idea into a finished one-minute explainer video in any look: a script (hook, benefit, quick tutorial, try it), a voice whose words are the clock, HTML scenes drawn from that one clock and rendered frame by frame at 2×, and an edit in Fil's video editor over MCP with captions, music, sound effects and chapters. The look is an input, read from the person's site or a named style, so the same film can wear any type, colour, corners and motion. The shape is an input (4:3, 16:9, 1:1, 9:16). No camera by default: a voice-led film whose scenes fill the frame; ask for a
repo: MengTo/Skills
热度
- GitHub 星标
- 7.2k
- 排名
- #13386
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …
同一仓库的更多技能
3d-cloth-material
7.2k帮你的智能体在 Three.js 中制作逼真的编织织物,包括纱线编织纹理、柔和光泽、自然褶皱、下摆和缝线。
3d-falling-leaves
7.2k帮你的智能体在 3D 场景中添加逼真的飘落树叶,树叶会翻滚、随风飘动,并在镜头移动时循环利用。
3d-four-seasons
7.2k帮你的智能体为 3D 场景添加春夏秋冬四季效果,无需重建场景即可改变植被、光线、天空和积雪。
3d-high-poly-models
7.2k帮你的智能体构建形状平滑、边缘可信的精细 3D 模型,然后制作在网页上运行流畅的轻量版本。