Commit bbfbdc67 authored by Le The Phong's avatar Le The Phong

Update CLAUDE.md

parent 48eecad0
......@@ -96,38 +96,28 @@ BẮT BUỘC phải chọn model theo hướng dẫn sau:
- Chờ user xác nhận phương án được chọn
- User có thể yêu cầu điều chỉnh hoặc xem xét phương án khác
#### Bước 3: Implementation Plan
#### Bước 3: Planning & Context Persistence
**Scan References & Planning:**
- Quét codebase tìm references phù hợp
- Liệt kê references với lý do (similarity, patterns, priority)
- List files cần tạo/sửa
- Xác định thư viện cần cài (nếu có)
- Các bước thực hiện tổng quan
1. **Checkout branch:** `git checkout -b {tên-nhánh-hiện-tại}-{taskId}`
**🛑 DỪNG:** Chờ user approve plan
2. **Tạo thư mục:** `mkdir implementation_plan_{taskId}`
**SAU KHI APPROVE:**
3. **Sonnet scan codebase & ghi file `planning_summary.md`:**
- **Nội dung:** 100% context từ planning phase
- Phương án đã chọn
- Files cần tạo/sửa (exact line numbers)
- Code snippets & references tìm được
- Dependencies (nếu có)
- Step-by-step implementation (chi tiết)
- Verification plan
**BẮT BUỘC:**
- Git checkout nhánh mới: `git checkout -b {tên-nhánh-hiện-tại}-{taskId}`
- Tạo thư mục `implementation_plan_{taskId}` trong root project
- Ghi file `planning_summary.md` với nội dung:
- Phương án đã chọn (2-3 câu)
- Files cần tạo/sửa
- References (patterns/examples tương tự)
- Dependencies (nếu có)
- Steps thực hiện (chi tiết từng bước)
4. **→ ExitPlanMode** (Context đã persist vào file, ready cho Haiku)
**→ ExitPlanMode**
→ Tiếp tục Bước 4
### 4. Implementation
- Thực thi theo **Steps** trong `planning_summary.md`
- Follow references và patterns đã xác định
- **BẮT BUỘC:** Read trước Edit/Write
### 4. Implementation (Haiku)
- **Bước đầu tiên:** Đọc `planning_summary.md` → Có 100% context cần thiết
- Thực hiện từng step theo file
- **BẮT BUỘC:** Read trước Edit/Write (verify code status)
### 5. Verification Loop
- Chạy test (Bash: dotnet test, npm test, pytest...)
......@@ -138,7 +128,7 @@ BẮT BUỘC phải chọn model theo hướng dẫn sau:
- KHÔNG ĐƯỢC tự tiếp tục fix
- Báo cáo tình trạng cho user (lỗi gì, đã fix gì)
- Chờ user quyết định:
* **Về Planning Phase (Bước 2)**: EnterPlanMode, đọc `planning_summary.md` để recovery context, phân tích lỗi, đề xuất phương án mới
* **Về Planning Phase**: EnterPlanMode, đọc `implementation_plan_{taskId}/planning_summary.md` để recovery context, phân tích lỗi, đề xuất phương án mới
* **Tiếp tục fix**: Nếu lỗi đơn giản và có hướng giải quyết rõ ràng
- Nếu về Planning Phase: Hỏi user có muốn chuyển lên Opus không (mặc định Sonnet)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment