Motion library: learn why great motion works, then invent
The goal is not to copy reference videos. Learn why great motion works, then invent original moves that still clear that bar.
First-Time Onboarding & Tool Check
When a user is new to motion-library (or starting in a new environment / project), run scripts/onboard.sh first:
- It explains the 4 workflows (Grow Library → Study → Ripomatic → Original Film).
- It checks required & recommended tools (
ffmpeg,ffprobe,yt-dlp,python3,numpy,Blender,Google Chrome,node,uv,gemini-api) and prints exact install commands for anything missing before any work fails mid-run.
Load these files when you need them (paths are relative to this skill folder):
references/principles.md— ten evidence-backed principles and the remix operatorsreferences/technique-families.md— families grouped by use (hook, feature, explainer, social proof, end card), with After Effects, Blender and code recipesreferences/premium-sound.md— what brand mixes measure like, and how to build premium soundbrand/BRAND.md— the skill's own identity (twin-stars logo, colours, type, the stripes-are-the-past rule) with ready SVG/PNG filesreferences/preflight-checklist.md— rules and the checklist to run before every storyboard or renderreferences/breakdown-template.md— the breakdown file formatreferences/reference-to-film.md— the end-to-end way a film is built from references (X "2.7"): pick refs per beat, ripomatic, frame-by-frame study, assets first, Blender staging, transitions, pacing, delivery, owner rulesreferences/sound-from-references.md— pick each sound effect from what the references play on the same event; place cues in scene time; mix numbersscripts/onboard.sh— first-time onboarding guide + checks required/recommended tools (ffmpeg,yt-dlp,Blender,Chrome,numpy,gemini-api) and suggests installs if missingscripts/fetch.sh,scripts/extract.sh,scripts/analyze_sound.py— download (incl.--audio-onlyfast-path), frame (macOS-safe even withoutdrawtext), and measure tempo, onsets, spectral bands, quiet pockets, and classified SFX hitsscripts/ingest.sh— one-command pipeline (fetch.sh→extract.sh→analyze_sound→ raw MP4 cleanup)scripts/make_ripomatic.py— frame-accurate ripomatic stitcher fromshots.txt(validates bounds, resets PTS, normalizes to 1080p30, checks motion variance so clips never freeze, optionally muxes BG audio + builds 6×4 sheet)scripts/rebuild_index.py— rebuildCATALOG.md+techniques.tsvfrombreakdowns/*.md, and query techniques by--query,--use, or--categoryscripts/scan_sfx_refs.py— find the sound hits in reference windows, tag their kind, save the frame at each hit (pair sound with event)scripts/beat_grid.py— tempo + first beat of a music window, so scenes can be authored in whole beatsscripts/blender_xfx.py— Blender helpers:sweep()gradient text reveal,retime()slow/speed a whole scene incl. image sequencesscripts/gradient_wipe.py— full-screen gradient light-band wipe between two clipsscripts/build_index.py— writeslibrary/films.jsonandlibrary/stats.jsonfrom the references and your library's CATALOG.md; the Motion Library site reads these live from GitHub, so run it and push after adding breakdowns
The owner's working library (videos, frames, breakdowns, lessons) is a separate folder. Pass it to the scripts with --library or the MOTION_LIBRARY environment variable. The default is ./motion-library.
A. Grow the library
- Pick sources. Prefer official brand uploads (check the channel name; fan re-uploads are common) and the most-saved motion posts on X. Skip live action, talking heads, screen recordings and near-duplicates, and log each exclusion with a reason.
- Fetch, frame, and measure sound in one command. Run
scripts/ingest.sh --library <dir> <slug> <url>(or runfetch.sh,extract.sh, andanalyze_soundindividually).extract.shauto-detectsdrawtextsupport so it works on macOS Homebrew ffmpeg;analyze_soundoutputsframes/<slug>/sound.jsonwith tempo, cut-to-onset sync vs chance, dynamic range, 3-band spectral balance, quiet pockets, and top classified SFX hits. - Break down each video. Follow
references/breakdown-template.md: overall feel, a shot-by-shot table, why it works, a full measured## Soundsection (plus at least onesoundrow in## Techniques), and a techniques table tagged by category and by use. Only claim what you saw or measured, and say when a claim is from frames/measurements rather than from listening. - Rebuild & query the indexes. Run
scripts/rebuild_index.py --library <dir>to updateCATALOG.mdandtechniques.tsv(or pass--query/--use/--categorywhen picking references for a new brief). - Clean up disk.
ingest.shremoves the raw.mp4automatically oncesheets/<slug>.jpgexists (pass--keep-videoif you still need it forscan_sfx_refs.py). Keep each source URL in the breakdown so it can be re-fetched.
B. The possibilities guide
Work from references/principles.md and references/technique-families.md. Start with the principles, then the remix operators, then technique cards grouped by use. Each card has recipes, public reference links, and invention prompts that push past the reference. Design sound with references/premium-sound.md: generic sound effects are the clearest tell of cheap or AI-made motion.
C. Use it on a brief
For a product launch film, board it first with the companion skill launch-storyboard: brief and target customer, hook, retention arc, the product's real UI library found and downloaded online, then 4–6 frames. Then run the steps below on that board.
- Name the use for each beat (hook, feature, explainer, social proof, end card).
- Pick one or two technique families per beat, read why they work, then run the invention prompts and remix operators until you have a move none of the references made.
- Storyboard each beat with timing, the visual, the motion move, on-screen text, and the sound cue. One idea per beat, one accent colour, a clear hero, a setup that pays off, and the 3–5 key actions that must land on a real sound.
- Run the pre-flight checklist in
references/preflight-checklist.mdbefore every storyboard or render. - Keep a lessons file of the owner's revision notes, written as rules. Add each new round of feedback. A template is at the end of the checklist file.
Never post or publish anything. Hand concepts and renders to the owner for review. Only claim what was seen or measured.
D. Build a film from references (default workflow)
Follow references/reference-to-film.md. In short:
- Story in text first, then pick one reference per beat from the whole library (fetch missing ones) and cut a ripomatic.
- Study each reference frame by frame: measure the framing and timing, then compare side by side.
- Build the assets first from real sources: real device models, real UI rebuilt in HTML with the brand font, owner-named image sources, and the owner's own recordings with private content cut.
- Stage each beat as a Blender script. Check stills before any render.
- Every seam is a move (drop and rise, spin, gradient sweep or wipe, blur dissolve). Scenes run in whole beats, readable before short, one action at a time.
- Sound comes from the references, per
references/sound-from-references.md. Typing is loud and the music ducks under it. - Assemble, read the loudness and a contact sheet, then deliver. Render only when asked.


