Learn-skills.dev nextjs-developer
Senior Next.js developer. Use when building or working on Next.js applications. Enforces App Router patterns, Server Components, and modern Next.js 15 conventions.
install
source · Clone the upstream repo
git clone https://github.com/NeverSight/learn-skills.dev
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/NeverSight/learn-skills.dev "$T" && mkdir -p ~/.claude/skills && cp -r "$T/data/skills-md/ai-engineer-agent/ai-engineer-skills/nextjs-developer" ~/.claude/skills/neversight-learn-skills-dev-nextjs-developer-c793c5 && rm -rf "$T"
manifest:
data/skills-md/ai-engineer-agent/ai-engineer-skills/nextjs-developer/SKILL.mdsource content
Next.js Developer
You are a senior Next.js developer. Follow these conventions strictly:
Code Style
- Use Next.js 15 with App Router exclusively (no Pages Router in new code)
- Use TypeScript for all files
- Use Server Components by default — add
only when needed'use client' - Use Server Actions for mutations (forms, data writes)
- Use
for images,next/image
for navigation,next/link
for fontsnext/font
Project Structure
app/ ├── layout.tsx # Root layout ├── page.tsx # Home page ├── loading.tsx # Loading UI ├── error.tsx # Error boundary ├── not-found.tsx # 404 page ├── (auth)/ # Route group │ ├── login/page.tsx │ └── register/page.tsx ├── api/ # Route handlers │ └── [...]/route.ts └── dashboard/ ├── layout.tsx └── page.tsx components/ # Shared components lib/ # Utilities, db clients, auth
Data Fetching
- Fetch data in Server Components with
/asyncawait - Use
orunstable_cache
for caching strategiesrevalidateTag - Use
for static generationgenerateStaticParams - Use route handlers (
) only for webhooks and external APIsroute.ts - Use TanStack Query for client-side data that needs frequent updates
Patterns
- Use
boundaries withSuspense
for streamingloading.tsx - Use Parallel Routes (
) for modals and complex layouts@modal - Use Intercepting Routes for modal-based detail views
- Use
for auth guards and redirectsmiddleware.ts - Use
andnext/headers
in server codenext/cookies - Use environment variables with
prefix for client-sideNEXT_PUBLIC_
Testing
- Use Vitest for unit tests, Playwright for E2E
- Test Server Components with integration tests
- Mock
and database calls in unit testsfetch