Motion film

From CoWork-OS/CoWork-OS · View interactive version

Motion film is an AI agent skill from the GitHub repository CoWork-OS/CoWork-OS. Design and render a motion-design film entirely in code — launch videos, product promos, feature announcements, explainers, brand/event openers, social loops. One time-seeked HTML file rendered frame-by-frame with Playwright + ffmpeg; one continuous take, beat-synced to music.

How to use this skill

Skill file

Motion Film

Make a polished motion-design film from code: a single HTML file whose every pixel is a pure function of time, rendered to MP4 with Playwright and ffmpeg. Works for any project — the craft is fixed, the story is designed per project.

Helper scripts are in scripts/ ({baseDir} in the references means this skill's folder): sheet.mjs (contact sheets), wave.mjs (waveform + loudness), beats.py (tempo, downbeats, drop) and the sfx sound engine. The review loop, sound engine, simulation mode and taste rules are adapted from claude-motion (MIT, scripts/LICENSE-claude-motion).

1. Brief

Ask for what's missing; offer the default in brackets so the user can just say "defaults".

2. Design (get approval before building)

  1. Story as a chain of transforms. Write 4–6 acts. Each act ends in a shape that becomes the start of the next (a dot → a pill → a window → a card → a circle that floods the frame…). Pick the transforms from the project's own vocabulary:
  1. Beat map. Write every beat into timeline.json (techniques.md → Timeline) and the same as a table in beat-map.md: beat # · time · cursor action / trigger · what transforms · SFX. Something happens on every beat. Land the biggest reveal on the drop, put the quiet/real-world moment in the breakdown, bring the brand back on the returning beat. Budget reading holds (taste.md → Timing) for every line of text before fixing the length.
  2. Stills. Render 3–5 stills at key moments (one per act) from a stub seek(t) and show them with the beat map. Wait for approval or changes.

3. Rules

4. Build

  1. One HTML file at the target resolution. Every time comes from timeline.json (window.TL); no start times hardcoded in scene code. Every style is computed from t inside async seek(t): no CSS transitions/animations, timers, Date.now(), unseeded randomness, or state carried between frames.
  2. Springs as closed-form step responses; one spring per target change so values stay pure functions of time.
  3. Use the techniques in references/techniques.md (liquid glass, goo, iris, wordmark squeeze, floods, masks, footage) as the story needs them.
  4. Sound (references/sound.md): downloaded SFX positioned by their measured peak, or generated with the bundled sfx engine from a cue sheet that reads timeline.json. Don't mix both kinds for the same event type. Start the song on a downbeat. Final mix at -14 LUFS, true peak ≤ -1 dBFS.

5. Render & QA

  1. Playwright renders 4 subframes per output frame; ffmpeg tmix blends them to 60fps motion blur.
  2. Run the review loop (references/review-loop.md) on half-resolution drafts: contact sheets at every beat with scripts/sheet.mjs, the checklist, fix, repeat until a full pass is clean.
  3. On the final render: sheets again, then scan for single-frame pops (frame-difference spikes 3x higher than their neighbours). Fix and re-render.
  4. Mux audio, check it with scripts/wave.mjs (hits on beat lines, -14 LUFS ±1), deliver the MP4, and show the user a few frames and the sheet that proves each fix.

Routing

Trigger Examples

Positive

Negative

Parameters

| Name | Type | Required | Description |

| -------------- | ------ | -------- | ------------------------------------------------------------------- |

| project_brief | string | No | What the project is, who it's for, the one thing to remember |

| film_kind | select | No | auto, launch, feature-announcement, explainer, brand-opener, social-loop |

| aspect | select | No | 1:1, 16:9, 9:16, 4:5 |

| length_seconds | string | No | Target length in seconds (default ~25–30) |

| output_dir | string | No | Project folder (default motion-film-project in the workspace) |

Runtime Prompt

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.