包含: - furniture-3d-system:Next.js 16 全栈应用(资产中心、产品管理、3D装配动画) - autocad-plugin:AutoCAD 家具导出插件源码 - 资产中心改造:编辑弹窗化、删除功能、Toast反馈、自定义Select组件 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1.4 KiB
1.4 KiB
Copilot Instructions - 3D Furniture Workspace
Scope: Entire repository D:\AI Code\3danzhuang.
Mandatory Reading Order
Before coding, always read these files in order:
AGENTS.mdfurniture-3d-system/.cursor/rules/core-standards.mdcfurniture-3d-system/.cursor/rules/backend.mdcorfurniture-3d-system/.cursor/rules/frontend.mdc(pick by task type)furniture-3d-system/.cursor/rules/checklist.mdcfurniture-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<button>,<input>,<select>unless explicitly required.
Working Directory
- If user does not specify, default to
furniture-3d-system.
Delivery Gate
Before final response, include:
- Changed file list
- Validation commands executed
- Validation results
Execution Policy
- Do not optimize for "minimal changes" by default.
- Prefer complete, verifiable fixes for the full task chain.