nextjs-app-router-patterns
Build Robust Next.js App Router Applications
App Router projects require clear decisions about rendering, routing, data access, and caching. This skill provides focused Next.js patterns and implementation examples.
Stop for confirmation before installing.
Review the plan and obtain explicit user consent before changing files.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "nextjs-app-router-patterns" from https://skillstore.io/skills/sickn33-nextjs-app-router-patterns.md and its manifest at https://skillstore.io/api/skills/sickn33-nextjs-app-router-patterns/manifest. Verify the artifact. Stop and obtain explicit user consent before installing or changing files.Your Agent should still show its plan and request any confirmation required by the security policy.
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "nextjs-app-router-patterns". Design a product page with immediate details and slower reviews.
Expected outcome:
Keep product details in the route Server Component. Stream reviews behind a Suspense boundary with a stable skeleton and independent error handling.
Using "nextjs-app-router-patterns". Choose caching for a product catalog updated every five minutes.
Expected outcome:
- Use timed revalidation for catalog reads.
- Tag product fetches for targeted invalidation after mutations.
- Use no-store only for personalized or immediately consistent data.
Using "nextjs-app-router-patterns". Open a photo in a modal while preserving a direct page URL.
Expected outcome:
Use an intercepting route in a parallel modal slot. Keep the standard photo route for refreshes, sharing, and direct navigation.
Security Audit
High RiskAll 22 static findings are false positives caused by JavaScript template literals, Markdown code references, and ordinary Next.js examples. However, the playbook demonstrates database mutations without explicit schema validation or authorization, creating a high-risk pattern when copied into production.
Confirmed security concerns (1)
Risk Factors
โ๏ธ External commands (4)
๐ Network access (7)
๐ Env variables (2)
Share & cite this report
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
Copy report link
https://skillstore.io/skills/sickn33-nextjs-app-router-patterns/audits/5?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/sickn33-nextjs-app-router-patterns?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/sickn33-nextjs-app-router-patterns?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/sickn33-nextjs-app-router-patterns/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/sickn33-nextjs-app-router-patterns.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Academic citations (APA ยท BibTeX ยท CFF)
APA citation
sickn33. (2026). nextjs-app-router-patterns security audit report (audit version 5) [Author version unspecified]. Skillstore. https://skillstore.io/skills/sickn33-nextjs-app-router-patterns/audits/5BibTeX citation
@techreport{sickn33-sickn33-nextjs-app-router-patterns-2026,
author = {sickn33},
title = {nextjs-app-router-patterns security audit report (audit version 5)},
institution = {Skillstore},
year = {2026},
number = {5},
url = {https://skillstore.io/skills/sickn33-nextjs-app-router-patterns/audits/5},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "nextjs-app-router-patterns security audit report (audit version 5)"
version: "unspecified"
type: report
authors:
- name: "sickn33"
date-released: "2026-08-04"
url: "https://skillstore.io/skills/sickn33-nextjs-app-router-patterns/audits/5"
identifiers:
- type: other
value: "skillstore:sickn33-nextjs-app-router-patterns:audit:5"
description: "Skillstore immutable audit report identifier"
Compare variants
2 installable variantsEach author remains a separate installable skill. The recommended variant is ranked by Skillstore evidence.
Why this variant is first
wshobson-nextjs-app-router-patterns
2026-09-09
sickn33-nextjs-app-router-patterns
2026-09-09
Skillstore Score
Why this score Evidence Confidence: MediumWhat You Can Build
Start an App Router Project
Create a practical route, layout, rendering, and data-fetching structure for a new application.
Migrate from Pages Router
Map existing pages, API routes, and loading behavior to App Router conventions.
Review Full-Stack Architecture
Evaluate component boundaries, cache policy, streaming, Server Actions, and route handlers before implementation.
Try These Prompts
Create an App Router page for [feature]. Include the layout, loading state, data source, and Server or Client Component choices.
Review [component tree]. Identify Server and Client Components, explain each boundary, and minimize client-side JavaScript while preserving required interactions.
Design loading and caching for [route]. Separate blocking and streamed data, define Suspense boundaries, and select cache and revalidation policies.
Create a migration plan for [Pages Router application]. Cover routing, data fetching, APIs, metadata, parallel routes, testing, rollout, and rollback risks.
Best Practices
- Begin with Server Components and add Client Components only for browser APIs or interaction.
- Define cache freshness and invalidation requirements for every data source.
- Validate inputs and enforce authorization before database mutations in route handlers and Server Actions.
Avoid
- Do not move entire feature trees to the client for one interactive control.
- Do not apply one cache policy to personalized, static, and frequently changing data.
- Do not pass unvalidated request bodies or form data directly to database operations.
Frequently Asked Questions
Which Next.js versions does this skill target?
Does it support Pages Router projects?
Can it decide between Server and Client Components?
Does it cover caching and revalidation?
Does it implement authentication and input validation?
Can it validate a complete application?
Developer Details
Author
sickn33License
MIT
Skillstore revision
r2
Version notice
The author did not declare a version.
Repository
https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/nextjs-app-router-patternsRef
81e05e636292629114b76cbb3922fbe57672fc02
Maintenance freshness
8/5/2026
Usage
7 downloads ยท 154 views
File structure