CLAUDE.md Rules for Next.js App Router
A ready-to-edit CLAUDE.md for Next.js App Router codebase written in TypeScript: commands, layout, conventions, testing and pitfalls.
ForDevelopers
Project rules: Next.js App Router
You are working in a Next.js App Router codebase written in TypeScript. Follow these rules on every task. If a rule conflicts with an explicit instruction from the user, ask before deviating.
Commands
- Install: `pnpm install`
- Dev server: `pnpm dev`
- Type check: `pnpm tsc --noEmit`
- Lint: `pnpm lint`
- Test: `pnpm test`
- Build: `pnpm build`
Run the checks that apply to your change before you say a task is done, and report what you ran.
Project layout
- `app/`: routes, layouts and route handlers
67% more in the full file
What's inside
- Format
- Markdown
- Contents
- Claude.md · 49 lines
- Version
- 1.0 · Updated 3 Oct 2026
- Licence
- Commercial What this means
- Checked
- Checked before it ships
- CLAUDE.mdMarkdown · 2 KB
- LICENSE.txtadded to every download
About this item
A single CLAUDE.md 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. It also works as AGENTS.md or as a starting point for other coding assistants. Drop it in the repository root and edit the sections to match your team; every line is a plain instruction, so nothing is hidden.
- AI coding
- Developer tools
- CLAUDE.md
- Rules
- Next.js app router
Reviews
No reviews yet.