nextjs
Next.js App Router skill covering RSC, Server Actions, data fetching, routing, and deployment. Use when building Next.js applications.
от 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), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…