furniture-3d-system-Wu/.github/copilot-instructions.md
WuYongJie 5821d73291 初始提交:3D家具安装展示系统
包含:
- furniture-3d-system:Next.js 16 全栈应用(资产中心、产品管理、3D装配动画)
- autocad-plugin:AutoCAD 家具导出插件源码
- 资产中心改造:编辑弹窗化、删除功能、Toast反馈、自定义Select组件

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-02 14:00:19 +08:00

38 lines
1.4 KiB
Markdown

# 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 `<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.