nextjs-developer
Skill19 starsChanged 6 months agoMITView on GitHub
Expert Next.js development with App Router, Server Components, and modern React patterns
9 other projects use a version of this.
Adopted by
Most recently taken up by
- ivklgn/bag-of-skillstheir own version, first seen Sep 4, 2026
- Leo-Atienza/atlas-claudetheir own version, first seen Jul 24, 2026
- jshsakura/awesome-opencode-skillstheir own version, first seen Jul 8, 2026
- codeApe-7/ai-agent-workflowGrouptheir own version, first seen Jun 6, 2026
- zebbern/claude-code-guidetheir own version, first seen Feb 8, 2026
- usmanmubarak1/ClaudeSkilledAgentstheir own version, first seen Feb 6, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- Jeffallan/claude-skills★ 12ksame name
- zebbern/claude-code-guide★ 4.6ksame name
- jshsakura/awesome-opencode-skills★ 29same name
- codeApe-7/ai-agent-workflowGroup★ 17same name
- ivklgn/bag-of-skills★ 12same name
- belokonm/claude-supercode-skills★ 11same name
- nicolasestrem/antigravity-gemini-skills★ 8same name
- Leo-Atienza/atlas-claude★ 4same name
- usmanmubarak1/ClaudeSkilledAgents★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository21 other files it gives its agents.
- agent-developmentSkill
- angularjs-unit-testingSkill
- ansibleSkill
- argocdSkill
- astryxSkill
- blog-managerSkill
- datadogSkill
- dockerSkill
- github-ciSkill
- githubSkill
- helmSkill
- kubectlSkill
- mcp-builderSkill
- medusajs-developerSkill
- mermaidSkill
- pulumiSkill
- roblox-game-developmentSkill
- sentrySkill
- standard-siteSkill
- supabase-developerSkill
- terraformSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
21 rules. 0 are common, 8 are distinctive, and 13 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Server Components: Default rendering model for optimal performance
- Very specific: line 169
Use Suspense boundaries to define dynamic holes inside static shells.
- Very specific: line 191
Use next dev --turbopack and next build --turbopack to opt in.
- Very specific: line 202
Use use() to consume promises and contexts during render.
- Very specific: line 204
Use useFormStatus() for form state without prop drilling.
- Very specific: line 205
Use useOptimistic() for optimistic UI updates.
- Distinctive: line 220
Use it for logging, analytics, and other non-critical tasks after the response is sent.
- Very specific: line 221
Import it from next/server.
- Very specific: line 259
Keep experimental flags only when needed.
- Very specific: line 260
Use experimental.ppr: 'incremental' for route-by-route PPR adoption.
- Very specific: line 261
Use ppr: true only when you want a fully PPR-enabled app.
- Distinctive: line 291
Use Server Components by default
- Distinctive: line 292
Prefer dynamic rendering unless you explicitly need caching
- Distinctive: line 293
Use PPR for fast static shells with dynamic holes
- Very specific: line 295
Use next/font for font optimization
- Distinctive: line 300
Use environment variables for secrets
- Distinctive: line 306
Use route groups for logical organization
- Distinctive: line 308
Create reusable layout patterns
- Very specific: line 315
dev-server.sh: Start the development server with hot reloading
- Very specific: line 320
build-production.sh: Create optimized production build
- Very specific: line 352
run-tests.sh: Run tests with various options
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Next.js Developer Skill
Overview
This skill provides comprehensive expertise in building production-ready Next.js applications using the App Router (Next.js 15+). It covers Server Components, React 19 support, data fetching patterns, routing, API routes, caching, and performance optimization.
Core Capabilities
App Router Architecture
- Server Components: Default rendering model for optimal performance
- Client Components: Interactive components with
"use client"directive - Layouts: Shared UI with preserved state across routes
- Templates: Fresh instances on navigation (no state preservation)
- Loading UI: Streaming with
loading.tsxfiles - Error Handling: Granular error boundaries with
error.tsx
Data Fetching
- Server-side fetching: Direct database/API access in Server Components
- Caching strategies: Dynamic rendering by default, explicit caching, and incremental regeneration
- Revalidation: Time-based and on-demand cache invalidation
- Parallel fetching: Optimized data loading patterns
Routing System
- File-based routing: Automatic route generation from file structure
- Dynamic routes:
[param]and catch-all[...slug]patterns - Route groups:
(folder)for organization without URL impact - Parallel routes:
@slotfor simultaneous route rendering - Intercepting routes: Modal patterns with
(.),(..),(...)
Server Actions
- Form handling: Progressive enhancement with
actionattribute - Mutations: Server-side data modifications
- Revalidation: Automatic cache updates after mutations
- Optimistic updates: Immediate UI feedback patterns
Implementation Patterns
Project Structure
app/
├── layout.tsx # Root layout
├── page.tsx # Home page
├── globals.css # Global styles
├── (auth)/ # Route group
│ ├── login/page.tsx
│ └── register/page.tsx
├── dashboard/
│ ├── layout.tsx # Dashboard layout
│ ├── page.tsx # Dashboard home
│ ├── loading.tsx # Loading UI
│ ├── error.tsx # Error boundary
│ └── [id]/page.tsx # Dynamic route
├── api/
│ └── [route]/route.ts # API routes
└── components/ # Shared componentsComponent Patterns
Server Component (Default)
// app/posts/page.tsx
async function PostsPage() {
const posts = await db.posts.findMany()
return (
<ul>
{posts.map(post => (
<li key={post.id}>{post.title}</li>
))}
</ul>
)
}
export default PostsPageClient Component
// app/components/counter.tsx
"use client"
import { useState } from "react"
export function Counter() {
const [count, setCount] = useState(0)
return (
<button onClick={() => setCount(c => c + 1)}>
Count: {count}
</button>
)
}Data Fetching Patterns
Dynamic Rendering (Default)
// In Next.js 15+, fetch is uncached by default (implicit cache: 'no-store')
async function Page() {
const data = await fetch('https://api.example.com/data')
return <div>{data}</div>
}Static Generation (Opt-in)
// Explicitly opt into caching
async function Page() {
const data = await fetch('https://api.example.com/data', {
cache: 'force-cache',
})
return <div>{data}</div>
}Time-based Revalidation
async function Page() {
const data = await fetch('https://api.example.com/data', {
next: { revalidate: 3600 }, // Revalidate every hour
})
return <div>{data}</div>
}Note: The client router cache is also uncached by default in Next.js 15, replacing the old 30s/5m defaults.
Server Actions
// app/actions.ts
"use server"
import { revalidatePath } from "next/cache"
export async function createPost(formData: FormData) {
const title = formData.get("title") as string
await db.posts.create({ data: { title } })
revalidatePath("/posts")
}// app/posts/new/page.tsx
import { createPost } from "@/app/actions"
export default function NewPost() {
return (
<form action={createPost}>
<input name="title" required />
<button type="submit">Create</button>
</form>
)
}Partial Prerendering (PPR)
- PPR combines a static shell with dynamic streaming in a single HTTP request.
- It is production-ready in Next.js 15+ and was experimental in Next.js 14.
- Enable incremental adoption with
experimental.ppr: 'incremental'innext.config.js, or useppr: truewhen you want full PPR. - Use
Suspenseboundaries to define dynamic holes inside static shells. - Adopt PPR route by route so you can gradually expand coverage without rewriting the whole app.
// app/page.tsx — static shell with dynamic hole
export const experimental_ppr = true
export default function Page() {
return (
<main>
<StaticHeader />
<Suspense fallback={<ProductSkeleton />}>
<DynamicProductList />
</Suspense>
</main>
)
}Turbopack
- Turbopack is stable for
next devin Next.js 15 and fornext buildin Next.js 15.3+. - The production build path passes 8,298 test suite cases.
- Use
next dev --turbopackandnext build --turbopackto opt in. - It can be up to 10x faster than Webpack for dev server startup.
- Some Webpack loaders and plugins may still need migration work.
next dev --turbopack
next build --turbopackReact 19 Features
- React 19 is the default runtime in Next.js 15+ App Router projects.
- Use
use()to consume promises and contexts during render. - Server Actions are stable and no longer experimental.
- Use
useFormStatus()for form state without prop drilling. - Use
useOptimistic()for optimistic UI updates.
import { use } from "react"
import { useFormStatus } from "react-dom"
import { useOptimistic } from "react"
function ProductName({ productPromise }: { productPromise: Promise<{ name: string }> }) {
const product = use(productPromise)
return <h1>{product.name}</h1>
}after() Post-Response Work
- Next.js 15 introduces
after()for post-response work. - Use it for logging, analytics, and other non-critical tasks after the response is sent.
- Import it from
next/server.
import { after } from 'next/server'
after(() => {
logAnalytics()
})Navigation Hooks (Next.js 15.4)
useLinkStatus()helps show inline link-loading indicators.onNavigatelets you track or block client-side navigation.useLinkStatus()is a client hook fromnext/linkand returns{ pending }.onNavigateis aLinkprop for SPA navigations only.
'use client'
import Link, { useLinkStatus } from 'next/link'
function LinkHint() {
const { pending } = useLinkStatus()
return <span aria-hidden>{pending ? 'Loading…' : null}</span>
}
export function Nav() {
return (
<nav>
<Link href="/dashboard" prefetch={false} onNavigate={() => trackNavigation('/dashboard')}>
Dashboard <LinkHint />
</Link>
</nav>
)
}next.config.js Patterns
- Keep experimental flags only when needed; several features have graduated to stable in Next.js 15+.
- Use
experimental.ppr: 'incremental'for route-by-route PPR adoption. - Use
ppr: trueonly when you want a fully PPR-enabled app. - Turbopack is enabled via CLI flags, not a
next.config.jsswitch.
// next.config.ts
import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
experimental: {
ppr: 'incremental',
},
// For full PPR:
// ppr: true,
}
export default nextConfig{
"scripts": {
"dev": "next dev --turbopack",
"build": "next build --turbopack"
}
}Best Practices
Performance
- Use Server Components by default
- Prefer dynamic rendering unless you explicitly need caching
- Use PPR for fast static shells with dynamic holes
- Optimize images with
next/image - Use
next/fontfor font optimization - Implement streaming with Suspense boundaries
Security
- Validate all inputs in Server Actions
- Use environment variables for secrets
- Implement proper authentication patterns
- Sanitize user-generated content
Code Organization
- Colocate components with routes when possible
- Use route groups for logical organization
- Implement proper error boundaries
- Create reusable layout patterns
Scripts
This skill includes executable scripts in the scripts/ folder:
Development
- dev-server.sh: Start the development server with hot reloading
./scripts/dev-server.sh [--port PORT] [--turbo] - build-production.sh: Create optimized production build
./scripts/build-production.sh [--analyze] - analyze-bundle.sh: Analyze bundle size and dependencies
./scripts/analyze-bundle.sh
Code Generation
- create-page.sh: Generate a new page with optional layout/loading/error files
./scripts/create-page.sh <page-path> [--layout] [--loading] [--error] - create-api-route.sh: Generate API route handlers
./scripts/create-api-route.sh <route-name> [--dynamic] - create-component.sh: Generate React components with optional tests
./scripts/create-component.sh <name> [--client] [--test] [--dir DIR]
Testing
- setup-testing.sh: Set up Jest and React Testing Library
./scripts/setup-testing.sh [--playwright] - run-tests.sh: Run tests with various options
./scripts/run-tests.sh [--watch] [--coverage] [--file FILE]
Templates
This skill includes production-ready templates in the templates/ folder:
Pages
- page-server.tsx: Server Component page with async data fetching, metadata, and Suspense streaming
- page-client.tsx: Client Component page with state management, hooks, and interactivity
- page-dynamic.tsx: Dynamic route page with params, generateStaticParams, and generateMetadata
Components
- component-server.tsx: Server Component with data fetching and composition patterns
- component-client.tsx: Client Component with hooks, event handlers, and localStorage
API & Backend
- api-route.ts: Complete API route handler with CRUD, validation (Zod), auth, and CORS
- server-action.ts: Server Actions with form handling, validation, and revalidation
- middleware.ts: Middleware with auth, rate limiting, i18n, and security headers
Infrastructure
- layout.tsx: Root/nested layout with navigation, footer, metadata, and fonts
- page.test.tsx: Testing patterns for pages, components, API routes, and Server Actions
Resources
This skill includes detailed reference guides in the resources/ folder:
- app-router-patterns.md: Comprehensive App Router patterns and examples
- data-fetching.md: Data fetching strategies and caching
- server-components.md: Server vs Client Components guide
- routing-reference.md: Complete routing system reference
- performance-optimization.md: Performance best practices
- api-routes.md: API route handlers and patterns
- testing-patterns.md: Testing strategies for Next.js apps
Specialization: Next.js App Router Development Version: 2.0 Last Updated: May 2026
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

