motion-graphic
An agent skill that turns a coding agent into a motion-graphics studio: the agent writes the film as code, a headless browser renders it frame by frame, ffmpeg encodes the MP4.
Showreels, product and launch reels, UI-morph loops, kinetic type, animated explainers, music and story films. The skill is written in the Agent Skills format (SKILL.md plus references and scripts). It was built for Claude Code; any agent that can read a skill and run shell commands can use it.
The prompt is 10% of the film. The other 90% is the harness: a deterministic render engine, a reference, a beat grid, and looking at your own frames until they are good.
Without a harness, a model gives you its default video: centered text on a gradient, everything fading in, a logo at the end. This skill supplies the missing harness:
- A deterministic engine.
window.seek(t) paints frame t as a pure function of time. Headless Chromium calls it for every subframe, and ffmpeg blends the subframes into motion blur. The same film always renders the same bytes, so a fix is a one-line edit plus a re-render.
- Motion with mass. Closed-form springs (
spring, track, trackN, indicator) replace easing curves. A value with several targets never restarts.
- Sound on the same timeline. A dependency-free synthesizer writes the score and SFX to a beat grid. Cuts land on downbeats and UI sounds on the frame of the action.
finalize.py masters to −14 LUFS.
- ElevenLabs, if you have it. With an
ELEVENLABS_API_KEY, the agent can generate music from a section plan that matches the shot list, score a finished cut with video-to-music, and generate sound effects. All of it is optional and paid: without a key the skill uses its own synthesizer and nothing changes.
- A critique loop. The agent renders contact sheets, phone-width sheets and frame strips, then looks at them and scores the film on 7 axes. It fixes the 3 worst problems and repeats until every score is 8 or higher.
Install
As a Claude Code plugin (recommended). In your shell:
claude plugin marketplace add hculap/skill-motion-graphic
claude plugin install motion-graphic@motion-graphic
Or both in one step inside a session: /plugin install motion-graphic --marketplace hculap/skill-motion-graphic (Claude Code v2.1.275 or later). The skill then appears as motion-graphic:motion-graphic. It adds about 110 tokens to every session (its name and description); the full skill, about 1.8k tokens, loads only when it runs.
To update, run claude plugin update motion-graphic@motion-graphic, or turn on auto-update for the marketplace under Marketplaces in /plugin.
As a plain skill. Clone it into a skills directory:
git clone https://github.com/hculap/skill-motion-graphic ~/.claude/skills/motion-graphic
Clone into .claude/skills/motion-graphic inside a repository instead to scope it to that repository. It loads as motion-graphic, without the plugin prefix, and git pull updates it.
Then ask for a video: "make a 15-second launch reel for https://example.com", "animated explainer of this paper, 1:1 for X", "rolka 9:16 o naszym nowym API". The skill triggers on requests for motion graphics, animated videos, promo or launch films, reels, rolka or animacja. On first use, the agent installs the render runtime (scripts/setup.sh, once per machine).
Requirements
| |
|---|
| Node.js 18+ with npm | renderer, synthesizer, site grabber |
| ffmpeg + ffprobe | encoding, mixing, inspection |
| Python 3 | init_studio.py, finalize.py (standard library only) |
| uv | only for beats.py (measuring a supplied or generated music track) |
ELEVENLABS_API_KEY (optional) | generated music and SFX through eleven.mjs; paid, used only after the user approves the cost. Music needs the key's music_generation permission |
setup.sh is idempotent. It installs Playwright and headless Chromium once into a shared cache at ~/.cache/motion-graphic, which you can move with MOTION_RUNTIME. Film projects never get their own node_modules. On a bare Debian or Ubuntu box, Chromium may also need its system libraries: sudo npx --prefix ~/.cache/motion-graphic playwright install-deps chromium.
How a film gets made
The agent follows SKILL.md. In short: