hyperframes-skill
ASecurityRender video from HTML scenes with HyperFrames (headless Chrome captures every frame, local ffmpeg encodes them): turn an already-decided scene description (size, duration, fps, ordered text/image/video layers with in/out times) into HyperFrames markup, render it to MP4/WebM/MOV, make a fast proxy preview, and read the result back with ffprobe. Use when a job needs title cards, text slates, simple timed layouts of stills and clips rendered to a video file deterministically, or when asked to r...
- 2 stars
- 0 votes
- 0 copies
- 0 views
- Added November 27, 2026
Works with
Security analysis
100/100Pro scans all 20 files and shows the line behind each finding
npx -y skills add kajisho5/hyperframes-skill --agent claude-codeAre you the author of hyperframes-skill?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/kajisho5-hyperframes-skill)---
name: hyperframes-skill
description: 'Render video from HTML scenes with HyperFrames (headless Chrome captures every frame, local ffmpeg encodes them): turn an already-decided scene description (size, duration, fps, ordered text/image/video layers with in/out times) into HyperFrames markup, render it to MP4/WebM/MOV, make a fast proxy preview, and read the result back with ffprobe. Use when a job needs title cards, text slates, simple timed layouts of stills and clips rendered to a video file deterministically, or when asked to render an existing HyperFrames composition. Local only: Node >= 22, ffmpeg/ffprobe >= 5, a headless Chromium; no cloud, no API keys.'
---
# hyperframes-skill
Tools live in `scripts/` next to this file: `node <skill-dir>/scripts/<name>.mjs` (or `npx hyperframes-skill <name>`). There are 7 tools: `doctor`, `template`, `scene`, `render`, `probe`, `preview`, `batch`. `--help` on the tool about to run is the cheapest full flag list; `references/scripts.md` has every flag of all seven.
Shared flags, on every tool: `--json` (one result document on stdout: `status`, `verified`, `verification[]`, `commands[]`, `error.kind` on failure) and `--dry-run` (validate and plan; `scene`, `render`, `preview` and `doctor` run nothing and write nothing; `probe` is read-only and still runs ffprobe). Contract: `node <skill-dir>/bin/hyperframes-skill.mjs contract --json`. MCP: `node <skill-dir>/bin/hyperframes-skill.mjs mcp` (stdio; same tools, same result documents).
## Workflow (always in this order)
0. **Environment, only on failure.** Don't start a job with `doctor`. After a `kind: missing_tool` failure, or when asked what the machine can do, run `doctor --json` and report the capability that is `missing` or `unknown` (they are different: `unknown` means the probe itself failed, not that the thing is absent).
1. **Decide the scene yourself, then write it as a request.** Copy, pacing, which asset goes where, colours, sizes: all yours (or the user's). This skill never invents or changes any of it. Write a `scene_version: 1` JSON request (schema below).
For a stock layout use a template instead: `template --list`, then `template NAME --set key=value ... -o REQUEST.json` (or `--values values.json`). Templates: `lower-third` (transparent: render with `--codec prores` to key over a live feed), `title-card`, `session-slate`, `break` (title material: each declares IN / LOOP / OUT `segments`), and the stingers `stinger-geometric`, `stinger-glitch`, `stinger-particles`, `stinger-brush`, `stinger-logo-reveal` (`--set duration=1.2 --set cut_point=0.5 --set hold=0.2`: full cover from the cut point for the hold; render with an alpha codec). Style presets `style-swiss`, `style-minimal`, `style-neon`, `style-glitch`, `style-corporate`, `style-wafu` (`title`, `subtitle`, colours, `bpm`, `aspect`); `template --gallery -o DIR [--kit K]` renders one still each to choose from. Only the values change; the layout is the template's. Japanese (any CJK) text: pass `--font FILE` (e.g. a Noto Sans JP .otf); see Gotchas. Brand: `--kit KIT.json` (Velisa `kit@1` / ffmpeg-skill `brand.json`) fills mapped colours, logo and `font_file`; your values win; report the result's `kit.unused`.
Many items of the same template (every speaker, every session): `batch ROWS.csv --template NAME [--name-field COLUMN] -o OUT_DIR --json` renders one file per row (header row = value names; empty cell = value left out; `--encoding shift_jis` for a Japanese-Windows Excel CSV). All rows are validated first; report `summary` and every row whose `status` is not `completed`.
2. **`scene REQUEST.json -o SCENE_DIR --json`.** It validates every field (all problems at once), copies the assets into `SCENE_DIR/assets/`, writes `SCENE_DIR/index.html`, and runs `hyperframes lint` on it. Fix the request, never the generated HTML.
3. **`preview SCENE_DIR -o preview.mp4 --json`** (10 fps, draft encode; `--max-duration S` for the first S seconds) and look at it before the expensive render when layout or timing is new.
4. **`render SCENE_DIR -o final.mp4 --json`** (`--codec h264|vp9|prores|png`, `--quality N` CRF). It is done only when `status` is `completed` and `verified` is `true`: the output was probed and its codec, resolution, fps, frame count and duration match what the scene declares, and the scene directory was left unchanged. `ffmpeg_skill.status` is ffmpeg-skill's own read-back when a checkout is present (`PASSED` / `FAILED`; FAILED fails the render); `UNCHECKED` means it was not cross-checked — say so, never call it verified by ffmpeg-skill.
5. **Report the probed numbers**, e.g. "final.mp4: 5.000 s, 1920x1080, 30 fps, 150 frames, h264", from `probe` in the result, plus `ffmpeg_skill.status` (and `skill.version`). A non-zero exit, `status: failed` or `verified: false` is a failure: report `error.kind` and `error.message`; do not retry blindly (`retryable` is always false).
6. **Look at the picture** when it matters: extract a frame from the output (e.g. with ffmpeg-skill's `look`) and view it. A probe cannot see a wrong colour or overlapping text. Without vision, say the pixels were not inspected.
## Scene request (scene_version 1)
```json
{
"scene_version": 1, "id": "intro", "width": 1920, "height": 1080, "duration": 5, "fps": 30,
"background": "#000000", "lang": "en",
"layers": [
{"type": "video", "id": "bg", "start": 0, "duration": 5, "src": "clips/bg.mp4", "fit": "cover", "media_start": 2},
{"type": "image", "id": "logo", "start": 0.5, "duration": 4.5, "src": "logo.png", "box": {"x": 1600, "y": 60, "width": 256, "height": 128}, "fit": "contain"},
{"type": "text", "id": "title", "start": 1, "duration": 3, "text": "Annual Meeting 2026",
"style": {"font_family": "sans-serif", "font_size": 96, "font_weight": 700, "color": "#ffffff", "align": "center", "valign": "middle", "line_height": 1.2, "background": "transparent"},
"transition_in": {"type": "slide", "duration": 0.5, "direction": "down", "distance": 60, "easing": "ease_out"},
"transition_out": {"type": "fade", "duration": 0.5}}
]
}
```
- Times are seconds; a layer shows for `[start, start+duration)` and must end within `duration`. Later layers paint on top.
- `box` is pixels, default the full frame. `fit`: `contain` (default), `cover`, `fill`.
- `src` is a local path (relative to the request file). URLs are refused: this skill never fetches.
- Colours: `#rgb`, `#rrggbb`, `#rrggbbaa`, `rgb()`, `rgba()`, `transparent`. Text is escaped, `\n` breaks lines.
- `transition_in` / `transition_out` (optional, any layer): `fade`; `slide` with `direction` (`left|right|up|down`: the side it enters from / leaves towards) and `distance` (px); `zoom` with `scale` (the scale it starts from / ends at). `duration` in seconds, `easing` `linear` (default), `ease_in`, `ease_out`, `ease_in_out`. In starts at the layer's start, out ends at the layer's end; the two together may not exceed the layer. Slide and zoom also fade.
- More in `references/scene-request.md` (read it before using them): kinetic type (`chars` / `words` / `lines`, `wipe`, text `keyframes`), typesetting (layer `lang`, RTL, `line_break: strict`, BudouX `phrases`, `writing_mode: vertical`, `ruby`, `fit: shrink`; `template --fit`), `shape`, seeded `pattern`, `generative` (three.js programs, a local `.frag`), `audio` and `beat` lock. Report `text_fit` and `beat_lock`.
- `loop_animation` (optional, any layer): `pulse` (`scale` at mid-cycle), `bob` (`direction`, `distance` px), `spin` (`direction` `cw|ccw`), each with `period` (s, one full cycle) and `easing`. It composes with the transitions.
- `segments` (optional, top level): `{"in": 0.5, "loop": 4, "out": 0.5}`, whole frames, adding up to `duration`; `in`/`out` may be 0. The loop must be seamless, so `scene` refuses a layer that starts or ends inside it, a transition or video running in it, or a `period` that does not divide it (the error lists periods that fit). `render --segments` also writes `<stem>.in|loop|out<ext>` (non-empty segments only); report each `segments[].probe.video.frames` and `loop_seam.ok`.
- `stinger` (optional, top level): `{"cut_point": 0.5, "cover": {"start": 0.5, "end": 0.7}}`, each on a frame, cut point inside `[start, end)`. `render` then needs an alpha codec, measures every cover frame opaque (alpha >= 253 in every pixel: `stinger_cover`) and writes `<stem>.stinger.json`.
- `title` (optional, top level): `{"safe_area": {"x", "y", "width", "height"}}`; needs `segments`, every text box inside it. `render` writes `<stem>.title.json` (segments, alpha, loop seam with `--segments`, safe area, text and font size).
- The sidecars follow the Velisa title / stinger spec; pass `cut_point` and `cover` (or `segments`) on unrounded. `sidecar.fields` says which fields a receiver reads and which are only proposed.
- Video layers are muted; sound comes from `audio` layers.
- `fonts` (optional, top level): `[{"family": "JP Gothic", "src": "fonts/NotoSansJP-Bold.otf", "weight": 700, "style": "normal"}]`; `.otf/.ttf/.woff/.woff2`, local file, copied into the scene; a layer uses it by `style.font_family`. Omit `weight` to use the file for every weight.
- Unknown keys are errors, not ignored.
## What this skill does and does not decide
It turns an explicit scene into markup, renders it, and reports what came out. It does not write copy, choose timing, pick or crop to a subject, choose fonts or colours you did not give it, judge whether a frame looks good, or add a transition you did not ask for. Same request + same flags on the same machine gives byte-identical output; anything that depends on taste belongs to the caller.
If a request needs something the five tools do not expose (animation beyond the transitions, keyframes and three loop animations listed here, captions, a layout no template has), say so. Never fall back to calling Chrome, ffmpeg or the `hyperframes` CLI directly: that bypasses every check here.
## Gotchas
- `render` needs `-o` with the extension of `--codec`: `.mp4` h264 (default), `.webm` vp9 (alpha), `.mov` prores (ProRes 4444, alpha, no `--quality`); `png` writes a directory of RGBA `frame_000001.png ...` (no extension; NLEs / After Effects). Alpha is always straight (`alpha.mode`); `probe FILE --alpha --sample X,Y` reads it back.
- An existing output is refused without `--overwrite`; the output may not be inside the scene directory.
- `fps` (request) and `--fps` (render) take an integer, an exact `N/D` such as `"30000/1001"`, or an NTSC decimal (`23.976`, `29.97`, `59.94`, read as N/1001, never as 2997/100), 1-240. `--fps` default: the scene's `data-fps`, else 30. `expected.frame_rate` is the exact rate (`"30000/1001"`); frame counts use it (velisa/timebase@1).
- Fonts: HyperFrames injects `@font-face` rules for families it bundles (it did for `sans-serif` in testing); any other family depends on the machine's fonts. Byte-identical output is promised on the same machine and toolchain, not across machines.
- `kind: render` = page load or capture failed; `kind: encode` = HyperFrames reported the ffmpeg encode failed and a recorded ffmpeg exited non-zero; `timeout` (exit 124) = `--timeout` hit, Chrome and ffmpeg were killed.
- CJK text: ship the font. `lang` alone does **not** pick Japanese glyph forms: with system fonts, fontconfig may give Japanese the same (Chinese) font it gives Chinese, and 直 骨 写 then render in Chinese forms (seen on Ubuntu with WenQuanYi + IPAGothic installed). Use `--font FILE` on `template` / `batch`, or the request's `fonts`; `doctor` reports what fontconfig picks per language and warns about this. One font file serves every weight (no synthesized bold): pass a Bold file for bold text.
- Linux, macOS and Windows (Windows covered by CI only). On Windows, a timeout or an interrupt
ends the whole render tree with `taskkill /T`.
Files in this skill
- CHANGELOG.md
- CONTRIBUTING.md
- ECOSYSTEM_ROADMAP.md
- SKILL.md
- bin/hyperframes-skill.mjs
- brand/app-icon-dark.png
- brand/app-icon.png
- contract/contract.json
- contract/generate.mjs
- demos/run.mjs
- docs/contract.md
- docs/design-decisions.md
- lib/alpha.mjs
- lib/argv-recorder.cjs
- lib/cli.mjs
- lib/contract.mjs
- lib/deps.mjs
- lib/ffmpeg-skill.mjs
- lib/interrupt.mjs
- lib/kinetic.mjs
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.