Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

reanimate

БесплатноЗапускает вложенные скриптыНе проверен

Clone a section, widget, page or animation from any reference (a live website URL, a screen recording, an mp4/mov/webm, a gif, a Lottie file, a prototype…

NiazMorshed2007от NiazMorshed2007★ 3 032 звезды на GitHub

Об этом скилле

reanimate

Rebuild what the user points at so that it moves the way the reference moves, prove it with a frame-by-frame comparison, and keep going until the comparison passes. The deliverable is code in the user's project plus evidence (numbers and side-by-side sheets), never "it looks about right".

What "done" means

Pick the fidelity level from the user's words and state it in the first message; it decides what you verify.

Level When Must match May differ
motion-faithful (default) "clone this animation", "make ours feel like theirs", "same hero as X but our copy" trigger, sequence and order, stagger, timing of every step (±80 ms), easing family, direction and distance of movement relative to the element size, layout proportions copy, colours, fonts, images, brand details
pixel-faithful "match it exactly", "pixel-perfect", "details should match", "1:1" everything above plus fonts, sizes, colours, spacing, radii, shadows, assets; mean frame mismatch ≤ 2 % nothing the user did not ask to change
mixed "clone X and add Y", "like theirs but with our pricing tiers" the cloned parts at one of the levels above the additions, which you describe and show but verify only for not breaking the cloned motion

The user can narrow the target to one section, one widget, one page, or a time range of a video ("the first 3 seconds", "0:12 to 0:15"). Clone exactly that; do not pull in the rest of the page.

Workflow

Everything below lives in .reanimate/<name>/ inside the user's project (add it to .gitignore unless they want the evidence committed). Keep each round's artefacts; they are the proof.

0. Scope

Write three lines at the top of .reanimate/<name>/spec.md before any capture:

  • Target: what to clone, as precisely as the user said it (URL + selector / time range / "the toggle in the gif").
  • Destination: where the code goes and in what stack (read package.json, existing components and the animation library already in use; match it rather than introducing a new one).
  • Fidelity: motion-faithful, pixel-faithful or mixed, plus the list of additions for mixed.

Infer what you can from the request and the repo. Ask only when two readings lead to different work (for instance "the hero" on a page with two candidate sections). When a reference is a login-walled page or a YouTube/Loom link you cannot download here, ask the user for a screen recording and continue with everything else meanwhile.

1. Setup

<skill> below is the directory this SKILL.md lives in. Scripts need Bun; the first run downloads Playwright's Chromium and a static ffmpeg (about 250 MB).

bash <skill>/scripts/setup.sh      # installs playwright, ffmpeg, pixelmatch once; prints "ready"

All scripts are run with bun <skill>/scripts/<name>.ts --help. They are deterministic and share one rule: capture the reference and the clone with the same viewport, selector crop, trigger, duration and fps, otherwise the comparison measures your setup instead of your work.

2. Capture the reference

Read references/capture.md for the recipe for your source type. In short:

  • Website: capture.ts --url … --out ref --selector <section> --trigger load|scroll|hover|click|none --duration … --track "<moving elements>". You get video.webm, frames/, inspect.json (declared animations, keyframes, computed styles, fonts, detected libraries) and track.json (per animation frame position, size, opacity, transform of each tracked element). For CSS/WAAPI motion inspect.json often contains the exact durations, delays and easings: use them, it beats estimating.
  • Video or gif: frames.ts --in file --out ref/frames --fps 10..30 --start … --end … --crop …. Probe first with --probe, then view a few frames to find the crop of the widget you are cloning.
  • Canvas, WebGL, WebGPU, 3D (inspect.json › canvases shows one, or the page uses three.js, Pixi, Babylon, Spline…): add --clock virtual --gl --assets to the capture and read gl/summary.md (gl.ts summary <out>). You get the shader sources, every constant uniform, the scene graph, the render passes, the textures and models, and each animated uniform or object property as a channel in gl-track.json. The virtual clock makes every frame exact and every capture identical, random particles included. Read references/webgl.md.
  • Lottie / Rive / prototype export: the file is the spec; read it, do not re-derive it from pixels.

Then build labelled sheets and look at them: sheet.ts filmstrip --frames ref/frames --out ref/sheets. Read every sheet with the image viewer. This is the frame-by-frame inspection the user asked for; do not skip it or sample only the first sheet.

3. Write the motion spec

Fill spec.md using the template in references/analysis.md. One row per element per property: trigger, start time, duration, delay or stagger, from → to, easing, not

Полный SKILL.md на GitHub

Установить reanimate в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

LICENSEreferences/analysis.mdreferences/capture.mdreferences/implementation.mdreferences/verify.mdreferences/webgl.mdscripts/bun.lockscripts/capture.tsscripts/compare.tsscripts/easing.tsscripts/frames.tsscripts/gl.tsscripts/inpage/clock.jsscripts/inpage/gl-hooks.jsscripts/lib.tsscripts/package.jsonscripts/setup.shscripts/sheet.ts

FAQ

Что делает скилл reanimate?

Clone a section, widget, page or animation from any reference (a live website URL, a screen recording, an mp4/mov/webm, a gif, a Lottie file, a prototype export) frame by frame into the user's own codebase, then record the clone and verify it against the reference frame by frame, iterating until timing, easing, sequence and layout match. Use whenever the user wants to clone, copy, replicate, recreate, reverse-engineer, port or "steal" a hero, section, widget, marquee, carousel, hover effect, page transition, loader, scroll animation or interaction from a site or video, says "make it look/feel/move like this", "same animation as", "match this exactly", or hands over a gif/video and asks to build it, including when they also want to add their own content, colours or extra features on top, or only want part of the reference (one section, one widget, a few seconds). Covers canvas, WebGL, WebGPU and three.js / 3D scenes (shaders, particles, globes, glTF models) as well as CSS and JS motion. Pixel-level matching of fonts, colours and spacing is done only when they ask for it.

Как установить скилл reanimate?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл reanimate запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить reanimate с