/motiscope:recreate [gsap|css|framer|lottie] [output-dir]from motiscope
Recreates analyzed animations as runnable web code in GSAP, CSS/Web Animations, Framer Motion, or Lottie/SVG. Use after /motiscope:analyze or when asked to build an animation in a specific framework.
Ships in motiscope. 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.
None: SKILL.md is the whole skill.
Translate a motiscope animation spec into real, runnable animation code for one target framework. Timing and easing come from the measured spec; you render it faithfully.
ROOT="${CLAUDE_PLUGIN_ROOT:-}"
[ -f "$ROOT/scripts/config.py" ] || ROOT="<absolute dir of this SKILL.md>/../.." # skills/recreate -> plugin root
SCRIPTS="$ROOT/scripts", REFS="$ROOT/references". On Windows use python for python3.
/motiscope:analyze just produced a spec in this conversation, use it.ls -t .motiscope/*/manifest.json 2>/dev/null | head -1
Read that manifest.json (and its sibling motion.json for the raw energy curve / segments). If there is none, run /motiscope:analyze first.$1 if given (gsap | css | framer | lottie).python3 "$SCRIPTS/config.py" # prints config incl. default_target
Ask the user (AskUserQuestion) to confirm the target (offer all four; default from config).Then Read the target guide and the easing map:
Read "$REFS/easing-map.md" — maps each neutral ease token to a concrete value in every target.Read "$REFS/targets/<target>.md" — the rendering template for that target.Read "$REFS/measurement-traps.md" — if you are deriving any number yourself (a velocity, a parallax ratio, a period) rather than reading it from report.md.Split of responsibility (mirror the spec):
start_ms, dur_ms, the bezier, stagger each_ms, loop period_ms come from motiscope's analysis; wire them verbatim (prefer the exact cubic-bezier over a named ease).animation field and the frames describe. You are not limited to opacity/translate/scale. If the animation is a mask/clip-path reveal, an SVG path draw, a morph, a 3D flip, a text split/typewriter, a blur or color shift, a parallax, a spring/physics bounce, or particles — build that directly in the target, going beyond the spec's simple props when needed. Re-Read the frames if you need to confirm the effect.Map each timeline entry to the target (per-element from/to, the measured dur_ms/start_ms/bezier, stagger), then implement the described effect.
GSAP defers to the official GSAP skills — do not hand-roll GSAP guidance:
"scroll_driven": true.For css, framer, lottie, follow the corresponding references/targets/<target>.md template.
Always include a prefers-reduced-motion: reduce guard that drops the element(s) into their final state.
If the spec is scroll_driven: bind the motion to scroll position, not to a timer. A layer with parallax factor f translates by scroll x (1 - f); at f = 0 it is pinned, at f = 1 it rides the page. A time-driven object inside a scroll-driven scene (a train, a marquee) can be bound to scroll too — derive its constant from the recorded ratio, and say in your summary that the binding is a design decision rather than something the source did.
A backdrop must not have an edge. Anything that reads as behind everything — a sky, a page gradient, a vignette — belongs to the container, not to a moving layer. A gradient drawn as a <rect> inside a parallax layer has a top edge, and any travel large enough slides that edge into frame. If you are clamping travel to keep a background from being uncovered, you are bounding the symptom; remove the edge instead. And beware composition you never chose: tracing a frame recovers ridge shapes and layer speeds, never where the horizon should sit. That part is yours — say so.
Verify in the substrate, not in your own render. Re-measuring pixels of your own output is a second chance to be wrong the same way. Ask the runtime what it actually resolved — getBoundingClientRect, getComputedStyle, getBBox, DOMMatrix — and check the numbers against the spec. A layer's on-screen speed relative to the page is its parallax factor; that is a proof, a screenshot is not.
If the spec references an image/video asset (a hero image, a looping background, a texture), resolve it before writing code — ask the user (AskUserQuestion):
python3 "$SCRIPTS/assetgen.py" --check
python3 "$SCRIPTS/assetgen.py" generate --type image --provider <name> --prompt "<desc>" --out "<path>"
If no key is configured, ask the user (AskUserQuestion) for the provider and hand off to /motiscope:doctor to store the key. Image generation is real via the gemini/imagen provider (Imagen through the Gemini API — set GEMINI_API_KEY); pass --aspect-ratio 16:9|4:3|1:1|3:4|9:16. Other providers still write a labeled placeholder — if you get one, tell the user to use gemini or swap in a real asset.Never write API keys into generated code or commit them.
Write to [output-dir] ($2), default ./motiscope-output/<target>/. Include a minimal runnable harness so the user can preview immediately:
index.html (CDN GSAP for the gsap target) that plays the animation on load..tsx component plus a one-line usage note (and the framer-motion install command)..json) plus a note on how to embed/play it.motiscope-output/css/index.html").What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
animation, motion, gsap, framer-motion, lottie, css-animations
4 skills in this plugin
/analyzeAnalyze a screen recording of an animation to characterize its motion — timing, easing, transforms, and sequencing — so it can be recreated as web code. Use when the user drops or points at a video of an animation (.mp4/.mov/.webm/.mkv/.m4v/.avi/.gif) and says things like "I want this animation on my site", "recreate this motion", "how is this animated", or runs /motiscope:analyze./doctorCheck and configure motiscope — verify ffmpeg/ffprobe are installed and scaffold the API-key config used for optional (stubbed) asset generation. Use for first-time setup, "motiscope isn't working", dependency errors, or /motiscope:doctor./rebuild-siteRebuild a whole landing page / multi-section website from a screen recording that scrolls or walks through it. Use when the user has a recording of an ENTIRE page (not a single animation) and wants the full page recreated — layout, sections, copy, design system, and scroll animations. Orchestrates analyze (measured timing + section structure + curated frames) + asset generation + a full multi-section build. For one isolated animation, use /motiscope:recreate instead.npx claudepluginhub kumarsashank/motiscope --plugin motiscopeOther plugins' skills for the same job