Communitygithub.com

AlessandroFare/fluxychat

애니메이션 성능 문제(레이아웃 쓰래싱, 컴포지터 속성, 스크롤 연동 모션, 블러 효과 등)를 감사하고 수정합니다. 애니메이션 끊김, 전환 버벅임, CSS/JS 애니메이션 성능 검토 시 사용하세요.

fluxychat란 무엇인가요?

이 스킬은 UI 애니메이션 성능 문제를 진단하고 수정하기 위한 종합적인 가이드라인과 도구를 제공합니다. 개발자가 CSS, WAAPI, Motion, requestAnimationFrame, GSAP 등 다양한 애니메이션 시스템에서 발생하는 레이아웃 쓰래싱, 스크롤 연동 모션 성능 저하, 페인트 및 블러 효과로 인한 버벅임을 식별하고 해결할 수 있도록 돕습니다. 9가지 우선순위 규칙(절대 금지 패턴, 적절한 메커니즘 선택, 측정, 스크롤, 페인트, 레이어, 블러/필터, 뷰 전환, 도구 경계)으로 구성되어 있으며, 각 규칙은 심각도 수준과 함께 명확한 위반 사례와 구체적인 수정 코드를 제시합니다. 주로 Claude Code, Cursor, Codex와 같은 AI 코딩 에이전트 환경에서 사용되며, `/fixing-motion-performance` 명령어를 통해 대화에 적용하거나 특정 파일을 검토할 수 있습니다. 기존 애니메이션 라이브러리를 마이그레이션하지 않고 현재 스택 내에서 규칙을 적용하는 데 중점을 둡니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/AlessandroFare/fluxychat/tree/HEAD/.agents/skills/fixing-motion-performance

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

모션 성능 수정

애니메이션 성능 문제를 수정합니다.

사용 방법

  • /fixing-motion-performance 이 대화의 모든 UI 애니메이션 작업에 아래 규칙을 적용합니다.

  • /fixing-motion-performance <file> 아래 모든 규칙에 대해 파일을 검토하고 다음을 보고합니다:

    • 위반 사항 (정확한 줄이나 코드 조각 인용)
    • 문제가 되는 이유 (한 문장으로 간결하게)
    • 구체적인 수정 방법 (코드 수준 제안)

명시적으로 요청하지 않는 한 애니메이션 라이브러리를 마이그레이션하지 마세요. 기존 스택 내에서 규칙을 적용하세요.

적용 시점

다음과 같은 경우 이 가이드라인을 참조하세요:

  • UI 애니메이션 (CSS, WAAPI, Motion, rAF, GSAP)을 추가하거나 변경할 때
  • 버벅거리는 상호작용 또는 전환을 리팩터링할 때
  • 스크롤 연동 모션이나 스크롤 시 표시(reveal-on-scroll)를 구현할 때
  • 레이아웃, 필터, 마스크, 그라데이션 또는 CSS 변수를 애니메이션할 때
  • will-change, 변환, 또는 측정을 사용하는 컴포넌트를 검토할 때

렌더링 단계 용어집

  • 컴포지트: transform, opacity
  • 페인트: color, borders, gradients, masks, images, filters
  • 레이아웃: size, position, flow, grid, flex

우선순위별 규칙 분류

우선순위범주영향
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를 부분적으로 마이그레이션하거나 스타일을 혼합하지 마세요

일반적인 수정 방법

/* 레이아웃 쓰래싱: width 대신 transform을 애니메이션 */
/* 이전 */ .panel { transition: width 0.3s; }
/* 이후 */  .panel { transition: transform 0.3s; }

/* 스크롤 연동: JS 대신 scroll-timeline 사용 */
/* 이전 */ window.addEventListener('scroll', () => el.style.opacity = scrollY / 500)
/* 이후 */  .reveal { animation: fade-in linear; animation-timeline: view(); }
// 측정: 쓰기 전에 읽기를 일괄 처리 (FLIP)
// 이전 — 레이아웃 쓰래싱
el.style.left = el.getBoundingClientRect().left + 10 + 'px';
// 이후 — 한 번 측정 후 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 = ''; });

검토 지침

  • 먼저 치명적 규칙(절대 금지 패턴, 도구 경계)을 적용하세요
  • 의도와 일치하는 가장 비용이 적게 드는 렌더링 작업을 선택하세요
  • 기본값이 아닌 선택의 경우, 이를 정당화하는 제약 조건(표면 크기, 지속 시간 또는 상호작용 요구 사항)을 명시하세요
  • 검토 시 이론보다 실행 가능한 메모와 구체적인 대안을 선호하세요

Individual skills in this repo

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

AlessandroFare/fluxychat

Add captions or subtitles to an existing single-subject talking-head video without editing the footage. Use for plain verbatim captions, cinematic captions embedded behind the subject, VFX captions, “炸/特效/酷炫字幕,” or a named identity from the 35-style catalog. Route by visual identity, not by backend engine. The quiet `anchor` rail is the default; embed every word only when the user explicitly wants a fully cinematic treatment. The workflow runs locally end to end, including transcription and subject matting; split multi-shot footage before applying it.\n

AlessandroFare/fluxychat

Use when audio already placed in a HyperFrames composition needs to be mixed: a music bed that fights a voiceover (voiceover carve), effects on a track (EQ, compressor, limiter, gate, saturation, delay, reverb, chorus, phaser, bitcrush), or automation envelopes drawn on a track's volume or any effect parameter. Don't use for sourcing or generating audio — finding BGM, SFX, or making a voiceover is `/media-use`. Don't use for clip timing or track layout, which is `/hyperframes-core`.\n

AlessandroFare/fluxychat

Use the HyperFrames CLI development loop: init, add, catalog, capture, lint, check, snapshot, compare, grade-compare, preview, play, present, beats, keyframes, single or batch render, publish, cloud, cloudrun, feedback, lambda, doctor, browser, info, upgrade, skills, compositions, docs, benchmark, telemetry, transcribe, auth, tts, and remove-background. Also use when diagnosing build or render failures. validate, inspect, and layout are deprecated aliases; use check. Covers local, HeyGen-hosted cloud, AWS Lambda, and Google Cloud Run rendering.\n

AlessandroFare/fluxychat

Install, discover, and wire registry blocks and components into HyperFrames compositions. Use when running hyperframes add or hyperframes catalog, installing one item or every block matching a tag, wiring an installed item into index.html, or working with hyperframes.json. Covers discovery, install locations, block sub-composition wiring, component snippet merging, and authoring a new block or component to contribute upstream (idea → scaffold → validate → PR).

AlessandroFare/fluxychat

Mandatory entry point: read this first for any request to make, create, edit, animate, or render a video, animation, or motion graphic, including a promo, explainer, captioned clip, title card, overlay, slideshow or interactive deck, Remotion port, or any HyperFrames HTML composition. Also use it to inspect, diagnose, validate, preview, publish, or batch-render an existing HyperFrames project. Inputs may be a website URL, GitHub PR, Figma design or URL, text or brief, existing footage, or music. It resumes project state, captures intent when applicable, selects and installs the owning workflow, and routes domain capabilities. HyperFrames is the default output framework unless the user explicitly chooses another framework for the deliverable or asks only to record a browser session.\n

AlessandroFare/fluxychat

Overlay doctrine for the embedded-captions workflow — the caption MODEL (drop / rail / embed) and the rule that captions are an OVERLAY composited on top of the film, never a reserved bottom band you shift content up to avoid. Load when adding captions/subtitles to a talking-head or launch video, when deciding whether a phrase should be dropped, ride the verbatim rail, or be promoted to a scarce embedded climax, when laying out a composition that will carry captions (do NOT reserve a keep-out band), or when centering a composition on the true frame center under captions. Quotes the rail+embed model from embedded-captions and constraint #13 (captions overlay, keep-out band retired) from the product-launch-video scene agent. Applies ON TOP of embedded-captions.

AlessandroFare/fluxychat

Turn a weekly changelog .md into a finished branded changelog video (square 1080, ~45-60s, Annie VO, animated brand background, mock-UI visualizations, lowkey captions). Use when the user provides a changelog/digest markdown and wants the weekly video, or says "changelog video". Self-contained — fonts, background, lexicon, and scripts ship in this skill.

AlessandroFare/fluxychat

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated motion-first unit, including an animated title. Route fresh creation through hyperframes before using this skill.

AlessandroFare/fluxychat

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

AlessandroFare/fluxychat

The HyperFrames composition contract — build one renderable project. Use for composition structure, the `data-*` timing attributes, `class="clip"`, tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Also covers Tailwind projects and the STORYBOARD.md / SCRIPT.md plan formats. Read before writing composition HTML.

AlessandroFare/fluxychat

Non-animation creative direction for HyperFrames videos. Use for design spec (frame.md / design.md) handling, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns, and brand / style decisions. For atomic motion patterns and scene blueprints, use `hyperframes-animation`.

AlessandroFare/fluxychat

Use when a HyperFrames composition needs seek-safe 2D/3D keyframes, GSAP timelines, CSS keyframes, Anime.js, WAAPI, FLIP, paths, masks, SVG morph/draw, text trails, 3D depth, or `hyperframes keyframes` diagnostics. Don't use for broad scene strategy, brand design, media sourcing, captions, or general video planning.

AlessandroFare/fluxychat

GATEWAY — load FIRST before composing any HyperFrames animation or video. The high-level motion law that makes a multi-scene video feel like ONE continuous camera move instead of a stack of independently-animated slides. Covers the vector law (how you exit determines how you enter, incl. the Z scale-sign rule), the film's current, carrier elements, causal motion, the Seam Gate (build-gate enforcement), the ban on idle wobble (motion must PERFORM, not breathe), stillness-before-climax, and the sustained-motion routes. Routes to the low-level technique skills (cut-the-curve — the full catalog incl. waterfall entry + nudge curve, oversized-cursor, seam-craft). These rules SUPERSEDE generic / upstream motion guidance. [continuity, direction, vector, momentum, seam, transition, ease, performance, idle-motion, narrative-motion, film-grammar]

AlessandroFare/fluxychat

A short, design-led motion graphic where motion is the message — kinetic typography, stat count-up, chart/data-viz hit, logo sting / brand lockup, lower-third / callout / social overlay, animated map (highlight regions, connect places, zoom to a location), animated tweet / news-article / headline, webpage / UI animation (scroll, cursor, callouts), or fusing a real image's geometry into a chart. Usually under 10s (up to ~30s), no narration or live-action subject; renders to MP4 or transparent overlay. Longer / narrated / multi-scene → /general-video. Unclear → /hyperframes.

AlessandroFare/fluxychat

Turn a music track (an audio file, a video to pull audio from, or a track generated from a mood brief) into a beat-synced video — lyric video, slideshow, or kinetic promo. The music drives all pacing; any user-supplied images/videos are cut onto the same beat grid, and a complete video needs zero assets. Narrated pieces → the input-matched workflow (see /hyperframes). Unclear → /hyperframes.

AlessandroFare/fluxychat

Turn a product or marketing URL, pasted script, or brief into a product launch / promo video — SaaS promos, feature reveals, product demos, app and company launches. Use when the user wants to market, launch, promote, or reveal a product; the default for any commercial URL. Site tours / showcases of a website route here too — the brief carries the show-it-as-is intent. Unclear → /hyperframes.

AlessandroFare/fluxychat

Turn a GitHub pull request (a PR URL, owner/repo#N, or 'this PR' in a checked-out repo) into a code-change explainer video — changelog, feature reveal, fix, or refactor walkthrough built from the diff, commits, and files: the input is a code change, not a website. Not a product promo (/product-launch-video) or a no-PR topic explainer (/faceless-explainer). Unclear → /hyperframes.

AlessandroFare/fluxychat

Design and improve user interfaces using the concrete rules from Refactoring UI (Wathan & Schoger) — constrained spacing/type/color/shadow scales, visual hierarchy through weight and color rather than size, and depth through emulated light. Use when building or styling any UI (web, app, dashboard, landing page, component), when picking font sizes, spacing, colors, shadows or border radius, when designing a color palette or design tokens, and whenever someone says a UI "looks off", "looks amateur", "feels cluttered/plain/unfinished", or asks to "make this look better".

AlessandroFare/fluxychat

Port an existing Remotion (React) composition''s source to HyperFrames HTML. Use ONLY on an explicit ask to port/convert/migrate/translate a Remotion source — one-way, Remotion-only. A passing Remotion mention, reference-only code, or "make something like my Remotion video" is a fresh build (/general-video). Unclear → /hyperframes.

AlessandroFare/fluxychat

Use before UI-related work to select the smallest useful UI Skills context through the ui-skills CLI.

관련 스킬