Reference

Motion Film Skill

Synced from github.com/CoWork-OS/CoWork-OS/docs

motion-film is a bundled CoWork OS skill for designing and rendering a motion-design film entirely in code: one HTML file whose every pixel is a pure function of time, rendered frame-by-frame to MP4 with Playwright and ffmpeg.

It is designed for:

  • product launch films and keynote-style reveals
  • feature announcements and product promos
  • animated explainers for apps, developer tools, data, or physical products
  • brand and event openers
  • looping social clips (1:1, 9:16, 4:5)
  • simulation-style films: agent swarms, particles, a 3D machine the camera flies through

It is not the right tool for:

  • building a reusable editor app — use motion-editor
  • math, equation, or algorithm explainers — use manim-video
  • authoring or editing a HyperFrames composition — use hyperframes
  • trimming or editing existing live-action footage
  • model-generated video clips — use the built-in video generation providers

How To Use It

motion-film ships with the app and is available globally in every workspace — there is nothing to install from the Skill Store. Ask in natural language or call it by name:

Make a 30-second keynote-style launch video for our app.
Use the motion-film skill to create a 9:16 social loop announcing our new sync feature. Brand colours are #0B0B0F and #F5F1EA, music at 120 BPM.
/motion-film

Good requests include:

  • what the project is, who it's for, and the one thing the viewer should remember
  • the kind of film (launch, feature announcement, explainer, brand opener, social loop)
  • format: aspect ratio, length, whether it should loop
  • brand: wordmark, colours, fonts
  • assets: screenshots, photos, logos, footage you supply
  • music: a royalty-free track (the skill finds its tempo, downbeats and drop itself), generated sound only, or "silent"
  • a style reference (Apple keynote, Linear, Stripe, editorial, playful)

If you leave things out, the skill asks once and offers defaults you can accept with "defaults": 1:1 at 1440x1440, ~25–30s, 60fps, looping, a warm off-white canvas with black UI, Apple-keynote style.

Parameters

NameTypeDescription
project_briefstringWhat the project is, the audience, and the one thing to remember
film_kindselectauto, launch, feature-announcement, explainer, brand-opener, social-loop
aspectselect1:1, 16:9, 9:16, 4:5
length_secondsstringApproximate target length
output_dirstringProject folder; defaults to motion-film-project in the workspace

Workflow

  1. Brief — gather project, format, brand, assets, music, and style.
  2. Design (approval gate) — the story is written as 4–6 acts where each act ends in a shape that becomes the start of the next (a dot becomes a pill, a window, a card, a circle that floods the frame). Every beat goes into timeline.json and a beat map table (beat, time, trigger, transform, SFX), with reading time budgeted for every line of text. 3–5 stills are rendered from a stub seek(t). The skill stops here until you approve or request changes.
  3. Build — one HTML file at the target resolution. All styles are computed inside async seek(t) and every time comes from timeline.json; springs are closed-form, so any timestamp is seekable in any order.
  4. Sound — downloaded SFX positioned by their measured peak, or sound generated by the bundled procedural engine from a cue sheet on the same timeline; the song starts on a downbeat and the mix lands at -14 LUFS.
  5. Review loop — half-resolution drafts are cut into contact sheets with one labelled frame per beat. The agent opens them, checks a list (collisions, clipping, safe area, frame 0, phone readability, reading holds), fixes, and repeats until a full pass is clean.
  6. Render & QA — Playwright renders 4 subframes per output frame and ffmpeg tmix blends them into 60fps motion blur. The final file is sheeted again, single-frame pops (frame-difference spikes 3x their neighbours) are fixed, and the muxed audio is checked against the beat lines and loudness target.

Style rules

  • One continuous take: objects transform instead of cutting.
  • When there is UI, a cursor motivates every change with real clicks, drags, and long-presses; the camera zooms Screen Studio–style.
  • Reading holds: every line of text stays still for at least 1s (plus ~0.25s per word beyond three), and the final line for at least 2s.
  • Motion follows concrete defaults for easing, springs, stagger, and exit speed.
  • Banned: crossfades, blur-ins, brightness "developing", 3D flips, empty frames between scenes. Particles and glows are banned except in simulation mode.
  • Assets are only what you supply or what is free for commercial use; the skill does not invent product UI you didn't ask for.

Outputs

In the project folder: the time-seeked film.html, timeline.json, the render script, the approval stills, contact sheets, an optional cue sheet, and the final MP4.

Run artifacts under the task artifact directory:

  • beat-map.md — acts, beats, transforms, SFX, assets and their licences
  • render-report.md — render command, contact sheets reviewed and what each pass fixed, pop scan and loudness results

Dependencies

  • Node 20+
  • Playwright with Chromium (npx playwright install chromium)
  • ffmpeg in PATH
  • Python 3 (beat detection and the sound engine; stdlib only)

Without ffmpeg or Playwright the skill can still produce the brief, beat map, and HTML film, and reports the exact missing dependency instead of rendering.

  • motion-editor — build a reusable editor for making films like these by hand
  • manim-video — deterministic technical/math animation
  • video-frames — extract stills or clips from an existing video

Where The Source Lives

  • resources/skills/motion-film.json — runtime manifest and routing
  • resources/skills/motion-film/SKILL.md — full authoring guide
  • resources/skills/motion-film/references/techniques.md — determinism, springs, liquid glass, goo, iris, floods, masks, footage, render pipeline
  • resources/skills/motion-film/references/example-launch-film.md — worked 54-beat launch film used as the quality bar
  • resources/skills/motion-film/references/taste.md — easing, springs, stagger, reading holds, type, color, anti-patterns
  • resources/skills/motion-film/references/review-loop.md — contact-sheet review loop and checklist
  • resources/skills/motion-film/references/sound.md — sound sources, beat detection, cue sheets, levels
  • resources/skills/motion-film/references/sims.md — simulation mode
  • resources/skills/motion-film/scripts/ — sheet.mjs, wave.mjs, beats.py, and the sfx engine

The review loop, sound engine, simulation mode, and taste rules are adapted from claude-motion (MIT).

When editing the skill, run npm run skills:check.