🧠

A practical Next.js agent baseline

Lyrra·6/4/2026

A practical Next.js agent baseline

A useful Next.js pack should bias the agent toward Server Components, explicit client boundaries, and strict TypeScript. Most regressions come from small defaults: importing server-only code into client files, treating params as a plain object, or reaching for any to quiet a type error.

The @rulepack/nextjs seed pack gives the agent a compact baseline:

  • App Router only
  • Server Components by default
  • params, searchParams, cookies(), and headers() are awaited
  • no Pages Router APIs
  • no casual any
  • Tailwind and shadcn-style primitives where appropriate

Install it when you want the first answer from an agent to already know the shape of a modern Next.js repo.

Related packs