html-video
Skill0 starsChanged 8 days agoMITView on GitHub
Turn a text brief into a rendered MP4 video by writing one deterministic HTML animation and capturing it frame by frame on the user's own machine with Playwright and FFmpeg. Use when the user asks for an explainer video, kinetic typography, an animated announcement, a data story, or any short video, especially when no video-generation service is available, affordable, or wanted.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- hplive/claude-skillstheir own version, first seen Nov 16, 2026
- ZhouYinLong-lab/Dog-Skillstheir own version, first seen Nov 8, 2026
- Mathews-Tom/armorytheir own version, first seen Nov 1, 2026
- TecnicalBot/mobile-agenttheir own version, first seen Nov 1, 2026
- KevinRaihan/haro-skillstheir own version, first seen Mar 30, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- Mathews-Tom/armory★ 340same name
- TecnicalBot/mobile-agent★ 75same name
- ZhouYinLong-lab/Dog-Skills★ 7same name
- hplive/claude-skills★ 0same name
- KevinRaihan/haro-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- cloudflare-workerSkill
- oss-contributorSkill
- small-briefsSkill
- councilSkill
- title-cardSkill
- repo-auditSkill
- vps-deploySkill
- interactive-figureSkill
- lab-reportSkill
- net-labSkill
- study-notesSkill
- vault-routerSkill
- manim-explainerSkill
- caption-craftSkill
- proofread-idSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 4 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
All motion is computed inside seek from t (transforms, opacity, text).
- Distinctive: line 23
No network requests. Inline all CSS and JS.
- Very specific: line 25
If a frame cannot be reproduced exactly by calling seek(t) twice, the render will jitter or desync.
- Very specific: line 31
Pin the format: Default: vertical 1080x1920 for Shorts/Reels/TikTok.
- Very specific: line 35
Storyboard first: Before writing code, write the scene list and show it in your reply or a scenes.md: for each scene, its duration, the …
- Very specific: line 42
Check prerequisites: Run node scripts/check.mjs from this skill.
- Distinctive: line 43
If it reports missing pieces, give the user the one install command it prints for their OS and wait for them, or run it if you have …
- Distinctive: line 51
Only then report the file path, duration, and size to the user.
- Distinctive: line 59
Every scene change needs a visual event (something moves, builds, or transforms).
- Very specific: line 81
FFmpeg not found: run node scripts/check.mjs.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
HTML Video
Make a real MP4 without any video-generation model. You write a single HTML file whose animation is a pure function of time, a script photographs every frame in a headless browser, and FFmpeg stitches the frames into a video. Everything runs locally and offline.
The one rule everything depends on
The page MUST expose window.seek(t) where t is seconds, and calling it
must draw the exact frame for that moment. Rendering jumps from frame to
frame; nothing is ever "played". Therefore, in the frame path:
- No
Date.now(), no unseededMath.random(), norequestAnimationFrameprogression, no CSSanimation/transitionfor anything that moves. - All motion is computed inside
seekfromt(transforms, opacity, text). - No network requests. Inline all CSS and JS; images must be local files.
If a frame cannot be reproduced exactly by calling seek(t) twice, the
render will jitter or desync. Treat determinism as a correctness bug, not a
style issue.
Workflow
- Pin the format. Default: vertical 1080x1920 for Shorts/Reels/TikTok. Landscape 1920x1080 when the user says YouTube/desktop. Ask only if the destination is genuinely unclear. Default 30 fps, H.264 MP4, no audio unless the user provides an audio file.
- Storyboard first. Before writing code, write the scene list and show
it in your reply or a
scenes.md: for each scene, its duration, the exact on-screen text, and what moves. One idea per scene, 2 to 6 seconds per scene, on-screen text short enough to read aloud in the scene's duration. - Build
animation.htmlstarting fromassets/template.htmlin this skill. Implement each scene as a draw step selected by cumulative scene durations insideseek. Use the easing helpers in the template. - Check prerequisites. Run
node scripts/check.mjsfrom this skill. If it reports missing pieces, give the user the one install command it prints for their OS and wait for them, or run it if you have permission. - Render. Copy
scripts/next to your animation (or reference it by path) and run:node scripts/render.mjs animation.html --duration <seconds> --fps 30 --size vertical --out video.mp4 - Verify before reporting. Probe the output (
ffprobeor the summary the render script prints): duration and dimensions must match the plan. Extract 3 thumbnails (start, middle, end) with FFmpeg and look at them. Only then report the file path, duration, and size to the user.
Design rules (defaults, override only on request)
- Safe margin 80 px on all sides (vertical) so platform UI never covers text.
- Minimum sizes at 1080 wide: headline 64 px, body 40 px, caption 34 px.
- One accent color plus neutrals. Flat shapes and type, no gradients as a substitute for an idea.
- Every scene change needs a visual event (something moves, builds, or transforms); a static slide with a fade is a failed scene.
- End with a 1.5 s end card (title or call to action), included in the total duration.
Audio
Out of scope for generation. If the user supplies an audio file, pass it
through: node scripts/render.mjs animation.html --duration <s> --audio track.mp3
and the script muxes it, trimming to the shorter of the two.
Troubleshooting
- Black or identical frames:
seekmissing, threw an error, or the page made a network request that never resolved. Open the page, check the console, make everything local and synchronous insideseek. - Jitter between frames: something in the frame path depends on wall
clock or randomness. Find it and derive it from
t. - Text blurry or cropped: viewport size and CSS pixels disagree; keep
the stage exactly the output size and
deviceScaleFactorat 1. - Render too slow: drop to
--fps 24, or halve the size with--size vertical-smwhile drafting; render final quality last. - FFmpeg not found: run
node scripts/check.mjs; it prints the install command per OS (winget/brew/apt) and the Playwright browser install step.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

