create-ai-project 1.20.4 → 1.20.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -45,10 +45,26 @@ Choose Strategy A (TDD) if test skeletons are provided, Strategy B (implementati
45
45
 
46
46
  **Phase structure**: Select based on implementation approach from Design Doc. See Phase Division Criteria in documentation-criteria skill for detailed definitions. Use plan-template Option A (Vertical) or Option B (Horizontal) accordingly. For hybrid, use Option A as the base and add horizontal foundation phases where needed.
47
47
 
48
- ### 5. Define Tasks with Completion Criteria
48
+ ### 5. Map DD Technical Requirements to Tasks
49
+
50
+ Scan the provided Design Doc section by section. Use the category table below as a checklist to extract items:
51
+
52
+ | Category | What to Look For |
53
+ |---|---|
54
+ | impl-target | Components, functions, or data structures to create or modify |
55
+ | connection-switching | Integration points, dependency wiring, switching methods |
56
+ | contract-change | Interface changes, data contract changes, field propagation across boundaries |
57
+ | verification | Verification methods, test boundaries, integration verification points, Verification Method column in Integration Points List |
58
+ | prerequisite | Migration steps, security measures, environment setup |
59
+
60
+ Map each extracted item to a covering task. Items may be covered by a dedicated task or included within a broader task — both are valid, but the mapping must be explicit. Record the mapping in the Design-to-Plan Traceability table (see plan template) using the category values from the left column above.
61
+
62
+ If an item has no covering task, set Gap Status to `gap` with justification in Notes. **When the Traceability table contains any `gap` entry, the plan is in draft status.** Output the plan as draft, but do not finalize it until the user has confirmed each justified gap. Unjustified gaps (no Notes) are errors — add a covering task or provide justification before proceeding.
63
+
64
+ ### 6. Define Tasks with Completion Criteria
49
65
  For each task, derive completion criteria from Design Doc acceptance criteria. Apply the 3-element completion definition (Implementation Complete, Quality Complete, Integration Complete).
50
66
 
51
- ### 6. Produce Work Plan Document
67
+ ### 7. Produce Work Plan Document
52
68
  Write the work plan following the plan template from documentation-criteria skill. Include Phase Structure Diagram and Task Dependency Diagram (mermaid).
53
69
 
54
70
  ## Input Parameters
@@ -73,7 +89,7 @@ Write the work plan following the plan template from documentation-criteria skil
73
89
  3. **Deletion**: Delete after all tasks complete with user approval
74
90
 
75
91
  ## Output Policy
76
- Execute file output immediately (considered approved at execution).
92
+ Execute file output immediately (considered approved at execution). **Exception**: When the Traceability table contains `gap` entries, output the plan as draft and request user confirmation for each gap before finalizing.
77
93
 
78
94
  ## Important Task Design Principles
79
95
 
@@ -221,6 +237,9 @@ When creating work plans, **Phase Structure Diagrams** and **Task Dependency Dia
221
237
  ## Quality Checklist
222
238
 
223
239
  - [ ] Design Doc(s) consistency verification
240
+ - [ ] Design-to-Plan Traceability table complete (all DD technical requirements categorized and mapped)
241
+ - [ ] No `gap` entries without justification
242
+ - [ ] All justified `gap` entries flagged for user confirmation before plan approval
224
243
  - [ ] Verification Strategy extracted from Design Doc and included in plan header
225
244
  - [ ] Phase structure matches implementation approach (vertical → value unit phases, horizontal → layer phases)
226
245
  - [ ] Early verification point placed in Phase 1 (when Verification Strategy specifies one)
@@ -45,10 +45,26 @@ Design Doc、UI Spec、PRD、ADR(提供されている場合)を読み込み
45
45
 
46
46
  **フェーズ構成**: Design Docの実装アプローチに基づいて選択。詳細はdocumentation-criteriaスキルのフェーズ分割基準を参照。plan-templateのOption A(垂直)またはOption B(水平)に従う。ハイブリッドの場合はOption Aをベースに、必要に応じて水平基盤フェーズを追加する。
47
47
 
48
- ### 5. 完了条件付きタスクの定義
48
+ ### 5. DD技術要件のタスクへのマッピング
49
+
50
+ 提供されたDesign Docをセクションごとにスキャンする。以下のカテゴリテーブルをチェックリストとして、該当する項目を抽出する:
51
+
52
+ | カテゴリ | 抽出対象 |
53
+ |---|---|
54
+ | impl-target | 作成・変更が必要なコンポーネント、関数、データ構造 |
55
+ | connection-switching | 統合ポイント、依存関係の配線、切替方式 |
56
+ | contract-change | インターフェース変更、データコントラクト変更、境界を越えるフィールドの伝搬 |
57
+ | verification | 検証手法、テスト境界、統合検証ポイント、統合ポイント一覧の検証方式列 |
58
+ | prerequisite | マイグレーション手順、セキュリティ対策、環境セットアップ |
59
+
60
+ 抽出した各項目をカバーするタスクにマッピングする。専用タスクでカバーしても、より包括的なタスクに内包してもよいが、マッピングは必ず明示すること。マッピング結果は計画テンプレートの設計-計画トレーサビリティ表に、上記左列のカテゴリ値を使用して記録する。
61
+
62
+ カバーするタスクがない項目はギャップステータスを`gap`とし、備考に理由を記載する。**トレーサビリティ表に`gap`が1件でも含まれる場合、計画書はドラフト状態とする。** ドラフトとして出力するが、ユーザーが各ギャップを確認するまで確定しない。理由なしのギャップ(備考が空)はエラーとして扱い、カバーするタスクを追加するか理由を記載してから進める。
63
+
64
+ ### 6. 完了条件付きタスクの定義
49
65
  各タスクについて、Design Docの受入条件から完了条件を導出。3要素の完了定義(実装完了、品質完了、統合完了)を適用。
50
66
 
51
- ### 6. 作業計画書の作成
67
+ ### 7. 作業計画書の作成
52
68
  documentation-criteriaスキルの計画テンプレートに従って作業計画書を記述。フェーズ構成図とタスク依存関係図(mermaid)を含める。
53
69
 
54
70
  ## Input Parameters
@@ -72,7 +88,7 @@ documentation-criteriaスキルの計画テンプレートに従って作業計
72
88
  2. **更新**: 各フェーズ完了時に進捗更新(チェックボックス)
73
89
  3. **削除**: 全タスク完了後、ユーザー承認を得て削除
74
90
  ## 出力方針
75
- ファイル出力は即座に実行(実行時点で承認済み)。
91
+ ファイル出力は即座に実行(実行時点で承認済み)。**例外**: トレーサビリティ表に`gap`が含まれる場合は、計画書をドラフトとして出力し、各ギャップについてユーザー確認を得てから確定する。
76
92
 
77
93
  ## タスク設計の重要原則
78
94
 
@@ -220,6 +236,9 @@ Design Docの技術的依存関係と実装アプローチに基づいてフェ
220
236
  ## 品質チェックリスト
221
237
 
222
238
  - [ ] Design Doc(複数時は各Doc)の整合性確認
239
+ - [ ] 設計-計画トレーサビリティ表の完成(DDの全技術要件がカテゴリ分類・マッピング済み)
240
+ - [ ] 理由なしの`gap`がないこと
241
+ - [ ] 理由ありの`gap`は計画承認前にユーザー確認を実施
223
242
  - [ ] Design Docから検証戦略を抽出し計画書ヘッダーに記載
224
243
  - [ ] フェーズ構成が実装アプローチと整合(垂直 → 価値単位フェーズ、水平 → レイヤーフェーズ)
225
244
  - [ ] 早期検証ポイントをPhase 1に配置(検証戦略で指定されている場合)
@@ -120,6 +120,12 @@ No Ripple Effect:
120
120
  - [Explicitly specify unaffected features]
121
121
  ```
122
122
 
123
+ ### Interface Change Matrix
124
+
125
+ | Existing | New | Conversion Required | Compatibility Method |
126
+ |----------|-----|--------------------|--------------------|
127
+ | [Function/method/operation name] | [Function/method/operation name] | [Yes/No] | [Approach: adapter, wrapper, deprecation, etc.] |
128
+
123
129
  ### Architecture Overview
124
130
 
125
131
  [How this feature is positioned within the overall system]
@@ -132,10 +138,10 @@ No Ripple Effect:
132
138
 
133
139
  ### Integration Points List
134
140
 
135
- | Integration Point | Location | Old Implementation | New Implementation | Switching Method |
136
- |-------------------|----------|-------------------|-------------------|------------------|
137
- | Integration Point 1 | [Class/Function] | [Existing Process] | [New Process] | [DI/Factory etc.] |
138
- | Integration Point 2 | [Another Location] | [Existing] | [New] | [Method] |
141
+ | Integration Point | Location | Old Implementation | New Implementation | Switching Method | Verification Method |
142
+ |-------------------|----------|-------------------|-------------------|------------------|-------------------|
143
+ | Integration Point 1 | [Class/Function] | [Existing Process] | [New Process] | [DI/Factory etc.] | [How to verify this switching works] |
144
+ | Integration Point 2 | [Another Location] | [Existing] | [New] | [Method] | [Verification approach] |
139
145
 
140
146
  ### Main Components
141
147
 
@@ -24,6 +24,19 @@ Related Issue/PR: #XXX (if any)
24
24
  - **Success criteria**: [extracted from Design Doc]
25
25
  - **Failure response**: [extracted from Design Doc]
26
26
 
27
+ ## Design-to-Plan Traceability
28
+
29
+ Maps each Design Doc technical requirement to the covering task(s). One row per extracted item. Every row must have at least one covering task, or an explicit gap justification.
30
+
31
+ | DD Section | DD Item | Category | Covered By Task(s) | Gap Status | Notes |
32
+ |---|---|---|---|---|---|
33
+ | [Section name from DD] | [Specific item] | impl-target / connection-switching / contract-change / verification / prerequisite | [Phase X Task Y] | covered | |
34
+ | Security Considerations | Input validation for API | prerequisite | — | gap | Deferred to Phase 2 per user decision |
35
+
36
+ **Category values**: `impl-target` (implementation target), `connection-switching` (connection/switching/registration), `contract-change` (contract change and propagation), `verification` (verification requirement), `prerequisite` (prerequisite work)
37
+
38
+ **Gap Status values**: `covered` (task exists), `gap` (no task — requires justification in Notes, user confirmation required before plan approval)
39
+
27
40
  ## Objective
28
41
  [Why this change is necessary, what problem it solves]
29
42
 
@@ -301,7 +301,13 @@ Construct the prompt from the agent's Input Parameters section and the deliverab
301
301
 
302
302
  #### technical-designer → work-planner
303
303
 
304
- **Pass to work-planner**: Design Doc path. Work-planner extracts Verification Strategy from the Design Doc and includes it in the work plan header.
304
+ **Pass to work-planner**: Design Doc path. Work-planner scans all DD sections and extracts technical requirements per its Step 5 categories (impl-target, connection-switching, contract-change, verification, prerequisite), then produces a Design-to-Plan Traceability table.
305
+
306
+ **Gap handling (orchestrator responsibility)**: If work-planner outputs a draft plan containing `gap` entries, the orchestrator MUST:
307
+ 1. Present the gap entries to the user with justifications
308
+ 2. Keep the plan in draft status until the user confirms each gap
309
+ 3. Do NOT pass the plan to downstream agents (task-decomposer, etc.) until all gaps are resolved or confirmed
310
+ Unjustified gaps are errors — return to work-planner to add covering tasks or justification.
305
311
 
306
312
  #### *1 acceptance-test-generator → work-planner
307
313
 
@@ -120,6 +120,12 @@ unknowns:
120
120
  - [明示的に影響を受けない機能]
121
121
  ```
122
122
 
123
+ ### インターフェース変更マトリクス
124
+
125
+ | 既存 | 新規 | 変換要否 | 互換方式 |
126
+ |------|------|---------|---------|
127
+ | [関数/メソッド/操作名] | [関数/メソッド/操作名] | [Yes/No] | [手法: adapter, wrapper, deprecation等] |
128
+
123
129
  ### アーキテクチャ概要
124
130
 
125
131
  [この機能がシステム全体の中でどのように位置づけられるか]
@@ -132,10 +138,10 @@ unknowns:
132
138
 
133
139
  ### 統合ポイント一覧
134
140
 
135
- | 統合ポイント | 箇所 | 旧実装 | 新実装 | 切替方式 |
136
- |------------|-----|-------|-------|---------|
137
- | 統合ポイント1 | [クラス/関数] | [既存処理] | [新処理] | [DI/Factoryなど] |
138
- | 統合ポイント2 | [別の箇所] | [既存] | [新規] | [方式] |
141
+ | 統合ポイント | 箇所 | 旧実装 | 新実装 | 切替方式 | 検証方式 |
142
+ |------------|-----|-------|-------|---------|---------|
143
+ | 統合ポイント1 | [クラス/関数] | [既存処理] | [新処理] | [DI/Factoryなど] | [この切替が動作することの検証方法] |
144
+ | 統合ポイント2 | [別の箇所] | [既存] | [新規] | [方式] | [検証方法] |
139
145
 
140
146
  ### 主要コンポーネント
141
147
 
@@ -24,6 +24,19 @@
24
24
  - **成功基準**: [Design Docから抽出]
25
25
  - **失敗時の対応**: [Design Docから抽出]
26
26
 
27
+ ## 設計-計画トレーサビリティ
28
+
29
+ Design Docの各技術要件をカバーするタスクへのマッピング。抽出した項目ごとに1行。各行には対応タスクが少なくとも1つ必要。タスクがない場合は明示的なギャップ理由が必要。
30
+
31
+ | DDセクション | DD項目 | カテゴリ | カバーするタスク | ギャップステータス | 備考 |
32
+ |---|---|---|---|---|---|
33
+ | [DDのセクション名] | [具体的な項目] | impl-target / connection-switching / contract-change / verification / prerequisite | [Phase X タスクY] | covered | |
34
+ | セキュリティ考慮事項 | APIの入力バリデーション | prerequisite | — | gap | ユーザー判断によりPhase 2に延期 |
35
+
36
+ **カテゴリ値**: `impl-target`(実装対象)、`connection-switching`(接続/切替/登録)、`contract-change`(コントラクト変更と伝搬)、`verification`(検証要件)、`prerequisite`(前提作業)
37
+
38
+ **ギャップステータス値**: `covered`(タスクあり)、`gap`(タスクなし — 備考に理由必須、計画承認前にユーザー確認が必要)
39
+
27
40
  ## 目的
28
41
  [なぜこの変更が必要か、何を解決するか]
29
42
 
@@ -297,7 +297,13 @@ requirement-analyzerが複数レイヤー(backend + frontend)にまたがる
297
297
 
298
298
  #### technical-designer → work-planner
299
299
 
300
- **work-plannerへの入力**: Design Docパス。work-plannerがDesign Docから検証戦略を抽出し、作業計画書ヘッダーに記載する。
300
+ **work-plannerへの入力**: Design Docパス。work-plannerがDDの全セクションをスキャンし、Step 5のカテゴリ(impl-target, connection-switching, contract-change, verification, prerequisite)に沿って技術要件を抽出した上で、設計-計画トレーサビリティ表を作成する。
301
+
302
+ **ギャップ発生時の制御(オーケストレーターの責務)**: work-plannerが`gap`を含むドラフト計画書を出力した場合、オーケストレーターは以下を実行する:
303
+ 1. ギャップ項目と理由をユーザーに提示する
304
+ 2. ユーザーが各ギャップを確認するまで計画書をドラフト状態に保つ
305
+ 3. 全ギャップの解消または確認が完了するまで、後続エージェント(task-decomposer等)に計画書を渡さない
306
+ 理由なしのギャップはエラーとして扱い、work-plannerに差し戻してカバーするタスクの追加または理由の記載を求める。
301
307
 
302
308
  #### *1 acceptance-test-generator → work-planner
303
309
 
package/CHANGELOG.md CHANGED
@@ -5,6 +5,22 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.20.5] - 2026-04-06
9
+
10
+ ### Added
11
+
12
+ - **work-planner: Design-to-Plan Traceability** (agents) — New Step 5 scans all DD sections and extracts technical requirements into five categories (impl-target, connection-switching, contract-change, verification, prerequisite). Each item is mapped to a covering task in a Traceability table. Items without a covering task are marked as `gap` with mandatory justification; the plan remains in draft status until all gaps are user-confirmed
13
+ - **plan-template: Design-to-Plan Traceability section** (skills) — Traceability table template with sample rows for both `covered` and `gap` entries, category value definitions, and gap status definitions
14
+ - **design-template: Interface Change Matrix** (skills) — New section after Change Impact Map documenting existing-to-new interface mappings with conversion requirements and compatibility methods
15
+ - **design-template: Verification Method column** (skills) — Integration Points List expanded with Verification Method column to explicitly capture how each switching point is verified
16
+ - **orchestration-guide: Gap handling for work-planner handoff** (skills) — Orchestrator must present gap entries to user, keep plan in draft until confirmed, and block downstream agents (task-decomposer, etc.) until all gaps are resolved. Unjustified gaps are errors returned to work-planner
17
+
18
+ ### Changed
19
+
20
+ - **work-planner: Output Policy gap exception** (agents) — Added explicit exception to the immediate-output policy: plans containing `gap` entries are output as draft and require user confirmation before finalizing
21
+ - **work-planner: Category table simplified** (agents) — Removed Task Requirement column (redundant with Traceability table's Category column). Category values now use short codes (impl-target, etc.) matching the Traceability table directly
22
+ - **orchestration-guide: technical-designer → work-planner handoff deduplicated** (skills) — Replaced inline category descriptions with reference to work-planner Step 5, establishing work-planner as single source of truth for category definitions
23
+
8
24
  ## [1.20.4] - 2026-04-05
9
25
 
10
26
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-ai-project",
3
- "version": "1.20.4",
3
+ "version": "1.20.5",
4
4
  "packageManager": "npm@10.8.2",
5
5
  "description": "TypeScript boilerplate with skills and sub-agents for Claude Code. Prevents context exhaustion through role-based task splitting.",
6
6
  "keywords": [