motion-media
Skill11 starsChanged 7 days agoMITView on GitHub
Entry point for turning a Diorama UI design into presentation media — an animated front-end demo, looping 60fps videos, component snippets, compositions and static stills for articles, decks and social. Use when asked to animate a screen, make a demo or screen recording, render videos or stills of the UI, produce snippets of single components, or art-direct presentation visuals (vignette, framing, dotted ground, light/dark sets). Routes to demo-page, video-render and stills-render.
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
- review-uiSkill
- static-renderingSkill
- stills-renderSkill
- video-renderSkill
- visual-reviewSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 72
Run batches in the background and keep answering.
- Distinctive: line 74
When feedback is ambiguous about direction (dim it more, or bring it into focus?), ask with two concrete options.
- Distinctive: line 84
Storyboard first, then measure it: Write the beats before building.
- Distinctive: line 109
Keep source previews editable and prior alternatives identifiable.
≈ “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 motion media
Three stages, one sub-skill each. Do them in order; each one's output is the next one's input, and a defect fixed late costs a full re-render.
| Stage | Skill | Output |
| 1 · A live page that performs the UI | demo-page | one HTML file with a scripted, looping walkthrough and per-component snippets |
| 2 · Capture it as video | video-render | 60fps seamless loops, framed and composited |
| 3 · Capture it as stills | stills-render | 2× lossless PNGs at each clip's telling moment |
Each sub-skill carries its working reference beside its SKILL.md. Copy and
adapt them; do not start from a blank file.
| Reference | What it is |
demo-page/reference/daylight-demo.html | The Daylight product demo: walkthrough, snippets, compositions (incl. Full View), synced to Paper 5F5-0 |
demo-page/reference/banner-evolution.html | An iteration film: a camera over a fixed ground, shared-element flights between frames |
video-render/scripts/ | render.mjs + compose.py + seam.py (Node), and python/: the whole pipeline without Node |
stills-render/scripts/ | still.mjs + still.py (Node); the Python still lives in video-render/scripts/python/ |
Check the toolchain before planning renders. A fresh Mac had no Node, pnpm
or ffmpeg. The Python port runs from a venv with no sudo (video-render
§ No Node).
Captures (thousands of 2× JPEGs) go to a scratch directory. The finished
media goes in the job's git-ignored exports/, and never into a skill folder.
Art direction — every rule here was a round of feedback
The media serves an article about the UI, so the UI is the only subject.
| Rule | Why it is a rule |
| No text, captions, logos or graphics outside the UI | Asked for twice. Titles belong to the article, not the frame |
| The central element takes ≤ 60% of the frame width | More reads as a screenshot; it needs room to breathe |
| Surroundings are dimmed and vignetted, the focus stays true-colour | The eye goes to the one undimmed thing |
| The vignette never covers the UI in a composition | A post-process vignette over the whole frame read as "vintage", like an aged photo filter. Put it on the ground, behind the screen (demo-page § Compositions) |
| No hard frame edges. The ground continues the frame's own background | A light frame on a darker ground showed as a rectangle and a band. Extend the frame's gradient past its edges (demo-page § Seamless ground) |
| The focus area includes the feedback of the action | A toast landing in the dim made the action look unanswered. Extend the focus to the toast, not just the button |
| Light snippets wash toward the ground colour; dark ones dim toward black | A black dim over a light UI goes grey and muddy |
| Respect the design file's padding, spacing and frame background | Read them from Paper with get_computed_styles, or from Paper's DOM when the connector is not loaded (demo-page § Reading Paper); never eyeball |
| A composition draft in Paper beats the defaults below | The Full View draft (whole screen 1:1, centred, no bleed, no vignette, no border) replaced the bleed composition. Read the draft's size, offset and ground before choosing a format |
| The cursor fades in, acts, returns to its park point, fades out | It is what makes a loop seamless — and it is hidden in stills |
| Design-system compliance holds at 2× zoom | A checkbox glyph that was "close enough" at 1× was called out at snippet scale. Use the real Check at the real size |
Default formats
| Deliverable | Size | Notes |
| Snippet / main video | 1024×768 (4:3), 60fps, H.264 CRF 15 | seamless loop, seam diff < 0.5 |
| Article feature series | 1600×1200 snippet framing | the brief's example frame set it: the focus at ~48 % width |
| Composition, full view | 1600×1200 | whole screen 1:1 at 44,109; dot ground; no vignette, no border (Paper _Assets "Full View") |
| Composition, landscape | 1024×768 | screen bleeds off right/bottom, offset 64,64 |
| Composition, portrait | 864×1080 | screen at x 48, vertically centred |
| Still / thumbnail | 2× the video size, PNG | same framing as its video |
Name files daylight-<clip>[-light]-<w>x<h>-60fps.mp4, so the mode and size
are in the name and the folder can be handed off as is.
Working rhythm
- Verify before every long render. One test clip or one still, look at it, then batch. A full set is 15–30 minutes; a wrong assumption costs all of it.
- Look at contact sheets, not single frames. 8 frames per clip across its duration shows the arc, the loop seam and the best still moment at once.
- Run batches in the background and keep answering; a new piece of feedback usually means stopping the batch, not queueing behind it.
- When feedback is ambiguous about direction (dim it more, or bring it into focus?), ask with two concrete options. Guessing costs a render cycle.
- Report outcomes with evidence: seam diff per clip, frame cadence, frames looked at, what was not checked.
- Leave a trail per job. In this repo:
design/motion/<job>/holds thedocs/storyboard.md,previews/,source/,scripts/, and a git-ignoredexports/withvideos/,stills/,contact-sheets/andreports/. A spec indesign/motion/specs/holds the request, the decisions with their reasons, each pass with what it found, the final numbers, what was not verified, and the commands to reproduce. The next job starts from it, not from memory. - Storyboard first, then measure it. Write the beats before building. After the render, replace the planned times with times measured from the capture's static holds, and strike any claim the film does not bear out.
Traps
| Trap | Rule |
A bash for spec in "a b c"; do set -- $spec loop | zsh does not word-split $spec. Every iteration got empty settings and rendered the wrong thing silently. Drive loops from Python or Node, or use ${=spec} |
rm -f dir/*.mp4 before a re-render | Blocked by the safety check, and unnecessary — ffmpeg -y overwrites |
| Re-rendering while the page file changes under a running batch | Each clip loads the page fresh, so a mid-batch edit splits the batch. Note which clips predate the edit and re-run them |
| A web font loaded over the network | A dropped connection mid-capture logged one ERR_INTERNET_DISCONNECTED and nothing else, and a fallback face passes a visual check at snippet size. The Python tools' font guard fails the capture instead. Embed a face (base64) where its licence allows |
| A reference page built from an older design revision | It looks right and is not. Diff it node by node against the current artboard before rendering (demo-page § Syncing to a newer design) |
| Blender for UI intros | Out of scope here — this pipeline is browser-native |
Revisions and handoff
- Preserve approved timing, typography and component behavior across format changes. A new Paper composition sets crop, scale and placement; it does not silently reset earlier motion decisions or a persistent background.
- Measure portrait artboards independently. An intentional right-edge crop must be reproduced, not "fixed" by fitting the whole desktop screen inside.
- Retiming is a separate variant. State which beat becomes slower and the resulting total duration; preserve action/feedback relationships.
- Keep source previews editable and prior alternatives identifiable. Link the finished videos from the job README and keep review artifacts in their own directories. Record changes and measured validation in the job spec.
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.

