Skip to content

1 or 2 credits, some free · 1 credit is about $1

pocketshelf

.cursorrules for Next.js App Router

A ready-to-edit .cursorrules for Next.js App Router codebase written in TypeScript: commands, layout, conventions, testing and pitfalls.

ForDevelopers

You are an expert developer working in a Next.js App Router codebase written in TypeScript. Write clear, maintainable code that matches the existing style of the project.

Key commands

  • Install: pnpm install
  • Dev server: pnpm dev
  • Type check: pnpm tsc --noEmit
  • Lint: pnpm lint
  • Test: pnpm test
  • Build: pnpm build

Project structure

  • app/: routes, layouts and route handlers
  • components/: shared UI components
  • lib/: server-side helpers and data access
  • public/: static assets

Code style and practices

61% more in the full file

What's inside

Format
Markdown
Contents
.cursorrules · 46 lines
Version
1.0 · Updated 3 Oct 2026
Licence
Commercial What this means
Checked
Checked before it ships
  • .cursorrulesMarkdown · 2 KB
  • LICENSE.txtadded to every download

About this item

A single .cursorrules that tells an AI coding assistant how to work in a Next.js App Router codebase written in TypeScript. It lists the commands to run, the project layout, 8 conventions, testing expectations and the mistakes to avoid, followed by a short working-style section. Rename it to CLAUDE.md or AGENTS.md if your assistant expects that file. Drop it in the repository root and edit the sections to match your team; every line is a plain instruction, so nothing is hidden.

Reviews

No reviews yet.

You might also grab