Chuyển tới nội dung chính
kitlocal.dev

AGENTS.md cho dự án Next.js App Router

AGENTS.md khởi đầu hướng dẫn coding agent build, test và thay đổi dự án Next.js App Router an toàn: lệnh chạy, ranh giới và điều không được làm khi chưa hỏi.

Loại: AGENTS.md

KitLocal không bao giờ ghi tệp vào máy của bạn. Hãy sao chép kết quả hoặc tự tải về.

Điền các biến

Những gì bạn gõ chỉ ở trong trình duyệt này. Không được thêm vào URL, không lưu và không gửi đi đâu.

Xem trước

Còn thiếu: 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

Về danh mục này

Bản chụp đi kèm ứng dụng · xuất bản lúc 06:05 15 thg 11, 2026 · Phiên bản danh mục 5bc079fe355af2214bc0

Đang hiển thị bản chụp đi kèm ứng dụng (chưa cấu hình nguồn nội dung). Nguồn có thể đã có nội dung mới hơn.