Communitygithub.com

plugin87/performance

핵심 웹 바이탈(LCP, INP, CLS)을 기준으로 UI 성능을 최적화합니다 — 로딩 및 코드 분할 전략, 레이아웃 변경 방지, 애니메이션 성능 규칙을 제공합니다. 사용자가 속도 개선, 버벅임이나 레이아웃 변경 수정, 웹 바이탈 예산 충족, 저사양 기기에서 UI를 빠르게 만들고자 할 때 사용하세요.

performance란 무엇인가요?

이 스킬은 UI 성능을 접근성 문제로 간주하여, 느리거나 버벅이는 UI가 저사양 기기에서 먼저 실패한다는 관점에서 출발합니다. 핵심 웹 바이탈(Core Web Vitals) — LCP ≤ 2.5초, INP ≤ 200ms, CLS ≤ 0.1 — 을 중간 등급 모바일 프로필(느린 4G + 4배 CPU 스로틀)에서 측정하고 진단합니다. 주요 최적화 영역으로는 SSR/서버 컴포넌트를 활용한 접힌 부분 위 우선 렌더링, 라우트 및 무거운 위젯 단위 코드 분할, Astro Islands/Qwik을 통한 지연 로딩, `aspect-ratio`를 사용한 미디어 공간 예약으로 레이아웃 변경 방지, 그리고 `transform`/`opacity` 위주의 애니메이션과 `prefers-reduced-motion` 존중 등이 포함됩니다. 디자인 시스템의 런타임 비용을 고려하고 CSS 상태 스타일링을 선호하며 트리 셰이킹을 통해 낮은 INP를 유지합니다. 최종 검증은 Lighthouse 또는 필드 데이터가 위 예산을 충족하고, 스켈레톤과 미디어가 공간을 예약하여 CLS가 0이며, 비합성 애니메이션이 루프되지 않음을 확인합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/plugin87/ux-ui-agent-skills/tree/main/.claude/skills/performance

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

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

문서

스킬: 성능

UI를 빠르고 안정적으로 만드세요. 성능을 접근성 문제로 취급하십시오 — 느리거나 버벅이는 UI는 저사양 기기에서 먼저 실패합니다.

단계

  1. workflows/performance.md 읽기 (핵심 웹 바이탈 목표, 로딩 전략, 레이아웃 변경, 애니메이션 성능, 디자인 시스템 런타임 비용).
  2. 예산 대비 진단: LCP ≤ 2.5초, INP ≤ 200ms, CLS ≤ 0.1. 중간 등급 모바일 프로필에서 측정 (느린 4G 스로틀 + 4배 CPU).
  3. 로딩: 접힌 부분 위를 먼저 렌더링 (SSR/서버 컴포넌트), 라우트 + 무거운 위젯별 코드 분할, 접힌 부분 아래/상호작용 이후 지연 로딩 (Astro Islands / Qwik), 중요한 글꼴 두께 하나 미리 로드, 최신 반응형 이미지.
  4. 레이아웃 변경 제거: 스켈레톤 크기를 최종 치수에 맞추고, aspect-ratio (tokens/sizing.json)를 통해 미디어 공간 예약, 기존 콘텐츠 위에 콘텐츠를 삽입하지 않음.
  5. 애니메이션: transform/opacity만 사용, will-change는 드물게, 100–300ms (tokens/motion.json), prefers-reduced-motion 존중. 낮은 INP를 위해 JS보다 CSS 상태 스타일링 선호; 트리 셰이킹/컴포넌트별 가져오기.

검증 (완료 조건)

  • Lighthouse / 필드 데이터가 중간 등급 모바일에서 LCP ≤ 2.5초, INP ≤ 200ms, CLS ≤ 0.1을 충족.
  • 느린 4G + 4배 CPU 스로틀 상태에서 첫 번째 상호작용이 응답성을 유지.
  • 스켈레톤 + 미디어가 공간을 예약 (로드 시 CLS 0); 루프에 비합성 애니메이션 없음.

Individual skills in this repo

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

plugin87/design-tokens

Generate, extend, or audit design tokens in DTCG format with the 3-tier architecture (primitive → semantic → component). Use when the user wants a color palette, type scale, spacing/shadow/radius/motion tokens, multi-brand theming, or wants to validate token files. Covers colors, typography, spacing, shadows, borders, breakpoints, motion, gradients, opacity, blur, sizing, states, theming.

plugin87/governance

Govern how the design system evolves — SemVer for tokens/components, the contribution workflow, deprecation policy, and change communication. Use when the user wants to add/promote/deprecate a component or token, decide a version bump, set up a contribution process, or keep the system from fragmenting.

plugin87/image-to-code

Turn a reference image, screenshot, or mockup into token-driven, accessible code — infer the design system from the reference (palette, type scale, spacing, radius, layout archetype), map it to the 3-tier tokens, rebuild it, then verify with the kit's gates. Use when the user provides a design/screenshot and wants matching UI code.

plugin87/prototype

Move an idea up the fidelity ladder (content-first → wireframe → low-fi → high-fi → code) with a validation plan at each level, plus user-journey mapping and usability-testing scripts. Use when the user wants to prototype, wireframe, map a user flow, or plan/run usability testing.

plugin87/redesign

Upgrade an existing website or app to premium quality without breaking functionality — audit the current design, identify generic/AI tells, then apply taste and system rules surgically. Use when the user wants to improve, modernize, polish, or "make better" an existing UI/codebase.

plugin87/token-build

Set up or run the token build pipeline — transform the DTCG tokens/*.json (source of truth) into platform artifacts (CSS variables, Tailwind @theme, JS/TS, iOS Asset Catalog, Android, Compose) with Style Dictionary / Tokens Studio / W3C DTCG export. Use when the user wants to generate platform theme files from tokens, wire token CI, or multi-platform token output.

plugin87/ux-writing

Write or review UI copy — buttons, errors, empty states, microcopy, notifications, labels — using the voice & tone system (clear, concise, useful, human, honest) with the what→why→how error formula and inclusive-language rules. Use when the user needs interface copy, error messages, empty-state text, or a copy review.

관련 스킬