Next.js Developer
Next.js 14+ App Router: RSC, Server Actions, streaming SSR.
When to use
App Router apps; Server Components + Server Actions; route handlers; middleware; API routes; streaming SSR; generateMetadata SEO; loading.tsx/error.tsx boundaries; Vercel deploy.
Core workflow
- Analyze — routing tree, server/client split, data sources.
- Design — RSC for data, client components only at interactive leaves.
- Implement — route segments,
loading.tsx/error.tsx, Server Actions for mutations.
- SEO/perf —
generateMetadata, streaming, caching directives.
- Deploy — Vercel config, edge vs node runtime choice.
Key practices
- Default to Server Components;
"use client" only where hooks/interactivity needed.
- Server Actions for mutations (
"use server"); validate input server-side.
- Caching: understand
fetch cache, revalidate, dynamic, cache().
- Co-locate
loading.tsx (Suspense) and error.tsx (error boundary) per segment.
generateMetadata for per-route SEO; structured data where relevant.
- Route handlers (
route.ts) for APIs; middleware for auth/redirects at the edge.
Constraints
MUST: minimize client components; validate Server Action inputs server-side; explicit caching/revalidation strategy; metadata for indexable routes; error + loading boundaries; env vars for secrets (server only).
MUST NOT: expose server secrets to client bundles; mark whole trees "use client" needlessly; mutate without server-side validation; ignore caching semantics; block streaming with sync data waterfalls.
Output
- Route segments (page/layout/loading/error). 2. Server Actions / route handlers. 3. Metadata + caching config. 4. Brief note on RSC/caching decisions.
Knowledge
Next.js 14+, App Router, React Server Components, Server Actions, route handlers, middleware, streaming SSR, generateMetadata, caching/revalidation, Vercel, edge runtime.
1---2name: nextjs-developer3description: "Use when building Next.js 14+ apps with App Router, Server Components, or Server Actions — route handlers, middleware, streaming SSR, generateMetadata for SEO, loading.tsx/error.tsx, Vercel deploy. Triggers: Next.js, Next.js 14, App Router, Server Components, Server Actions, RSC, generateMetadata, loading.tsx, Vercel, Next.js performance."4version: 1.0.05license: MIT6tags: [nextjs, app-router, server-components, server-actions, ssr, vercel, seo, react]7source: https://github.com/jeffallan/claude-skills/tree/main/skills/nextjs-developer8derived_from: awesomeclaude9metadata:10 source: https://skillmd.com/skills/aashutosh396/nextjs-developer11---1213# Next.js Developer1415Next.js 14+ App Router: RSC, Server Actions, streaming SSR.1617## When to use1819App Router apps; Server Components + Server Actions; route handlers; middleware; API routes; streaming SSR; `generateMetadata` SEO; `loading.tsx`/`error.tsx` boundaries; Vercel deploy.2021## Core workflow22231. **Analyze** — routing tree, server/client split, data sources.242. **Design** — RSC for data, client components only at interactive leaves.253. **Implement** — route segments, `loading.tsx`/`error.tsx`, Server Actions for mutations.264. **SEO/perf** — `generateMetadata`, streaming, caching directives.275. **Deploy** — Vercel config, edge vs node runtime choice.2829## Key practices3031- Default to Server Components; `"use client"` only where hooks/interactivity needed.32- Server Actions for mutations (`"use server"`); validate input server-side.33- Caching: understand `fetch` cache, `revalidate`, `dynamic`, `cache()`.34- Co-locate `loading.tsx` (Suspense) and `error.tsx` (error boundary) per segment.35- `generateMetadata` for per-route SEO; structured data where relevant.36- Route handlers (`route.ts`) for APIs; middleware for auth/redirects at the edge.3738## Constraints3940MUST: minimize client components; validate Server Action inputs server-side; explicit caching/revalidation strategy; metadata for indexable routes; error + loading boundaries; env vars for secrets (server only).41MUST NOT: expose server secrets to client bundles; mark whole trees `"use client"` needlessly; mutate without server-side validation; ignore caching semantics; block streaming with sync data waterfalls.4243## Output44451. Route segments (page/layout/loading/error). 2. Server Actions / route handlers. 3. Metadata + caching config. 4. Brief note on RSC/caching decisions.4647## Knowledge4849Next.js 14+, App Router, React Server Components, Server Actions, route handlers, middleware, streaming SSR, generateMetadata, caching/revalidation, Vercel, edge runtime.