ตรวจสอบความปลอดภัยของโค้ด
A ready-to-use “Programming” AI prompt template, designed and tested with Claude. Replace the (bracketed) parts below with your own needs.
Prompt template
ตรวจสอบโค้ดด้านล่างจากมุมความปลอดภัย: 1) ตรวจช่องโหว่ที่พบบ่อย (injection, XSS, การยกระดับสิทธิ์, การรั่วไหลของความลับ, การใช้ dependency ที่ไม่ปลอดภัย); 2) แจกแจงปัญหาเรียงตามระดับความรุนแรง; 3) แนบโค้ดที่แก้แล้วสำหรับแต่ละข้อ; 4) อธิบายว่าจะตรวจสอบยืนยันการแก้ไขได้อย่างไร โค้ด: ``` วางโค้ด ```
How to use this prompt
- Copy the whole prompt above and paste it into Claude 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: Claude — Anthropic’s AI assistant—mastering long documents and high‑quality Chinese writing