Communitygithub.com

ComeOnOliver/skillshub

SSG, SSR, ISR, 스트리밍 및 부분 사전 렌더링(PPR). Next.js에서 렌더링 전략(SSG, SSR, ISR, PPR 또는 스트리밍)을 선택할 때 사용합니다. (트리거: **/page.tsx, **/layout.tsx, generateStaticParams, dynamic, dynamicParams, PPR, streaming)

skillshub란 무엇인가요?

이 스킬은 Next.js App Router 환경에서 SSG, SSR, ISR, 스트리밍, PPR(Partial Prerendering) 등 다양한 렌더링 전략을 안내합니다. 데이터 신선도와 확장 요구 사항에 따라 최적의 전략을 선택할 수 있도록 도우며, 각 전략의 구현 지침과 주요 트리거(예: fetch 캐시 옵션, cookies(), headers())를 제공합니다. 또한, 비효율적인 패턴(예: page.tsx에서의 루트 await, 정적 콘텐츠에 SSR 사용 등)을 방지하고, 하이드레이션 오류를 피하는 방법을 제시합니다. 이 스킬은 Claude Code, Cursor, Codex 등 AI 에이전트와 함께 사용하도록 설계되었으며, 참조 문서 링크를 통해 더 깊이 있는 정보를 제공합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/HoangNguyen0403/agent-skills-standard/nextjs-rendering

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

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

문서

렌더링 전략 (App Router)

우선순위: P0 (중요)

데이터 신선도와 확장 요구 사항에 따라 렌더링 전략을 선택합니다. 전략 매트릭스를 참조하세요.

구현 지침

  • SSG (정적 사이트 생성): App Router의 기본값입니다. **generateStaticParams**를 사용하여 빌드 시점에 라우트를 사전 렌더링합니다. cache: 'force-cache' 옵션과 함께 **fetch**를 사용하여 트리거됩니다.
  • SSR (서버 사이드 렌더링): cookies(), headers() 또는 cache: 'no-store' 옵션과 함께 **fetch**를 사용하여 트리거됩니다. 개인화되거나 신선도가 높은 데이터에 사용합니다.
  • ISR (증분 정적 재생성): 빌드 후 정적 콘텐츠를 업데이트합니다. revalidate (시간 기반) 또는 revalidatePath / revalidateTag (온디맨드)를 사용합니다.
  • 스트리밍: **Suspense**를 사용하여 느린 비동기 컴포넌트를 감싸 초기 페이지 로드를 차단하지 않도록 합니다. 라우트 수준의 스켈레톤 UI에는 **loading.tsx**를 사용합니다.
  • PPR (부분 사전 렌더링): 단일 HTTP 요청에서 정적 셸과 동적 영역을 결합합니다. next.config.js에서 **ppr: true**를 활성화합니다.
  • 전략: SEO(SSG/ISR) vs 상호작용(클라이언트) vs 개인화(SSR)에 따라 렌더링을 선택합니다. **dynamicParams**를 사용하여 캐시되지 않은 라우트에 대한 폴백 동작을 제어합니다.
  • 하이드레이션: 초기 렌더링에서 브라우저 전용 값(window.innerWidth, Date.now())을 사용하지 않음으로써 하이드레이션 오류를 방지합니다. mounted useEffect 패턴을 사용합니다.
  • Edge 런타임: 전체 Node.js API가 필요하지 않은 경우, 지연 시간이 짧은 전역 분산 실행을 위해 **runtime: 'edge'**를 사용합니다.

안티 패턴

  • page.tsx에서 루트 await 금지: 느린 컴포넌트를 <Suspense>로 감싸 스트리밍합니다.
  • 정적 콘텐츠에 SSR 사용 금지: SSG 또는 ISR을 사용하고, SSR은 진정으로 동적인 데이터를 위해 남겨둡니다.
  • 초기 렌더링에서 typeof window 사용 금지: 하이드레이션 오류를 방지하기 위해 useEffect를 사용합니다.

참조

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

관련 스킬