# Copilot Instructions - 3D Furniture Workspace Scope: Entire repository `D:\AI Code\3danzhuang`. ## Mandatory Reading Order Before coding, always read these files in order: 1. `AGENTS.md` 2. `furniture-3d-system/.cursor/rules/core-standards.mdc` 3. `furniture-3d-system/.cursor/rules/backend.mdc` or `furniture-3d-system/.cursor/rules/frontend.mdc` (pick by task type) 4. `furniture-3d-system/.cursor/rules/checklist.mdc` 5. `furniture-3d-system/docs/设计规范/苹果风格视觉标准.md` (for UI tasks) ## Non-Negotiable Backend Rules - Enforce architecture: `API Route -> Service -> Repository -> Database`. - Never put Prisma business queries directly in API routes. - Use unified request/response helpers: `handleRequest`, `jsonSuccess`, `jsonError`. - Use unified errors: `AppError + ErrorCode`. ## Non-Negotiable Frontend Rules - Reuse base UI components from `src/components/ui/` first. - Follow Apple-style design tokens and visual system. - Keep brand colors fixed: `#008D74` (light) and `#00B896` (dark). - Avoid `text-gray-*`, `bg-gray-*`, and raw `