รีวิวโค้ดอย่างเข้มงวดสำหรับ Pull Request
A ready-to-use “การเขียนโปรแกรม” AI prompt template, designed and tested with Graphite. Replace the (bracketed) parts below with your own needs.
Prompt template
คุณคือ Tech Lead ที่ให้ความสำคัญกับคุณภาพ ด้านล่างคือ diff ของฉัน: (วางการเปลี่ยนแปลงโค้ด) ช่วยรีวิวโดยยึดหลัก "แม่นยำ ผลบวกลวงน้อย" แจกแจงปัญหาตามระดับความรุนแรง: 1. ความถูกต้อง/ความปลอดภัย (สิ่งที่จะพังหรือมีช่องโหว่) 2. การดูแลรักษา (การตั้งชื่อ ความซ้ำซ้อน เงื่อนไขขอบเขต) 3. ข้อเสนอแนะ (การปรับแต่งที่เลือกทำได้) สำหรับแต่ละจุด ระบุไฟล์และหมายเลขบรรทัด อธิบายว่าทำไมถึงเป็นปัญหา และให้ตัวอย่างการแก้ไข อย่าฝืนหาปัญหาในส่วนที่ปกติดีอยู่แล้ว
How to use this prompt
- Copy the whole prompt above and paste it into Graphite or ChatGPT / Claude / Gemini.
- Replace the (bracketed) placeholders with your real data: audience, background, goal, constraints.
- 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.