ข้ามไปยังเนื้อหา

2 สร้าง plan.md

Dev

Dev จะใช้ AI (Opus 4.6) สร้างไฟล์ plan.md สำหรับทั้งโปรเจค ซึ่งเป็นเอกสารหลักที่ทุกคนจะใช้อ้างอิงตลอดการพัฒนา

  1. ภาพรวมโปรเจค - เป้าหมาย, tech stack
  2. โครงสร้างโปรเจค - folder structure
  3. รายละเอียด Components - แต่ละ component ทำอะไร, input/output
  4. API Endpoints (ถ้ามี) - routes, methods, request/response
  5. Data Flow - ข้อมูลไหลอย่างไร
  6. ลำดับการพัฒนา - ทำอะไรก่อน-หลัง
  7. Test Cases เบื้องต้น - test case สำหรับแต่ละ component
  • รายการฟีเจอร์ที่ PM ประเมินแล้ว
  • Mockup / wireframe (ถ้ามี)
  • Technical constraints
  • ไฟล์ plan.md ที่ root ของโปรเจค
  • ส่งต่อให้ Intern เพื่อเริ่มพัฒนา
// 💡 Prompt: สร้าง plan.md สำหรับทั้งโปรเจค
จากรายการฟีเจอร์ต่อไปนี้ ช่วยสร้าง plan.md สำหรับโปรเจค:
โปรเจค: [ชื่อโปรเจค]
Tech Stack: [เช่น Next.js, TailwindCSS, Prisma, PostgreSQL]
ฟีเจอร์:
1. [ฟีเจอร์ 1 - รายละเอียด]
2. [ฟีเจอร์ 2 - รายละเอียด]
3. [ฟีเจอร์ 3 - รายละเอียด]
[แนบรูป mockup ถ้ามี]
สร้าง plan.md ที่ประกอบด้วย:
1. ภาพรวมโปรเจค (เป้าหมาย, tech stack)
2. โครงสร้างโฟลเดอร์โปรเจค
3. รายละเอียดแต่ละ component (ชื่อ, หน้าที่, input/output, dependencies)
4. API Endpoints (route, method, request body, response)
5. Data flow diagram
6. ลำดับการพัฒนา (step-by-step)
7. Test cases เบื้องต้นสำหรับแต่ละ component
สำคัญ: ทุก component ต้องมี test cases อย่างน้อย 3 test cases
ใช้ Model: Opus 4.6
  • ใช้ Opus 4.6 สำหรับสร้าง plan.md
  • plan.md มีครบทุกส่วนที่กำหนด
  • ทุก component มี test cases
  • ลำดับการพัฒนาชัดเจน
  • Review plan.md กับ PM
  • commit plan.md ลง repo