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 "mô tả tính năng"
/prd "tạo trang so sánh giá quảng cáo giữa các nền tảng"

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]”
US-F05-01: As a user, I want to add new pages,
so that I can expand my website content.
3

Acceptance Criteria

Format GIVEN/WHEN/THEN:
AC-1: Add Page
GIVEN user is on Page Manager
WHEN user clicks "Add Page" button
THEN a new page is created with default title
AND the page list is updated
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: F05 — Page Manager

## Tổng quan
Cho phép user quản lý các trang trong website builder.

## User Stories
- US-F05-01: Add Page
- US-F05-02: Edit Page
- US-F05-03: Delete Page
- US-F05-04: Reorder Pages

## Acceptance Criteria
### AC-1: Add Page
GIVEN user is on Page Manager
WHEN user clicks "Add Page"
THEN new page created with default title "Untitled Page"
AND page appears in page list
AND page has unique slug

## Technical Requirements
- API: POST /api/sites/:id/pages
- DB: pages table (id, site_id, title, slug, order, is_visible)
- Validation: title max 100 chars, slug unique per site

## Milestones
- Sprint 1: CRUD operations
- Sprint 2: Reorder + visibility

PRD và QA

Sau khi PRD xong:
  1. Dev dùng PRD để /plan/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
# QA nghiệm thu
/qa-full:accept docs/prd/F05-page-manager.md

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