Communitygithub.com

Vercel React 모범 사례

React 및 Next.js 애플리케이션을 위한 포괄적인 성능 최적화 가이드입니다. React 컴포넌트, Next.js 페이지, 데이터 페칭, 번들 최적화 또는 성능 개선 작업 시 이 스킬을 사용해야 합니다.

Vercel React 모범 사례란 무엇인가요?

이 스킬은 Vercel 엔지니어링 팀이 유지 관리하는 React 및 Next.js 애플리케이션을 위한 포괄적인 성능 최적화 가이드입니다. 8개 카테고리, 45개의 규칙으로 구성되어 있으며, 워터폴 제거, 번들 크기 최적화, 서버/클라이언트 성능, 리렌더링 방지 등 주요 성능 영역을 다룹니다. 각 규칙은 우선순위와 영향도에 따라 분류되어 있으며, CRITICAL, HIGH, MEDIUM, LOW의 우선순위를 통해 작업자가 가장 큰 성능 향상을 가져올 수 있는 부분에 집중할 수 있도록 돕습니다. 이 스킬은 Claude Code, Cursor, Codex 등 다양한 AI 어시스턴트와 호환되며, 규칙 파일은 각각 왜 중요한지, 잘못된 코드 예시, 올바른 코드 예시, 추가 컨텍스트를 제공하여 개발자가 바로 적용할 수 있도록 설계되었습니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/jarrodwatts/claude-code-config/vercel-react-best-practices

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

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

문서

Vercel React 모범 사례은(는) 무엇을 하나요?

React 및 Next.js 애플리케이션을 위한 포괄적인 성능 최적화 가이드입니다. Vercel에서 유지 관리하며, 영향도에 따라 우선순위가 매겨진 8개 카테고리, 45개의 규칙으로 구성되어 있습니다. 자동화된 리팩토링 및 코드 생성을 안내합니다.

적용 시점

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

  • 새로운 React 컴포넌트 또는 Next.js 페이지를 작성할 때
  • 데이터 페칭(클라이언트 또는 서버 사이드)을 구현할 때
  • 성능 이슈를 검토할 때
  • 기존 React/Next.js 코드를 리팩토링할 때
  • 번들 크기 또는 로드 시간을 최적화할 때

규칙 카테고리 (우선순위별)

우선순위카테고리영향접두사
1워터폴 제거CRITICALasync-
2번들 크기 최적화CRITICALbundle-
3서버 사이드 성능HIGHserver-
4클라이언트 사이드 데이터 페칭MEDIUM-HIGHclient-
5리렌더링 최적화MEDIUMrerender-
6렌더링 성능MEDIUMrendering-
7JavaScript 성능LOW-MEDIUMjs-
8고급 패턴LOWadvanced-

빠른 참조

1. 워터폴 제거 (CRITICAL)

  • async-defer-await - 실제 사용되는 분기 내에서 await를 이동하세요.
  • async-parallel - 독립적인 작업에는 Promise.all()을 사용하세요.
  • async-dependencies - 부분 종속성에는 better-all을 사용하세요.
  • async-api-routes - API 라우트에서는 프라미스를 일찍 시작하고 늦게 await하세요.
  • async-suspense-boundaries - Suspense를 사용하여 콘텐츠를 스트리밍하세요.

2. 번들 크기 최적화 (CRITICAL)

  • bundle-barrel-imports - 배럴 파일을 피하고 직접 임포트하세요.
  • bundle-dynamic-imports - 무거운 컴포넌트에는 next/dynamic을 사용하세요.
  • bundle-defer-third-party - 분석/로깅은 하이드레이션 후에 로드하세요.
  • bundle-conditional - 기능이 활성화된 경우에만 모듈을 로드하세요.
  • bundle-preload - 인지된 속도를 위해 호버/포커스 시 사전 로드하세요.

3. 서버 사이드 성능 (HIGH)

  • server-cache-react - 요청별 중복 제거를 위해 React.cache()를 사용하세요.
  • server-cache-lru - 요청 간 캐싱을 위해 LRU 캐시를 사용하세요.
  • server-serialization - 클라이언트 컴포넌트로 전달되는 데이터를 최소화하세요.
  • server-parallel-fetching - 페치를 병렬화하도록 컴포넌트를 재구성하세요.
  • server-after-nonblocking - 비차단 작업에는 after()를 사용하세요.

4. 클라이언트 사이드 데이터 페칭 (MEDIUM-HIGH)

  • client-swr-dedup - 자동 요청 중복 제거를 위해 SWR을 사용하세요.
  • client-event-listeners - 전역 이벤트 리스너를 중복 제거하세요.

5. 리렌더링 최적화 (MEDIUM)

  • rerender-defer-reads - 콜백에서만 사용되는 상태를 구독하지 마세요.
  • rerender-memo - 비용이 많이 드는 작업을 메모이제이션된 컴포넌트로 추출하세요.
  • rerender-dependencies - Effect에서 기본형 의존성을 사용하세요.
  • rerender-derived-state - 원시값이 아닌 파생된 불리언 값을 구독하세요.
  • rerender-functional-setstate - 안정적인 콜백을 위해 함수형 setState를 사용하세요.
  • rerender-lazy-state-init - 비용이 많이 드는 값에는 useState에 함수를 전달하세요.
  • rerender-transitions - 긴급하지 않은 업데이트에는 startTransition을 사용하세요.

6. 렌더링 성능 (MEDIUM)

  • rendering-animate-svg-wrapper - SVG 요소가 아닌 div 래퍼에 애니메이션을 적용하세요.
  • rendering-content-visibility - 긴 목록에는 content-visibility를 사용하세요.
  • rendering-hoist-jsx - 정적 JSX를 컴포넌트 외부로 추출하세요.
  • rendering-svg-precision - SVG 좌표 정밀도를 줄이세요.
  • rendering-hydration-no-flicker - 클라이언트 전용 데이터에는 인라인 스크립트를 사용하세요.
  • rendering-activity - 표시/숨김에는 Activity 컴포넌트를 사용하세요.
  • rendering-conditional-render - 조건부 렌더링에는 && 대신 삼항 연산자를 사용하세요.

7. JavaScript 성능 (LOW-MEDIUM)

  • js-batch-dom-css - 클래스 또는 cssText를 통해 CSS 변경을 그룹화하세요.
  • js-index-maps - 반복된 조회에는 Map을 만드세요.
  • js-cache-property-access - 루프에서 객체 속성을 캐시하세요.
  • js-cache-function-results - 모듈 레벨 Map에 함수 결과를 캐시하세요.
  • js-cache-storage - localStorage/sessionStorage 읽기를 캐시하세요.
  • js-combine-iterations - 여러 filter/map을 하나의 루프로 결합하세요.
  • js-length-check-first - 비용이 많이 드는 비교 전에 배열 길이를 확인하세요.
  • js-early-exit - 함수에서 조기에 반환하세요.
  • js-hoist-regexp - RegExp 생성을 루프 외부로 끌어올리세요.
  • js-min-max-loop - sort 대신 루프를 사용하여 최소/최대값을 구하세요.
  • js-set-map-lookups - O(1) 조회를 위해 Set/Map을 사용하세요.
  • js-tosorted-immutable - 불변성을 위해 toSorted()를 사용하세요.

8. 고급 패턴 (LOW)

  • advanced-event-handler-refs - 이벤트 핸들러를 ref에 저장하세요.
  • advanced-use-latest - 안정적인 콜백 ref를 위해 useLatest를 사용하세요.

사용 방법

자세한 설명과 코드 예제는 개별 규칙 파일을 읽으세요:

rules/async-parallel.md
rules/bundle-barrel-imports.md
rules/_sections.md

각 규칙 파일에는 다음이 포함되어 있습니다:

  • 왜 중요한지에 대한 간략한 설명
  • 설명이 포함된 잘못된 코드 예제
  • 설명이 포함된 올바른 코드 예제
  • 추가 컨텍스트 및 참고 자료

전체 문서

모든 규칙이 확장된 전체 가이드는 AGENTS.md를 참조하세요.

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

관련 스킬