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
アプリに同梱されたスナップショットを表示しています(コンテンツソースが設定されていません)。ソース側にはより新しいコンテンツがある可能性があります。