--- name: screens-to-video description: "Make a ~30s launch film for one feature of a mobile app: pull the feature's screens from the app's Revyl Atlas, script it as a referenced beat-by-beat brief sourced from the mobile-motion are.na channel, build it in Stewdio (installing Stewdio's MCP server if it is missing), and hand over the File for an mp4 export. Use for \"launch film\", \"launch video\", \"feature film\", \"promo for in \", or whenever a feature of an app in Revyl needs a launch video rather than a demo walkthrough." --- # Screens to video A feature, an app in Revyl, ~30s, 16:9. Three phases, in order, each ending in a check. The worked example is `template/`: one finished 30s film with its app, feature, copy and content replaced by placeholders (`BRIEF.md` is the shape of its script, `film.js` its timeline; it was built in HTML before this skill moved to Stewdio). It shows format and timing only: never take a subject, a line of copy, a reference or a screen from it. **A launch film, not a walkthrough.** It sells one idea: a hook line before any UI, the feature doing its own mechanism two or three times with rising pace, one turn where the feature becomes bigger than the phone, and an end card. Screens are props in that arc; never tour every screen, and never show settings, empty states, errors or system UI. **The camera is half the film.** The channel's films never park a whole phone in the middle of the frame. They cut between a macro on one control, the screen filling the frame and the whole phone about every two seconds, with the phone laid back and rolled. So the script carries a shot list, `scripts/camera.py` turns it into the whole camera rig (the keyframes, a shaded phone that turns with them, cuts that sit inside one eased move) and checks it against numbers measured from the references, and a film that fails those checks is not done. ## Before you start: Revyl and Stewdio Phase 1 needs the Revyl CLI and phase 3 needs Stewdio's MCP server. Check both first, so an install can be approved while phases 1-2 run; `references/setup.md` has the install and sign-in steps for each. - **Revyl:** `revyl version` prints a version, `revyl auth status` shows `Authenticated`, and `revyl app list` shows the app. If the app isn't there, stop and tell the user. - **Stewdio:** connected means `read_documentation({ topic: "overview" })` returns and `list_files` answers (an empty list is fine). If it isn't, install it, tell the user to approve it and sign in, and carry on; only phase 3 waits. It needs a Stewdio account; the Free plan allows 30 content-changing MCP calls a week and marks exports, so say so when installing. Tool names here are the server's; some agents list them in camelCase (`read_xml` is `tools.stewdio.readXml`). If the user declines Stewdio, ask whether to build in HTML instead (`template/film.js` + `scripts/render.mjs`, the original path). Never switch silently. ## 1. Screens: Revyl Atlas, laser-focused Pass `--all-branches` to every atlas command. ``` revyl app list # app name + id revyl atlas brief --app --all-branches # areas, anchors revyl atlas search "" --app --all-branches # try 2-3 phrasings revyl atlas screen --app --all-branches # summary, actions, in/out edges revyl atlas neighbors --app --all-branches # entry points and exits revyl atlas observations --app --all-branches --screenshots --screenshot-dir atlas/ ``` - Keep the feature's own screens, the one or two entry points that lead into it (the button or row a user taps) and the one outcome it ends on (saved, sent, shared). Drop everything else, even when it is connected. - Read the edge labels: they name the exact control (` menu item`) and the gestures the feature answers to (swipe, pinch). Those gestures become beats. - Sheet every screen folder (`python3 scripts/sheet.py atlas/ .scratch/sheet-.png`) and look at all of them, then one full-size screenshot per screen for type, spacing and chrome. Screenshots are 1080x2400 Android: 1dp = 2.625px, screen = 412x914dp. - Real content goes in one-to-one: `python3 scripts/crop_drops.py film/drops atlas//*.jpg` cuts the image cards off a light canvas (skips status/nav chrome and edge-cut cards). Sheet the crops and keep the sharp unique ones; crop a hero by hand when detection merges two cards. The same card turns up in many screenshots: keep one of each. - Tell the user which screens were found before scripting (one line). ## 2. Script: a referenced brief from the mobile-motion channel **References come before beats.** The source is the are.na channel `mobile-motion-mnpotx847ma` (https://www.are.na/blake-shao/mobile-motion-mnpotx847ma): the look stays inside it and every motion ref comes from it. Go outside it only for a role it cannot fill, and say so. 1. **List and look.** `python3 scripts/arena.py channel mobile-motion-mnpotx847ma .context/refs/` lists every block and writes numbered sheets; read all of them. `references/channel-notes.md` has the blocks already vetted and what each is good for; start there, but check for new ones (the channel grows, newest first). 2. **Vet 10-15 candidates for real.** `arena.py get .context/refs//cand/cN.mp4`, then `arena.py sheet 9` and read the sheet. A tile is not a reference: keep it only if the move happens on screen as more than a cut or fade. Pick the most striking move that could carry the feature over the one that shows a similar screen. 3. **Nine references, one job each.** - a1-a5, stills grabbed from the channel's clips (`arena.py still a1.jpg`), one aesthetic: a1 overall look (the floating phone), a2 palette (backdrop + one accent), a3 material (frosted glass, shadow), a4 composition (title / end card), a5 a detail (a label floating off the ui). - m1-m3, clips, numbered in beat order: the main mechanic, the turn, the titles or the exit. A motion ref gives mechanic and timing only; the subject is always swapped. - k1, a clip, the camera: how the frame and the phone move. Pick it for its moves, not its screen, and sheet it densely (`arena.py sheet 36`) so the cuts show. It sets the grammar of the shot list: how long a shot lasts, which framings alternate, how far the phone is laid back and rolled, and how one shot becomes the next: look at the four frames either side of every cut, because the references never cut between two frames at rest (the camera is travelling on both sides of the cut, or the phone turns to its next pose). Take the travel, not a clip's flash or blur. `references/channel-notes.md` has those numbers for the vetted camera clips; measure a new clip the same way. A 3D tilt in the clip is rebuilt with the Tilt rig (phase 3), never flattened to a small roll. - u-refs: the Atlas screen folders, rebuilt one-to-one. c-refs: the cropped content, used as-is. - Each ref states the beat it feeds and exactly what is taken, with a time range for clips (`m2 0-5s: images gathering around one center and scattering, subject swapped for drops`). A ref with no beat is cut. 4. **Beats.** Numbered, a time anchor on each, each one = subject + action + what it reveals or becomes. A beat is two to four shots, not one; the shots go in the shot list (step 5). Default skeleton (fit the seconds to the feature): 1. 0-3 hook line, words blur into focus one at a time (m1), no ui yet 2. 3-7 the subject arrives, the phone rises around it, a tap on the entry point 3. 7-13 the feature's main mechanic inside the phone, a title on the side 4. 13-18 the mechanic again, faster, chained 5. 18-24 **the turn**: the feature outgrows the phone (spills past the bezel, zooms out to the whole, becomes the frame) + one line on frosted glass. The biggest beat; one turn, no second metaphor 6. 24-27 the outcome (saved / sent) as a chip floating out of the phone 7. 27-30 end card: feature name + the app's accent dot, mono "now in " 5. **Shots: the camera, as a list.** Write `film/shots.json` (the format is at the top of `scripts/camera.py`): one entry per shot with the time it starts, how it starts, what it looks at, zoom, roll and the phone's tilt. Zoom 1 is the wide shot, the whole phone at 80% of the frame height. Four framings: | framing | zoom | the phone | roll | used for | |---|---|---|---|---| | wide | 0.5-1.1 | whole and upright, room for a title | 0-4deg | the hook, one establishing shot, the pull-back, the end card | | medium | 1.3-1.8 | cut off by the frame top and bottom, leaning | 5-10deg | arriving, seeing what a tap did | | close | 2-2.7 | one region of the screen | 8-15deg | the hero content | | macro | 3.2-5 | one control, the bezel crossing the frame as a diagonal, laid back | 15-25deg | every tap, every detail | The default 30s track, about fifteen shots (adapt it, keep the rhythm): | beat | shots | |---|---| | 1 hook | wide, creeping in 1.0 -> 1.06 | | 2 arrival | push to medium 1.4, `lean-right`, roll -8 as the phone rises; cut to macro 3.4, `laid-right`, roll -18 on the entry control 0.3s before the tap | | 3 mechanic | cut to wide, flat, the phone placed right of centre for the title; a slow push (1.7s, starting once the title has left) to close 1.9, `lean-left`, roll 12 on the hero; cut to a macro 3.0, `laid-right`, roll -22 that tracks across the content (`drift.to`) | | 4 chained | each tap is its own macro, cut in 0.3s before it lands, alternating `laid-left` and `laid-right`; a cut out to medium 1.6 between them to show what the tap did | | 5 turn | cut to 4 on the gesture with the phone flat, a glide back to 0.5 over 2.3s (the one fast move of the film), cut to a medium 1.3, roll -10, drifting across what the feature became | | 6 outcome | cut to macro 3.3, `laid-left`, roll 16 on the save control; cut to medium, drifting after the chip | | 7 end card | cut to wide, creeping in 1.0 -> 1.04 | Read `references/camera.md` before writing `shots.json`: it has every rule `camera.py build` checks and why. In short: a new shot every 1.2-2.5s; most transitions are a plain cut inside one slow eased move (`"in": "cut"`), moves are rare and slow, and nothing is ever snappy; every tap gets a macro cut in 0.3-0.5s before it; the turn happens with the phone flat; no title over a macro. Run `python3 scripts/camera.py build film/shots.json` until every check passes. It writes `film/rig.xml` (the Camera composition with every keyframe and the phone, for phase 3) and prints the shot table, one capture time per shot, and the eight frame times of one cut. 6. **Write mechanisms, not adjectives.** "related items fly in from off-frame and settle around the one that was tapped" gets built right; "a dynamic reveal" does not. Animate the feature's own contraption (tap -> follow, pinch -> zoom out, save -> chip), never a generic draw-in. Transformations are in-place morphs and handoffs, not cut-and-rebuild. 7. **Film frame, not a web page.** The world is laid out for the wide shot (the phone ~80% of the frame height), and the film spends most of its time closer than that; titles are 60px+ at 1080p; one hero per shot. 8. **House shape**, lowercase, imperative, numbered, no filler, under ~240 words above `camera:`. The first line names the channel's aesthetic, not the app's (`in soft-white studio launch film`); the app's palette survives inside the phone and as the accent. ``` in stewdio, new file -launch, create a 30s launch film for 's , in , the ui rebuilt one-to-one from u1-uN with the real content (c1): 1. 0-3s: blurs into focus word by word like m1, on a2's 2. 3-7s: ... the phone rises like a1 ... a tap hits "" 3. ... 5. 18-24s, the turn: , like m3 ... ; 16:9, 1920x1080, 30fps, no music camera: cut like k1 , film/shots.json refs: - a1 : look, (, channel mobile-motion-mnpotx847ma) - ... a2-a5, m1-m3 the same way - k1 : camera, , shots , (, channel mobile-motion-mnpotx847ma) - u1 atlas//: ui, , one-to-one (revyl atlas, , screen ) - c1 film/drops/: copy, the real content cropped from the atlas, one-to-one ``` Save it as `film/BRIEF.md` with at most three fill-ins (the creative forks you chose, each with the one alternative). `template/BRIEF.md` is a finished one. Do not stop for approval unless the user asked to see the script first; go straight to phase 3. ## 3. Build: the film in Stewdio **Read first, every time.** `read_documentation` for `overview`, `xml` and `graphic` (the XML is strict: unknown elements and attributes are rejected), then `list_skills`: the user's own Stewdio skills win where they conflict with this section. Then read `references/stewdio-build.md`: the end of the `xml` page (a tool result can cut it off), the full layer spec, the motion rules and capture troubleshooting. `template/film.js` is the worked example's timeline at 1920x1080 (keyframe times, easings, positions, handoffs): port its timing, not its code. 1. **File.** `create_file({ name: "-launch" })` once; keep `id` and `url` exactly as returned. After a failed or timed-out call, `list_files` before creating again. 2. **Assets.** Upload the kept crops and nothing else (the ui is rebuilt, not screenshotted): `create_assets({ fileId, uploads: [{ name: "c1-" }, ...] })`, then POST each file to its single-use url within the hour: `curl --data-binary @film/drops/.jpg ""`. Save every returned `hash`, width and height to `film/drops/assets.json`; images are placed by hash at their native aspect ratio. 3. **Layers**, split wherever someone would edit independently, back to front, with descriptive names, as `references/stewdio-build.md` specifies. One root `` holding: - `Backdrop` Graphic, only when a2's backdrop is a gradient, moves or has grain. - `Camera`, the world. `camera.py build` writes it whole to `film/rig.xml`, the phone included (`template/phone.xml`, set in `phone` of `shots.json`); never write it by hand. Your layers go in through `film/screens.xml`, `film/below.xml`, `film/above.xml` and `film/tilt.xml`, which the build splices in. - Screens, in `film/screens.xml`: one composition per screen, the ui rebuilt one-to-one as a Graphic, the drops as native `image` layers, the touches as `vector` ellipses on top. - The stage copies of the drops that escape in the turn, and the `Saved chip`, in `film/above.xml`. - After the Camera, in frame px: the titles (one Graphic per line), the `Frost pill` and the `End card`. 4. **Motion.** Field keyframes on layers, input keyframes on Graphics, nothing timed inside a script, clips to sequence screens and titles (the full rules are in `references/stewdio-build.md`). The ones that break a film most often: - the camera is built, not written: to change a shot, the phone or a layer inside the Camera, edit `film/shots.json` or the part file and build again; a keyframe nudged in the File is lost at the next build - a screen swap belongs on the cut frame; anything that has to be read lands 0.3s or more after it, and a tap 0.3-0.5s after its macro cuts in - handoffs happen on one frame at an identical rect; never crossfade two copies of the same thing 5. **Write in few calls.** One `write_xml` per top-level piece (the root composition with its backdrop, then `film/rig.xml` whole with the root as `parentId`, then each title, in that order: a new node lands on top, and a write takes one root element. A Camera written after the titles is moved `before` the first of them with `edit_xml`), never one per layer: the Free plan counts every content-changing call. On diagnostics fix every listed line and write again; after a failed creation, `read_xml` with `depth: 1` before retrying so nothing is created twice. Later fixes go through `edit_xml` on the node you just read. After a rebuild, write the new `rig.xml` into the root, then in one `edit_xml` `move` it `before` the first title and `remove` the old Camera. 6. **Check with capture.** `capture` renders in the user's open Stewdio session, so the File has to be open in a tab that is in front: on the user's own computer `open ""` and wait ~10s, otherwise give the user the url and ask. When a capture fails or times out, see "Capture troubleshooting" in `references/stewdio-build.md`. Capture the root composition once per shot, at the times `camera.py build` printed, at most 8 per call, then one earlier time again (which shows no frame depends on the one before). Then capture the eight times around one cut that it printed: the framing changes a little between the first three (the ease-in), most between the two either side of the cut, and less and less after it (the ease-out), always in one direction. A frame that jumps back, flashes or looks the same as its neighbour at the cut is wrong. Look at the phone in one wide and one macro capture: a lit metal edge, a shadow under it, and rounded screen corners with nothing of the screen poking out of them. In every capture check that the thing the shot looks at sits where `place` put it, the touch is inside its macro, no text overlaps, nothing clips at a motion extreme, the edge of the world never shows, the turn reads as a turn, and every element is still its own selectable layer. Then save `read_xml` of the Camera node to `film/camera.xml` and run `python3 scripts/camera.py check film/camera.xml`: it samples every frame of what is really in the File and has to pass like the build did. Fix and capture again. Captures are previews, not the export; never report them as the final video. 7. **Export is the user's click**; Stewdio has no export tool. In Stewdio Studio: select the root composition -> Export in the inspector -> MP4 (H.264), Size 100%, 30 fps -> Export video (mute the composition's Sound first for a silent film). Suggest saving to `film/out/-launch.mp4`; once it is there, `python3 scripts/arena.py sheet 25` checks continuity. ## Deliver The Stewdio File `url` exactly as returned, two captured frames (the mechanic, the turn), the beats with their times one line each, the export steps above, and the open choices: copy, music, anything the Atlas did not cover. Point at `film/BRIEF.md` for script edits and `film/shots.json` for the camera (edit a shot, build, write `film/rig.xml` again); layout and timing edits happen in Stewdio, by hand or by asking.