3 พัฒนาตาม plan
ผู้รับผิดชอบ
หัวข้อที่มีชื่อว่า “ผู้รับผิดชอบ”Intern (มี Dev คอยช่วยเหลือ)
สิ่งที่ต้องทำ
หัวข้อที่มีชื่อว่า “สิ่งที่ต้องทำ”Intern จะพัฒนาตาม plan.md ทีละ step โดยใช้ AI ช่วย (Auto mode) พร้อมกับ:
- อ่าน plan.md ให้เข้าใจก่อนเริ่มทำ
- พัฒนาทีละ component ตามลำดับที่กำหนด
- อัพเดทไฟล์ test case กลาง ทุกครั้งที่พัฒนา component ใหม่
- สร้าง unit test สำหรับ code ที่เขียน
- ถ้าติดปัญหา ให้ขอความช่วยเหลือจาก Dev
Input ที่ต้องการ
หัวข้อที่มีชื่อว่า “Input ที่ต้องการ”- ไฟล์
plan.mdจาก Dev - Codebase ที่มีอยู่ (ถ้ามี)
Output ที่ส่งต่อ
หัวข้อที่มีชื่อว่า “Output ที่ส่งต่อ”- Code ที่พัฒนาเสร็จ
- ไฟล์ test case กลางที่อัพเดทแล้ว
- Unit tests ที่สร้างแล้ว
- ส่งต่อให้ Dev ทดสอบความถูกต้อง
ตัวอย่าง AI Prompt
หัวข้อที่มีชื่อว่า “ตัวอย่าง AI Prompt”Prompt สำหรับพัฒนา component ใหม่
หัวข้อที่มีชื่อว่า “Prompt สำหรับพัฒนา component ใหม่”// 💡 Prompt: พัฒนา component ใหม่ตาม plan.md พร้อม test
อ่านไฟล์ plan.md และพัฒนา [ชื่อ component] ตามที่กำหนดไว้ใน step [X]
requirements จาก plan.md:- [copy requirements จาก plan.md]
หลังจากพัฒนาเสร็จ ต้อง:1. อัพเดทไฟล์ test case กลางที่ /tests/testcases.md - เพิ่ม test case สำหรับ [ชื่อ component] - ระบุ ID, description, steps, expected result2. สร้าง unit test ที่ /tests/unit/[component].test.ts - ครอบคลุมทุก function หลัก - ทดสอบ edge cases - ทดสอบ error handling
ใช้ Model: AutoPrompt สำหรับแก้ไข component
หัวข้อที่มีชื่อว่า “Prompt สำหรับแก้ไข component”// 💡 Prompt: แก้ไข component ที่มีอยู่พร้อมอัพเดท test
แก้ไข [ชื่อ component] ตามนี้:- [รายละเอียดการแก้ไข]
หลังจากแก้ไขเสร็จ ต้อง:1. อัพเดท test case ที่เกี่ยวข้องใน /tests/testcases.md2. อัพเดท unit test ใน /tests/unit/[component].test.ts ให้สอดคล้องกับการเปลี่ยนแปลง3. รัน unit test ให้ผ่านทั้งหมด
ใช้ Model: Autoเมื่อติดปัญหา
หัวข้อที่มีชื่อว่า “เมื่อติดปัญหา”เช็คลิสต์
หัวข้อที่มีชื่อว่า “เช็คลิสต์”- อ่าน plan.md เข้าใจแล้ว
- พัฒนา component ตาม plan.md
- อัพเดทไฟล์ test case กลาง
- สร้าง unit test
- unit test ผ่านทั้งหมด
- code ทำงานได้ตาม requirements
- commit code พร้อม test