สร้างโค้ดจากข้อกำหนด

A ready-to-use “การเขียนโปรแกรม” AI prompt template, designed and tested with Claude. Replace the (bracketed) parts below with your own needs.

Prompt template
คุณคือนักพัฒนา (ภาษาโปรแกรม) อาวุโส ช่วยเขียนโค้ดที่ครบถ้วนและรันได้จริงตามข้อกำหนดด้านล่าง ตามแนวปฏิบัติที่ดีที่สุดของภาษา เพิ่มการจัดการข้อผิดพลาดที่จำเป็นและคอมเมนต์ภาษาไทย และปิดท้ายด้วยตัวอย่างการใช้งานสั้น ๆ ข้อกำหนด: (อธิบายฟีเจอร์ที่ต้องการ) ข้อจำกัด: (เช่น ไม่ใช้แพ็กเกจของบุคคลที่สาม ต้องเข้ากันได้กับเวอร์ชันหนึ่ง)

How to use this prompt

  1. Copy the whole prompt above and paste it into Claude 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: Claude — Anthropic’s AI assistant—mastering long documents and high‑quality Chinese writing