🎁 Not sure yet? Get the free sample pack →
← All packs

Cursor Rules: Next.js 16

Rules verified against the Next.js 16.4 docs and a compiled reference app: caching with use cache and cacheTag, async request APIs, proxy.ts, Server Actions, metadata, security. Includes 24 prompts, before/after fixes for real build errors and a 15→16 upgrade guide.

Version 2.0.0 · 21 files · 7,569 words · instant zip download

$9Buy for $9By purchasing you agree to the Terms.

14-day refund if the pack didn't help you, one refund per customer. Reply to your receipt email to ask.

Or get all packs for $39 (regular $61): All Packs Bundle.

Included files

  • README.md
  • QUICKSTART.md
  • AGENTS.md
  • CHANGELOG.md
  • CLAUDE.md
  • cursor-rules/00-core.mdc
  • cursor-rules/10-app-router.mdc
  • cursor-rules/20-caching.mdc
  • cursor-rules/30-server-actions.mdc
  • cursor-rules/40-route-handlers.mdc
  • cursor-rules/50-proxy-auth.mdc
  • cursor-rules/60-metadata-seo.mdc
  • cursor-rules/70-images-fonts.mdc
  • cursor-rules/80-styling.mdc
  • cursor-rules/85-data-db.mdc
  • cursor-rules/90-testing.mdc
  • cursor-rules/95-security.mdc
  • examples/before-after.md
  • examples/reference-app.md
  • prompts.md
  • upgrade-15-to-16.md

README preview

# Cursor Rules for Next.js 16 (ToolTier pack, v2.0)

**Verified against Next.js 16.4.1, React 19.3, TypeScript 5, Tailwind CSS 4 on October 15, 2026.**

Most free Next.js rule files were written for Next 13 or 14. They tell your agent to use `middleware.ts`, synchronous `params`, `export const revalidate`, and single-argument `revalidateTag()`. On Next 16 those either fail the build or are deprecated. This pack is a set of small, scoped Cursor rules (plus `AGENTS.md` and `CLAUDE.md` versions) that match how Next.js 16 actually works today, with every code pattern compiled and built on a real 16.4.1 app before it shipped.

## What's inside

| Path | What it is |
|---|---|
| `QUICKSTART.md` | Two-minute install for Cursor, Claude Code, Codex and Copilot |
| `cursor-rules/*.mdc` | 12 scoped Cursor project rules. Copy into `.cursor/rules/` |
| `AGENTS.md` | The same guidance as one plain Markdown file for Codex, Copilot, Cursor and other agents that read `AGENTS.md` |
| `CLAUDE.md` | A two-line file that imports `AGENTS.md` for Claude Code |
| `prompts.md` | 24 task prompts tuned for these rules (new routes, caching, upgrades, debugging) |
| `examples/before-after.md` | Real before/after cases with the exact build errors Next 16 printed, and the fixes |
| `examples/reference-app.md` | The small reference app we built to test every pattern, file by file |
| `upgrade-15-to-16.md` | A checklist for moving an existing app to Next 16 with an agent |
| `CHANGELOG.md` | What changed and when. Free updates for 12 months |

## The 12 rules

| Rule | Applies | Covers |
|---|---|---|
…
+ Your logo here