AGENTS.md for a Next.js App Router project
A starting AGENTS.md that tells coding agents how to build, test and change a Next.js App Router codebase safely: commands, boundaries and what never to do without asking.
此資源僅提供英文版本。
類型: AGENTS.md
KitLocal 不會將檔案寫入你的電腦。請複製結果或自行下載。
填寫變數
你輸入的內容只保留在此瀏覽器中,不會加入 URL、儲存或傳送到任何地方。
預覽
仍需填寫:Project name
# {{projectName}}: agent guide
Next.js 16 (App Router), TypeScript, managed with npm.
## Commands
- Install: `npm install`
- Test: `npm test`
- Lint and type-check: `npm run lint && npx tsc --noEmit`
Run the lint/type-check and the tests you touched before saying a change is done.
## Architecture rules
- Pages and layouts are Server Components by default. Add `"use client"` only to the smallest
interactive leaf component.
- Never import server-only modules, secrets or non-`NEXT_PUBLIC_` environment variables into a
Client Component.
- `params` and `searchParams` are async in current Next.js versions: await them.
- Do not read `window`, `localStorage` or `Date.now()` during render.
## Working agreement
- Keep diffs focused on the request. Do not reformat or refactor unrelated files.
- Do not upgrade framework dependencies or change build/cache configuration unless asked.
- Do not commit, push or deploy; propose the commit message instead.
- If a requirement is ambiguous, ask before guessing.
## Project-specific rules
關於此目錄
內建快照 · 發布於 2026年11月15日 清晨6:05 · 目錄修訂版 5bc079fe355af2214bc0
正在顯示應用程式內建的快照(尚未設定內容來源)。來源處可能已有更新的內容。