Accept — /qa-full:accept

Chạy Acceptance Test để verify code đúng requirements trước sign-off. Kiểm tra 3 chiều: PRD compliance, test coverage, UI match.

Cú pháp

/qa-full:accept docs/prd/F05-editor.md
/qa-full:accept docs/prd/F05.md --testcase docs/testcases/F05.md
/qa-full:accept docs/prd/F05.md --testcase docs/testcases/F05.md --ui https://staging.site.com/editor
/qa-full:accept docs/prd/F05.md --design screenshot.png

5 Bước

1

Bước A: Đọc PRD (bắt buộc)

Đọc file PRD từ tham số. Trích xuất TẤT CẢ requirements / acceptance criteria.Output: Danh sách requirements (REQ-01, REQ-02…)
2

Bước B: Check Code vs PRD

Với MỖI requirement, Grep/Read tìm implementation trong codebase.Phân loại:
Trạng tháiÝ nghĩa
IMPLEMENTEDCode đầy đủ, đúng requirement
PARTIALCode có nhưng thiếu một phần
MISSINGChưa code
DIFFERENTCode khác với requirement
Output: PRD Compliance table.
3

Bước C: Check Test Cases (nếu có --testcase)

Đọc test cases file. Map mỗi TC với automated test tương ứng.Output: Test Case Coverage table.
4

Bước D: Check UI (nếu có --ui hoặc --design)

  • --ui: Dùng ck:chrome-devtools screenshot + analyze
  • --design: So sánh UI thật vs design image
Output: UI Compliance checklist.
5

Bước E: Acceptance Report

PRD: 5/7 (71%)
Test Cases: 5/7 (71%)
UI: 5/7 (71%)

VERDICT: [READY / NOT READY] FOR SIGN-OFF

Khi nào dùng

  • Feature code xong, cần verify đúng requirements trước sign-off
  • Cuối sprint trước demo cho stakeholders
  • Trước merge PR lớn

Ví dụ output

ACCEPTANCE REPORT — F05 Editor

PRD Compliance:
  REQ-01: Add Page         → IMPLEMENTED
  REQ-02: Edit Page        → IMPLEMENTED
  REQ-03: Delete Page      → PARTIAL (thiếu confirm dialog)
  REQ-04: Reorder Pages    → MISSING
  REQ-05: Page Visibility  → IMPLEMENTED

PRD: 3/5 (60%)
Test Cases: 4/5 (80%)
UI: 4/5 (80%)

VERDICT: NOT READY FOR SIGN-OFF
Missing: REQ-04 Reorder Pages
Partial: REQ-03 Delete Page (thiếu confirm dialog)