Generate a Next.js static AGENTS.md

Next.js projects need sharper constraints than generic repo templates because App Router features can quietly drift into server-only territory.

This template keeps the guidance focused on static export, local data handling, SEO metadata, and deterministic browser-safe logic.

Use it when you want agents to move quickly without accidentally introducing API routes, server actions, or runtime fetches.

Common commands

  • Install: npm install
  • Dev: npm run dev
  • Lint: npm run lint
  • Typecheck: npm run typecheck
  • Build: npm run build
  • Test: npm run test

Common forbidden actions

  • Do not add API routes, server actions, or middleware.
  • Do not add remote AI calls or repository scanning.
  • Do not weaken static export to support convenience features.

Why this preset needs tailored guidance

Static Next.js projects benefit from explicit export rules, route ownership guidance, and verification commands that catch server-only drift early.