เปลี่ยนความต้องการเป็นโค้ดที่สะอาดพร้อมคอมเมนต์
A ready-to-use “Programming” AI prompt template, designed and tested with Claude. Replace the (bracketed) parts below with your own needs.
Prompt template
เขียนโค้ดตามความต้องการของฉัน ข้อกำหนด: ตั้งชื่อชัดเจน โครงสร้างสะอาด มีคอมเมนต์ภาษาไทยในจุดสำคัญ และมีการจัดการข้อผิดพลาดพื้นฐานกับกรณีขอบ หลังเขียนเสร็จ อธิบายการแลกเปลี่ยนในการออกแบบสั้น ๆ และอะไรที่ปรับปรุงเพิ่มได้อีก ความต้องการ: "อธิบายว่าคุณอยากทำอะไร ด้วยภาษา/เฟรมเวิร์กใด"
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