/motion-muse:motion-musefrom motion-muse
Code-first video director and editor using Remotion, Three.js, and FFmpeg. Turns natural-language briefs or footage into motion-rich MP4s with Thai typography, beat-synced cuts, transitions, and royalty-free audio.
Ships in motion-muse. 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.
Use for any request to make, edit or remix a video, reel, promo, lyric video, explainer, cartoon, 3D scene, product ad or motion clip. Everything is made with code (React/SVG/CSS/Canvas/Three.js in Remotion + FFmpeg). Never use AI video generators or text/image-to-video APIs, and never require Blender; user or licensed images, fonts, models and audio are fine.
Works on any machine with bash (Linux, macOS, WSL/Git Bash). SKILL_DIR below means the folder that contains this file. If you do not know it:
SKILL_DIR=$(dirname "$(find /opt/.devin ~/.claude ~/.agents ~ -path '*motion-muse/scripts/setup.sh' 2>/dev/null | head -1)")/..
Read what this user taught the skill on this machine first, and follow its rules and dislikes (section 8):
python3 "$SKILL_DIR/scripts/learn.py" show --brief "<brief>"
bash "$SKILL_DIR/scripts/setup.sh" # installs into ~/skills; set SKILLS_DIR=... to change
export SKILLS_DIR="${SKILLS_DIR:-$HOME/skills}"
The script checks each item, installs only what is missing, and prints OK / NEW / FAIL / MISSING per line. It ends with READY when everything is there.
MISSING: ffmpeg or node: install it with the command the script prints (needs admin rights; ask the user if you cannot).FAIL on a clone or download: check the network and re-run. The script is safe to re-run.READY. Tell the user what was installed.| Dependency | Installed to | Source | Used for |
|---|---|---|---|
| Video Shotcraft | $SKILLS_DIR/video-shotcraft | https://github.com/dell0721/skill- | Workflow, 152 shot cards, React components, 5 BGM + 149 SFX, beat-sync and final-review rules |
| Remotion skills | $SKILLS_DIR/remotion-skills | https://github.com/remotion-dev/skills | Remotion how-to (skills/remotion-best-practices/SKILL.md is the router) |
| awesome-ai-motion gallery | $SKILLS_DIR/awesome-ai-motion | https://github.com/guanmo-ai/awesome-ai-motion | 2,129 AI motion works with summaries, covers and prompts (ideas) |
| AI Motion effect library | $SKILLS_DIR/motion-cards | https://github.com/gongnyang/awesome-ai-motion | 637 effect cards with timing/easing, 128 rendered HTML clips, 11 scene recipes |
| Prompt Thai font | $SKILLS_DIR/fonts/prompt/ | Google Fonts (OFL) | Thai text; most machines have no good Thai font |
| Remotion + headless Chrome | $SKILLS_DIR/video-shotcraft/template/node_modules | npm | Rendering. Symlink into projects instead of reinstalling |
| git, Node.js ≥ 20, ffmpeg, curl | system | — | Required tools. jq and librosa are optional |
Files that ship with this skill:
scripts/setup.sh: dependency check and installscripts/synth-sfx.sh <dir> [bpm] [bars]: makes whoosh, pop, hit, riser, tick, sparkle and a handmade set (pencil, brush, paper, fold, knock, thud, pluck, bell, flutter) with ffmpeg only (no license needed), plus a pulse bed in the given temposcripts/learn.py: the user's notebook on this machine (~/.motion-muse): rules, dislikes, techniques used often and saved code (section 8)scripts/beat-grid.py <song>: BPM, first-beat offset and loudness per 2 s, without librosareferences/sound-sources.md: where to get royalty-free music and SFX, the license of each, and how to make your own soundreferences/motion-sources.md: where to get effects and techniques, their licenses, and gallery search commandsreferences/editing-craft.md: which transition to use for which scene change, pacing, and the anti-"AI look" checkliststarter/src/transitions.tsx: Timeline with 12 ready transitions (whip, push, zoom, iris, wipe, slices, flash, glitch, leak, focus, smash, cut) + auto SFX, Grain, Driftreferences/footage-editing.md: editing real footage: shot choice, rhythm, speed ramps, reframing, colour, talking heads, Thai captions, audio mix, footage checklistscripts/find-footage.py: free Mixkit b-roll search/download (credits + no reuse)scripts/footage-scan.py: proxies, shot detection, motion/pan/shake/focus per shot, shot scores, colour match, contact sheets → footage.jsonscripts/transcribe.py: local faster-whisper speech → word-timed Thai captions + speech ranges + SRTscripts/auto-edit.py: beat-synced first cut (montage, talking head, or voice-over) → public/edit.json + edit.md seam planstarter/src/footage.tsx: FootageReel composition (renders edit.json), Clip (reframe, speed ramp, colour look, punch-in), Captions, FootageTitle, duck()starter/src/: working 9:16 Thai examples: MotionReel (5 techniques, beat-synced) and TransitionsDemo (every transition)Need: topic and Thai copy, footage or screenshots, music, aspect ratio and length. Ask once for whatever is missing, with clickable defaults (e.g. "9:16 15 s", "16:9 30 s", "you decide"). If the user says to just make it ("ทำเลย"), choose defaults and keep going.
Read references/director.md. In short:
python3 "$SKILL_DIR/scripts/director.py" route "<brief>" # capabilities → smallest toolset
python3 "$SKILL_DIR/scripts/director.py" init ~/videos/<slug> --caps <caps> # starter + only the packages those caps need
python3 "$SKILL_DIR/scripts/director.py" check src/<slug>/storyboard.json # scene table to show the user
python3 "$SKILL_DIR/scripts/director.py" render ~/videos/<slug> src/<slug>/storyboard.json # per-scene cached render + mix + QA
starter/src/lib/: characters + pose (stickman / vector characters, gaits, key poses), flat + city (flat big-head cartoon people, Bangkok street sets, story badges), diagram, parallax, atmosphere, typography (Thai font registry + kinetic text), noise, ink + head + motif + meter (hand-drawn lines and washes, heads that turn to any angle, one motif across cuts, shots in bars), physics (fall, bounce, settle, float, pour, splash, impact pulses), layout + SafeGuides (platform safe zones, one layout for every aspect ratio); starter/kits/three/three.tsx for 3D (copied by init --caps 3d), starter/kits/three/toon.tsx for cel-shaded 3D cartoon characters and sets (--caps toon), story.tsx for dialogue subtitles, SFX and music on one timeline.references/toon-story.md. Write script.json, run scripts/story.py build, then render. New characters or outfits (princess, king, a person from a reference picture) and saving them in the skill for the next episode: references/toon-characters.md, scripts/story.py cast. No voice-over unless the user asks: dialogue is Thai subtitles with name tags and the mouths move while each line is on screen.references/openfilm.md, scripts/story.py openfilm.references/character-from-reference.md first (rights rules: copyrighted characters get a new design, real people get a stylized look, not a likeness). charref.py prep → author a front-view spec for lib/refchar (RefCharacter turns it to any angle) → charref.py compare and iterate; init --caps refchar copies examples/ref-character.lib/flat + lib/city with the same script.json → story.py build flow as toon stories; copy examples/life-time. Stay 2D (no --gl, renders much faster than 3D). Before designing a new character or changing how one looks, read references/character-design.md (silhouette, colour, lines, cel shading, faces, poses, turning, sitting/lying, physics, inventing new poses). For ordinary adults with real proportions, no outlines and finger hands, use lib/slim (SlimCharacter, same poses). Side/three-quarter views, indoor sets (office, condo, store, hospital, market, BTS), mouths from a recorded voice, 2D camera moves, more FX, long episodes and thumbnails: references/flat-story.md.examples/zombie-biology (SVG cartoon explainer), examples/apocalypse-observer (3D horror, third-person camera), examples/luxury-product (3D product ad, Thai sans), examples/cold-brew (can with a wrapped Thai label, moving key light, blinds gobo, bouncing ice, 3 formats), examples/zombie-id (toon story: zombie goes to get an ID card, 8 shots, 52 s, subtitles + SFX + music, no voice), examples/life-time (flat 2D explainer: life-time transferred like PromptPay, 6 shots, 33 s, 16:9).references/basics.md and start from the compositions in starter/src/Basics.tsx (DataReel, BarRace, LyricReel, AppPromo, PromoCard); batches with scripts/batch.py.references/trailer.md. init --caps trailer copies examples/last-train (3D night city City3D, rain/flare/shake/RGB-split fx, silhouette figure, score.py that writes score + SFX on the bar grid). New story and look per brief.references/handmade.md. Shots cut on bar lines ("bars" in the storyboard, lib/meter), heads that turn to any angle (lib/head TurnHead), ink lines and gouache washes (lib/ink), one motif carried through every scene (lib/motif), formula SFX on the beats (synth-sfx.sh); init --caps handmade copies examples/paper-plane. Design a new look per brief; never copy another film's characters or style.references/place-guide.md. scripts/place.py fetch builds the 3D map from OpenStreetMap and fetches open-licence photos / clips from Wikimedia Commons with CREDITS.md; init --caps place adds lib/map3d and the FoodSpot composition (fly-in, pin, credited photos and clip, end card). Never download TikTok / YouTube / Instagram / Facebook / Google Maps media: tell the user to ask the owner for the file (place.py permission writes the Thai request) and credit it once they confirm permission.director.md section 4) and fetch it with scripts/thai-fonts.sh.director.md section 8 (label wrap, materials, moving key light, gobo, AgX, physics).Read references/motion-sources.md, then:
motion-cards for timing and easing values.references/shots/<category>/*.md). Read the whole card and the demo TSX it points to, and keep any "known pitfall" parameters.references/editing-craft.md and write the seam plan table: for every cut, the relation between the two shots, the transition kind and why. Default is calm (guide section 0): unless the user asks for a flashy or transition-heavy edit, use hard cuts for almost every seam, at most one soft transition (push, focus, leak, wipe, iris) per 10 s, no transitions between steps of a sequence (keep the frame still and change what is inside), and slow, rare camera pushes. Prefer match cuts when two shots share a shape or color. Design 1–2 custom seams from this video's content for the key moments (guide section 2b). Only when the user asks for more energy: 4–6 transition kinds and 2–4 custom seams.P=~/videos/<slug>; T="$SKILLS_DIR/video-shotcraft/template"
mkdir -p $P/public/fonts $P/public/audio $P/out && cd $P
cp $T/package.json $T/tsconfig.json $T/remotion.config.ts . && ln -sfn $T/node_modules node_modules
cp -r "$SKILL_DIR/starter/src" . && cp "$SKILLS_DIR"/fonts/prompt/*.ttf public/fonts/
while read -r a; do cp "$SKILLS_DIR/video-shotcraft/assets/audio/$a" public/audio/; done < "$SKILL_DIR/starter/audio.txt"
npx remotion render src/index.ts MotionReel out/starter.mp4 # optional: proves the setup works
starter/src/theme.ts already loads Prompt with delayRender + FontFace, has the bright palette and the beat helpers BEAT / b(k). Change BPM for your track. starter/src/Reel.tsx shows each technique; replace its scenes with yours.
Join scenes with Timeline from starter/src/transitions.tsx (it places the transition SFX too), and put <Grain /> on top:
<Timeline scenes={[{ dur: b(4), el: <Hook />, out: { kind: 'smash' } }, { dur: b(3), el: <Feature />, out: { kind: 'whip', dir: -1 } }, { dur: b(5), el: <End /> }]} />
<Grain opacity={0.07} />
Wrap still layouts in <Drift dur={...}> so no shot is frozen.
Intl.Segmenter('th', { granularity: 'grapheme' }) so vowels and tone marks stay on their letter.lineHeight ≥ 1.3 or upper vowels get clipped. Check big words fit the frame width.Math.random / Date.now; use seeded random.<Audio src={staticFile('audio/x.mp3')} trimBefore={frames} volume={...} />; SFX go in <Sequence from={b(k)}>.Read references/footage-editing.md and follow its pipeline. In short:
python3 "$SKILL_DIR/scripts/find-footage.py" <keywords> --orientation vertical # only if footage is missing; then --get <ids> --dir footage-raw
python3 "$SKILL_DIR/scripts/footage-scan.py" <user files or footage-raw/> [--stabilize] # proxies + footage.json + out/sheets/*.jpg
python3 "$SKILL_DIR/scripts/transcribe.py" --footage footage.json # if any clip has speech (pip install faster-whisper)
python3 "$SKILL_DIR/scripts/auto-edit.py" footage.json --music audio/bgm.mp3 --length 20 --look warm # or --mode talk / --vo audio/vo.mp3
npx remotion render src/index.ts FootageReel out/video.mp4 --timeout=120000
edit.md. The draft is a starting point: swap weak shots, add Thai titles, design 2–4 custom seams, and fix the captions by hand.public/footage/, never the originals (VFR/HEVC phone video drifts out of sync).Read references/sound-sources.md.
Music (BGM): find a new track for every video. Do not reuse a track from an earlier video, and do not use Shotcraft's 5 bundled BGM tracks or the starter's house-vibez.mp3 unless the user asks. Everyone who installs this skill has those tracks, so videos made with them sound the same.
sound-sources.md section 2b), plus the BPM range.python3 "$SKILL_DIR/scripts/find-music.py" <keyword1> <keyword2> <keyword3>. It lists unused Mixkit tracks with their tags, and skips tracks used before on this machine and Shotcraft's bundled tracks.beat-grid.py: is the BPM in range, is it at least as long as the video, and is there a phrase start where the hook can sit?python3 "$SKILL_DIR/scripts/find-music.py" --get <id> --title "<title>" --out public/audio/bgm.mp3. This writes CREDITS.md and marks the track as used.sound-sources.md (Pixabay Music, YouTube Audio Library, Incompetech, FMA, Uppbeat). Open the page in the browser, check the license, download the track, and add it to CREDITS.md and the used-music log yourself.SFX: Shotcraft's bundled SFX (assets/audio/sfx/, license in assets/audio/ATTRIBUTION.md; read references/sound-design.md) are fine to reuse. You can also use free SFX sources from sound-sources.md, or make your own with bash "$SKILL_DIR/scripts/synth-sfx.sh" public/audio/synth.
ElevenLabs only after asking (section 5).
Write every outside file into public/audio/CREDITS.md (title, URL, license, date) when you download it, and put the needed credit lines in the delivery message.
Beat sync: follow Shotcraft's references/music-beat-sync.md. Run python3 "$SKILL_DIR/scripts/beat-grid.py" song.mp3 --fps 30 (or librosa if installed) to get the BPM and first-beat offset, start the music on a phrase boundary, and keep each cut within 3 frames of a beat.
Never call ElevenLabs without asking. Ask first, e.g. "ใส่เสียงพากย์/เพลงจาก ElevenLabs ไหม (มีค่าใช้จ่าย API)" with options "ใส่เสียงพากย์ไทย", "ใส่เพลง/เสียงเอฟเฟกต์", "ไม่ใส่".
Only after a yes for this video: use the user's ELEVENLABS_API_KEY from their secret store or environment (never print it or write it to a file), read the official API docs (https://elevenlabs.io/docs), generate the audio and save it into public/audio/.
Tell the user that commercial use depends on their ElevenLabs plan. If the answer is no or there is no answer, use sources 1–4 above.
npx tsc --noEmit -p .
python3 "$SKILL_DIR/scripts/director.py" render . src/<slug>/storyboard.json --draft # half resolution, about 2× faster per 3D scene: check this first
python3 "$SKILL_DIR/scripts/director.py" render . src/<slug>/storyboard.json [--formats 9:16,1:1,16:9]
python3 "$SKILL_DIR/scripts/director.py" qa out/<file>.mp4 # any MP4 (e.g. FootageReel): metadata, loudness, black frames, sheets
render renders scene by scene with a cache, mixes and normalises the audio (-14 LUFS), then runs QA: motion per scene, duration, loudness/true peak, black stretches, out/<Comp>.sheet.jpg and out/<Comp>.safe.jpg (app-UI zones in red). Details: references/director.md section 6.
Look at both sheets and at single frames around each cut. Fix clipping, overflow, text in the red zones, leftover text, unreadable Thai and static shots, then render again (unchanged scenes come from the cache).
Run the checklist in references/editing-craft.md section 6 (and section 9 of footage-editing.md for footage). For full promos, run Shotcraft's independent final review (references/final-review.md).
If the video has BGM, also offer a version with SFX only.
Send the final MP4 (and the other formats if rendered) to the user, as attachments if you work on a remote machine.
Make a cover for the platform upload: director.py cover out/<Comp>.mp4 --title "หัวข้อ\\nบรรทัดสอง" --font Prompt picks a sharp, still frame (or --at 6.5) and puts the Thai title on a card inside the safe zone (the card hides text already in the frame; --card colour) → out/<Comp>.cover.jpg (needs Cover in Root.tsx; the starter has it).
Include a short Thai table of time range → technique, the credit lines from CREDITS.md, and ask what to change.
After a full promo, offer once a CapCut/JianYing project export (references/jianying-export.md in Shotcraft).
scripts/learn.py keeps a notebook in ~/.motion-muse/ (or $MOTION_MUSE_HOME). It never leaves the machine.
learn.py show --brief "<brief>" (director.py route and init print it too). Rules and dislikes
are binding unless the user says otherwise this time.learn.py note "คอสั้น เห็นเหนือปกเสื้อนิดเดียว ห้ามยาว" --kind dislike --tag flat,neck. Kinds: rule, dislike,
like, fix (a bug and how it was fixed). Tell the user in one line what you saved. Not for one-off details of this
video, personal data or secrets.learn.py use <name> --desc "...". When it prints
PROMOTE (3 uses), turn the code into a parameterised component in its own file and learn.py save <name> <file>.
Next time learn.py get <name> <project> copies it into src/lib/learned/<name>/.learn.py forget <id|text>, forget --all, pause ("ห้ามจำ") / resume. To move to another
machine (or a fresh cloud VM, where the notebook is lost): learn.py export notebook.json / import. Imported
notes are marked and not binding until the user confirms them; only import a notebook the user made.| Path | Use |
|---|---|
scripts/setup.sh | dependency check / install (step 0) |
scripts/director.py | route, init, check, render (--draft, --formats), qa, cover |
scripts/story.py | toon story build, cast, openfilm |
scripts/find-music.py, beat-grid.py, synth-sfx.sh | fresh music + credits, beat grid, simple SFX |
scripts/footage-scan.py, find-footage.py, transcribe.py, auto-edit.py | footage pipeline |
scripts/thai-fonts.sh | fetch any of the 15 Thai OFL fonts |
scripts/place.py | place guides: fetch (geocode, OSM 3D map data, open-licence Commons photos/clips, CREDITS.md, PERMISSIONS.md), permission (Thai request to a clip owner) |
scripts/batch.py | one video (or still) per CSV/JSON row, shared --base props, --formats, report.csv |
scripts/learn.py | the user's notebook: show, note, use, save / get, forget, pause, export / import (section 8) |
starter/src/ | transitions.tsx (Timeline + 12 kinds), footage.tsx, Cover.tsx, Basics.tsx (data, lyric, app demo, product card), lib/* building blocks (chart, lyrics, device, brand, ink, head, motif, meter, …) |
starter/kits/three/ | three.tsx (stage, camera, lathe, lights, product kit), toon.tsx, map3d.tsx (OSM city, pin, fly-in, credits) |
references/ | director.md, basics.md, handmade.md, place-guide.md, editing-craft.md, footage-editing.md, toon-story.md, flat-story.md, toon-characters.md, openfilm.md, motion-sources.md |
examples/ | zombie-biology, apocalypse-observer, luxury-product, cold-brew, zombie-id, life-time, batch-menu, food-spot |
CREDITS.md.LICENSE (opens in a new tab)characters/cast.json (opens in a new tab)examples/apocalypse-observer/ApocalypseObserver.tsx (opens in a new tab)examples/apocalypse-observer/storyboard.json (opens in a new tab)examples/batch-menu/brand.json (opens in a new tab)examples/batch-menu/menu.csv (opens in a new tab)examples/cold-brew/ColdBrew.tsx (opens in a new tab)examples/cold-brew/storyboard.json (opens in a new tab)examples/food-spot/FoodSpot.tsx (opens in a new tab)examples/last-train/Trailer.tsx (opens in a new tab)examples/last-train/city3d.tsx (opens in a new tab)examples/last-train/figure.ts (opens in a new tab)examples/last-train/fx.tsx (opens in a new tab)examples/last-train/score.py (opens in a new tab)examples/last-train/shots-a.tsx (opens in a new tab)examples/last-train/shots-b.tsx (opens in a new tab)examples/last-train/shots3d.tsx (opens in a new tab)examples/last-train/storyboard.json (opens in a new tab)examples/life-time/LifeTime.tsx (opens in a new tab)examples/life-time/script.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
video-editing, motion-graphics, remotion, ffmpeg, threejs, video-production
Generated from the plugin's indexed repository (peichh/motion-muse) — no native marketplace selected
npx claudepluginhub p/peichh-motion-muse2 skills in this plugin
Other plugins' skills for the same job