К основному содержанию
скилл CX Codex

deconstruct — скилл для Claude Code: что делает и как установить

Скилл deconstruct для Claude Code деконструирует анимации и интерфейсные взаимодействия в машину состояний и покадровый таймлайн.

MIT 182 установок ★ 69 обновлён 2026-11-14

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add raphaelsalaja/skills --skill deconstruct -a claude-code
Открыть на GitHub

Что делает deconstruct

Скилл разбирает исходную анимацию на отдельные состояния, переходы и свойства с точными параметрами задержки, длительности и сглаживания. Он использует встроенную страницу viewer.html для визуализации и редактирования таймлайна, записывая результаты в файл timeline.js.

Разбор опирается на покадровый анализ исходного кода, живой страницы или записи с замедлением. Нечитаемые значения помечаются как Not verified, исключая приблизительные оценки.

Результат работы оформляется в виде таблиц состояний и набора треков свойств для сопоставления оригинала с переписанным кодом.

Какие задачи решает

  • разобрать анимацию на состояния и события
  • разбить переходы на отдельные треки свойств
  • сравнить оригинал и сборку на замедлении
  • сохранить таймлайн в виде данных

Примеры запросов агенту

  • Разбери эту анимацию в интерфейсе на состояния и треки
  • Запусти деконструкцию и сравни оригинал с пересборкой на замедлении
  • Запиши таймлайн в timeline.js

Как установить deconstruct

1Через Skills CLI (Vercel)

npx skills add raphaelsalaja/skills --skill deconstruct -a claude-code

2Вручную: положить файлы

~/.claude/skills/deconstruct/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/deconstruct/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о deconstruct

Как установить deconstruct в Claude Code?

Выполните команду npx skills add raphaelsalaja/skills --skill deconstruct -a claude-code, затем используйте файл ~/.claude/skills/deconstruct/SKILL.md.

Что делает deconstruct?

Скилл превращает анимацию в машину состояний и таймлайн свойств, позволяя покадрово проверять и редактировать переходы.

Где сохраняются данные таймлайна?

Данные сохраняются в файле timeline.js, который импортируется переписанным компонентом.

Исходный текст

SKILL.md · MIT
---
name: deconstruct
description: Breaks an animation or interaction into a state machine and a timeline of every property, on a page you can scrub and edit.
disable-model-invocation: true
---

# 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`.

## 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 and duration. A spring flattened into a guessed bezier is `deconstruct-keep-the-curve`.

## 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](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`.

Pinch or hold Cmd and scroll to zoom the timeline. Scroll sideways to pan, and Fit returns to the full duration. Drag a slider and the preview follows. Drag the bezier handles or pick a keyword from the easing menu.

Segments, layers and events snap to each other and to the playhead. Hold Alt to drag without snapping. Shift-click segments to move them together.

A spring's length follows from its curve. Change stiffness, damping and mass to change it, or drag the edge of a bounce and duration spring.

Opening a track draws its value over time under the lane, so an overshoot shows. Tracks on one element group under its selector, and dragging the group moves them all.

Cmd+Z undoes any edit. An edited field shows a dot and Revert. Original plays the timeline as it was loaded, so the edit is judged against the source.

## 6. Compare at slow speed

Play the original and the rebuild side by side at 0.25×. Set `recording` to a capture of the original, and the viewer plays it beside the preview on the same clock. Name every frame that drifts. A breakdown checked only at full speed is `deconstruct-compare-slowed`.

Press I and O to loop one range, such as press to release. Onion Skin ghosts the last frames over the preview. Wipe lays the recording over the preview with a divider. Crop the recording to the preview frame so the two line up.

## 7. Hand back the data

`timeline.js` is the hand-back: the state table and the tracks as one object. The rebuild imports that file rather than a copy, so the viewer and the shipped motion read the same values. A timeline that lives only in the reply is `deconstruct-timeline-as-data`. Copy Timeline writes the open page back into that object. Paste it over `timeline.js`. If the clipboard is blocked, the toast says Copy Failed. An edit left only in the open page is `deconstruct-copy-the-timeline`. Gate the viewer to development or delete it before release, and keep `timeline.js`.

## The pair

Every check is a pair. The broken line sits beside the line that replaces it.

| Rule | Broken | Replacement |
| --- | --- | --- |
| `deconstruct-capture-the-source` | A breakdown from watching it once | The code read and frames stepped at 0.1× |
| `deconstruct-name-the-states` | "It shrinks, then spins" | Idle, Pressed, Copying and Copied with their events |
| `deconstruct-every-property` | "About 300ms" | Scale `1` to `0.96`, 120ms, ease-out, at 400ms |
| `deconstruct-keep-the-curve` | A spring approximated as `ease-out` | `stiffness: 400, damping: 30` as written |
| `deconstruct-one-clock` | A CSS replay button | Every frame computed from one `t` |
| `deconstruct-scrub-the-timeline` | A looping preview only | A scrubber, play, pause and 0.25× |
| `deconstruct-shipped-viewer` | A viewer page written from scratch | `viewer.html` copied, only `timeline.js` written |
| `deconstruct-compare-slowed` | Checked once at full speed | Original and rebuild side by side at 0.25× |
| `deconstruct-timeline-as-data` | A timeline described in the reply | `timeline.js`, imported by the rebuild |
| `deconstruct-edit-the-segment` | "Make the press 80ms" | Duration edited on the segment |
| `deconstruct-copy-the-timeline` | The edit left in the open page | Pasted back over `timeline.js` |

## Reporting

**Severity.** `HIGH` is a breakdown made without opening the source, or a missing state. `MEDIUM` is an estimated timing, a flattened curve, a viewer that cannot scrub, a hand-written viewer or an edit left only in the page. `LOW` is drift found and named at slow speed.

**Format.** One finding per root cause:

```
file:line - [rule-id] what is wrong
```

Then a `Rule | Count | Severity` summary. `Block` when any `HIGH` remains, `Approve` otherwise. Mark every value you could not read from the source as `Not verified`.

© raphaelsalaja · MIT · raphaelsalaja/skills

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

Все скиллы по теме «Фронтенд и UI» →
rive-animations dylantarre Скилл rive-animations помогает агенту собрать анимацию в Rive по 12 принципам Disney: стейт-машины, инпуты, тайминги и React-обвязка. CX Codex +1 656установок state-machine Owl-Listener Скилл state-machine для Claude Code помогает спроектировать поведение интерфейса через конечные автоматы: состояния, переходы, события и гарды. Исключает невозможные комбинации вроде одновременного показа загрузки и ошибки. CX Codex +1 2 600установок animejs-choreographer Claude Design Skillstack Субагент animejs-choreographer для Claude, который продумывает тайминги и последовательности анимаций Anime.js: от scroll-триггеров до сложных многоэлементных сцен. CX Codex ★ 1 428звёзд репо control-target-sync coco-research Правило control-target-sync связывает контрол и целевой элемент в одной сцене: скраб значения и поворот кнопки идут в одном кадре. Пригодится в демо редакторов и инспекторов. CX Codex +1 ★ 328звёзд репо gsap-timeline greensock Скилл gsap-timeline для Claude Code помогает собирать последовательности GSAP-анимаций и управлять таймингом и воспроизведением. Работает с многошаговыми и параллельными сценами. CX Codex +1 83 900установок rive-interactive freshtechbro Скилл rive-interactive для Claude Code, Codex, Cursor и других платформ: добавляет знание Rive — анимаций на конечных автоматах с двусторонней привязкой данных. CX Codex +1 2 900установок

Из того же набора25

Весь набор →
motion Скилл motion для Claude Code задаёт правила анимации интерфейсов: переходы, жесты, длительность и размытие. Помогает настроить движение элементов и проверить его поведение при взаимодействии. CX Codex +1 259установок gather Скилл gather для Claude Code собирает дизайн-референсы из выбранных источников в одну доску со ссылками. Запускается по просьбе найти вдохновение или улучшить экран. CX Codex +1 187установок alignment Скилл alignment для Claude Code проверяет выравнивание и визуальный баланс работающей страницы. Его запускают для поиска смещений, неровных отступов и несовпадений радиусов. CX Codex +1 183установок viewports Скилл viewports для Claude Code проверяет страницу на переполнение и проблемы с элементами интерфейса. Запускается после изменений вёрстки или по запросу проверить конкретный телефон или ширину. CX Codex +1 180установок color Скилл color для Claude Code проверяет экранный контраст текста и элементов интерфейса, привязывает цвета к ролевым токенам и валидирует тёмную тему. Запускается при вёрстке экранов и дизайн-ревью. CX Codex +1 178установок audit Скилл audit для Claude Code, запускающий сводный аудит изменений по набору правил и формирующий интерактивный отчёт. Оценивает диффы, ветки, сессии или весь репозиторий. CX Codex +1 176установок frames Скилл frames для Claude Code записывает трассу взаимодействия при ограничении CPU и находит причину потерянных кадров или задержки ввода. После исправления он сравнивает новую запись с исходной. CX Codex +1 176установок match Скилл match для Claude Code воссоздаёт названную часть интерфейса по реальному образцу и сравнивает обе версии. Запускается, когда в запросе есть приложение, URL, скриншот или дизайн-референс. CX Codex +1 175установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой