/ui:render-demo-mediafrom Diorama UI
Exports scripted demo pages as looping video or lossless PNG stills using Playwright, ffmpeg, and Python/Pillow. Use for UI walkthroughs, posters, or thumbnails.
Ships in Diorama UI. 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.
Start with a scripted page. If you have only a design, use build-demo-page first. Agree on the crop, theme and output size before starting a batch. A still uses the same composition as its clip but is a fresh, cursor-free PNG, not a decoded video frame.
| Deliverable | Choose a capture path |
|---|---|
| Looping video | Video guide: use scripts/render-seek.mjs for pages with seek(seconds); otherwise capture a slowed walkthrough or snippet and retime it. |
| Poster, thumbnail or article still | Stills guide: pick a settled beat with visible feedback, freeze the page and capture at 2×. |
Script paths are relative to this skill. Run the Node captures from a project with Playwright installed. Encoding video needs ffmpeg. The frame and mask scripts also use Python and Pillow (plus numpy for stills).
For a scripted walkthrough on a machine without Node or system ffmpeg, use
the standalone Python tools in scripts/python/:
python3 -m venv ~/.cache/ui-motion/venv
V=~/.cache/ui-motion/venv/bin
"$V/pip" install playwright pillow numpy imageio-ffmpeg
"$V/python" -m playwright install chromium
Use that interpreter for render.py → encode.py → check.py (video) or
still.py --at (film time in seconds). Pass --help to a script for its
page, output and framing arguments. Capture frames into a dedicated scratch
directory; the renderer replaces it.
exports/
(videos/, stills/, contact-sheets/, reports/). Name files with
the clip, scheme and dimensions, e.g. daylight-reply-light-1024x768-60fps.mp4.reference/stills.md (opens in a new tab)reference/video.md (opens in a new tab)scripts/compose.py (opens in a new tab)scripts/python/check.py (opens in a new tab)scripts/python/common.py (opens in a new tab)scripts/python/encode.py (opens in a new tab)scripts/python/render.py (opens in a new tab)scripts/python/still.py (opens in a new tab)scripts/render-seek.mjs (opens in a new tab)scripts/render.mjs (opens in a new tab)scripts/seam.py (opens in a new tab)scripts/still.mjs (opens in a new tab)scripts/still.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub bydiorama/ui --plugin ui8 skills in this plugin
/animate-app-interactionsAnimate state changes in an app that consumes Diorama components. Use when a count, label, icon or list should animate, a transition does not replay, or an interaction must respect reduced motion./apply-effectsApply glass, grain, sheen, glow, shimmer, ink or shaders to Diorama components. Use when adding texture, emphasis, a gradient ground or a loading halo without changing the component API./build-demo-pageTurn a screen design into a scripted, interactive demo page. Use when storyboarding a UI walkthrough, animating a Paper mockup, or preparing component snippets and compositions for capture./compare-ui-to-designMeasure a rendered screen against a Paper or Figma design. Use when asked to match a frame, explain a spacing or size difference, export a reference, or set up pixel diffs in an app./design-componentDesign a component and its states before implementation, as a contract in code drawn in Paper or Figma. Use when turning references into a token-based spec, extending a component sheet, drawing motion frames or preparing a handoff./hydrate-componentsUse Diorama components in Astro, SSR and static exports. Use when deciding what must hydrate, composing compound components in an island, or debugging a control that looks right but does nothing.Other plugins' skills for the same job