/ai-stuff:remotion-motion-graphicsfrom ai-stuff
Create and edit professional motion graphics videos with Remotion (React-based video). Use this skill EVERY time the user wants to create a video, edit a video, animate something, build an intro/outro/logo animation, make a Reel/Short/promo/launch video, add text animations or captions to footage, composite images and B-roll into a video, or mentions Remotion, motion graphics, video rendering, or "make this video look better/less generic". Also trigger when editing an existing Remotion project or when the user complains their video looks basic, generic, or amateur — this skill contains the exact fixes. Always read this skill BEFORE writing any Remotion code.
Ships in ai-stuff. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Remotion renders React components frame-by-frame into video. Code quality is not the bottleneck — motion design craft is. Untrained generation produces linear easing, opacity-only fades, simultaneous entrances, flat colors, and no texture. That is the "generic AI video" look. This skill exists to prevent it.
interpolate() gets an easing curve;
every entrance prefers spring(). Always extrapolateLeft/Right: "clamp".<OffthreadVideo>, never <Video>.fps via useVideoConfig(). No magic frame numbers.Determine: duration, fps (30 default; 60 only for heavy fast motion), dimensions
(1080×1920 Reels/Shorts, 1920×1080 landscape), what assets exist (images, footage,
audio, logos), and whether this is a new composition or an edit to an existing project.
If editing an existing project: read src/ fully first, find the theme (or create one),
and refactor violations of the rules above before adding features.
New project:
npm install remotion @remotion/cli react react-dom
# optional: @remotion/transitions @remotion/motion-blur @remotion/google-fonts
Copy assets/theme.ts from this skill into src/theme.ts and adjust the palette to
the user's brand. Structure: src/index.ts (registerRoot) → src/Root.tsx
(Composition, duration/fps/size) → src/scenes/*.tsx → src/components/*.tsx.
User assets go in public/, loaded via staticFile().
Read references/motion-patterns.md for the reusable component implementations
(BgMesh, Grade, Grain, Vignette, KenBurns, WordReveal, Stagger, Counter, Spark,
transitions, parallax). Compose scenes from those patterns. For pacing, rhythm,
typography, color palettes, and sound design rules, read
references/design-rules.md.
Scene rhythm: HIT → hold (15–20 still frames) → build → HIT. Something must move in the first 15 frames. Never >90 frames without a new visual element.
Bundle once, render from the bundle. Every remotion render/still given an
entry file (src/index.ts) re-bundles into a fresh %TEMP%\remotion-webpack-bundle-*
folder containing a full copy of public/, and on Windows these are often never
cleaned up — a verify loop with large assets fills tens of GB. Instead bundle into
one fixed project folder (add build/ to .gitignore) and pass that folder:
npx remotion bundle src/index.ts --out-dir build
npx remotion render build <CompId> out/video.mp4 --codec h264 --crf 17
Re-run the bundle command after every code or public/ change (it overwrites
build/, so there's only ever one copy). Never pass src/index.ts to
render/still. To remove leftovers from before this rule:
Remove-Item -Recurse -Force $env:TEMP\remotion-webpack-bundle-* (PowerShell)
or rm -rf "$TEMP"/remotion-webpack-bundle-* (bash). Do this only when no render
is running.
Remotion needs a Chromium binary. If its auto-download fails (sandboxes, offline CI),
find one and pass it explicitly:
which chromium chromium-browser google-chrome 2>/dev/null
ls /opt/pw-browsers 2>/dev/null # Playwright installs live here
npx remotion render ... --browser-executable=<path>
If full Chrome errors with "Old Headless mode has been removed", use a
headless_shell binary instead (Playwright ships one as
chromium_headless_shell-*/chrome-linux/headless_shell).
Extract frames at key moments and visually inspect each one. The portable method — works on machines with no system ffmpeg, renders the exact frame:
for f in 15 45 90 150; do
npx remotion still build <CompId> out/check_$f.png --frame $f --overwrite
done
If system ffmpeg IS available, extracting from the finished mp4 also verifies
the encode itself (-ss seeking is more portable than select= filters, whose
quoting breaks in some shells and in Remotion's bundled ffmpeg):
ffmpeg -v error -ss 1.5 -i out/video.mp4 -frames:v 1 check_1.png
Look for, and fix, in order of frequency:
gap/margin in em resolves against the PARENT font-size
(often 16px), not the text size — use px values in flex containers around big type.references/design-rules.md.To enhance an existing mp4 (captions, grade, intro/outro) rather than build from
scratch: put the file in public/, render it as the asset layer with
<OffthreadVideo src={staticFile("clip.mp4")} />, set composition duration from the
clip length, and stack graphics/grade/grain above it. Get the clip's duration and fps
with ffprobe before setting up the composition. For word-synced captions over
speech, see the captions section of references/motion-patterns.md.
references/motion-patterns.md — copy-paste component library: backgrounds,
grade/grain/vignette, Ken Burns, text reveals, counters, transitions, parallax,
audio sync, captions. Read before writing components.references/design-rules.md — palettes, typography rules, scene architecture,
sound design, pre-delivery checklist. Read before designing scenes and before
final delivery.assets/theme.ts — the theme template to copy into every project.public/sfx/ — see examples/scripts/ in
the repo. Zero downloads, fully deterministic.durationInFrames mismatch between Composition and scene content (dead air).--overwrite on re-renders, then inspecting the stale file.@remotion/google-fonts or @font-face + staticFile.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub pauldotsh/ai-stuff --plugin ai-stuff25 skills in this plugin
/brainstormingYou MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary./dispatching-parallel-agentsUse ONLY when the developer has explicitly told you to dispatch subagents — never infer or self-authorize it. Splits 2+ independent tasks across isolated subagents, assigns them cheap models, and polls at a per-harness cadence that preserves prompt cache (Claude Code vs Codex/opencode).Other plugins' skills for the same job