Skip to content

SpecDojo WBS設計ガイド

本ドキュメントは SpecDojo における WBS(Work Breakdown Structure)の設計原則を定義する。

SpecDojoでは、WBSは要求・要件・仕様で定義された

text
WHAT(何を作るか)

を定義するものであり、

text
WHEN(いつやるか)
IN WHAT ORDER(どの順序でやるか)

は Schedule が担う。

1. WBSの役割

SpecDojoにおけるWBSの責務は次の通りである。

項目内容
Deliverable分解成果物の分解
Scope Baselineスコープ基準
Done Criteria完了条件
Deliverable追跡成果物と作業の対応

WBSは スケジュール情報を持たない

2. Deliverable Driven 原則

SpecDojoでは

text
WBS Item = Deliverable責務

と定義する。

つまり

text
作業 = 成果物生成

である。

yaml
wbs:
  - id: WBS-AUTH-API-010
    name: login endpoint
    description: email/password を受け取って JWT を返すログインAPIを対象とする
    owner: EN
    deliverables:
      - path: src/auth/login-controller.ts
        kind: create
    done_criteria: login endpoint が動作する

3. WBS Itemの条件

良いWBS Itemは次の条件を満たす。

条件内容
Deliverable明確producesが明確
Scope明確descriptionで対象が分かる
Done Criteria完了条件が明確
Deterministic成功条件が曖昧でない
Scope Unitスコープ単位

4. WBS粒度

WBS粒度は Deliverable単位とする。

理想

text
1 WBS item = 1責務の成果物

良い

text
login endpoint
password validation
jwt token generation

悪い

text
authentication system

5. WBS構造

SpecDojoでは WBS は domain単位ファイルで管理する。

text
wbs-auth.yaml
wbs-payment.yaml
wbs-infra.yaml

各WBSは leaf deliverable items を列挙する。

6. WBS ID規則

推奨形式

text
WBS-<DOMAIN>-<NUMBER>

text
WBS-AUTH-010
WBS-AUTH-020
WBS-PAYMENT-010

componentを含めてもよい

text
WBS-AUTH-API-010

7. Deliverable定義

Deliverableには次の属性を持たせる。

属性内容
pathrepo path
kindcreate / modify / reference
note任意

yaml
deliverables:
  - path: src/auth/login-service.ts
    kind: create

8. Done Criteria

Done Criteria は スコープ完了条件である。

良い

text
login API が email/password を受け取り JWT を返す

悪い

text
login API を実装する

9. description / done criteria / notes の役割分担

descriptionこのWBS Itemが何を対象にしているか を簡潔に説明する。

done_criteria何をもって完了とみなすか を記述する。

notes補足・例外・注意事項 を書く。

整理すると次の通りである。

属性役割
name短い識別ラベル
descriptionスコープ説明
done_criteria完了条件
notes補足メモ

yaml
wbs:
  - id: WBS-AUTH-API-010
    name: login endpoint
    description: email/password を受け取るログインAPIとJWT返却処理を対象とする
    owner: EN
    deliverables:
      - path: src/auth/login-controller.ts
        kind: create
    done_criteria: login API が email/password を受け取り JWT を返す
    notes: 認証失敗時は 401 を返す

10. WBS Anti-pattern

避けるべき例

巨大スコープ

text
authentication system

Deliverable無し

text
improve performance

曖昧

text
update login logic

11. WBSとScheduleの関係

要求・要件・仕様

text
WHY / WHAT / RULES

WBS

text
WHAT

Schedule

text
WHEN
ORDER

関係

text
Requirements / Specs → WBS → Schedule

Schedule Task は 必ず WBS を参照する

yaml
tasks:
  - id: T-AUTH-API-010
    wbs: WBS-AUTH-API-010

12. 要求・要件・仕様→WBS生成

将来的にAIは

text
Needs / Requirements / Specs → Deliverables → WBS

を生成できる。

入力例

text
login API returns JWT

この入力には、背景・受入条件・非機能要件・仕様詳細を含んでよい。

WBS

text
WBS-AUTH-API-010 create login endpoint
WBS-AUTH-API-020 generate JWT

13. まとめ

SpecDojoのWBSは

text
Deliverable Driven
Deterministic
Scope Baseline

である。

WBSは

text
WHAT

を定義する。