universal-dev-standards 6.8.0 → 6.9.0

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.
Files changed (194) hide show
  1. package/bin/uds.js +12 -2
  2. package/bundled/ai/standards/acceptance-criteria-traceability.ai.yaml +14 -2
  3. package/bundled/ai/standards/adr-standards.ai.yaml +14 -2
  4. package/bundled/ai/standards/code-review.ai.yaml +13 -3
  5. package/bundled/ai/standards/commit-message.ai.yaml +8 -4
  6. package/bundled/ai/standards/deferred-item-exit.ai.yaml +225 -0
  7. package/bundled/ai/standards/feature-discovery-standards.ai.yaml +14 -2
  8. package/bundled/ai/standards/governance-layer.ai.yaml +128 -2
  9. package/bundled/ai/standards/logging.ai.yaml +2 -2
  10. package/bundled/ai/standards/retrospective-standards.ai.yaml +14 -2
  11. package/bundled/ai/standards/reverse-engineering-standards.ai.yaml +73 -2
  12. package/bundled/ai/standards/security-standards.ai.yaml +2 -2
  13. package/bundled/ai/standards/spec-driven-development.ai.yaml +14 -2
  14. package/bundled/ai/standards/tech-debt-standards.ai.yaml +87 -3
  15. package/bundled/ai/standards/turn-completion-integrity.ai.yaml +131 -0
  16. package/bundled/core/acceptance-criteria-traceability.md +5 -2
  17. package/bundled/core/adr-standards.md +26 -2
  18. package/bundled/core/code-review-checklist.md +5 -2
  19. package/bundled/core/context-aware-loading.md +1 -1
  20. package/bundled/core/deferred-item-exit.md +254 -0
  21. package/bundled/core/feature-discovery-standards.md +5 -1
  22. package/bundled/core/governance-layer.md +114 -2
  23. package/bundled/core/retrospective-standards.md +4 -2
  24. package/bundled/core/reverse-engineering-standards.md +81 -2
  25. package/bundled/core/spec-driven-development.md +8 -2
  26. package/bundled/core/tech-debt-standards.md +67 -8
  27. package/bundled/core/turn-completion-integrity.md +196 -0
  28. package/bundled/hooks/check-dangerous-cmd.mjs +60 -0
  29. package/bundled/hooks/check-logging-standard.mjs +59 -0
  30. package/bundled/hooks/check-turn-completion.mjs +233 -0
  31. package/bundled/hooks/inject-standards.mjs +183 -0
  32. package/bundled/hooks/telemetry-wrapper.mjs +77 -0
  33. package/bundled/hooks/turn-completion/detect.mjs +99 -0
  34. package/bundled/hooks/turn-completion/locales/en.mjs +159 -0
  35. package/bundled/hooks/turn-completion/locales/zh-TW.mjs +166 -0
  36. package/bundled/hooks/validate-commit-msg.mjs +104 -0
  37. package/bundled/locales/zh-CN/CHANGELOG.md +47 -3
  38. package/bundled/locales/zh-CN/CLAUDE.md +1 -1
  39. package/bundled/locales/zh-CN/README.md +2 -2
  40. package/bundled/locales/zh-CN/SECURITY.md +1 -1
  41. package/bundled/locales/zh-CN/core/adr-standards.md +1 -1
  42. package/bundled/locales/zh-CN/core/governance-layer.md +118 -6
  43. package/bundled/locales/zh-CN/core/retrospective-standards.md +1 -1
  44. package/bundled/locales/zh-CN/core/tech-debt-standards.md +71 -4
  45. package/bundled/locales/zh-CN/core/turn-completion-integrity.md +190 -0
  46. package/bundled/locales/zh-CN/docs/CHEATSHEET.md +8 -1
  47. package/bundled/locales/zh-CN/docs/CLI-INIT-OPTIONS.md +29 -68
  48. package/bundled/locales/zh-CN/docs/FEATURE-REFERENCE.md +25 -15
  49. package/bundled/locales/zh-CN/docs/USAGE-MODES-COMPARISON.md +1 -2
  50. package/bundled/locales/zh-CN/integrations/google-antigravity/{INSTRUCTIONS.md → AGENTS.md} +1 -1
  51. package/bundled/locales/zh-CN/integrations/google-antigravity/README.md +3 -3
  52. package/bundled/locales/zh-CN/skills/atdd-assistant/SKILL.md +2 -0
  53. package/bundled/locales/zh-CN/skills/bdd-assistant/SKILL.md +2 -0
  54. package/bundled/locales/zh-CN/skills/brainstorm-assistant/SKILL.md +22 -12
  55. package/bundled/locales/zh-CN/skills/brainstorm-assistant/guide.md +12 -9
  56. package/bundled/locales/zh-CN/skills/code-review-assistant/SKILL.md +1 -0
  57. package/bundled/locales/zh-CN/skills/commands/brainstorm.md +17 -13
  58. package/bundled/locales/zh-CN/skills/commands/config.md +0 -1
  59. package/bundled/locales/zh-CN/skills/commands/init.md +1 -2
  60. package/bundled/locales/zh-CN/skills/commit-standards/SKILL.md +2 -0
  61. package/bundled/locales/zh-CN/skills/contract-test-assistant/SKILL.md +1 -0
  62. package/bundled/locales/zh-CN/skills/dev-methodology/SKILL.md +2 -0
  63. package/bundled/locales/zh-CN/skills/observability-assistant/SKILL.md +1 -0
  64. package/bundled/locales/zh-CN/skills/project-structure-guide/SKILL.md +1 -0
  65. package/bundled/locales/zh-CN/skills/release-standards/SKILL.md +3 -0
  66. package/bundled/locales/zh-CN/skills/requirement-assistant/SKILL.md +2 -0
  67. package/bundled/locales/zh-CN/skills/reverse-engineer/SKILL.md +3 -0
  68. package/bundled/locales/zh-CN/skills/runbook-assistant/SKILL.md +1 -0
  69. package/bundled/locales/zh-CN/skills/slo-assistant/SKILL.md +1 -0
  70. package/bundled/locales/zh-CN/skills/tdd-assistant/SKILL.md +2 -0
  71. package/bundled/locales/zh-TW/CHANGELOG.md +47 -3
  72. package/bundled/locales/zh-TW/CLAUDE.md +1 -1
  73. package/bundled/locales/zh-TW/README.md +2 -2
  74. package/bundled/locales/zh-TW/SECURITY.md +1 -1
  75. package/bundled/locales/zh-TW/core/acceptance-criteria-traceability.md +2 -0
  76. package/bundled/locales/zh-TW/core/adr-standards.md +26 -5
  77. package/bundled/locales/zh-TW/core/code-review-checklist.md +2 -0
  78. package/bundled/locales/zh-TW/core/container-image-standards.md +2 -2
  79. package/bundled/locales/zh-TW/core/contract-testing-standards.md +2 -2
  80. package/bundled/locales/zh-TW/core/cross-flow-regression.md +8 -7
  81. package/bundled/locales/zh-TW/core/data-contract.md +2 -2
  82. package/bundled/locales/zh-TW/core/data-migration-testing.md +2 -2
  83. package/bundled/locales/zh-TW/core/data-pipeline.md +2 -2
  84. package/bundled/locales/zh-TW/core/deferred-item-exit.md +251 -0
  85. package/bundled/locales/zh-TW/core/documentation-writing-standards.md +228 -3
  86. package/bundled/locales/zh-TW/core/full-coverage-testing.md +15 -2
  87. package/bundled/locales/zh-TW/core/governance-layer.md +118 -5
  88. package/bundled/locales/zh-TW/core/iac-design-principles.md +2 -2
  89. package/bundled/locales/zh-TW/core/incident-response.md +2 -2
  90. package/bundled/locales/zh-TW/core/model-provenance.md +4 -2
  91. package/bundled/locales/zh-TW/core/pii-classification.md +42 -6
  92. package/bundled/locales/zh-TW/core/prd-standards.md +4 -2
  93. package/bundled/locales/zh-TW/core/product-metrics-standards.md +4 -2
  94. package/bundled/locales/zh-TW/core/release-readiness-gate.md +2 -2
  95. package/bundled/locales/zh-TW/core/resource-cost-boundary.md +2 -2
  96. package/bundled/locales/zh-TW/core/retrospective-standards.md +5 -3
  97. package/bundled/locales/zh-TW/core/reverse-engineering-standards.md +83 -5
  98. package/bundled/locales/zh-TW/core/runbook.md +2 -2
  99. package/bundled/locales/zh-TW/core/schema-evolution.md +2 -2
  100. package/bundled/locales/zh-TW/core/secret-management-standards.md +2 -2
  101. package/bundled/locales/zh-TW/core/slo-sli.md +2 -2
  102. package/bundled/locales/zh-TW/core/spec-driven-development.md +2 -0
  103. package/bundled/locales/zh-TW/core/tech-debt-standards.md +71 -4
  104. package/bundled/locales/zh-TW/core/turn-completion-integrity.md +190 -0
  105. package/bundled/locales/zh-TW/core/user-journey-testing.md +2 -2
  106. package/bundled/locales/zh-TW/core/user-story-mapping.md +2 -2
  107. package/bundled/locales/zh-TW/core/verification-oracle.md +2 -2
  108. package/bundled/locales/zh-TW/docs/CHEATSHEET.md +8 -1
  109. package/bundled/locales/zh-TW/docs/CLI-INIT-OPTIONS.md +29 -68
  110. package/bundled/locales/zh-TW/docs/FEATURE-REFERENCE.md +25 -15
  111. package/bundled/locales/zh-TW/docs/USAGE-MODES-COMPARISON.md +1 -2
  112. package/bundled/locales/zh-TW/integrations/google-antigravity/{INSTRUCTIONS.md → AGENTS.md} +1 -1
  113. package/bundled/locales/zh-TW/integrations/google-antigravity/README.md +3 -3
  114. package/bundled/locales/zh-TW/skills/adr-assistant/SKILL.md +1 -1
  115. package/bundled/locales/zh-TW/skills/atdd-assistant/SKILL.md +2 -0
  116. package/bundled/locales/zh-TW/skills/bdd-assistant/SKILL.md +2 -0
  117. package/bundled/locales/zh-TW/skills/brainstorm-assistant/SKILL.md +22 -12
  118. package/bundled/locales/zh-TW/skills/brainstorm-assistant/guide.md +12 -9
  119. package/bundled/locales/zh-TW/skills/code-review-assistant/SKILL.md +1 -0
  120. package/bundled/locales/zh-TW/skills/commands/brainstorm.md +17 -13
  121. package/bundled/locales/zh-TW/skills/commands/config.md +0 -1
  122. package/bundled/locales/zh-TW/skills/commands/init.md +1 -2
  123. package/bundled/locales/zh-TW/skills/commit-standards/SKILL.md +2 -0
  124. package/bundled/locales/zh-TW/skills/contract-test-assistant/SKILL.md +2 -1
  125. package/bundled/locales/zh-TW/skills/dev-methodology/SKILL.md +2 -0
  126. package/bundled/locales/zh-TW/skills/dev-workflow-guide/SKILL.md +1 -1
  127. package/bundled/locales/zh-TW/skills/knowledge-graph/guide.md +2 -2
  128. package/bundled/locales/zh-TW/skills/migration-assistant/SKILL.md +1 -1
  129. package/bundled/locales/zh-TW/skills/observability-assistant/SKILL.md +1 -0
  130. package/bundled/locales/zh-TW/skills/project-discovery/SKILL.md +1 -0
  131. package/bundled/locales/zh-TW/skills/project-structure-guide/SKILL.md +1 -0
  132. package/bundled/locales/zh-TW/skills/release-standards/SKILL.md +3 -0
  133. package/bundled/locales/zh-TW/skills/requirement-assistant/SKILL.md +2 -0
  134. package/bundled/locales/zh-TW/skills/reverse-engineer/SKILL.md +3 -0
  135. package/bundled/locales/zh-TW/skills/runbook-assistant/SKILL.md +1 -0
  136. package/bundled/locales/zh-TW/skills/slo-assistant/SKILL.md +1 -0
  137. package/bundled/locales/zh-TW/skills/tdd-assistant/SKILL.md +2 -0
  138. package/bundled/skills/atdd-assistant/SKILL.md +2 -0
  139. package/bundled/skills/bdd-assistant/SKILL.md +2 -0
  140. package/bundled/skills/brainstorm-assistant/SKILL.md +31 -13
  141. package/bundled/skills/brainstorm-assistant/guide.md +9 -6
  142. package/bundled/skills/code-review-assistant/SKILL.md +1 -0
  143. package/bundled/skills/commands/brainstorm.md +12 -9
  144. package/bundled/skills/commands/config.md +0 -1
  145. package/bundled/skills/commands/init.md +2 -3
  146. package/bundled/skills/commit-standards/SKILL.md +2 -0
  147. package/bundled/skills/contract-test-assistant/SKILL.md +1 -0
  148. package/bundled/skills/dev-methodology/SKILL.md +4 -0
  149. package/bundled/skills/observability-assistant/SKILL.md +1 -0
  150. package/bundled/skills/project-discovery/SKILL.md +1 -0
  151. package/bundled/skills/project-structure-guide/SKILL.md +1 -0
  152. package/bundled/skills/release-standards/SKILL.md +3 -0
  153. package/bundled/skills/requirement-assistant/SKILL.md +2 -0
  154. package/bundled/skills/reverse-engineer/SKILL.md +3 -0
  155. package/bundled/skills/runbook-assistant/SKILL.md +1 -0
  156. package/bundled/skills/slo-assistant/SKILL.md +1 -0
  157. package/bundled/skills/tdd-assistant/SKILL.md +2 -0
  158. package/bundled/templates/.ai-context.yaml.template +194 -0
  159. package/bundled/templates/CLAUDE.md.template +145 -0
  160. package/bundled/templates/DESIGN.md +237 -0
  161. package/bundled/templates/SKILL-BRIEF-TEMPLATE.md +57 -0
  162. package/bundled/templates/SKILL-CANDIDATES.md +39 -0
  163. package/bundled/templates/gates/check-error-exit.mjs +309 -0
  164. package/bundled/templates/mcp-config.json +10 -0
  165. package/bundled/templates/methodology-template.yaml +209 -0
  166. package/bundled/templates/migration-template.md +408 -0
  167. package/bundled/templates/requirement-checklist.md +410 -0
  168. package/bundled/templates/requirement-document-template.md +591 -0
  169. package/bundled/templates/requirement-template.md +881 -0
  170. package/bundled/templates/reverse-spec-template.md +409 -0
  171. package/bundled/templates/test-case-template.md +74 -0
  172. package/bundled/templates/test-plan-template.md +74 -0
  173. package/package.json +7 -5
  174. package/src/commands/audit.js +82 -0
  175. package/src/commands/check.js +66 -10
  176. package/src/commands/init.js +161 -16
  177. package/src/commands/update.js +286 -14
  178. package/src/compilers/claude-code-compiler.js +4 -1
  179. package/src/config/ai-agent-paths.js +62 -17
  180. package/src/core/constants.js +42 -11
  181. package/src/core/manifest.js +201 -3
  182. package/src/core/paths.js +2 -2
  183. package/src/i18n/messages.js +6 -29
  184. package/src/installers/hooks-installer.js +167 -75
  185. package/src/installers/integration-installer.js +9 -5
  186. package/src/prompts/init.js +14 -14
  187. package/src/utils/detector.js +21 -1
  188. package/src/utils/effect-boundary.js +1093 -0
  189. package/src/utils/hasher.js +166 -1
  190. package/src/utils/hook-stats.js +1 -1
  191. package/src/utils/integration-generator.js +79 -1
  192. package/src/utils/reference-sync.js +4 -1
  193. package/src/utils/yaml-generator.js +51 -9
  194. package/standards-registry.json +31 -8
@@ -0,0 +1,410 @@
1
+ # 需求確認書撰寫檢查清單
2
+
3
+ **版本**: 1.0.0
4
+ **建立日期**: 2025-01-13
5
+ **用途**: 確保需求確認書的完整性與品質
6
+
7
+ ---
8
+
9
+ ## 使用方式
10
+
11
+ 在完成需求確認書後,使用本檢查清單進行自我檢查。每完成一個項目就勾選 `[x]`,確保沒有遺漏任何重要內容。
12
+
13
+ ---
14
+
15
+ ## 階段一: 需求分析階段
16
+
17
+ ### 1.1 需求收集
18
+
19
+ - [ ] 已與客戶/產品經理確認功能需求
20
+ - [ ] 已確認功能的優先級 (必須/應該/可以)
21
+ - [ ] 已了解功能的使用情境與目標使用者
22
+ - [ ] 已確認預期上線時間與里程碑
23
+ - [ ] 已評估是否需要外部依賴 (第三方 API、套件等)
24
+
25
+ ### 1.2 技術可行性評估
26
+
27
+ - [ ] 已評估現有架構是否支援此功能
28
+ - [ ] 已確認是否需要資料庫結構變更
29
+ - [ ] 已確認是否需要新增外部套件
30
+ - [ ] 已評估效能影響 (記憶體、CPU、網路)
31
+ - [ ] 已評估安全性風險
32
+ - [ ] 已評估向後相容性
33
+
34
+ ### 1.3 範圍確認
35
+
36
+ - [ ] 已明確定義功能範圍 (In Scope)
37
+ - [ ] 已明確定義不包含的範圍 (Out of Scope)
38
+ - [ ] 已確認是否影響其他模組
39
+ - [ ] 已確認是否需要修改 API
40
+ - [ ] 已確認是否需要資料遷移
41
+
42
+ ---
43
+
44
+ ## 階段二: 文件撰寫階段
45
+
46
+ ### 2.1 文件標頭 (必填)
47
+
48
+ - [ ] ✅ 文件標題使用繁體中文
49
+ - [ ] ✅ 版本號正確 (初版使用 v1.0)
50
+ - [ ] ✅ 建立日期與最後更新日期正確
51
+ - [ ] ✅ 專案名稱已填寫
52
+ - [ ] ✅ 功能名稱 (英文) 已填寫
53
+
54
+ ---
55
+
56
+ ### 2.2 第一章: 功能概述
57
+
58
+ - [ ] ✅ 1-2 段功能說明完整
59
+ - [ ] ✅ 說明「為什麼」需要此功能
60
+ - [ ] ✅ 說明「做什麼」(核心功能)
61
+ - [ ] ✅ 說明與現有系統的關係
62
+
63
+ ---
64
+
65
+ ### 2.3 第二章: 核心需求確認
66
+
67
+ - [ ] ✅ 功能需求已列出 (FR1, FR2, ...)
68
+ - [ ] ✅ 每個需求有明確的驗收標準
69
+ - [ ] ✅ 非功能需求已列出 (效能、安全、可用性)
70
+ - [ ] ✅ 資料流程圖已繪製
71
+ - [ ] ✅ 所有需求可驗證、可測試
72
+ - [ ] ⚠️ 需求使用「必須」、「應該」、「可以」區分優先級
73
+ - [ ] ⚠️ 效能需求有具體數字 (如「< 5ms」)
74
+
75
+ ---
76
+
77
+ ### 2.4 第三章: 技術方案概要
78
+
79
+ - [ ] ✅ 資料庫設計已說明 (如有變更)
80
+ - [ ] ✅ 核心技術選型已說明
81
+ - [ ] ✅ 架構設計已說明 (分層、元件)
82
+ - [ ] ✅ 資料流程圖已繪製
83
+ - [ ] ⚠️ 技術選型有合理理由
84
+ - [ ] ⚠️ 資料表設計包含所有必要欄位
85
+
86
+ ---
87
+
88
+ ### 2.5 第四章: 新舊架構比較 (新功能必填)
89
+
90
+ **🔴 如果是新功能,以下項目必須完成:**
91
+
92
+ - [ ] ✅ 4.1 現有架構 (舊版) 已完成
93
+ - [ ] 架構圖已繪製
94
+ - [ ] 元件清單已列出
95
+ - [ ] 現有邏輯程式碼已引用 (File:LineNumber)
96
+ - [ ] ✅ 4.2 新架構 (新版) 已完成
97
+ - [ ] 新架構圖已繪製
98
+ - [ ] 新增元件清單已列出
99
+ - [ ] 新邏輯程式碼片段已提供
100
+ - [ ] ✅ 4.3 新舊架構對比表已完成
101
+ - [ ] 至少 5 個比較項目
102
+ - [ ] 使用 ✅ ❌ ⚠️ 標記差異
103
+ - [ ] ✅ 4.4 記憶體/效能影響對比已完成
104
+ - [ ] 量化數據 (如「+12 MB」)
105
+
106
+ **🟡 如果是獨立新模組,可簡化或省略**
107
+
108
+ ---
109
+
110
+ ### 2.6 第五章: 新舊流程比較 (新功能必填)
111
+
112
+ **🔴 如果是新功能,以下項目必須完成:**
113
+
114
+ - [ ] ✅ 5.1 現有流程 (舊版) 已完成
115
+ - [ ] 流程圖已繪製
116
+ - [ ] 關鍵時間點表已列出
117
+ - [ ] 總延遲已標註
118
+ - [ ] ✅ 5.2 新流程 (新版) 已完成
119
+ - [ ] 新流程圖已繪製 (標註 [NEW])
120
+ - [ ] 關鍵時間點表已列出
121
+ - [ ] 檢查耗時對比已說明
122
+ - [ ] ✅ 5.3 流程對比表已完成
123
+ - [ ] ⚠️ 5.4 多種模式的流程比較 (如適用)
124
+ - [ ] ✅ 5.5 效能影響分析已完成
125
+ - [ ] 單則訊息耗時對比
126
+ - [ ] 批次處理效能對比
127
+ - [ ] 結論說明清楚
128
+
129
+ ---
130
+
131
+ ### 2.7 第六章: API 介面 (如有 API 變更)
132
+
133
+ **🟡 如果沒有 API 變更,可省略此章節**
134
+
135
+ - [ ] ✅ 每個 API 端點都有完整定義
136
+ - [ ] HTTP Method + Path
137
+ - [ ] 請求參數 / Body (JSON 範例)
138
+ - [ ] 回應格式 (JSON 範例)
139
+ - [ ] 錯誤代碼說明
140
+ - [ ] 權限要求 (Admin/User/Public)
141
+ - [ ] ⚠️ API 設計遵循 RESTful 原則
142
+ - [ ] ⚠️ 回應格式一致
143
+
144
+ ---
145
+
146
+ ### 2.8 第七章: 設定參數
147
+
148
+ - [ ] ✅ appsettings.json 新增項目已列出
149
+ - [ ] ✅ 參數說明表已完成
150
+ - [ ] 參數名稱
151
+ - [ ] 可選值
152
+ - [ ] 預設值
153
+ - [ ] 說明
154
+ - [ ] ⚠️ 設定模式說明 (如有多種模式)
155
+
156
+ ---
157
+
158
+ ### 2.9 第八章: 實作範圍
159
+
160
+ - [ ] ✅ 8.1 新增檔案清單已列出
161
+ - [ ] 依 Clean Architecture 分層
162
+ - [ ] 每個檔案有用途說明
163
+ - [ ] ✅ 8.2 修改檔案清單已列出
164
+ - [ ] 說明修改內容
165
+ - [ ] ✅ 8.3 依賴套件已列出 (如有新增)
166
+ - [ ] 套件名稱
167
+ - [ ] 版本號
168
+ - [ ] 用途
169
+ - [ ] 授權
170
+ - [ ] 安裝指令
171
+
172
+ ---
173
+
174
+ ### 2.10 第九章: 測試計畫
175
+
176
+ - [ ] ✅ 9.1 單元測試案例已列出
177
+ - [ ] 至少 3-5 個測試案例
178
+ - [ ] ✅ 9.2 效能測試已定義
179
+ - [ ] 目標效能指標明確 (如「< 5ms」)
180
+ - [ ] ✅ 9.3 整合測試已定義
181
+ - [ ] 端到端流程測試
182
+ - [ ] API 端點測試 (如適用)
183
+ - [ ] ⚠️ 9.4 壓力測試 (如需要)
184
+
185
+ ---
186
+
187
+ ### 2.11 第十章: 預期效益
188
+
189
+ - [ ] ✅ 10.1 業務效益已說明 (質化)
190
+ - [ ] ✅ 10.2 技術效益已說明 (質化)
191
+ - [ ] ✅ 10.3 可量化指標已提供
192
+ - [ ] 使用對比表呈現
193
+ - [ ] 標註改善幅度 (如「↓ 50%」)
194
+ - [ ] 說明假設條件
195
+
196
+ ---
197
+
198
+ ### 2.12 第十一章: 風險與限制
199
+
200
+ - [ ] ✅ 11.1 技術限制已列出 (3-5 項)
201
+ - [ ] 具體說明限制內容
202
+ - [ ] 說明影響範圍
203
+ - [ ] ✅ 11.2 業務風險已列出 (2-3 項)
204
+ - [ ] 說明風險內容
205
+ - [ ] 說明可能影響
206
+ - [ ] ✅ 11.3 緩解措施已提供
207
+ - [ ] 每個風險都有對策
208
+
209
+ ---
210
+
211
+ ### 2.13 第十二章: 實作時程估算
212
+
213
+ - [ ] ✅ 12.1 分階段工時估算已完成
214
+ - [ ] 依開發階段分解
215
+ - [ ] 包含測試與文件時間
216
+ - [ ] 總工時合理
217
+ - [ ] ✅ 12.2 里程碑規劃已完成
218
+ - [ ] 每個里程碑有完成標準
219
+ - [ ] 預計完成日標註為 D+[天數]
220
+
221
+ ---
222
+
223
+ ### 2.14 第十三章: 待客戶確認事項
224
+
225
+ - [ ] ✅ 已確認需求勾選清單已列出
226
+ - [ ] ✅ 待決策問題已列出 (3-6 個)
227
+ - [ ] 每個問題提供選項
228
+ - [ ] 提供建議選項與理由
229
+ - [ ] 預留客戶填寫空間
230
+ - [ ] ✅ 其他建議或疑慮欄位已提供
231
+
232
+ ---
233
+
234
+ ### 2.15 第十四章: 客戶簽核
235
+
236
+ - [ ] ✅ 需求確認聲明勾選清單已列出
237
+ - [ ] ✅ 變更管理條款已說明
238
+ - [ ] ✅ 簽核資訊欄位已提供
239
+
240
+ ---
241
+
242
+ ### 2.16 附錄章節 (選填)
243
+
244
+ **🟡 依實際需要選填以下附錄:**
245
+
246
+ - [ ] ⚠️ 附錄 A: 資料表結構 (有 DB 變更時)
247
+ - [ ] DDL (CREATE TABLE) 完整
248
+ - [ ] 欄位說明表完整
249
+ - [ ] ⚠️ 附錄 B: DTO 定義 (有 API 時)
250
+ - [ ] C# class 定義完整
251
+ - [ ] XML 註解完整
252
+ - [ ] ⚠️ 附錄 C: 列舉型別定義 (有新 enum 時)
253
+ - [ ] C# enum 定義完整
254
+ - [ ] XML 註解完整
255
+ - [ ] ⚠️ 附錄 D: 演算法說明 (複雜演算法時)
256
+ - [ ] 演算法原理說明
257
+ - [ ] 時間/空間複雜度
258
+ - [ ] 適用場景
259
+
260
+ ---
261
+
262
+ ## 階段三: 格式與品質檢查
263
+
264
+ ### 3.1 Markdown 格式檢查
265
+
266
+ - [ ] ✅ 標題層級正確 (H1 僅文件標題, H2 章節, H3 小節)
267
+ - [ ] ✅ 表格格式正確 (對齊、分隔線)
268
+ - [ ] ✅ 程式碼區塊有語言標記 (\```csharp, \```json, \```sql)
269
+ - [ ] ✅ 清單格式一致 (無序清單使用 `-`, 有序清單使用數字)
270
+ - [ ] ✅ 超連結有效 (如引用其他文件)
271
+ - [ ] ✅ 中英文標點符號正確
272
+
273
+ ### 3.2 語言與術語檢查
274
+
275
+ - [ ] ✅ 文件內容使用繁體中文
276
+ - [ ] ✅ 程式碼與變數名稱使用英文
277
+ - [ ] ✅ 專有名詞保留英文 (API, Regex, JSON, etc.)
278
+ - [ ] ✅ 混合使用格式正確 (如「白名單字串檢查(Whitelist String Check)」)
279
+ - [ ] ✅ 避免拼音命名
280
+ - [ ] ✅ 避免過度技術術語 (客戶友善)
281
+
282
+ ### 3.3 視覺呈現檢查
283
+
284
+ - [ ] ✅ 架構圖清晰易懂
285
+ - [ ] ✅ 流程圖方向一致 (由上而下或由左而右)
286
+ - [ ] ✅ 表格對齊美觀
287
+ - [ ] ✅ 程式碼縮排正確 (4 個空格)
288
+ - [ ] ✅ 關鍵資訊使用 **粗體** 標記
289
+ - [ ] ✅ 差異使用符號標記 (✅ ❌ ⚠️ 🔴 🟡)
290
+
291
+ ### 3.4 技術準確性檢查
292
+
293
+ - [ ] ✅ 架構圖與程式碼一致
294
+ - [ ] ✅ API 規格可實作
295
+ - [ ] ✅ 資料表結構完整
296
+ - [ ] ✅ 效能指標合理
297
+ - [ ] ✅ 工時估算有依據
298
+ - [ ] ✅ 程式碼片段正確 (語法、邏輯)
299
+ - [ ] ✅ 檔案路徑正確
300
+ - [ ] ✅ 引用程式碼行號正確 (File:LineNumber)
301
+
302
+ ### 3.5 客戶可讀性檢查
303
+
304
+ - [ ] ✅ 避免過度技術細節
305
+ - [ ] ✅ 關鍵概念有解釋
306
+ - [ ] ✅ 流程圖有文字說明
307
+ - [ ] ✅ 專有名詞首次出現有說明
308
+ - [ ] ✅ 預期效益清楚易懂
309
+ - [ ] ✅ 風險與限制誠實揭露
310
+
311
+ ---
312
+
313
+ ## 階段四: 版本控制檢查
314
+
315
+ ### 4.1 版本資訊檢查
316
+
317
+ - [ ] ✅ 文件標頭版本號正確
318
+ - [ ] ✅ 建立日期與最後更新日期正確
319
+ - [ ] ✅ 版本歷史已更新 (如有修改)
320
+ - [ ] ✅ 版本號規則正確 (v1.0, v1.1, v1.0.1)
321
+
322
+ ### 4.2 Git 操作檢查
323
+
324
+ - [ ] ✅ 檔案已放在正確位置 (`docs/[feature]-requirement.md`)
325
+ - [ ] ✅ Commit message 遵循規範 (`文件(需求): [說明]`)
326
+ - [ ] ✅ 分支正確 (通常在 `develop` 或 feature 分支)
327
+
328
+ ---
329
+
330
+ ## 階段五: 交付前最終檢查
331
+
332
+ ### 5.1 完整性最終確認
333
+
334
+ - [ ] ✅ 所有必填章節 (1-14 章) 已完成
335
+ - [ ] ✅ 所有必要附錄已完成
336
+ - [ ] ✅ 沒有 TODO 標記未完成
337
+ - [ ] ✅ 沒有空白章節
338
+ - [ ] ✅ 沒有 [待填寫] 欄位
339
+
340
+ ### 5.2 可執行性確認
341
+
342
+ - [ ] ✅ 技術方案可行
343
+ - [ ] ✅ API 設計可實作
344
+ - [ ] ✅ 資料庫設計完整
345
+ - [ ] ✅ 工時估算合理
346
+ - [ ] ✅ 測試計畫可執行
347
+
348
+ ### 5.3 客戶導向確認
349
+
350
+ - [ ] ✅ 客戶確認事項清楚
351
+ - [ ] ✅ 預期效益明確
352
+ - [ ] ✅ 風險揭露誠實
353
+ - [ ] ✅ 簽核欄位完整
354
+
355
+ ### 5.4 文件品質確認
356
+
357
+ - [ ] ✅ 無錯字、錯別字
358
+ - [ ] ✅ 語句通順
359
+ - [ ] ✅ 邏輯連貫
360
+ - [ ] ✅ 格式美觀
361
+
362
+ ---
363
+
364
+ ## 通過標準
365
+
366
+ ### ✅ 必須通過項目 (標記 ✅ 的項目)
367
+
368
+ 所有標記 ✅ 的項目**必須全部完成**,才能提交給客戶審查。
369
+
370
+ ### ⚠️ 建議完成項目 (標記 ⚠️ 的項目)
371
+
372
+ 標記 ⚠️ 的項目**建議完成**,可提升文件品質,但非絕對必要。
373
+
374
+ ### 🟡 條件性項目 (標記 🟡 的項目)
375
+
376
+ 標記 🟡 的項目**依實際情況決定是否需要**:
377
+ - 如果是新功能且會影響現有流程 → 必填
378
+ - 如果是獨立新模組 → 可簡化
379
+ - 如果沒有該類型變更 → 可省略
380
+
381
+ ### 🔴 新功能必填項目 (標記 🔴 的項目)
382
+
383
+ 標記 🔴 的項目在**新增功能時必須完成**:
384
+ - 第四章: 新舊架構比較
385
+ - 第五章: 新舊流程比較
386
+
387
+ ---
388
+
389
+ ## 檢查結果記錄
390
+
391
+ **檢查日期**: ___________________________
392
+
393
+ **檢查人**: ___________________________
394
+
395
+ **必須通過項目 (✅)**: ___ / ___ 項完成
396
+
397
+ **建議完成項目 (⚠️)**: ___ / ___ 項完成
398
+
399
+ **條件性項目 (🟡)**: ___ / ___ 項完成 (依需求)
400
+
401
+ **整體品質評分**: ☐ 優秀 ☐ 良好 ☐ 需改進
402
+
403
+ **可以提交客戶審查**: ☐ 是 ☐ 否
404
+
405
+ **備註**: ___________________________
406
+
407
+ ---
408
+
409
+ **文件版本**: 1.0.0
410
+ **最後更新**: 2025-01-13