본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

next-best-practices

tuanvidev 제작

Web & Frontend Development
1.1kclawskills.sh가 보고한 다운로드 수
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling.

설명

이 스킬이 하는 일

A coding assistant skill that enforces Next.js conventions during code writing and review. Covers RSC boundaries, async API migration for Next.js 15+, metadata, image and font optimization, error handling, and bundling.

Consolidates Next.js-specific rules that are otherwise spread across multiple official docs pages, covering patterns that generic linters miss.

사용 시점

  • Catching async client component errors before they reach production
  • Migrating to Next.js 15 async params, cookies, and headers APIs
  • Generating OG images with next/og for social sharing
  • Debugging hydration errors caused by browser API misuse
  • Configuring next/image for remote sources and LCP priority loading

예시 워크플로

입력

User asks: review my Next.js page component that uses params and cookies

에이전트
  1. 1

    Check if params and cookies are awaited per Next.js 15 async API rules

  2. 2

    Detect any async client components, which are invalid in RSC boundaries

  3. 3

    Verify error boundaries (error.tsx, not-found.tsx) exist for the route

  4. 4

    Check that images use next/image instead of bare img tags

  5. 5

    Flag any non-serializable props passed across RSC boundaries

출력

A list of violations with specific fixes referencing Next.js 15 patterns

설치

clawhub install tuanvidev/next-best-practices

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크