# requirements-analysis sub-workflow (v1.3.5 §3.2).
# 신규 구축 메인의 시작점 후보 B — 요구사항 분석. PM 초안 → 스페셜리스트 리뷰(§3.5).
schema_version: 2
id: "requirements-analysis"
name: "Requirements Analysis"
description: "요구사항을 구조 분해(scqa·mece)·User Story(INVEST)·우선순위로 정리 → PRD §요구사항(3대 유형 §3.4.1). 리뷰 게이트(§3.5) 동반."
template_id: "requirements-analysis"

stages:
  - id: stage-1-structure
    agent: product/product-designer
    task: |
      Run the scqa + mece skills to structure the request (situation→complication
      →question, then MECE leaves). PM 초안 단계.
    inputs: []
    outputs:
      - structure.json
    handoff_to: stage-2-stories

  - id: stage-2-stories
    agent: product/product-designer
    task: |
      Run the jobs-stories (User Story · INVEST) + prioritization skills to draft
      the requirements. 요구사항 3대 유형(개발·콘텐츠·리포트, §3.4.1)으로 분류하고
      각 요구사항을 핵심 내용 + 작업 체크리스트로 적는다(디자인 요소는 내포). PM 초안.
    inputs:
      - structure.json
    outputs:
      - requirements-draft.md
    handoff_to: stage-3-review

  - id: stage-3-review
    agent: product/product-designer
    task: |
      리뷰 게이트(§3.5). 각 요구사항·작업 체크리스트를 **담당 실행 스페셜리스트**에게
      리뷰 의뢰한다 — 개발→engineering, 콘텐츠→growth/marketing, 리포트→product/research,
      디자인 내포→design. (Chief 가 유형별로 해당 스페셜리스트를 dispatch.) 리뷰어는
      ① 실행 가능성 ② **오버스펙(버전 목표·스코프 경계 대비 과대 — gold-plating 제거,
      prd R1·R2·R5)** ③ 예외/사이드이펙트 ④ 누락 을 검토해 체크리스트를 **합리적으로
      가감**하고 open_questions[] 로 지적. 반영 후 PRD §요구사항 을 **최종 확정**으로 기입
      (리뷰 전 체크리스트는 binding 아님).
    inputs:
      - requirements-draft.md
    outputs:
      - requirements-section.md
    handoff_to: null
