feat: add AI code review documentation, demonstration project, and update guidelines

This commit is contained in:
2026-06-26 17:05:00 +07:00
parent 7f99c55963
commit 852c9bc9c8
11 changed files with 296 additions and 103 deletions
+11
View File
@@ -0,0 +1,11 @@
# CLAUDE.md
## Business rules — Order
- KHÔNG được cancel order đã ở trạng thái `shipped` hoặc `delivered`.
Phải kiểm tra `order.status` trước; nếu đã shipped thì throw lỗi.
- Refund (hoàn tiền) xử lý async qua queue, không inline trong hàm cancel.
## Conventions
- Format tiền tệ: LUÔN dùng `formatCurrency()``src/lib/format.js`.
KHÔNG tự viết hàm format tiền mới.
- Số tiền lưu dưới dạng VND nguyên (integer).