PRD — Product Requirements Document

Tạo PRD đầy đủ cho tính năng mới, bao gồm user stories, acceptance criteria, và technical requirements.

Cú pháp


PRD bao gồm gì

1

Tổng quan

  • Tên tính năng
  • Mục tiêu
  • Đối tượng sử dụng
  • Phạm vi (in scope / out of scope)
2

User Stories

Format: “As a [role], I want to [action], so that [benefit]”
3

Acceptance Criteria

Format GIVEN/WHEN/THEN:
4

Technical Requirements

  • API endpoints cần thiết
  • Database schema changes
  • Third-party integrations
  • Performance requirements
5

UI/UX

  • Wireframes hoặc mô tả UI
  • User flow
  • Responsive requirements

Output mẫu


PRD và QA

Sau khi PRD xong:
  1. Dev dùng PRD để /plan và /cook
  2. QA dùng PRD để /qa-full:accept (nghiệm thu theo PRD)
  3. QA tạo test cases từ PRD với /test-plan

Lưu ý

  • Lưu PRD tại docs/prd/FXX-ten-tinh-nang.md
  • Đặt tên theo feature code: F01, F02, F03…
  • PRD là nguồn sự thật cho tất cả teams
  • Cập nhật PRD khi requirements thay đổi

Prefix: /docs-project:prd <feature>Tự động tạo/update PRD từ codebase. Phân tích code → extract requirements → viết PRD.
Khi dùng: Khi có code nhưng cần PRD hoặc update PRD từ code thay đổi
Prefix: /estimate <feature>, /estimate --velocity <pts/week>Ước lượng story points dựa trên complexity, dependencies, risk. Calibrate theo team velocity.
Khi dùng: Sau PRD để ước lượng timeline cho sprint planning