nextjs
Skill2 starsChanged 2 months agoMITView on GitHub
Version-aware Next.js rules. Use for ANY work in a project that depends on `next` — routes, pages, layouts, Server Components, Server Actions, data fetching, caching, middleware/proxy, next.config, next/image. Resolves the project's installed Next.js version and router first, then loads only that version's reference.
19 other projects use a version of this.
Adopted by
Most recently taken up by
- davidvornholt/mailboxtheir own version, first seen Oct 4, 2026
- AvilaCarlosDev/openclaw-skillstheir own version, first seen Sep 19, 2026
- SnowBeatRain/skillstheir own version, first seen Sep 15, 2026
- conjure-3301/skillstheir own version, first seen Aug 17, 2026
- Rikinshah787/agent-skills-production-skillstheir own version, first seen Aug 10, 2026
- alexander-danilenko/cortex-ai-skillstheir own version, first seen Aug 3, 2026
Used with
Projects with it also use terraform, tailwind and 3 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
ihiteshguptaSkillterraform
Expert in Infrastructure as Code with Terraform. Use for creating, managing, and versioning infrastructure across cloud providers.
Also in 3 projects that use this
nth5693Skilltailwind
Also in 3 projects that use this
akornmeierSkillshadcn-ui
Use when building React UIs with component libraries, implementing forms, dialogs, navigation, or data display. Use when user mentions shadcn, Radix UI, Base UI, or asks about accessible React components. Proactively suggest when building UI that would benefit from pre-built accessible components with Tailwind CSS styling.
Also in 3 projects that use this
VercelSkillreact
React renderer for json-render that turns JSON specs into React components. Use when working with @json-render/react, building React UIs from JSON, creating component catalogs, or rendering AI-generated specs.
Also in 3 projects that use this
akornmeierSkilldocker
Guide for using Docker - a containerization platform for building, running, and deploying applications in isolated containers. Use when containerizing applications, creating Dockerfiles, working with Docker Compose, managing images/containers, configuring networking and storage, optimizing builds, deploying to production, or implementing CI/CD pipelines with Docker.
Also in 3 projects that use this
Other versions19 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 19
- openai/plugins★ 7.3ksame name
- nth5693/gemini-kit★ 373same name
- faqndo97/ai-skills★ 33same name
- nimadorostkar/Claude-Skills-collection★ 28same name
- alexander-danilenko/cortex-ai-skills★ 16same name
- wpank/ai★ 11same name
- YepAPI/skills★ 8same name
- DongDuong2001/pudo-code-system★ 5same name
- leonvanzyl/claude-code-pro-workflow-demo★ 4same name
- Aver005/agent-skills★ 2same name
9 more not listed
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.
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 1 is distinctive, and 6 are very specific to this project.
0
Common
Most of the 17 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Never write Next.js code from memory of "the latest" version.
- Very specific: line 12
If session context contains [arsenal] stack: with next@<version>, use it.
- Very specific: line 27
No matching reference (≤ 13 or ≥ 17): do NOT extrapolate from the nearest file.
- Very specific: line 35
Never import server-only code (DB clients, secrets, next/headers) into a 'use client' module.
- Distinctive: line 36
Treat every Server Action as a public HTTP endpoint: validate input and check authorization inside the action.
- Very specific: line 37
Do not upgrade next/react or run codemods unless the task asks for it.
- Very specific: line 38
Verify with the project's own scripts: type check first.
“Common” is measured: kept by at least 6 in 10 of the 17 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 (version-aware)
Never write Next.js code from memory of "the latest" version. APIs differ across majors (sync vs async params, caching defaults, middleware vs proxy). Code must match the version this project actually runs.
1. Resolve the version (once per session)
- If session context contains
[arsenal] stack:withnext@<version>, use it. - Otherwise resolve it from the package that owns the file being edited (monorepo: nearest
package.jsonabove that file), in this order:node_modules/next/package.json→"version"— installed, authoritative.- Lockfile entry (
package-lock.json,pnpm-lock.yaml,yarn.lock,bun.lock). dependencies.nextrange inpackage.json— use its lowest satisfying major and state that the version is unverified.
- Router:
app/orsrc/app/→ App Router;pages/orsrc/pages/→ Pages Router; both → follow the router of the file being edited.
2. Load exactly one reference
| Installed major | Read |
| 14 | references/v14.md |
| 15 | references/v15.md |
| 16 | references/v16.md |
No matching reference (≤ 13 or ≥ 17): do NOT extrapolate from the nearest file. Read the official upgrade guide for that major (https://nextjs.org/docs/app/guides/upgrading/version-<major>, index at https://nextjs.org/docs/llms.txt) and the project's existing code, and say the rules came from docs, not a curated reference.
For an API introduced in a later minor than the reference covers, confirm it exists in the installed type definitions (node_modules/next/*.d.ts) before using it.
3. Rules for every version
- Existing project conventions (router,
src/layout, data-fetching style, TS/JS) beat generic best practice. - In
app/, components are Server Components by default. Add'use client'only where state, effects, browser APIs, or event handlers are needed — as deep in the tree as possible, never on a layout by reflex. - Never import server-only code (DB clients, secrets,
next/headers) into a'use client'module. OnlyNEXT_PUBLIC_*env vars reach the browser. - Treat every Server Action as a public HTTP endpoint: validate input and check authorization inside the action.
- Do not upgrade
next/reactor run codemods unless the task asks for it. - Verify with the project's own scripts: type check first; run
next buildwhen routing, config, caching, or the server/client boundary changed — it catches errors the type check misses.
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.

