Skip to content
Back to skills

Next App Router Patterns

ASecurity

Next.js App Router patterns for the server/client boundary, caching, server actions, streaming, and runtimes. Load before any edit in app/ or next.config.*, however small, or for Next.js questions.

  • 2 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added October 5, 2026
ai-agentsreactnextjs

Works with

  • cli

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add ku5ic/claude-kit --skill next-app-router-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Next App Router Patterns?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Next App Router Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ku5ic-next-app-router-patterns/badge)](https://www.skillsdirectory.com/skills/ku5ic-next-app-router-patterns)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: next-app-router-patterns
description: Next.js App Router patterns for the server/client boundary, caching, server actions, streaming, and runtimes. Load before any edit in app/ or next.config.*, however small, or for Next.js questions.
---

# Next.js App Router patterns

Default assumption: Next.js 16.5 with the App Router, per the Next.js blog and upgrade guides.

A row applies when the `next` version in the project's `package.json` and lockfile is at least its version. With `cacheComponents: true` the Cache Components model applies, and with it off the previous caching model. Pages Router projects, with no `app/` directory, are out of scope, and react-patterns applies on top.

## Reference files

Loading this skill isn't enough. Before your next edit, read the file of every row that matches it. The rules live in those files, and this one only points at them.

| Before                                                                                                              | Read                                                       |
| ------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- |
| Writing Next.js code, or raising the `next` version                                                                 | [reference/upgrades.md](reference/upgrades.md)             |
| Writing, changing, or reviewing Next.js code                                                                        | [reference/anti-patterns.md](reference/anti-patterns.md)   |
| Adding `"use client"`, caching or revalidating, streaming, images, fonts, `next/dynamic`, or a `runtime` export     | [reference/practices.md](reference/practices.md)           |
| Configuring or running ESLint, the type check, `next build`, or a bundle analyzer                                   | [reference/tooling.md](reference/tooling.md)               |
| Writing or changing a `"use server"` file or a Server Function                                                      | [reference/server-actions.md](reference/server-actions.md) |
| Writing or changing `proxy.ts` or `middleware.ts`                                                                   | [reference/proxy.md](reference/proxy.md)                   |
| Writing or changing a `page`, `layout`, `loading`, `error`, `global-error`, `default`, `not-found`, or `route` file | [reference/segment-files.md](reference/segment-files.md)   |
| Changing `next.config.ts`, `.js`, or `.mjs`                                                                         | [reference/next-config.md](reference/next-config.md)       |

Files in this skill

  • SKILL.md4.2 KB
  • reference/anti-patterns.md3.1 KB
  • reference/caching.md4.1 KB
  • reference/client-bundle.md3.9 KB
  • reference/routing.md3.9 KB
  • reference/runtime.md3.8 KB
  • reference/server-actions.md4.1 KB
  • reference/server-and-client.md3.2 KB
  • reference/streaming.md3.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.