Chuyển tới nội dung chính
Phiên bản: 1.0.0

Workflow Quickstart (BMAD)

Quy trình phát triển tính năng theo phương pháp BMAD — tách biệt giai đoạn Planning và Execution.

2 Phase cốt lõi

PHASE 1: PLANNING → web UI (Claude.ai / ChatGPT)
PHASE 2: EXECUTION → IDE (VS Code / Cursor)
important

Không bao giờ bắt đầu code trước khi story file có status = ready.

Phase 1: Planning

Bước 1 — Viết PRD

Gọi Product Manager agent với /pm hoặc /prd:

@Product Manager viết PRD cho [mô tả feature]

Output: docs/prd-[feature-slug].md

Bước 2 — Tạo Story files

Gọi Scrummaster agent với /sm:

@Scrummaster breakdown epic E01 từ docs/prd-[feature-slug].md

Output: docs/stories/story-[NNN]-[slug].md

Story file phải có đầy đủ (trước khi status → ready):

  • User story (as/want/so that)
  • Acceptance Criteria có thể test
  • Schema snippet từ migration thực tế
  • File paths chính xác
  • Env vars cần thiết

Phase 2: Execution

Bước 3 — Developer Agent đọc story và code

Developer agent (ví dụ sf-dev-forge) đọc story file và code mà không cần hỏi thêm.

@sf-dev-forge implement story docs/stories/story-042-checkout-flow.md

Bước 4 — Verify

npx tsc --noEmit # 0 errors
npm run build # build pass
npm run lint # clean

Bước 5 — Update story status

| **Status** | `done` |

Templates

TemplatePath
PRD_SHARED/templates/prd.md
Epic_SHARED/templates/epic.md
Story_SHARED/templates/story.md