Communitygithub.com

ComeOnOliver/skillshub

アニメーションのパフォーマンス問題を修正します。

skillshub とは?

このスキルは、UIアニメーションのパフォーマンス問題を診断・修正するための包括的なガイドラインを提供します。CSSアニメーション、WAAPI、Motionライブラリ、requestAnimationFrame、GSAPなど、あらゆるアニメーション手法に対応し、レイアウトスラッシングの防止、適切なレンダリングメカニズムの選択、スクロール連動アニメーションの最適化など、実践的なルールをカテゴリ別にまとめています。特に、絶対に避けるべきパターン(クリティカル)、計測のベストプラクティス(高)、ペイント負荷の管理(中高)など、優先度順に整理された9つのルールカテゴリが特徴です。主にClaude CodeやCursorなどのAIエージェント環境で動作し、指定されたファイルをレビューして違反箇所、問題の理由、具体的な修正案を提示します。既存のアニメーションライブラリを勝手に変更しないというツール境界のルールも重要です。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/aiskillstore/marketplace/ibelick/fixing-motion-performance

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

モーションパフォーマンスの修正

アニメーションのパフォーマンス問題を修正します。

使用方法

  • /fixing-motion-performance この会話内のすべてのUIアニメーション作業に、以下の制約を適用します。

  • /fixing-motion-performance <ファイル> 指定されたファイルを以下のすべてのルールに照らしてレビューし、以下を報告します。

    • 違反箇所(該当行またはスニペットを引用)
    • なぜそれが問題か(簡潔な一文)
    • 具体的な修正案(コードレベルの提案)

明示的に要求されない限り、アニメーションライブラリの移行は行わないでください。既存のスタック内でルールを適用してください。

適用タイミング

以下の場合にこれらのガイドラインを参照してください。

  • UIアニメーションの追加または変更(CSS、WAAPI、Motion、rAF、GSAP)
  • カクつくインタラクションやトランジションのリファクタリング
  • スクロール連動モーションやスクロールによる表示アニメーションの実装
  • レイアウト、フィルター、マスク、グラデーション、CSS変数のアニメーション
  • will-change、transform、または計測を使用するコンポーネントのレビュー

レンダリングステップの用語集

  • コンポジット: transform、opacity
  • ペイント: 色、境界線、グラデーション、マスク、画像、フィルター
  • レイアウト: サイズ、位置、フロー、グリッド、フレックス

優先度別ルールカテゴリ

優先度カテゴリ影響度
1絶対に避けるべきパターンクリティカル
2メカニズムの選択クリティカル
3計測高
4スクロール高
5ペイント中高
6レイヤー中
7ぼかしとフィルター中
8ビュートランジション低
9ツール境界クリティカル

クイックリファレンス

1. 絶対に避けるべきパターン(クリティカル)

  • 同一フレーム内でレイアウトの読み取りと書き込みを交互に行わない
  • 大規模または重要なサーフェス上でレイアウトを連続的にアニメーションさせない
  • scrollTop、scrollY、またはスクロールイベントからアニメーションを駆動しない
  • 停止条件のないrequestAnimationFrameループを使用しない
  • それぞれがレイアウトを計測または変更する複数のアニメーションシステムを混在させない

2. メカニズムの選択(クリティカル)

  • モーションにはデフォルトでtransformとopacityを使用する
  • インタラクションで必要な場合にのみJS駆動のアニメーションを使用する
  • ペイントまたはレイアウトのアニメーションは、小さく孤立したサーフェスにのみ許容される
  • ワンショットエフェクトは連続モーションよりも許容されることが多い
  • モーションを完全に削除するよりも、技術のグレードダウンを優先する

3. 計測(高)

  • 計測は一度だけ行い、その後はtransformまたはopacityでアニメーションさせる
  • DOMの読み取りはすべて書き込みの前にまとめて実行する
  • アニメーション中にレイアウトを繰り返し読み取らない
  • レイアウト風のエフェクトにはFLIPスタイルのトランジションを推奨する
  • 計測と書き込みをまとめて行うアプローチを推奨する

4. スクロール(高)

  • スクロール連動モーションには、利用可能な場合はScrollまたはView Timelinesを使用する
  • 可視性と一時停止にはIntersectionObserverを使用する
  • アニメーションのためにスクロール位置をポーリングしない
  • 画面外ではアニメーションを一時停止または停止する
  • スクロール連動モーションは、大規模サーフェス上で連続的なレイアウトやペイントをトリガーしてはならない

5. ペイント(中高)

  • ペイントをトリガーするアニメーションは、小さく孤立した要素にのみ許可される
  • 大きなコンテナ上でペイント負荷の高いプロパティをアニメーションさせない
  • transform、opacity、またはposition用のCSS変数をアニメーションさせない
  • 継承されたCSS変数をアニメーションさせない
  • アニメーション化するCSS変数はローカルにスコープし、継承を避ける

6. レイヤー(中)

  • コンポジターモーションにはレイヤープロモーションが必要であり、自動的に行われるとは想定しない
  • will-changeは一時的かつ限定的に使用する
  • 多くのレイヤーや大きなプロモートされたレイヤーを避ける
  • パフォーマンスが重要な場合はツールを使用してレイヤーの動作を検証する

7. ぼかしとフィルター(中)

  • ぼかしアニメーションは小さく保つ(<=8px)
  • ぼかしは短く、一度きりのエフェクトにのみ使用する
  • ぼかしを連続的にアニメーションさせない
  • 大きなサーフェス上でぼかしをアニメーションさせない
  • ぼかしよりもopacityとtranslateを優先する

8. ビュートランジション(低)

  • ビュートランジションはナビゲーションレベルの変更にのみ使用する
  • インタラクションの多いUIではビュートランジションを避ける
  • 中断やキャンセルが必要な場合はビュートランジションを避ける
  • サイズ変更はレイアウトをトリガーする可能性があるものとして扱う

9. ツール境界(クリティカル)

  • 明示的に要求されない限り、アニメーションライブラリの移行や書き換えを行わない
  • 既存のアニメーションシステム内でこれらのルールを適用する
  • 同じコンポーネント内でAPIを部分的に移行したりスタイルを混在させたりしない

レビューガイダンス

  • クリティカルルールを最初に適用する(絶対に避けるべきパターン、ツール境界)
  • 意図に合致する最も負荷の低いレンダリング作業を選択する
  • デフォルト以外の選択を行う場合は、それを正当化する制約(サーフェスサイズ、期間、またはインタラクション要件)を明記する
  • レビュー時は、理論よりも実用的な指摘と具体的な代替案を優先する

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComeOnOliver/skillshub

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

ComeOnOliver/skillshub

Next.js 16+ 和 Turbopack — 增量打包、文件系统缓存、开发速度,以及何时使用 Turbopack 与 webpack。

ComeOnOliver/skillshub

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.

ComeOnOliver/skillshub

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

ComeOnOliver/skillshub

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

ComeOnOliver/skillshub

Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.

ComeOnOliver/skillshub

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling. Must use when working with Tamagui projects (tamagui.config.ts, @tamagui imports).

ComeOnOliver/skillshub

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

ComeOnOliver/skillshub

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

ComeOnOliver/skillshub

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

ComeOnOliver/skillshub

Next.js development tooling via MCP. Inspect routes, components, build info, and debug Next.js apps. Use when working on Next.js applications, debugging routing, or inspecting app structure. NOT for general React or non-Next.js projects.

ComeOnOliver/skillshub

Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.

ComeOnOliver/skillshub

A conceptual skill for building an API client in Next.js that handles JWT tokens

ComeOnOliver/skillshub

Best practices and patterns for Next.js App Router, Server Actions, and Routing in this project.

ComeOnOliver/skillshub

The Design System, Theme, and UX rules for the Physical AI Hub.

ComeOnOliver/skillshub

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

ComeOnOliver/skillshub

This document captures learnings from fixing keyboard navigation issues when floating components (Select, DropdownMenu, Popover) have CSS open/close animations.

ComeOnOliver/skillshub

Build Next.js 16 applications with correct patterns and distinctive design. Use when creating pages, layouts, dynamic routes, upgrading from Next.js 15, or implementing proxy.ts. Covers breaking changes (async params/searchParams, Turbopack, cacheComponents) and frontend aesthetics. NOT when building non-React or backend-only applications.

ComeOnOliver/skillshub

Comprehensive Framer Motion animation library for React. Covers motion components, variants, gestures, page transitions, and scroll animations. Use when adding animations to React/Next.js applications.

ComeOnOliver/skillshub

Build interfaces that resonate, not just render. This skill enforces bold, intentional

関連スキル