Imported from Monkey-Kode/bluepath-frontend-ts (
AGENTS.md). Install upstream withnpx skills add Monkey-Kode/bluepath-frontend-ts. Copyright stays with the author.
Next.js agent rules
This project uses Next.js 16 (App Router). Before doing any Next.js work, read the version-matched documentation bundled with the installed Next.js:
node_modules/next/dist/docs/
Do NOT rely on training data for Next.js APIs — it is likely stale (Next 14/15
era). The bundled docs match the exact installed version (next@16.2.6).
Key Next 16 contracts to remember:
params,searchParams,draftMode(),cookies(),headers()are all async — they must beawaited (const { slug } = await params;,const { isEnabled } = await draftMode();).- The build uses Turbopack (Next 16 default). Do not add a custom webpack
config. The build MUST pass without
--webpack. - styled-components consumers must be Client Components (
'use client'); the styled-components runtime relies on hooks.