nextjs-app-router-patterns
Master Next.js 14+ App Router with Server Components, streaming, parallel routes, and advanced data fetching.
Skill by leeno7786-coder
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/leeno7786-coder-nextjs-app-router-patterns
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: frontend, backend, data
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/nextjs-app-router-patterns
What's inside
- Skill name
nextjs-app-router-patterns- Description
- Master Next.js 14+ App Router with Server Components, streaming, parallel routes, and advanced data fetching. Use when building Next.js applications, implementing SSR/SSG, or optimizing React Server Components.
- License
- MIT
- Instructions
- 111 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Files (2)
- SKILL.md
- details.md · references/
SKILL.md (first lines)
# Next.js App Router Patterns
Comprehensive patterns for Next.js 14+ App Router architecture, Server Components, and modern full-stack React development.
## When to Use This Skill
- Building new Next.js applications with App Router
- Migrating from Pages Router to App Router
- Implementing Server Components and streaming
- Setting up parallel and intercepting routes
- Optimizing data fetching and caching
- Building full-stack features with Server Actions
## Core Concepts
### 1. Rendering Modes
| Mode | Where | When to Use |
| --------------------- | ------------ | ----------------------------------------- |
| **Server Components** | Server only | Data fetching, heavy computation, secrets |
| **Client Components** | Browser | Interactivity, hooks, browser APIs |
| **Static** | Build time | Content that rarely changes |
| **Dynamic** | Request time | Personalized or real-time data |
| **Streaming** | Progressive | Large pages, slow data sources |
### 2. File Conventions
```
app/
├── layout.tsx # Shared UI wrapper
├── page.tsx # Route UI
├── loading.tsx # Loading UI (Suspense)
├── error.tsx # Error boundary
├── not-found.tsx # 404 UI
├── route.ts # API endpoint
├── template.tsx # Re-mounted layout
├── default.tsx # Parallel route fallback
└── opengraph-image.tsx # OG image generation
```
## Quick Start
```typescript
// app/layout.tsx
import { Inter } from 'next/font/google'
import { Providers } from './providers'
const inter = Inter({ subsets: ['latin'] })
export const metadata = {
title: { default: 'My App', template: '%s | My App' },
description: 'Built with Next.js App Router',
}
export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
return (
<html lang="en" suppressHydrationWarning>
<body className={inter.className}>
<Providers>{children}</Providers>
</body>
</html>
)
}
// app/page.tsx - Server Component by default
async function getProducts() {
const res = await fetch('https://api.example.com/products', {
next: { revalidate: 3600 }, // ISR: revalidate every hour
})
return res.json()
}
export default async function HomePage() {
const products = await getProducts()
return (
<main>
<h1>Products</h1>
<ProductGrid products={products} />
</main>
)
}
```
## Detailed patterns and worked examples
Detailed pattern documentation lives in `references/details.md`. Read that file when the navigation tier above is insufficient.
## Best Practices
### Do's
- **Start with Server Components** - Add 'use client' only when needed
- **Colocate data fetching** - Fetch data where it's used
- **Use Suspense boundaries** - Enable streaming for slow data
- **Leverage parallel routes** - Independent loading states
- **Use Server Actions** - For mutations with progressive enhancement
### Don'ts
- **Don't pass serializable data** - Server → Client boundary limitations
- **Don't use hooks in Server Components** - No useState, useEffect
- **Don't fetch in Client Components** - Use Server Components or React Query
- **Don't over-nest layouts** - Each layout adds to the component tree
- **Don't ignore loading states** - Always provide loading.tsx or SuspenseFrom leeno7786-coder/nanoagent, MIT.
More from leeno7786-coder/nanoagent
- 0.614score
react-state-management
leeno7786-coder
Master modern React state management with Redux Toolkit, Zustand, Jotai, and React Query.
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
github-actions-docs
leeno7786-coder
Use when users ask how to write, explain, customize, migrate, secure, or troubleshoot GitHub Actions workflows, workflow syntax, triggers, matrices, runners…
SkillAFreshness: A★ 4Claude Code +9 - 0.589score
mcp-builder
leeno7786-coder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools.
SkillAFreshness: A★ 4Claude Code +9 - 0.589score
skill-creator
leeno7786-coder
Create new skills, modify and improve existing skills, and measure skill performance.
SkillAFreshness: A★ 4Claude Code +9 - 0.584score
doc-coauthoring
leeno7786-coder
Guide users through a structured workflow for co-authoring documentation.
SkillAFreshness: A★ 4Claude Code +9 - 0.584score
pdf
leeno7786-coder
Use this skill whenever the user wants to do anything with PDF files.
SkillAFreshness: A★ 4Claude Code +9 - 0.584score
brand-guidelines
leeno7786-coder
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel.
SkillAFreshness: A★ 4Claude Code +9 - 0.584score
canvas-design
leeno7786-coder
Create beautiful visual art in .png and .pdf documents using design philosophy.
SkillAFreshness: A★ 4Claude Code +9 - 0.584score
algorithmic-art
leeno7786-coder
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration.
SkillAFreshness: A★ 4Claude Code +9
Signals
- Stars
- 4
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jun 19, 2026 (4 months ago)
- Last release
- Oct 8, 2026 (19 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/leeno7786-coder/nanoagent
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from leeno7786-coder
- 0.614score
react-state-management
leeno7786-coder
Master modern React state management with Redux Toolkit, Zustand, Jotai, and React Query.
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
github-actions-docs
leeno7786-coder
Use when users ask how to write, explain, customize, migrate, secure, or troubleshoot GitHub Actions workflows, workflow syntax, triggers, matrices, runners…
SkillAFreshness: A★ 4Claude Code +9 - 0.589score
mcp-builder
leeno7786-coder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools.
SkillAFreshness: A★ 4Claude Code +9 - 0.589score
skill-creator
leeno7786-coder
Create new skills, modify and improve existing skills, and measure skill performance.
SkillAFreshness: A★ 4Claude Code +9 - 0.584score
doc-coauthoring
leeno7786-coder
Guide users through a structured workflow for co-authoring documentation.
SkillAFreshness: A★ 4Claude Code +9 - 0.584score
pdf
leeno7786-coder
Use this skill whenever the user wants to do anything with PDF files.
SkillAFreshness: A★ 4Claude Code +9
Cite this page
nextjs-app-router-patterns skill. Agent Mart. https://agentmart.dev/skills/leeno7786-coder-nextjs-app-router-patterns (last updated 2026-10-24)