Next.js best practices & code review
Created by CodeCraft LLCBuild, advise on, and review Next.js App Router code
Product and technology names are trademarks of their respective owners, used only to identify what this skill covers. CodeCraft LLC is not affiliated with or endorsed by them.
by Jace (@jamick)v1.7.2 · updated 2026-12-01Report copyright infringement
Description
Build, advise on, and review Next.js App Router code — routing, Server vs Client Components, Server Functions/Actions, data fetching, caching and revalidation (Cache Components, `use cache`, updateTag/revalidateTag), proxy.ts (formerly middleware), metadata, images, fonts, route handlers, and deployment. Use this whenever a project has `next` in package.json or the user mentions Next.js, App Router, `app/` directory, RSC, server actions, proxy/middleware, ISR, or a Next upgrade — even if they only ask to "add a page", "fix this route", or "review my PR".
Included with all-access
$9.00 one-time, permanent access
or
Buy 2 or more together for up to 40% off · View cart
You get a licence, not ownership. Access lasts while this skill is available on AiSkillz; if it's removed within 90 days of purchase, we'll send you a copy to keep. Terms
Official and free skills are included with the all-access subscription
Changelog
Subscribers also see which files changed in each version.
v1.7.2Dec 1, 2026Latest
Added
- README: a **Sources** line listing the official pages the skill is written from, each link checked, so the source-overlap check can run against them.
v1.7.1Nov 29, 2026
Changed
- Added a contents list to reference files over 100 lines (
server-components.md), so a partial read still shows every section.
v1.7.0Nov 29, 2026
Changed
- Patch-level rule now includes the November 2026 security release (16.4.5 / 15.5.29: cross-user and cross-tenant
use cachedisclosures, shared-shell cache poisoning, HttpOnly cookie exposure on Edge routes, image-optimization SVG bypass) and names the October RCEs; latest is 16.4.6. Below the newest patch is a Blocker (nextjs.org/blog, GitHub advisories).
v1.6.0Nov 20, 2026
Added
- Review method: every code review starts by mapping the code flows in scope and gives each flow its own sub-agent at high effort, which reviews that flow end to end against this checklist; the main agent merges, re-checks Blockers and de-duplicates. Covers single-flow reviews, nested sub-agents, failed sub-agents and environments without sub-agents.
v1.5.0Nov 6, 2026
Changed
- Review report rule: reviews that cover changes (a diff, PR or uncommitted work) open with a short "What the changes do" section - factual bullets grouped by purpose, inferred intent marked, deploy or migration impact stated.
v1.4.0Nov 4, 2026
Changed
- Review report rule at the top of the skill, loaded before any review: one entry per finding as
Level · type · file:line · finding · proposed fix, outside facts sourced or marked unverified, and no narrative.
v1.3.2Oct 31, 2026
Changed
- References updated for renamed skills:
supabaseis nowsupabase-platform,eas-workflowsis noweas-workflows-ci,skill-creatoris nowskill-creator-aiskillz.
v1.3.1Oct 30, 2026
Changed
- README "Pairs with" adds
biome.
v1.3.0Oct 30, 2026
Added
- Security-patch rule: check the installed
nextversion against the latest security release (a monthly release plus out-of-band updates; 16.3.6, 16.3.8 and 16.4.1 in September-October 2026), with a matching review checklist item. - Next.js 16.4 APIs: the
ensureStaticsegment export ('shell','prefetch','navigation') andnavigation()/prefetch()fromnext/cache, plus a checklist item for routes that must stay static. - Agent upgrade tooling:
npx next@canary upgrade --agent=latestandexperimental.agentUpgrade(default'security').
Changed
- Caching: Cache Components is now the recommended model for every app (16.4), enabled by default in
create-next-apptogether withpartialPrefetching, and the default in Next.js 17. - View transitions: React 19.3 (shipped with 16.4) has stable View Transitions and Fragment Refs; the agent now checks Next's own flag status in the installed docs.
- The upgrade reference is verified against 16.4 (was 16.3).
- The deep-dive references section follows the standard on-demand format, with a trigger for every reference, including the upgrade reference and the review checklist.
Fixed
- The
ensureStaticchecklist item is scoped to Cache Components projects on 16.4+. - The upgrade reference uses numbered section headings, and the SKILL.md pointer names them.
v1.2.0Oct 16, 2026
Added
references/server-components.md: a Server Components deep dive (boundary, composition, Server Action authorization, streaming, caching models) - merged from the formerreact-server-componentsskill.
v1.1.0Oct 3, 2026
Changed
- Checked against the official documentation (October 2026).
- Added a Next.js 16 upgrade and breaking-changes reference: Turbopack as the default bundler (and the
--webpackopt-out), removal ofnext lint(builds no longer lint), newnext/imagedefaults, removed runtime config, Node.js 20.9+ and TypeScript 5.1+ minimums, upgrade codemods. - Added Server Actions in production: 1 MB default body limit,
allowedOrigins,NEXT_SERVER_ACTIONS_ENCRYPTION_KEYfor multi-instance hosting, "Failed to find Server Action" after deploys, sequential client dispatch, minimal return values and rate limiting. - Added newer APIs:
after,connection,next/form,instrumentation.ts,useLinkStatus, React Compiler; noted thatproxyruns on Node.js only. - Fixed the JSON-LD escaping example in the review checklist (escape
<as\u003c). - Added 4 pitfalls and 8 review checklist items.
v1.0.1Oct 3, 2026
Changed
- Renamed the title to describe what the skill does with the product, so it doesn't read as an official or endorsed edition.
- Added a trademark notice to the README.
v1.0.0Oct 2, 2026
Added
- First release.