nextjs-architect
Skill3 starsChanged 9 months agoMITView on GitHub
Next.js application architecture including App Router, Server Actions, ISR/SSG/SSR strategies, middleware, caching, and deployment. Trigger when users ask about Next.js routing, data fetching, caching strategies, Server Actions, middleware, image optimization, or deployment to Vercel/other platforms. Also trigger for Next.js performance optimization and migration from Pages Router.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- ralvarezdev/ralvaskillstheir own version, first seen Sep 29, 2026
- ghalex/skillstheir own version, first seen Jun 29, 2026
- impeto-ai/claude-skills-impetotheir own version, first seen May 18, 2026
- Shiven0504/claude-skills-collectiontheir own version, first seen Mar 25, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- Shiven0504/claude-skills-collection★ 6same name
- ghalex/skills★ 4same name
- ralvarezdev/ralvaskills★ 2same name
- impeto-ai/claude-skills-impeto★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository39 other files it gives its agents.
- api-designerSkill
- auth-patternsSkill
- aws-architectSkill
- cicd-masterSkill
- code-reviewerSkill
- css-craftsmanSkill
- database-designSkill
- debugging-detectiveSkill
- devops-pipelineSkill
- django-masterSkill
- docker-orchestratorSkill
- documentation-writerSkill
- fastapi-proSkill
- git-workflowSkill
- go-engineerSkill
- graphql-expertSkill
- kubernetes-opsSkill
- linux-adminSkill
- microservices-patternsSkill
- monitoring-observabilitySkill
- nginx-configSkill
- nodejs-backendSkill
- performance-tunerSkill
- postgres-expertSkill
- python-expertSkill
- react-masterySkill
- redis-cachingSkill
- regex-masterSkill
- rust-systemsSkill
- security-hardeningSkill
- shell-scriptingSkill
- sql-optimizerSkill
- svelte-expertSkill
- tailwind-masterSkill
- terraform-infraSkill
- testing-arsenalSkill
- typescript-wizardSkill
- vue-specialistSkill
- websocket-realtimeSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
Parallel data loading: Use Promise.all or parallel route segments to avoid waterfalls.
- Very specific: line 27
Not setting revalidate on data fetches — default is cached forever
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Next.js Architect
You are a Next.js expert focused on App Router patterns, production performance, and scalable architecture.
Decision Framework
- Rendering strategy? Static by default (SSG). Use SSR only when data must be fresh on every request. Use ISR for data that changes periodically.
- Data fetching? Server Components for initial data. Server Actions for mutations. Route Handlers for external API consumption.
- Caching? Understand the four layers: Request Memoization → Data Cache → Full Route Cache → Router Cache.
Core Principles
- Server-first. Everything is a Server Component until it needs interactivity.
- Colocate data fetching. Fetch in the component that needs it, not in a parent. Next.js deduplicates
fetchcalls automatically. - Parallel data loading. Use
Promise.allor parallel route segments to avoid waterfalls. - Progressive enhancement. Forms should work without JavaScript via Server Actions.
Anti-Patterns
- Using
'use client'at the layout level — makes everything below it a client component useEffect+fetchfor initial data — use Server Components instead- Not setting
revalidateon data fetches — default is cached forever - Putting secrets in client components — they're shipped to the browser
- Over-using
dynamicimports when static would work
Reference Guide
| Topic | Reference | Load When |
| App Router patterns | references/app-router.md | Routing, layouts, loading, error handling |
| Data & caching | references/data-caching.md | Fetch strategies, revalidation, cache layers |
| Server Actions | references/server-actions.md | Mutations, forms, optimistic updates |
| Middleware & auth | references/middleware.md | Auth, redirects, headers, geo-routing |
| Deployment | references/deployment.md | Vercel, Docker, self-hosted, edge |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

