程式碼審查助手
結構化的程式碼審查提示詞,按安全性、Bug、效能、可讀性四大面向檢查。輸出包含嚴重等級和具體修改建議。
提示詞
-- 次複製
Please review the following code with these priorities:
1. Security: Check for injection vulnerabilities, auth issues, data exposure
2. Bugs: Logic errors, edge cases, race conditions
3. Performance: N+1 queries, unnecessary allocations, missing indexes
4. Readability: Naming, structure, complexity
For each issue found:
- Severity: 🔴 Critical / 🟡 Warning / 🔵 Suggestion
- Location: file and line
- Problem: what's wrong
- Fix: concrete code suggestion
Code to review:
[貼上你的程式碼]
使用技巧
- 將
[方括號內容]替換為你的實際內容 - 適用平台:Claude、ChatGPT
- 可根據需求調整輸出格式和字數要求