อธิบายโค้ดทีละบรรทัด

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