motion-design-video-analysis
Installation
SKILL.md
Motion-design video analysis
Turns a short (under ~1 min) motion-design clip into two things: an analysis (how it was made and how it feels) and a rebuild spec (numbers someone can build from without reopening the video). Validated on a 28.6 s product-update clip (Linear's "Loops updates") and reused as the judge on a replica of it.
The model is a fast first reader. You are the ground truth. Both models tested on the Linear clip confidently described a "flat 2D view that becomes 3D at 7.5s"; the frames show a 3D scene from t=0. Plan for that class of error.
Prerequisites
ffmpegon PATH. Worker images have a full static build at/usr/local/bin/ffmpeg(hasfps,tile,scale,crop,hstack; nodrawtext, noffprobe: readffmpeg -istderr, or run the community template'ssetup.shto add ffprobe). The Remotion-bundled ffmpeg undernode_modules/@remotion/compositor-*is stripped (nofps,tileorhstack); don't use it for analysis.- Pixel maths:
python3 -m venv /tmp/venv && /tmp/venv/bin/pip install numpy pillow(system pip is blocked by PEP 668; this venv install was run and works). - An OpenRouter credential the script can use. In an Agent Swarm, bind it as an egress credential so the key never enters the script (the header
Authorization: Bearer [REDACTED:OPENROUTER_API_KEY]resolves at egress in ephemeralscript-runonly, see Execution notes). Outside a swarm, any way of calling OpenRouter works. - Getting bytes off agent-fs:
agent-fs download <path> -o <file>. Viewer URLs serve an SPA shell, not the file; useagent-fs signed-url <path> --jsonwhen a script needs to fetch it. Upload binaries withagent-fs write <path> --file <local>(binary-safe).
Step 1 — probe the file
ffmpeg -hide_banner -i in.mp4 2>&1 | grep -E "Duration|Stream"