Goal
วิเคราะห์ความต้องการ project อย่างครบถ้วนเพื่อวางแผน development ที่เหมาะสม
Scope
ใช้สำหรับวิเคราะห์ความต้องการ project ใหม่ หรือ major refactor
Execute
1. Identify Project Type
ระบุประเภท project
- ตรวจสอบว่าเป็น Library, Web App, CLI, Desktop, Mobile, หรือ Serverless
- อ่าน
package.json หรือ config files เพื่อดู type hints
- ตรวจสอบ dependencies ที่ติดตั้ง
2. Analyze Tech Stack
วิเคราะห์ technology stack
- ระบุภาษาหลัก (TypeScript, Rust, Go, Python, etc.)
- ระบุ frameworks (React, Vue, Solid, Next, etc.)
- ระบุ build tools (Vite, tsdown, Rollup, etc.)
- ระบุ databases (PostgreSQL, MongoDB, Redis, etc.)
3. Assess Team Context
ประเมินบริบททีม
- ระบุ team size และ expertise
- ประเมิน learning curve สำหรับ technologies
- ตรวจสอบ time constraints และ deadlines
4. Define Deployment Target
กำหนด deployment target
- ระบุ platform (bun, Docker, Cloudflare, Vercel, etc.)
- ตรวจสอบ CI/CD requirements
- กำหนด environment variables ที่จำเป็น
5. Establish Quality Standards
กำหนดมาตรฐานคุณภาพ
- กำหนด test coverage targets
- กำหนด linting rules
- กำหนด performance benchmarks
- กำหนด security requirements
6. Identify Business Constraints
ระบุ business constraints
- ตรวจสอบ budget constraints
- ตรวจสอบ timeline constraints
- ตรวจสอบ compliance requirements (GDPR, HIPAA, etc.)
7. Define Security Requirements
กำหนด security requirements
- ระบุ authentication mechanisms
- ระบุ authorization levels
- กำหนด encryption requirements
- กำหนด audit logging requirements
8. Specify Performance Requirements
กำหนด performance requirements
- กำหนด response time targets
- กำหนด throughput targets
- กำหนด scalability requirements
- กำหนด resource limits
Rules
1. Comprehensive Analysis
ต้องวิเคราะห์ทุกด้าน ไม่มองข้าม
- ต้องระบุ project type ชัดเจน
- ต้องระบุ tech stack ครบถ้วน
- ต้องระบุ constraints ทั้งหมด
2. Documentation
ต้องบันทึกผลการวิเคราะห์
- บันทึกใน
docs/project-analysis.md
- ใช้
/report-format-table สำหรับสรุป
- บันทึก assumptions ทั้งหมด
3. Validation
ต้อง validate กับ stakeholders
- ยืนยัน requirements กับ team
- ยืนยัน constraints กับ business
- ยืนยัน tech stack กับ engineering
Expected Outcome
- Project type ระบุชัดเจน
- Tech stack วิเคราะห์ครบถ้วน
- Team context เข้าใจ
- Deployment target กำหนดชัดเจน
- Quality standards ตั้งค่าเสร็จ
- Business constraints ระบุครบถ้วน
- Security requirements กำหนดเสร็จ
- Performance requirements กำหนดเสร็จ
1---2name: analyze-project-requirements3description: วิเคราะห์ความต้องการ project อย่างครบถ้วนก่อนเริ่มพัฒนา4---5## Goal67วิเคราะห์ความต้องการ project อย่างครบถ้วนเพื่อวางแผน development ที่เหมาะสม8910## Scope1112ใช้สำหรับวิเคราะห์ความต้องการ project ใหม่ หรือ major refactor131415## Execute1617### 1. Identify Project Type1819ระบุประเภท project2021- ตรวจสอบว่าเป็น Library, Web App, CLI, Desktop, Mobile, หรือ Serverless22- อ่าน `package.json` หรือ config files เพื่อดู type hints23- ตรวจสอบ dependencies ที่ติดตั้ง2425### 2. Analyze Tech Stack2627วิเคราะห์ technology stack2829- ระบุภาษาหลัก (TypeScript, Rust, Go, Python, etc.)30- ระบุ frameworks (React, Vue, Solid, Next, etc.)31- ระบุ build tools (Vite, tsdown, Rollup, etc.)32- ระบุ databases (PostgreSQL, MongoDB, Redis, etc.)3334### 3. Assess Team Context3536ประเมินบริบททีม3738- ระบุ team size และ expertise39- ประเมิน learning curve สำหรับ technologies40- ตรวจสอบ time constraints และ deadlines4142### 4. Define Deployment Target4344กำหนด deployment target4546- ระบุ platform (bun, Docker, Cloudflare, Vercel, etc.)47- ตรวจสอบ CI/CD requirements48- กำหนด environment variables ที่จำเป็น4950### 5. Establish Quality Standards5152กำหนดมาตรฐานคุณภาพ5354- กำหนด test coverage targets55- กำหนด linting rules56- กำหนด performance benchmarks57- กำหนด security requirements5859### 6. Identify Business Constraints6061ระบุ business constraints6263- ตรวจสอบ budget constraints64- ตรวจสอบ timeline constraints65- ตรวจสอบ compliance requirements (GDPR, HIPAA, etc.)6667### 7. Define Security Requirements6869กำหนด security requirements7071- ระบุ authentication mechanisms72- ระบุ authorization levels73- กำหนด encryption requirements74- กำหนด audit logging requirements7576### 8. Specify Performance Requirements7778กำหนด performance requirements7980- กำหนด response time targets81- กำหนด throughput targets82- กำหนด scalability requirements83- กำหนด resource limits848586## Rules8788### 1. Comprehensive Analysis8990ต้องวิเคราะห์ทุกด้าน ไม่มองข้าม9192- ต้องระบุ project type ชัดเจน93- ต้องระบุ tech stack ครบถ้วน94- ต้องระบุ constraints ทั้งหมด9596### 2. Documentation9798ต้องบันทึกผลการวิเคราะห์99100- บันทึกใน `docs/project-analysis.md`101- ใช้ `/report-format-table` สำหรับสรุป102- บันทึก assumptions ทั้งหมด103104### 3. Validation105106ต้อง validate กับ stakeholders107108- ยืนยัน requirements กับ team109- ยืนยัน constraints กับ business110- ยืนยัน tech stack กับ engineering111112113## Expected Outcome114115- Project type ระบุชัดเจน116- Tech stack วิเคราะห์ครบถ้วน117- Team context เข้าใจ118- Deployment target กำหนดชัดเจน119- Quality standards ตั้งค่าเสร็จ120- Business constraints ระบุครบถ้วน121- Security requirements กำหนดเสร็จ122- Performance requirements กำหนดเสร็จ