claude-code/claude-zh/rules/common/development-workflow.md

30 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 開發工作流 (Development Workflow)
> 本檔案擴展了 [common/git-workflow.md](git-workflow.md),涵蓋了 Git 操作之前的完整功能開發流程。
功能實作工作流描述了開發流水線規劃、TDD、程式碼審查最後才提交至 Git。
## 功能實作工作流
1. **規劃先行 (Plan First)**
- 使用 **planner** agent 建立實作計畫。
- 識別依賴關係與風險。
- 拆解為多個階段。
2. **採取 TDD 方法**
- 使用 **tdd-guide** agent。
- 先撰寫測試 (紅燈 RED)。
- 實作以通過測試 (綠燈 GREEN)。
- 重構 (優化 IMPROVE)。
- 驗證覆蓋率是否達到 80% 以上。
3. **程式碼審查 (Code Review)**
- 撰寫程式碼後立即使用 **code-reviewer** agent。
- 解決「關鍵 (CRITICAL)」與「高 (HIGH)」優先級的問題。
- 在可能的情況下修復「中 (MEDIUM)」優先級的問題。
4. **提交與推送 (Commit & Push)**
- 撰寫詳細的提交訊息。
- 遵循約定式提交 (Conventional Commits) 格式。
- 關於提交訊息格式與 PR 流程,請參閱 [git-workflow.md](git-workflow.md)。