Skills nextjs-app-router-patterns

nextjs-app-router-patterns

Safe 🌐 Network access⚙️ External commands🔑 Env variables

Apply Next.js App Router patterns

App Router features can be hard to structure and choose. This skill provides clear patterns and examples for Next.js 14+ routing, data fetching, and Server Components.

Supports: Claude Codex Code(CC)
⚠️ 68 Poor
1

Download the skill ZIP

2

Upload in Claude

Go to Settings → Capabilities → Skills → Upload skill

3

Toggle on and start using

Test it

Using "nextjs-app-router-patterns". Show a simple plan for a product page with streaming and caching.

Expected outcome:

  • Use a server component for the product header so it renders first
  • Wrap reviews and recommendations in Suspense with loading UI
  • Apply tag based revalidation on product fetches for controlled cache refresh

Security Audit

Safe
v4 • 1/17/2026

Pure documentation skill containing only markdown explanations and TypeScript code examples. No executable scripts, network calls, filesystem access, or external commands are implemented. All code is illustrative documentation for Next.js App Router patterns.

2
Files scanned
721
Lines analyzed
3
findings
4
Total audits
Audited by: claude View Audit History →

Quality Score

38
Architecture
100
Maintainability
81
Content
22
Community
100
Security
87
Spec Compliance

What You Can Build

Start an App Router build

Get a clear structure for layouts, loading states, and data fetching in a new Next.js 14+ app.

Plan routing architecture

Design parallel and intercepting routes for dashboards and complex flows with consistent loading UI.

Optimize data fetching

Choose caching and revalidation strategies for product listings and detail pages.

Try These Prompts

App Router basics
Explain the core App Router file conventions and when to use Server Components versus Client Components.
Add Server Actions
Provide a Server Actions pattern for adding an item to a cart with revalidation and redirect.
Parallel routes plan
Suggest a parallel routes structure with loading states for analytics and team panels.
Advanced caching
Recommend caching and revalidation choices for product listings and detail pages with tag invalidation.

Best Practices

  • Start with Server Components and add client only when needed
  • Colocate data fetching with the component that uses it
  • Use Suspense boundaries to enable streaming and clear loading states

Avoid

  • Fetching critical data in Client Components without a server fallback
  • Over nesting layouts that inflate render trees
  • Skipping loading states for slow data sources

Frequently Asked Questions

Is this compatible with Next.js 14 and 15
Yes. It targets App Router patterns that remain compatible with Next.js 14 and 15.
What are the limits of this skill
It provides guidance and examples, but it does not run code or build projects.
Can I use this with an existing App Router app
Yes. You can apply the patterns incrementally to your current structure.
Does it access my data or files
No. It only provides guidance and does not access local data.
What if a pattern conflicts with my setup
Share your constraints and request a tailored variation of the pattern.
How does it compare to official docs
It summarizes and organizes patterns with examples. The official docs remain the primary reference.