C4モデル(Level 1 System Context + Level 2 Container)を使用してシステム設計図を生成するスキル。Mermaid C4図による視覚化を提供する。
Phase 0 Discovery & Architecture パイプラインの Step 1.5C として、C4モデル(Level 1-2)に基づくシステム設計図を生成するスキルです。feature-pilot から呼ばれる Tier 2 Pipeline スキルであり、NEW_FEATURE 専用、Tier XL でのみ実行されます。
Option B 原則: system-designer は CONTEXT.json を直接変更しません。 feature-architect が CONTEXT.json の
architectureセクションを更新する責任を持ちます。
[feature-pilot] (Tier XL 判定)
│
↓
[feature-architect] → BRIEF.md + CONTEXT.json
│
↓
[domain-modeler] → DOMAIN-MODEL.md (任意)
│
↓
[architecture-selector] → ADR-*.md (任意)
│
↓
[system-designer] → SYSTEM-DESIGN.md (C4 Level 1-2)
│
↓
[Implementation]
| スキル | 責務 | Output | 必須 |
|---|---|---|---|
| feature-architect | 意図確定、コンテキスト収集、BRIEF.md + CONTEXT.json 生成 | BRIEF.md, |
CONTEXT.json| 必須 |
| domain-modeler | ドメインモデル設計 | DOMAIN-MODEL.md | 任意 |
| architecture-selector | アーキテクチャ決定記録 | ADR-*.md | 任意 |
| system-designer | C4 Level 1-2 システム設計図生成 | SYSTEM-DESIGN.md | 任意 |
--feature-id <feature_id> 引数から取得docs/features/<id>-<name>/BRIEF.md が存在すること(必須)docs/features/<id>-<name>/DOMAIN-MODEL.md が存在すれば読み込んで参照docs/features/<id>-<name>/ADR-*.md が存在すれば読み込んで参照検証結果テーブル:
| BRIEF.md | DOMAIN-MODEL.md | ADR-*.md | 判定 |
|---|---|---|---|
| 存在 | 存在 | 存在 | 全参照して実行 |
| 存在 | 存在 | なし | BRIEF + Domain Model 参照 |
| 存在 | なし | 存在 | BRIEF + ADR 参照 |
| 存在 | なし | なし | BRIEF のみで実行 |
| なし | - | - | エラー中断 |
モデル: haiku(境界スキャン)
システム境界の識別:
外部システム/アクターの列挙:
データフローの把握:
既存システムとの統合ポイント確認:
モデル: sonnet(システム分析)
システム全体のコンテキスト図を生成:
Mermaid C4Context 図で表現:
references/mermaid-c4-patterns.md の構文ガイドに従うコンテキスト図の説明を記述:
モデル: sonnet(システム分析)
コンテナの識別:
コンテナ間の通信プロトコル/データフローを定義:
Mermaid C4Container 図で表現:
references/mermaid-c4-patterns.md の構文ガイドに従うモデル: sonnet(図表生成)
SYSTEM-DESIGN.md を生成:
docs/features/<id>-<name>/SYSTEM-DESIGN.md完了報告:
## System Designer 実行完了
**Feature ID**: <feature_id>
**出力ファイル**: docs/features/<id>-<name>/SYSTEM-DESIGN.md
### 生成内容
- C4 Level 1: System Context Diagram
- C4 Level 2: Container Diagram
- Data Flow: Sequence Diagram
- Non-Functional Considerations
> SYSTEM-DESIGN.md を確認してください。
MANDATORY: Task 道具呼び出し時に
modelパラメータを明示
| 作業タイプ | モデル | 根拠 |
|---|---|---|
| 境界スキャン (boundary_scan) | haiku | 単純なファイル探索・列挙作業 |
| システム分析 (system_analysis) | sonnet | C4図の設計・生成には中程度の推論が必要 |
| 図表生成 (diagram_generation) | sonnet | Mermaid構文の正確な生成が必要 |
フォールバック戦略:
# System Design: {feature_title}
## 1. Overview
- Feature ID: {feature_id}
- Generated at: {ISO 8601}
- Input artifacts: BRIEF.md, DOMAIN-MODEL.md (if exists), ADR (if exists)
## 2. System Boundary Analysis
### 2.1 Actors
(本機能に関わるアクター一覧)
### 2.2 External Systems
(本機能に関わる外部システム一覧)
### 2.3 Integration Points
(既存システムとの統合ポイント)
## 3. C4 Level 1: System Context
### 3.1 System Context Diagram
(Mermaid C4Context diagram)
### 3.2 Description
(各要素の説明)
## 4. C4 Level 2: Container
### 4.1 Container Diagram
(Mermaid C4Container diagram)
### 4.2 Container Details
| Container | Technology | Responsibility |
| --------- | ---------- | -------------- |
### 4.3 Communication Protocols
(コンテナ間通信の詳細)
## 5. Data Flow
### 5.1 Primary Data Flow
(Mermaid sequence diagram)
### 5.2 Error Handling Flow
(エラー時のデータフロー)
## 6. Non-Functional Considerations
- Scalability
- Security boundaries
- Performance bottlenecks
## 7. References
- BRIEF: {path}
- Domain Model: {path} (if exists)
- ADR: {path} (if exists)
references/mermaid-c4-patterns.md 参照)# Tier XL でのみ使用
/system-designer --feature-id 029-vocabulary-book
# feature-pilot からの自動呼び出し(Tier XL判定時)
# (ユーザーは別途指定不要)
| 日付 | バージョン | 変更内容 |
|---|---|---|
| 2026-02-11 | v1.0 | Phase 0 Discovery & Architecture パイプライン初期実装 |