stills-render
Skill11 starsChanged 6 days agoMITView on GitHub
Render static, lossless 2× PNG stills of a scripted UI demo — one per video, frozen at the moment that best tells its story, framed exactly like the clip (60% width, dim and vignette, or dotted-ground composition) with the cursor hidden. Use when asked for static images, key visuals, thumbnails, posters or article images of a UI animation, or stills matching rendered videos. Part of motion-media.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- add-componentSkill
- app-motionSkill
- craftSkill
- create-skillSkill
- demo-pageSkill
- design-componentSkill
- effectsSkill
- motion-componentSkill
- motion-mediaSkill
- review-uiSkill
- static-renderingSkill
- video-renderSkill
- visual-reviewSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 34
Prefer a t inside a static hold of the capture: a gap of ≥ 0.1 s in the frame log (video-render § Cadence).
- Distinctive: line 39
When the brief comes with an example frame, match it.
- Distinctive: line 61
Use the video's framing math at 2× (2048×1536 landscape, 1728×2160 portrait), with numpy rather than per-pixel Python loops:
- Distinctive: line 73
Test two stills (one light, one dark) before the batch.
- Very specific: line 91
If the page exposes seek(seconds), await ready and font loading, seek straight to the chosen film time, hide the cursor, then capture …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
UI stills render
Reference scripts beside this file: scripts/still.mjs (capture, PAGE=
the demo page, run from the repo root) and scripts/still.py (frame + mask). A still is a fresh render, not a frame pulled
from the video: the video is 1×, H.264-compressed and has the cursor in it.
Without Node, use video-render/scripts/python/still.py. It shares the
video's framing code (common.py), so a still and its clip cannot drift.
Capture, freeze, hide the cursor and frame are one command, and its --at is
film time: it starts the run itself.
1 · Pick the moment from a contact sheet
Pull 8 evenly spaced frames per clip (ffmpeg -ss t) into one strip per
clip, stack the strips, and choose the frame where the clip's intent is fully
visible — not mid-transition:
| Clip intent | Moment |
| An action (block, tick, add) | the settled result with its feedback, e.g. the toast |
| A counter or morph | the changed value, fully landed |
| A reveal (accordion, tooltip, hover) | fully open |
| A conversation | the complete reply, before the loop fade begins |
| A composition | the richest state: recap open, a task ticked |
Record the video time t. The page time is t × slow − 0.3s, because the
renderer starts the run 300ms after the screencast.
Prefer a t inside a static hold of the capture: a gap of ≥ 0.1 s in
the frame log (video-render § Cadence). Nothing is moving there, so the
still cannot catch a blend, and a few hundred ms of timer drift at ×8 changes
nothing.
When the brief comes with an example frame, match it. Its focus proportion tells you the framing (an example hero at ~48 % width of 4:3 was exactly the 60 % rule at 1600×1200), and its state tells you the moment.
2 · Capture
Same init script as the video renderer (slowed setTimeout, stage scale 2,
__LIGHT, __COMPOSE), then:
page.evaluate(() => runSnippet(name)); // do NOT await
await page.waitForTimeout(t * 8 * 1000 - 300);
await cdp.send("Animation.setPlaybackRate", { playbackRate: 0 }); // freeze transitions
await page.evaluate(() => { cursor.style.transition = "none"; cursor.style.opacity = "0"; });
await page.screenshot({ path }); // PNG, losslessHide the cursor: in a still it reads as a screenshot of someone mid-click. The hover state it caused (tooltip, fanned avatars) stays.
3 · Frame
Use the video's framing math at 2× (2048×1536 landscape, 1728×2160 portrait), with numpy rather than per-pixel Python loops:
- Crop the window with
np.pad(mode="edge")where it leaves the capture. A flat black fill left a visible band at the top of a dark still. - Same mask as the clip: dark dims to black (0.46 + vignette 0.62); light washes toward the ground (0.55) with a 0.05 ink vignette. Blur and radius scale × 2.
- Compositions: resize only; the vignette is already on the ground.
4 · Verify
Test two stills (one light, one dark) before the batch. Then sample pixels
across every boundary that could band (frame edge, padded edge), and look at
each still. Name them like their videos, with the 2× size:
daylight-<clip>[-light]-2048x1536.png (or -3200x2400.png for a
1600×1200 clip).
Traps
| Trap | Rule |
| Grabbing the still from the mp4 | 1×, compressed, cursor baked in. Re-render |
| Screenshot during a transition | Freeze with playbackRate: 0 first; screenshotting a 3504px viewport takes long enough to catch a blend |
| Waiting the clip's real duration | Remember the ×8: a 15s-in moment is a 2-minute wait. Batch in the background |
| One still per clip, by the clip's start frame | The first frame is the loop's resting state — usually the least telling |
Seekable pages and organized exports
If the page exposes seek(seconds), await ready and font loading, seek
straight to the chosen film time, hide the cursor, then capture lossless PNG
at DPR 2. No wall-time multiplier is needed. Use exactly the same composition
as the video. Put delivery stills and QA frames under exports/stills/,
contact sheets under exports/contact-sheets/, and reports under
exports/reports/; label decoded MP4 frames as review evidence, not masters.
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.

