website-nextjs-fullstack-list-page-pattern
Installation
SKILL.md
Rule
The whole state model is the URL — parsed once, server-side, per request
No client-side filter/sort/page state at all. A Server Component page
receives Next.js's searchParams prop, runs it through one small
tolerant-parsing function, and passes the typed result straight into a
queries.ts read (see
website-nextjs-fullstack-layered-architecture):
// features/companies/company-search-params.ts
import { z } from 'zod';
import { PER_PAGE_OPTIONS, SORTABLE_FIELDS, type PerPage, type SortField } from './list-constants';