高效處理 Pull Request 的審查評論,採用錯誤分析三阶段方法寻求根本解決方案。
Analyzes PR review comments and CI errors using a three-phase method to identify root causes and implement fixes.
/plugin marketplace add wasabeef/claude-code-cookbook/plugin install cook-zh-tw@claude-code-cookbook高效處理 Pull Request 的審查評論,採用錯誤分析三阶段方法寻求根本解決方案。
# 獲取並分析審查評論
gh pr view --comments
「請按優先級分類審查評論並創建應對計劃」
# 錯誤相關評論的詳细分析
gh pr checks
「請用三阶段方法分析 CI 錯誤並找出根本原因」
# 修復完成後的質量確認
npm test && npm run lint
「修復已完成,請檢查回歸測試和代碼質量」
# 執行評論分類
gh pr view 123 --comments | head -20
"請將審查評論分類為 must/imo/nits/q 並決定處理顺序"
# 收集錯誤資訊
npm run build 2>&1 | tee error.log
"請找出構建錯誤的根本原因並提出適当的修復方法"
# 確認修復實現
git diff HEAD~1
"請評估此修復是否恰当解決了審查指出的問題"
🔴 must: 必须修復
├─ 安全問題
├─ 功能缺陷
├─ 設計原則违反
└─ 規範违反
🟡 imo: 改進建議
├─ 更好的實現方法
├─ 性能改進
├─ 可讀性提升
└─ 重構建議
🟢 nits: 轻微指摘
├─ 拼寫錯誤更正
├─ 縮進調整
├─ 注釋添加
└─ 命名微調
🔵 q: 問題與確認
├─ 實現意圖確認
├─ 規格明確化
├─ 設計決策背景
└─ 替代方案探讨
必须執行
推薦執行
# 基本檢查
npm test
npm run lint
npm run build
# 回歸測試
npm run test:e2e
# 代碼質量
npm run test:coverage
修復完成報告
@reviewer 感谢您的指正。
修復已完成:
- [具體修復內容]
- [測試結果]
- [確認方法]
技術判斷說明
實現背景:[原因]
考虑的替代方案:[選項與判斷依據]
採用方案的優點:[優勢]
/pr-feedbackResponde eficientemente aos comentários de review de Pull Request e busca resolução fundamental através da abordagem de 3 etapas para análise de erros.
/pr-feedbackEfficiently handle Pull Request review comments and achieve root cause resolution using a 3-stage error analysis approach.