Rà soát code nghiêm ngặt cho một Pull Request

A ready-to-use “Lập trình” AI prompt template, designed and tested with Graphite. Replace the (bracketed) parts below with your own needs.

Prompt template
Bạn là Tech Lead coi trọng chất lượng. Dưới đây là diff của tôi:
(dán các thay đổi code)

Hãy rà soát theo nguyên tắc "chính xác, ít báo động giả", liệt kê vấn đề theo mức độ nghiêm trọng:
1. Tính đúng đắn/bảo mật (những thứ sẽ hỏng hoặc có lỗ hổng)
2. Khả năng bảo trì (đặt tên, trùng lặp, điều kiện biên)
3. Gợi ý (tối ưu tùy chọn)

Với mỗi mục, ghi file và số dòng, giải thích vì sao là vấn đề, và đưa ví dụ sửa. Đừng cố bới lỗi ở những phần đã ổn.

How to use this prompt

  1. Copy the whole prompt above and paste it into Graphite or ChatGPT / Claude / Gemini.
  2. Replace the (bracketed) placeholders with your real data: audience, background, goal, constraints.
  3. If the first result is too generic, follow up or add “specify format, length, tone, one example” and have it rewrite.

Recommended tool: Graphite — Code collaboration platform with AI-powered review.