К основному содержанию
скилл Claude Code CX Codex Cursor GitHub Copilot

fixing-motion-performance — скилл для Claude Code: как установить

Скилл находит и устраняет просадки FPS в анимациях: скролл-эффектах, размытиях и перерисовках макета. Помогает убрать подёргивания интерфейса без смены используемой библиотеки.

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

Что делает fixing-motion-performance

Скилл проверяет код анимаций на CSS, WAAPI, Motion, rAF и GSAP. Он ищет частые ошибки: вычисление макета во время кадра, циклы rAF без условия остановки, привязку анимаций к событиям скролла и непрерывный блюр. При разборе файла помощник показывает точную строку нарушения, коротко объясняет причину задержки и выдаёт готовый фрагмент кода для исправления.

Правила выстроены по девяти уровням приоритета. Скилл запрещает менять библиотеку анимации без прямого указания, поэтому переписывать проект под другой стек не придётся. Для устранения лагов приоритет отдаётся свойствам композитора — transform и opacity. Размытие фильтрами ограничивается радиусом до 8px и допускается только для коротких разовых эффектов.

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

  • устранить лаги интерфейса при анимации размеров и положения
  • заменить JS-обработчики скролла на нативные таймлайны анимаций
  • найти зацикленные вызовы requestAnimationFrame без условия выхода
  • оптимизировать тяжёлые эффекты размытия и фильтров

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

  • /fixing-motion-performance
  • /fixing-motion-performance src/components/Modal.tsx
  • /fixing-motion-performance src/styles/animations.css

Как установить fixing-motion-performance

1Через Skills CLI (Vercel)

npx skills add ibelick/ui-skills --skill fixing-motion-performance -a claude-code

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

~/.claude/skills/fixing-motion-performance/SKILL.md

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

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

Весь набор →

Похожие

frontend-slides affaan-m Скилл создаёт анимационные HTML-презентации с нуля и преобразует PPT/PPTX в веб-слайды. Подойдёт для докладов, питчей и внутренних презентаций. Claude Code CX Codex Cursor +1 5 400установок web-design-engineer ConardLi Скилл настраивает агента на вёрстку веб-интерфейсов на HTML, CSS, JavaScript и React: дашбордов, прототипов и анимаций. Пригодится, когда нужен качественный визуальный фронтенд. Claude Code CX Codex Cursor +1 8 700установок frontend-design-direction affaan-m Скилл задаёт направление для веб-интерфейсов: помогает продумать и проверить визуальную иерархию, состояния, адаптивность и доступность. Claude Code CX Codex Cursor +1 5 300установок liquid-glass-design affaan-m Скилл для Claude и других ИИ-редакторов: подсказывает агенту, как собрать интерфейс в стиле Liquid Glass из iOS 26. Пригодится, если вы пишете SwiftUI, UIKit или WidgetKit под iOS 26+. Claude Code CX Codex Cursor +1 5 200установок stitch::generate-design официальный google-labs-code Скилл превращает текстовое описание или картинку в готовый экран интерфейса через Stitch MCP, а потом правит его точечными промптами. Claude Code CX Codex Cursor +1 10 700установок accessibility affaan-m Проверяет и настраивает доступность интерфейсов по стандарту WCAG 2.2 Level AA для Web, iOS и Android. Пригодится при верстке компонентов, разметке ARIA и адаптации под скринридеры. Claude Code CX Codex Cursor +1 5 000установок frontend-design официальный anthropics Скилл задаёт осмысленное визуальное направление для новых интерфейсов и редизайна. Подойдёт, когда стандартный шаблонный UI не устраивает. Claude Code Claude.ai 1 025 790установок design-taste-frontend Leonxlnx Скилл задаёт арт-дирекцию для публичных страниц и рабочих экранов, а затем проверяет результат в браузере по скриншотам. Нужен, когда интерфейс выглядит шаблонным или недоработанным. Claude Code CX Codex Cursor +1 673 100установок

Вопросы о fixing-motion-performance

Как установить fixing-motion-performance в Claude Code?

Выполните в терминале команду npx skills add ibelick/ui-skills --skill fixing-motion-performance -a claude-code.

Что делает скилл fixing-motion-performance?

Он проводит аудит анимаций на CSS и JS, выявляя layout thrashing, неоптимальные фильтры и лишние перерисовки. Для каждого найденного дефекта скилл даёт конкретный фрагмент кода с исправлением.

Заменит ли скилл библиотеку анимаций в проекте?

Нет, скилл работает строго в рамках текущего стека и не переносит проект на другие библиотеки без явного запроса.

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

SKILL.md · MIT
---
name: fixing-motion-performance
description: Audit and fix animation performance issues including layout thrashing, compositor properties, scroll-linked motion, and blur effects. Use when animations stutter, transitions jank, or reviewing CSS/JS animation performance.
---

# fixing-motion-performance

Fix animation performance issues.

## how to use

- `/fixing-motion-performance`
  Apply these constraints to any UI animation work in this conversation.

- `/fixing-motion-performance <file>`
  Review the file against all rules below and report:
  - violations (quote the exact line or snippet)
  - why it matters (one short sentence)
  - a concrete fix (code-level suggestion)

Do not migrate animation libraries unless explicitly requested. Apply rules within the existing stack.

## when to apply

Reference these guidelines when:
- adding or changing UI animations (CSS, WAAPI, Motion, rAF, GSAP)
- refactoring janky interactions or transitions
- implementing scroll-linked motion or reveal-on-scroll
- animating layout, filters, masks, gradients, or CSS variables
- reviewing components that use will-change, transforms, or measurement

## rendering steps glossary

- composite: transform, opacity
- paint: color, borders, gradients, masks, images, filters
- layout: size, position, flow, grid, flex

## rule categories by priority

| priority | category | impact |
|----------|----------|--------|
| 1 | never patterns | critical |
| 2 | choose the mechanism | critical |
| 3 | measurement | high |
| 4 | scroll | high |
| 5 | paint | medium-high |
| 6 | layers | medium |
| 7 | blur and filters | medium |
| 8 | view transitions | low |
| 9 | tool boundaries | critical |

## quick reference

### 1. never patterns (critical)

- do not interleave layout reads and writes in the same frame
- do not animate layout continuously on large or meaningful surfaces
- do not drive animation from scrollTop, scrollY, or scroll events
- no requestAnimationFrame loops without a stop condition
- do not mix multiple animation systems that each measure or mutate layout

### 2. choose the mechanism (critical)

- default to transform and opacity for motion
- use JS-driven animation only when interaction requires it
- paint or layout animation is acceptable only on small, isolated surfaces
- one-shot effects are acceptable more often than continuous motion
- prefer downgrading technique over removing motion entirely

### 3. measurement (high)

- measure once, then animate via transform or opacity
- batch all DOM reads before writes
- do not read layout repeatedly during an animation
- prefer FLIP-style transitions for layout-like effects
- prefer approaches that batch measurement and writes

### 4. scroll (high)

- prefer Scroll or View Timelines for scroll-linked motion when available
- use IntersectionObserver for visibility and pausing
- do not poll scroll position for animation
- pause or stop animations when off-screen
- scroll-linked motion must not trigger continuous layout or paint on large surfaces

### 5. paint (medium-high)

- paint-triggering animation is allowed only on small, isolated elements
- do not animate paint-heavy properties on large containers
- do not animate CSS variables for transform, opacity, or position
- do not animate inherited CSS variables
- scope animated CSS variables locally and avoid inheritance

### 6. layers (medium)

- compositor motion requires layer promotion, never assume it
- use will-change temporarily and surgically
- avoid many or large promoted layers
- validate layer behavior with tooling when performance matters

### 7. blur and filters (medium)

- keep blur animation small (<=8px)
- use blur only for short, one-time effects
- never animate blur continuously
- never animate blur on large surfaces
- prefer opacity and translate before blur

### 8. view transitions (low)

- use view transitions only for navigation-level changes
- avoid view transitions for interaction-heavy UI
- avoid view transitions when interruption or cancellation is required
- treat size changes as potentially layout-triggering

### 9. tool boundaries (critical)

- do not migrate or rewrite animation libraries unless explicitly requested
- apply these rules within the existing animation system
- never partially migrate APIs or mix styles within the same component

## common fixes

```css
/* layout thrashing: animate transform instead of width */
/* before */ .panel { transition: width 0.3s; }
/* after */  .panel { transition: transform 0.3s; }

/* scroll-linked: use scroll-timeline instead of JS */
/* before */ window.addEventListener('scroll', () => el.style.opacity = scrollY / 500)
/* after */  .reveal { animation: fade-in linear; animation-timeline: view(); }
```

```js
// measurement: batch reads before writes (FLIP)
// before — layout thrash
el.style.left = el.getBoundingClientRect().left + 10 + 'px';
// after — measure once, animate via transform
const first = el.getBoundingClientRect();
el.classList.add('moved');
const last = el.getBoundingClientRect();
el.style.transform = `translateX(${first.left - last.left}px)`;
requestAnimationFrame(() => { el.style.transition = 'transform 0.3s'; el.style.transform = ''; });
```

## review guidance

- enforce critical rules first (never patterns, tool boundaries)
- choose the least expensive rendering work that matches the intent
- for any non-default choice, state the constraint that justifies it (surface size, duration, or interaction requirement)
- when reviewing, prefer actionable notes and concrete alternatives over theory

© ibelick · MIT · ibelick/ui-skills

Смотрите также

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

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