agentleFS
bydioramabydiorama/ui/.claude/skills/motion-media/SKILL.md

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.

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
  1. Distinctive:

    Run batches in the background and keep answering.

    line 72
  2. Distinctive:

    When feedback is ambiguous about direction (dim it more, or bring it into focus?), ask with two concrete options.

    line 74
  3. Distinctive:

    Storyboard first, then measure it: Write the beats before building.

    line 84
  4. Distinctive:

    Keep source previews editable and prior alternatives identifiable.

    line 109

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.

StageSkillOutput
1 · A live page that performs the UIdemo-pageone HTML file with a scripted, looping walkthrough and per-component snippets
2 · Capture it as videovideo-render60fps seamless loops, framed and composited
3 · Capture it as stillsstills-render2× 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.

ReferenceWhat it is
demo-page/reference/daylight-demo.htmlThe Daylight product demo: walkthrough, snippets, compositions (incl. Full View), synced to Paper 5F5-0
demo-page/reference/banner-evolution.htmlAn 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.

RuleWhy it is a rule
No text, captions, logos or graphics outside the UIAsked for twice. Titles belong to the article, not the frame
The central element takes ≤ 60% of the frame widthMore reads as a screenshot; it needs room to breathe
Surroundings are dimmed and vignetted, the focus stays true-colourThe eye goes to the one undimmed thing
The vignette never covers the UI in a compositionA 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 backgroundA 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 actionA 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 blackA black dim over a light UI goes grey and muddy
Respect the design file's padding, spacing and frame backgroundRead 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 belowThe 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 outIt is what makes a loop seamless — and it is hidden in stills
Design-system compliance holds at 2× zoomA checkbox glyph that was "close enough" at 1× was called out at snippet scale. Use the real Check at the real size

Default formats

DeliverableSizeNotes
Snippet / main video1024×768 (4:3), 60fps, H.264 CRF 15seamless loop, seam diff < 0.5
Article feature series1600×1200 snippet framingthe brief's example frame set it: the focus at ~48 % width
Composition, full view1600×1200whole screen 1:1 at 44,109; dot ground; no vignette, no border (Paper _Assets "Full View")
Composition, landscape1024×768screen bleeds off right/bottom, offset 64,64
Composition, portrait864×1080screen at x 48, vertically centred
Still / thumbnail2× the video size, PNGsame 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 the docs/storyboard.md, previews/, source/, scripts/, and a git-ignored exports/ with videos/, stills/, contact-sheets/ and reports/. A spec in design/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

TrapRule
A bash for spec in "a b c"; do set -- $spec loopzsh 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-renderBlocked by the safety check, and unnecessary — ffmpeg -y overwrites
Re-rendering while the page file changes under a running batchEach 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 networkA 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 revisionIt 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 introsOut 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.