讓 Claude 撰寫小型原子提交,而非一個巨大的 blob
何時使用: PR 審查是噩夢,因為提交根本無法審查。
步驟
-
規劃提交Use waza commit skill. Plan the work as a sequence of atomic commits before writing any code.✓ 已複製→ 編號的提交計畫;每條都是一行摘要
-
逐一執行Make commit 1. Stop. Show me the diff and message.✓ 已複製→ 單一小型提交;訊息遵循慣例
-
繼續或修訂Continue with the next commit, or revise the plan if step 1 changed your understanding.✓ 已複製→ 下一個提交,或修訂後的計畫
結果: 可以真正審查的 PR。
注意事項
- 計畫太過細碎(瑣碎的變更卻有 10 個提交) — Skill 預設目標為每個 PR 3-7 個提交;傳入
--target N覆蓋
搭配使用: github