Command Palette

Search for a command to run...

Назад к скиллам
скилл № 66834

nextjs

Next.js App Router skill covering RSC, Server Actions, data fetching, routing, and deployment. Use when building Next.js applications.

БесплатноБез исполняемых скриптов
skeletorfletот skeletorflet★ 48 звёзд на GitHub

Установить nextjs в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

nextjs

App Router is the default. Layouts nest via file system. loading/error/not-found files are boundary catches.

Core Concepts

  • App Router: file-based routing in app/, layouts persist state across navigations
  • RSC vs Client: Server Components by default, "use client" for browser APIs and hooks
  • Server Actions: async functions in RSC, callable from forms, skip writing API routes
  • Data fetching: fetch() with next.revalidate for ISR, route segment config for SSR/SSG

Routing Patterns

  • Layouts: layout.tsx wraps child pages, persists UI and state across navigations
  • Route groups: (name) folders group routes without affecting URL path
  • Parallel routes: @slot convention renders independent views per route simultaneously
  • Intercepting routes: (..) pattern for modals that open from any parent segment

Best Practices

  • Default to Server Components, add "use client" only for interactivity
  • colocate data fetching in the component that needs it, no getServerSideProps
  • Use ISR with revalidate over full SSR for content that changes infrequently
  • Protect routes in middleware.ts before they reach the page component

Common Code Patterns

  • Parallel data fetching with Promise.all in Server Components
  • Server Action with revalidatePath and redirect post-mutation

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл nextjs?

Next.js App Router skill covering RSC, Server Actions, data fetching, routing, and deployment. Use when building Next.js applications.

Как установить скилл nextjs?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл nextjs запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить nextjs с