/explain-ladder:motion-designfrom explain-ladder
Reference pipeline from another studio for code-only motion films: beat map, seek(t) HTML engine, chunked Playwright render, ffmpeg, music and SFX, QA. Use only when the user names motion-design or asks for its chunked-render technique; its brand, folders and people are the original author's and do not apply to us.
Ships in explain-ladder. 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; scripts run unread.
Built and battle-tested 25-27/09/2026 on: promo60 (60 s VO ad), loop, launch film, showreel v1/v2, frame. (Apple-keynote prompt), Crave (food-app prompt), reel15 (howseen.ai in 1 prompt + "make it better" pass), Baguette Pro (Apple framework parody), Howseen LinkedIn v1→v5 (4:5).
Workdir: ~/Desktop/Howseen AI/howseen-video/ (one folder per film). Every film folder = <name>.html + render.py + audio.py + out/.
Our stack vs the "AI motion" stack people post (Opus + Higgsfield + Blender + After Effects + Suno + Soundly): we replace Blender/After Effects with a deterministic HTML engine rendered frame by frame, Higgsfield with real stock (Pexels/Unsplash) or coded visuals, Suno with Mixkit music, Soundly with Mixkit SFX. 0 € and fully reproducible. Suno/Envato/Higgsfield only if Raphaël asks and has credits.
howseen-video/INDEX.md first: every film we made, its final file and what to reuse. Copy the closest folder instead of starting from zero.launch20/ (02/10/2026). It has the frame-number engine (core.js: T/L/kf registered tables, law(), settleT/exitT/joinT, scanTables() that blocks one-frame outliers, makeField colour field, makeBadge, macOS cursor), fictional Mac apps in em units (ui.js: chat, call, notes, files, board, dock icons, lineIcon set, tx helper), shot registry split in files so 3 agents build shot groups in parallel (one file each), render.py (deviceScaleFactor 2 = 4K, PROBE=<dir> per agent, frames a b in 3 parallel processes, encode with frame count check, no -shortest), audio.py (music + SFX 100 % synthesized on exact frames, two-pass −14 LUFS / TP −1.3).<inputs> block, ask for them (AskUserQuestion, recommended defaults first). Otherwise pick sensible defaults and say so.BEATMAP.md): BPM → beat length, every scene on a beat, the music drop on the key visual moment (flood, logo, big reveal). Nothing still for > 1 s.window.seek = async (t) => {…}; no CSS transitions, no timers, no state between frames. Declare all constants before the first seek(). Set window.ready = true after fonts/images load.step(tau, f, z); a value with many targets = sum of one spring per change. Easings: io (cubic in-out), out, in, o5, expo. Linear motion = cheap, never.[t, zoom, x, y], eased segments, zoom interpolated in log space, never zoom in/out back-to-back. Beat punches: +0.012 per beat, +0.03 per bar after the drop, exp decay.background-clip:text).hypot to the 4 corners ×1.05) in ~0.3-0.35 s, then contract into the next object.frame/frame.html (liquid glass via canvas displacement, goo, 6-blade iris, Archivo wdth squeeze), reel2/reel2.html (morph shapes, cube, EQ, blob), h20/h28.html (21st.dev Animated Beam + Border Beam ported to seek(t), dotted grid, drifting blobs, sheen sweep, sparkles).z-index on every layer. visibility:inherit (not visible) on children of hidden parents.#f5f5f2/#f7f7f5 or ink #0b0b0c; Howseen sky #38bdf8, ink #0f172a, lime #cdf24f, orange #ff6a2a, violet #a78bfa. Fonts in crave/fonts/geist-latin.woff2, frame/fonts/archivo-var.woff2 (wdth 62-125), crave/fonts/instrument-serif.woff2.python -m http.server 876x --directory …, background), Playwright Chromium, viewport = video size (1920×1080, 1080×1350 for LinkedIn 4:5, 1440×1440 square).probe t1 t2… → probe/sheet.png; beats → one frame per beat; draft → 30 fps, 1 capture/frame, 960×540, crf 23 veryfast (always before the master: judge rhythm, not sharpness); full → N subframes per frame blended with tmix (6-8 for fast moves, 4 = ghosting) spread over SHUTTER = 0.5 of the frame (180° film shutter; 1.0 = smeary), 60 fps; pops → frame-diff spikes > 3× neighbours (intentional beat cuts show up too: say so, don't hide); loop → seam check in position (last vs frame 0) AND velocity (motion into vs out of frame 0).document.fonts.ready, pause document.getAnimations() and kill CSS transitions after load, and wait 2 requestAnimationFrame after every seek(t) before the screenshot. WEBGL=1 launches Chromium with SwiftShader/ANGLE flags (headless WebGL otherwise renders black).seek(t) from a rAF loop (the only place a clock is allowed); the render never touches it.h20/lm55/render_par.py chunk <html> <T> k 3 x3 in background, then concat): ~20 min for 55 s instead of ~55 min sequential. Raphaël expects fast turnarounds; never launch a long single-process full render. Re-render only the changed seconds when possible (part).sub*/ folder per version so parallel renders don't clash. ~1-1.5 min of wall time per second of film at 8 subframes; run long renders in the background.scale=in_range=pc:out_range=tv:out_color_matrix=bt709,format=yuv420p, -color_range tv -colorspace bt709, libx264 crf 16, AAC 256k, +faststart.https://assets.mixkit.co/music/<id>/<id>.mp3. IDs: grep music/[0-9]+/[0-9]+\.mp3 in the listing page HTML (page order = WebFetch list order).audio/mixkit-207.mp3 120 BPM (drop song 31.97 s), mixkit-190 120 BPM (drop bar 8 = 16.01 s), mixkit-129 120 BPM (drop 16.09 s), minimal-techno-01 119.99 BPM (true drop 39.98 s, auto grid is 2 beats off), Cat Walk (Arulo #371) 130 BPM drop 14.769 s (crave/assets/audio/cat-walk.mp3), Waka Floka Type (Arulo #364, trap/US rap) drop 14.75 s (reel2/assets/m364.mp3), Driving Ambition (#32, piano uplifting ~99 BPM) hit 37.66 s, Classical vibes 4 (#684, Apple-ish classical ~94 BPM) lift ~7.95 s, Head Bang (#357, hip-hop half-time 74 BPM, 4-bar quiet intro, drop 12.96 s = beat 16; used by the viral "STOP PAYING FOR MOTION DESIGN SOFTWARE" loop prompt). Mixkit search ignores ?q=: crawl genre pages (/free-stock-music/<genre>/) and match item-grid-card__title to music/<id>/<id>.mp3. Leo's framework: 60-80 BPM regal, 90-110 smooth, 115-123 elite/sophisticated, > 125 hype.drop_in_song - drop_in_film.howseen-video/sfx/ (https://assets.mixkit.co/active_storage/sfx/<id>/<id>-preview.mp3); search with scripts/mixkit_sfx_search.py <tag>. Map so far: click 1125, key 2568, soft tick 1117, check 1113, toggle 1120, toast 2573, pop 2364 / bubble 2357 / soap 2925, whoosh w1490, rise w1489, flip w1485, impact 1143, shutter 1430 / lens 1433, sparkle 3083, success 2865, bread crunch 118.https://unsplash.com/napi/search/photos?query=…&per_page=30 (curl ok) → urls.raw + &w=2600&q=85&fm=jpg; Pexels CDN https://images.pexels.com/photos/<ID>/pexels-photo-<ID>.jpeg?auto=compress&cs=tinysrgb&w=1600 (search pages block curl: use WebFetch/WebSearch for IDs). Always build a contact sheet and look at it before using. Cutouts from dark backgrounds: luminance+warmth alpha, largest component, trim 5 px (see baguette/assets/hero_cut_3k.png).assets.mixkit.co/videos/<ID>/<ID>-1080.mp4, Pexels pexels.com/download/video/<id>/. Re-encode all-intra (-g 1), load as blob URL, await seeked.scripts/svgl_logos.py (svgl.app API, colour SVGs: openai, gemini, perplexity, google, claude, youtube, reddit, trustpilot, linkedin, shopify, wordpress, webflow, framer, nextjs); fallback simple-icons (cdn.jsdelivr.net/npm/simple-icons@13/icons/<name>.svg); Howseen marks in promo60/logos/logo-mark*.png. 21st.dev search_logo currently returns nothing: go to svgl directly.scripts/mcp21_client.py tools | call search '{…}' | call get_component '{"id":…}', key in ~/.config/21st.key (free tier: 2 code retrievals/day). They're React/framer-motion: port the idea to seek(t), never run them live.extractor_args={"youtube":{"player_client":["tv","web_safari","android","ios"]}} and ffmpeg_location=imageio_ffmpeg.get_ffmpeg_exe()), ytsearch6:<meme> meme template, check a contact sheet (no burned-in captions, no watermarks, cut "Subscribe / link in description" end cards), re-encode H.264 1280 wide + AAC + setsar=1. Library in ~/Desktop/Howseen AI/illustrations/memes/ (clips/ ready to post, legendes/ captions, sources-brutes/ raw downloads, planches/ check sheets) (Michael Scott, DiCaprio pointing, Travolta, Keanu whoa, Bateman walk, This is fine, Homer bushes, Carrey typing fast, Gatsby toast, Peele sweating).autoplay: false, then anim.seek(ms) from window.seek(t) (t*1000, or set engine.defaults.timeUnit to seconds). Use timelines the same way.sheet.sequence.position = t (seconds) inside window.seek(t). Good for complex hand-tuned camera moves. Check the sequence API before first use.picsum.photos/id/<id>/<w>/<h> (Unsplash photos, same licence; /id/<id>/info gives the author). Covers that worked: 184 (desert night, orange), 1041 (wave, blue).if (e > 0) guards fire early (a whole dive disc appeared 2 s early). Return exact 0/1 at the ends.loop22/loop22.html (canvas 1440², goo via ctx.filter='url(#goo)', per-time motion-blur subframes 4/12, loop seam check in render.py pops).cd && … chains / loops with computed commands / $(…) in Bash → write .py scripts and run plain commands. Paths with spaces: use the symlink $CLAUDE_JOB_DIR/tmp/hv → howseen-video.imageio_ffmpeg.get_ffmpeg_exe() or howseen-video/bin/ffmpeg. Python venv: howseen-video/.venv.User-Agent: claude-code-mcp-client/1.0.goto doesn't reload: set state via evaluate. Measure text with canvas (measureText) not DOM rects when a camera scale is applied.☐ stills approved ☐ 0 unexplained pops ☐ drop on the key moment ☐ −14 LUFS ☐ TV-range BT.709 ☐ "Example data" labels ☐ caption true ☐ file revealed in Finder + path given.
Before any full render, and after it:
ffmpeg -i out/final.mp4 -vf "fps=2,scale=270:-1,tile=6x5" -frames:v 1 out/contact.png # overview
ffmpeg -ss <t-0.1> -i out/final.mp4 -vf "scale=320:-1,tile=12x1" -frames:v 1 out/strip.png # 12 frames around a fast move
ffmpeg -i out/final.mp4 -vf "fps=1,scale=360:-1,tile=5x3" -frames:v 1 out/phone.png # readability at phone width
ffmpeg -stream_loop 1 -i out/final.mp4 -c copy out/loop_check.mp4 # loop seam (loops only)
Open them and score 1-10: hook in the first 2 s · readability at 360 px · motion quality (springs, no dead frames) · variety (something new every 2-4 s) · composition · brand/data accuracy · sound sync. Write the 3 worst problems with timestamps (hunt for: text overlapping during swaps, anything moving linearly, corner labels/frame borders, centred title on a gradient, blurry scaled text, a dead beat, a loop stutter). Fix, re-render only the affected seconds, re-score. Repeat until every score is 8+. Be a harsh motion director, not a proud author.
Math.random; use a seeded PRNG (mulberry32). Rendering the same second twice must give identical frames.docs/style_guide.md (palette hex, type, shot lengths, transitions, camera, texture, text in/out) and docs/shotlist.md on the beat grid. Take the grammar, never the content or logos. Wait for OK before code../assets and list what you found; never invent screens. If a paywall blocks it, ask the user for screenshots or clearly label a recreated UI as illustrative."The prompt is 10 %, the harness is 90 %."
brand/ (logo.svg, palette.txt, screenshots/, reference.mp4 optional but decisive) + facts.md (every number with its source + date; "no invented metric") + <name>.html + render.py + out/. No facts.md → no numbers on screen. For Howseen, facts come from the app/PostHog/Stripe or a sourced page.cubic-bezier(.6,0,.2,1) and cubic-bezier(.2,.8,.2,1); micro-prompts: button → player, search → results, card → workspace, SVG curve, magnetic dock, hidden title.npx skills add heygen-com/hyperframes, CLI preview/render: brand content factory) and Remotion (React templates, npx skills add remotion-dev/skills: data-driven template library). Our route = bare HTML + seek(t), the one Opus picks on its own.Diagnostic when it's ugly
| Symptom | Cause → fix |
|---|---|
| Same film as all of X | Livera prompt pasted with no charter/states → brief + facts + named style |
| Blurry text / washed logo | Went through a pixel video model → back to code, real SVG |
| Stutters on export | Timers / CSS transitions → pure seek(t), 2 rAF wait |
| Loop jumps | Position matched, velocity not → add the spring tails of the previous 2 cycles; render.py loop |
| Cheap, bouncy | Bounce easing → springs, damping ≥ 0.72 |
| Invented feature | No screenshots / repo / facts.md |
| Black WebGL | WEBGL=1 (SwiftShader/ANGLE flags) |
| Cost explodes | Effort max on micro-fixes → medium for patches |
tl.pause(); tl.totalTime(t + 0.001, true); tl.totalTime(t, true). WAAPI/CSS: document.getAnimations().forEach(a => { a.pause(); a.currentTime = t * 1000 }). Lottie goToAndStop(t*1000), anime.js seek. Video sources: pre-extract frames with ffmpeg rather than waiting on seeked when it flakes.--deterministic-mode --run-all-compositor-stages-before-draw --disable-threaded-animation --disable-checker-imaging --font-render-hinting=none --force-color-profile=srgb. GPU WebGL on the Mac: --use-angle=metal.ceil(px/5) up to 64. Huge time saver vs a fixed 8 on mostly static films. Never blur across a hard cut: list the cuts in CUTS (template clamps subframes to the frame's side of the cut).device_scale_factor=2, Lanczos down) for razor text, cheaper than tmix on static type.pops: frame n differs from both neighbours while n-1 ≈ n+1); loop checks seek(0) vs seek(T), T-1f, T-1.75f; cycles must be integer cyc(t, n). Judge ≠ builder: run the critique as a separate read-only sub-agent, and have a fresh agent restate the message from the frames alone (if it can't, the film fails).-filter_complex "[0:v][1:v]overlay=0:0:enable='eq(n,0)'[v]" with the poster PNG as input 1.input_thresh from loudnorm print_format=json, feed silencedetect=noise=<thresh>dB.out/mix.wav, beat number shown, ?t= deep link./motion-broll): full-frame cutaways 3-10 s with ≥ 2 s of face between, or transparent panels in the empty space; alpha clips via screenshot(omit_background=True) → format=gbrap → ProRes 4444; never will-change on an element the camera scales.30 Ressources/.raw/)silencedetect, §9c), local whisper.cpp for word timings → ONE timing file that drives both captions and animation cues. Check words clipped at edits.scrape with the branding format (not markdown) pulls a site's colours/fonts/identity into brand/ (needs a Firecrawl key; otherwise Playwright screenshots + pixel sampling as in §11).Use when asked to "remake / recreate this launch video for my brand" (the split-screen "original | opus 5.5 copy" format). Proven on the Gojiberry launch (65 s, 28 shots) on 28/09/2026.
remake_analyze.py extracts all frames 0-based to ref/full, audio to ref/audio.wav, detects hard cuts (mean-abs-diff spikes) and writes 6-frame contact sheets. Read the sheets, write SPEC.md: shot table (id, f0–f1, REF content, brand swap), swap rules. Most "cuts" in modern launch films are continuous camera/morph moves: expect only ~10-15 hard cuts, and expect SPEC boundaries to be a few frames off (agents fix them).core.js + index.html (seek(F) pure, SHOT registry, camera, cursor, words, pixelDissolve, palette filter that re-hues any leftover old-brand colour) and remake_stub.py (one placeholder file per group). Serve the folder, smoke-test with remake_render.py compare out/test 10 600 1200.BRIEF_TEMPLATE.md), each writes ONLY shots/Gx.js and verifies with side-by-side compare sheets. 5th agent = audio: analyse REF (BPM, drop, hard stop, SFX hits, VO slots via STT timings only), royalty-free Mixkit track stretched ≤8% and cut on bars so drops land on REF times, numpy SFX on REF hits, -14 LUFS. Never reuse REF music/voice. Typical wall time: ~25 min per agent in parallel.remake_render.py full out/full a b), remake_sync.py encode (muxes out/mix.wav), split (the post format: two panels with a gap, black labels "original" / "opus 5.5 copy", setsar=1 or X distorts it), stacked (QA). remake_qa.py: ref|ours one frame per second + group seams + old-brand colour scan. Fix, re-render, deliver.Use for a 45-75 s product film that shows the whole product in action. Lean pass first (one language, 16:9, no VO, ~45-60 min), full treatment only when asked (overnight, Mac awake).
ui-tokens file (exact colours by pixel sampling, fonts, radii, shadows, borders, spacing), rebuild components that animate element by element (rows cascading, counters, gauges, typing, cursor, toggles). Check each rebuilt screen side by side with its screenshot until it's recognisable at first glance.LICENSE (opens in a new tab)UPSTREAM (opens in a new tab)scripts/analyze_song.py (opens in a new tab)scripts/audio_template.py (opens in a new tab)scripts/mcp21_client.py (opens in a new tab)scripts/mixkit_sfx_search.py (opens in a new tab)scripts/remake/BRIEF_TEMPLATE.md (opens in a new tab)scripts/remake/core.js (opens in a new tab)scripts/remake/index.html (opens in a new tab)scripts/remake/remake_analyze.py (opens in a new tab)scripts/remake/remake_qa.py (opens in a new tab)scripts/remake/remake_render.py (opens in a new tab)scripts/remake/remake_stub.py (opens in a new tab)scripts/remake/remake_sync.py (opens in a new tab)scripts/render_template.py (opens in a new tab)scripts/svgl_logos.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sapraudnynew/explain-ladder --plugin explain-ladder7 skills in this plugin
/archifyCreate validated architecture, workflow, sequence, data-flow, lifecycle/state, ERD, class, tree, timeline, and waterfall diagrams as explorable standalone HTML with dark/light themes, motion and image/SVG/WebM export. Accept requirements or Mermaid; inspect repository evidence for code-backed diagrams. Use when visualizing systems, API calls, pipelines, schemas, histories, timings, or everyday steps, parts, relationships and states. Also turn an answer into a one-page explainer, with the conclusion first, structured panels, native diagrams and charts, when the user asks for a page, an explainer or an answer to share (做成一页, 用页面讲), or proactively when the user's rules opt in with an [archify explainer: ...] line. Not for dashboards./explain-ladderChoose the form of an answer and produce it. Use on: write it up, as markdown, make a note, doc it, in md; plain english, simple words, no jargon, ste mode, explain simply; draw a diagram, diagram it, show the flow, map it, sketch it; explain in html, make a page, html it, interactive page, build a page; or explain/show this when the form is open./product-launch-motionCreative direction and render tricks for product launch films: one continuous shape, cursor-driven UI clicks, springs, beat-synced cuts, logo stings. Use with video-studio when the brief is a product launch or UI promo film; it adds technique on top of HyperFrames, not a separate pipeline.Other plugins' skills for the same job