deconstruct
БесплатноБез исполняемых скриптовНе проверенBreaks an animation or interaction into a state machine and a timeline of every property, on a page you can scrub and edit.
от raphaelsalaja★ 74 звезды на GitHubОб этом скилле
Deconstruct
This skill takes an animation or interaction apart. It names every state and event, splits each transition into one track per property and puts both on a page the user can scrub and edit.
Every frame accounted for
Nothing is described by feel. Every state has a name, every transition has an event and every animated property has its from, to, delay, duration and easing. A value that could not be read is marked Not verified, never estimated.
Reading computed values and the side-by-side proof belong to match. Forcing component states open belongs to lab. Opening the result runs in verify. Whether the motion's values are right belongs to motion.
1. Capture the real motion
Open the source: the code, the live page or a recording. Read keyframes, transitions and spring configs, or step through frames at reduced playback speed. A breakdown from one viewing is deconstruct-capture-the-source.
On a live page, read the browser's own record of every CSS animation, CSS transition and Web Animations API animation. Run this before triggering the motion:
const seen = new WeakSet();
const watch = () => {
for (const animation of document.getAnimations()) {
if (seen.has(animation)) continue;
seen.add(animation);
animation.playbackRate = 0.1;
console.log(
animation.transitionProperty ?? animation.animationName ?? (animation.id || "element.animate()"),
animation.effect.target,
animation.effect.getKeyframes(),
animation.effect.getComputedTiming(),
);
}
requestAnimationFrame(watch);
};
requestAnimationFrame(watch);
It polls every frame because element.animate(), behind most library animations that run off the main thread, fires neither transitionrun nor animationstart. getComputedTiming() gives the delay, duration and easing, and getKeyframes() gives each offset with its own easing. A timing guessed from a clip of a CSS transition is deconstruct-read-the-animations.
Motion stepped by requestAnimationFrame, such as a JavaScript spring, never appears there, so read its config in the code. A spring handed to the Web Animations API shows as a linear() easing. Record the spring from the code when it exists, and keep the linear() string when it does not.
A timing read from a recording is a whole number of frames, 16.7ms each at 60fps and 8.3ms at 120fps. Capture at the display's highest rate, write that rate in the track's note and set fps in timeline.js, so the arrow keys step one captured frame. A 30fps capture reported to the millisecond is deconstruct-frame-timing.
2. Name the states and events
List the states the element can rest in and the events that move it between them, such as press, release, resolve and timeout. Write them as a table of state, entered on and left on. A sentence like "it shrinks, then spins" is deconstruct-name-the-states.
3. Split each transition into tracks
Give every animated property its own track: scale, opacity, blur, width, colour, icon and label. Each track lists from, to, delay, duration and easing. "About 300ms" is deconstruct-every-property.
Keep the curve as written. A spring stays a spring with its stiffness, damping and mass, or its bounce with a duration or visual duration. A spring flattened into a guessed bezier is deconstruct-keep-the-curve. A linear() or steps() easing stays as written too, and the viewer plays both.
A keyframe animation with stops between its ends becomes one segment per interval. Each keyframe's easing runs only to the next keyframe, never across the whole animation, so an easing on the last keyframe is never used. A 40% stop folded into one segment is deconstruct-split-keyframes.
4. Drive it from one clock
Render the element as a pure function of one time value. Scrubbing, pausing and looping then show the same frame for the same time. A viewer that replays CSS and cannot stop mid-transition is deconstruct-one-clock.
5. Build the viewer
Copy viewer.html beside the rebuild as a development-only page, write timeline.js next to it in the shape its header comment shows and open it. It shows the element, the state machine and one lane per track with its live value.
The viewer ships with the skill, so write data only. A page with its own markup or styles is deconstruct-shipped-viewer. It highlights the active state, and clicking a state seeks to it. Its scrubber, play, pause and 0.25× stay in. A timeline with no scrubber is deconstruct-scrub-the-timeline.
The inspector writes from, to, delay, duration and easing, and the preview follows. Drag a segment to change its delay. Drag its right edge to change its duration. Drag an event mark to move that event on every track. A timing changed in the reply instead of on the segment is deconstruct-edit-the-segment.
A spring's length follows from its curve, so change stiffness, damping and mass, or drag the edge of a bounce and duration spring. Ope
Установить deconstruct в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл deconstruct?
Breaks an animation or interaction into a state machine and a timeline of every property, on a page you can scrub and edit.
Как установить скилл deconstruct?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл deconstruct запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic