Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Nextjs Patterns?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/karthikrshet-nextjs-patterns)
---
name: nextjs-patterns
description: "Next.js App Router: server vs client components, data caching and revalidation, route handlers, middleware and metadata."
tags: [frontend, typescript]
---
# Nextjs Patterns
## When to use
- Next.js apps
## Procedure
1. Default to server components
2. Mark interactivity with "use client" at leaves
3. Choose caching (static, revalidate, dynamic) per route
4. Use server actions with validation
5. Set metadata and OG images
## Checklist
- [ ] No secrets in client bundles
- [ ] Revalidation strategy explicit
## Anti-patterns
- Fetching in client components what could be server-rendered