universal-dev-standards 5.14.0 → 5.16.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 (134) hide show
  1. package/bin/uds.js +2 -0
  2. package/bundled/ai/standards/acceptance-criteria-traceability.ai.yaml +31 -0
  3. package/bundled/ai/standards/ai-instruction-standards.ai.yaml +190 -3
  4. package/bundled/ai/standards/forward-derivation-standards.ai.yaml +23 -0
  5. package/bundled/ai/standards/knowledge-graph-memory.ai.yaml +83 -0
  6. package/bundled/core/acceptance-criteria-traceability.md +46 -0
  7. package/bundled/core/ai-instruction-standards.md +136 -11
  8. package/bundled/core/forward-derivation-standards.md +19 -0
  9. package/bundled/core/knowledge-graph-memory.md +119 -0
  10. package/bundled/locales/COVERAGE.md +226 -0
  11. package/bundled/locales/zh-CN/CHANGELOG.md +42 -3
  12. package/bundled/locales/zh-CN/README.md +1 -1
  13. package/bundled/locales/zh-CN/SECURITY.md +1 -1
  14. package/bundled/locales/zh-CN/core/acceptance-criteria-traceability.md +46 -0
  15. package/bundled/locales/zh-CN/core/ai-instruction-standards.md +111 -5
  16. package/bundled/locales/zh-CN/core/forward-derivation-standards.md +19 -0
  17. package/bundled/locales/zh-CN/skills/ac-coverage/SKILL.md +194 -0
  18. package/bundled/locales/zh-CN/skills/adr-assistant/SKILL.md +135 -40
  19. package/bundled/locales/zh-CN/skills/brainstorm-assistant/SKILL.md +217 -63
  20. package/bundled/locales/zh-CN/skills/brainstorm-assistant/guide.md +599 -0
  21. package/bundled/locales/zh-CN/skills/commands/brainstorm.md +92 -25
  22. package/bundled/locales/zh-CN/skills/commit-standards/SKILL.md +78 -16
  23. package/bundled/locales/zh-CN/skills/contract-test-assistant/SKILL.md +85 -26
  24. package/bundled/locales/zh-CN/skills/deploy-assistant/SKILL.md +189 -0
  25. package/bundled/locales/zh-CN/skills/dev-methodology/SKILL.md +110 -0
  26. package/bundled/locales/zh-CN/skills/dev-methodology/guide.md +255 -0
  27. package/bundled/locales/zh-CN/skills/dev-workflow-guide/SKILL.md +70 -11
  28. package/bundled/locales/zh-CN/skills/journey-test-assistant/SKILL.md +209 -0
  29. package/bundled/locales/zh-CN/skills/knowledge-graph/SKILL.md +58 -0
  30. package/bundled/locales/zh-CN/skills/knowledge-graph/guide.md +74 -0
  31. package/bundled/locales/zh-CN/skills/migration-assistant/SKILL.md +125 -8
  32. package/bundled/locales/zh-CN/skills/observability-assistant/guide.md +188 -0
  33. package/bundled/locales/zh-CN/skills/orchestrate/SKILL.md +173 -0
  34. package/bundled/locales/zh-CN/skills/plan/SKILL.md +240 -0
  35. package/bundled/locales/zh-CN/skills/push/SKILL.md +242 -0
  36. package/bundled/locales/zh-CN/skills/retrospective-assistant/SKILL.md +104 -36
  37. package/bundled/locales/zh-CN/skills/reverse-engineer/SKILL.md +88 -32
  38. package/bundled/locales/zh-CN/skills/runbook-assistant/guide.md +216 -0
  39. package/bundled/locales/zh-CN/skills/skill-builder/SKILL.md +149 -0
  40. package/bundled/locales/zh-CN/skills/slo-assistant/guide.md +188 -0
  41. package/bundled/locales/zh-CN/skills/spec-derivation/SKILL.md +86 -0
  42. package/bundled/locales/zh-CN/skills/spec-derivation/guide.md +476 -0
  43. package/bundled/locales/zh-CN/skills/spec-driven-dev/SKILL.md +155 -81
  44. package/bundled/locales/zh-CN/skills/sweep/SKILL.md +151 -0
  45. package/bundled/locales/zh-CN/skills/testing-guide/SKILL.md +207 -110
  46. package/bundled/locales/zh-TW/CHANGELOG.md +46 -3
  47. package/bundled/locales/zh-TW/README.md +1 -1
  48. package/bundled/locales/zh-TW/SECURITY.md +1 -1
  49. package/bundled/locales/zh-TW/core/acceptance-criteria-traceability.md +46 -0
  50. package/bundled/locales/zh-TW/core/ai-instruction-standards.md +130 -5
  51. package/bundled/locales/zh-TW/core/browser-compatibility-standards.md +222 -5
  52. package/bundled/locales/zh-TW/core/contract-testing-standards.md +184 -5
  53. package/bundled/locales/zh-TW/core/cross-flow-regression.md +192 -5
  54. package/bundled/locales/zh-TW/core/forward-derivation-standards.md +19 -0
  55. package/bundled/locales/zh-TW/core/knowledge-graph-memory.md +127 -0
  56. package/bundled/locales/zh-TW/core/release-readiness-gate.md +186 -5
  57. package/bundled/locales/zh-TW/core/self-review-protocol.md +9 -1
  58. package/bundled/locales/zh-TW/skills/ac-coverage/SKILL.md +192 -0
  59. package/bundled/locales/zh-TW/skills/adr-assistant/SKILL.md +21 -42
  60. package/bundled/locales/zh-TW/skills/ai-collaboration-standards/SKILL.md +5 -1
  61. package/bundled/locales/zh-TW/skills/brainstorm-assistant/SKILL.md +212 -59
  62. package/bundled/locales/zh-TW/skills/brainstorm-assistant/guide.md +266 -579
  63. package/bundled/locales/zh-TW/skills/commands/brainstorm.md +91 -26
  64. package/bundled/locales/zh-TW/skills/commit-standards/SKILL.md +77 -15
  65. package/bundled/locales/zh-TW/skills/contract-test-assistant/SKILL.md +75 -16
  66. package/bundled/locales/zh-TW/skills/deploy-assistant/SKILL.md +187 -0
  67. package/bundled/locales/zh-TW/skills/dev-methodology/SKILL.md +108 -0
  68. package/bundled/locales/zh-TW/skills/dev-methodology/guide.md +255 -0
  69. package/bundled/locales/zh-TW/skills/dev-workflow-guide/SKILL.md +125 -64
  70. package/bundled/locales/zh-TW/skills/journey-test-assistant/SKILL.md +222 -0
  71. package/bundled/locales/zh-TW/skills/knowledge-graph/SKILL.md +56 -0
  72. package/bundled/locales/zh-TW/skills/knowledge-graph/guide.md +74 -0
  73. package/bundled/locales/zh-TW/skills/migration-assistant/SKILL.md +128 -11
  74. package/bundled/locales/zh-TW/skills/observability-assistant/guide.md +188 -0
  75. package/bundled/locales/zh-TW/skills/orchestrate/SKILL.md +173 -0
  76. package/bundled/locales/zh-TW/skills/plan/SKILL.md +240 -0
  77. package/bundled/locales/zh-TW/skills/project-structure-guide/SKILL.md +5 -1
  78. package/bundled/locales/zh-TW/skills/push/SKILL.md +242 -0
  79. package/bundled/locales/zh-TW/skills/retrospective-assistant/SKILL.md +94 -28
  80. package/bundled/locales/zh-TW/skills/reverse-engineer/SKILL.md +84 -28
  81. package/bundled/locales/zh-TW/skills/runbook-assistant/guide.md +216 -0
  82. package/bundled/locales/zh-TW/skills/skill-builder/SKILL.md +165 -0
  83. package/bundled/locales/zh-TW/skills/slo-assistant/guide.md +188 -0
  84. package/bundled/locales/zh-TW/skills/spec-derivation/SKILL.md +83 -0
  85. package/bundled/locales/zh-TW/skills/spec-derivation/guide.md +476 -0
  86. package/bundled/locales/zh-TW/skills/spec-driven-dev/SKILL.md +148 -77
  87. package/bundled/locales/zh-TW/skills/sweep/SKILL.md +149 -0
  88. package/bundled/locales/zh-TW/skills/testing-guide/SKILL.md +141 -44
  89. package/bundled/skills/adr-assistant/SKILL.md +1 -1
  90. package/bundled/skills/ai-collaboration-standards/SKILL.md +1 -1
  91. package/bundled/skills/ai-friendly-architecture/SKILL.md +1 -1
  92. package/bundled/skills/ai-instruction-standards/SKILL.md +1 -1
  93. package/bundled/skills/api-design-assistant/SKILL.md +1 -1
  94. package/bundled/skills/audit-assistant/SKILL.md +1 -1
  95. package/bundled/skills/brainstorm-assistant/SKILL.md +142 -106
  96. package/bundled/skills/brainstorm-assistant/guide.md +256 -661
  97. package/bundled/skills/ci-cd-assistant/SKILL.md +1 -1
  98. package/bundled/skills/commands/brainstorm.md +51 -30
  99. package/bundled/skills/contract-test-assistant/SKILL.md +1 -1
  100. package/bundled/skills/database-assistant/SKILL.md +1 -1
  101. package/bundled/skills/deploy-assistant/SKILL.md +1 -1
  102. package/bundled/skills/documentation-guide/SKILL.md +1 -1
  103. package/bundled/skills/error-code-guide/SKILL.md +1 -1
  104. package/bundled/skills/git-workflow-guide/SKILL.md +1 -1
  105. package/bundled/skills/incident-response-assistant/SKILL.md +1 -1
  106. package/bundled/skills/journey-test-assistant/SKILL.md +1 -1
  107. package/bundled/skills/knowledge-graph/SKILL.md +58 -0
  108. package/bundled/skills/knowledge-graph/guide.md +69 -0
  109. package/bundled/skills/logging-guide/SKILL.md +1 -1
  110. package/bundled/skills/observability-assistant/SKILL.md +1 -1
  111. package/bundled/skills/orchestrate/SKILL.md +1 -1
  112. package/bundled/skills/plan/SKILL.md +1 -1
  113. package/bundled/skills/pr-automation-assistant/SKILL.md +1 -1
  114. package/bundled/skills/project-structure-guide/SKILL.md +1 -1
  115. package/bundled/skills/push/SKILL.md +1 -1
  116. package/bundled/skills/retrospective-assistant/SKILL.md +1 -1
  117. package/bundled/skills/reverse-engineer/SKILL.md +1 -1
  118. package/bundled/skills/runbook-assistant/SKILL.md +1 -1
  119. package/bundled/skills/security-assistant/SKILL.md +1 -1
  120. package/bundled/skills/security-scan-assistant/SKILL.md +1 -1
  121. package/bundled/skills/slo-assistant/SKILL.md +1 -1
  122. package/bundled/skills/sweep/SKILL.md +1 -1
  123. package/bundled/skills/testing-guide/SKILL.md +1 -1
  124. package/package.json +2 -2
  125. package/src/commands/check.js +80 -0
  126. package/src/commands/init.js +8 -1
  127. package/src/commands/update.js +49 -14
  128. package/src/i18n/messages.js +32 -5
  129. package/src/installers/skills-installer.js +49 -0
  130. package/src/lint/i18n.js +424 -0
  131. package/src/utils/config-manager.js +39 -0
  132. package/src/utils/skills-installer.js +39 -7
  133. package/standards-registry.json +16 -4
  134. package/bundled/locales/zh-TW/docs/SKILL-FALLBACK-GUIDE.md +0 -407
@@ -0,0 +1,108 @@
1
+ ---
2
+ name: methodology
3
+ source: ../../../../skills/dev-methodology/SKILL.md
4
+ source_version: 1.0.0
5
+ translation_version: 1.0.0
6
+ last_synced: 2026-05-28
7
+ scope: partial
8
+ description: |
9
+ [UDS] /methodology: 選擇並追蹤開發方法論(SDD/BDD/TDD)。
10
+ Use when: 選擇方法論、切換開發模式、查詢當前方法論狀態。
11
+ 若要查詢各階段對應指令請用 /dev-workflow。
12
+ allowed-tools: Read, Write, Grep, Glob
13
+ argument-hint: "[動作] [參數]"
14
+ ---
15
+
16
+ # 方法論系統
17
+
18
+ > **語言**: [English](../../../../skills/dev-methodology/SKILL.md) | 繁體中文
19
+
20
+ > [!WARNING]
21
+ > **實驗性功能**
22
+ >
23
+ > 此功能正在積極開發中,可能在 v4.0 中有重大變更。
24
+
25
+ 選擇並管理當前專案啟用的開發方法論。本技能專注於**選擇使用哪種方法論**(SDD、BDD、TDD),並追蹤所選方法論內的階段進度。
26
+
27
+ > **相關**:如需查詢開發階段對應的 UDS 指令,請改用 `/dev-workflow`。
28
+
29
+ ### 何時使用 `/methodology` 與 `/dev-workflow`
30
+
31
+ | 情境 | `/methodology` | `/dev-workflow` |
32
+ |------|---------------|-----------------|
33
+ | 在 SDD / BDD / TDD 之間選擇 | ✅ | ❌ |
34
+ | 切換不同方法論 | ✅ | ❌ |
35
+ | 追蹤目前階段進度 | ✅ | ❌ |
36
+ | 找出某個任務該用的 UDS 指令 | ❌ | ✅ |
37
+ | 取得新功能 / Bug 修復的逐步流程 | ❌ | ✅ |
38
+ | 巡覽 8 個開發階段 | ❌ | ✅ |
39
+
40
+ **兩個獨立系統:**
41
+ - **System A:SDD** — 規格驅動開發(AI 時代,spec-first)
42
+ - **System B:雙迴圈 TDD** — BDD(外圈)+ TDD(內圈)(傳統)
43
+
44
+ **選用輸入:** ATDD — 驗收測試驅動開發(可餵入任一系統)
45
+
46
+ ## 動作
47
+
48
+ | 動作 | 說明 |
49
+ |------|------|
50
+ | *(無)* / `status` | 顯示當前階段與檢查清單 |
51
+ | `switch <id>` | 切換到不同方法論 |
52
+ | `phase [name]` | 顯示或變更當前階段 |
53
+ | `checklist` | 顯示當前階段檢查清單 |
54
+ | `skip` | 跳過當前階段(會出現警告) |
55
+ | `list` | 列出可用方法論 |
56
+ | `create` | 建立自訂方法論 |
57
+
58
+ ## 可用方法論
59
+
60
+ | 系統 | ID | 工作流程 | 說明 |
61
+ |------|-----|----------|------|
62
+ | A: SDD | `sdd` | /sdd → 審查 → /derive-all → 實作 | 規格優先 |
63
+ | B: BDD | `bdd` | Discovery → Formulation → Automation | 外部迴圈 |
64
+ | B: TDD | `tdd` | Red → Green → Refactor | 內部迴圈 |
65
+ | 輸入 | `atdd` | Workshop → Examples → Tests | 驗收測試驅動 |
66
+
67
+ ## 使用範例
68
+
69
+ ```bash
70
+ /methodology # 顯示目前狀態
71
+ /methodology switch sdd # 切換至規格驅動開發
72
+ /methodology phase green # 移動到 GREEN 階段(TDD)
73
+ /methodology checklist # 顯示當前階段檢查清單
74
+ /methodology list # 列出所有可用方法論
75
+ /methodology skip # 跳過當前階段(會出現警告)
76
+ /methodology create # 啟動自訂方法論精靈
77
+ ```
78
+
79
+ ## 配置
80
+
81
+ 方法論設定儲存於 `.standards/manifest.json`:
82
+
83
+ ```json
84
+ {
85
+ "methodology": {
86
+ "active": "sdd",
87
+ "available": ["tdd", "bdd", "sdd", "atdd"]
88
+ }
89
+ }
90
+ ```
91
+
92
+ ## 下一步引導
93
+
94
+ `/methodology` 完成後,AI 助手應依所選方法論建議下一步:
95
+
96
+ > **方法論已設定。建議下一步:**
97
+ > - SDD 方法論 → 執行 `/sdd` 建立規格 ⭐ **推薦**
98
+ > - BDD 方法論 → 執行 `/bdd` 開始場景探索
99
+ > - TDD 方法論 → 執行 `/tdd` 開始紅綠重構
100
+ > - ATDD 方法論 → 執行 `/atdd` 定義驗收條件
101
+
102
+ ## 參考
103
+
104
+ - 詳細指南:[guide.md](./guide.md)
105
+
106
+ ## AI 代理行為
107
+
108
+ > 完整的 AI 行為定義請參閱對應的命令文件:[`/methodology`](../../../../skills/commands/methodology.md#ai-agent-behavior--ai-代理行為)
@@ -0,0 +1,255 @@
1
+ ---
2
+ source: ../../../../skills/dev-methodology/guide.md
3
+ source_version: 1.0.0
4
+ translation_version: 1.0.0
5
+ last_synced: 2026-06-02
6
+ source_hash: a17742b81576
7
+ status: current
8
+ scope: partial
9
+ description: |
10
+ 管理並引導開發者完成當前的開發方法論(methodology)工作流程。
11
+ 使用時機:需要 TDD、BDD、SDD、ATDD 或自訂方法論工作流程時。
12
+ 關鍵字:methodology、workflow、TDD、BDD、SDD、ATDD、phase、checkpoint、開發流程。
13
+ ---
14
+
15
+ > [!WARNING]
16
+ > **Experimental Feature / 實驗性功能**
17
+ >
18
+ > This feature is under active development and may change significantly in v4.0.
19
+ > 此功能正在積極開發中,可能在 v4.0 中有重大變更。
20
+
21
+ # Methodology System Skill
22
+
23
+ > **語言**:[English](../../../../skills/dev-methodology/guide.md) | 繁體中文
24
+
25
+ **版本**:2.0.0
26
+ **最後更新**:2026-01-25
27
+
28
+ ---
29
+
30
+ ## 概觀
31
+
32
+ Methodology System 為採用 Universal Development Standards 的專案提供一套統一的開發方法論管理框架。
33
+
34
+ ### 兩套獨立系統
35
+
36
+ ```
37
+ ┌────────────────────────────────────────────────────────────────────────────┐
38
+ │ Two Independent Methodology Systems │
39
+ ├────────────────────────────────────────────────────────────────────────────┤
40
+ │ │
41
+ │ System A: SDD (AI-Era Methodology) │
42
+ │ ───────────────────────────────────── │
43
+ │ /sdd → Review → /derive-all → Implementation → Verification │
44
+ │ Best for: New projects, AI-assisted development, greenfield features │
45
+ │ │
46
+ │ System B: Double-Loop TDD (Traditional) │
47
+ │ ───────────────────────────────────── │
48
+ │ /bdd (Outer Loop) → /tdd (Inner Loop) → Demo │
49
+ │ Best for: Legacy systems, manual development, established codebases │
50
+ │ │
51
+ │ Optional Input: ATDD Workshop │
52
+ │ ───────────────────────────────────── │
53
+ │ Stakeholder collaboration that feeds into EITHER system │
54
+ │ │
55
+ └────────────────────────────────────────────────────────────────────────────┘
56
+ ```
57
+
58
+ ### 支援的方法論
59
+
60
+ **System A:SDD(Spec-Driven Development)**
61
+ - Discuss → Proposal → Review → Forward Derivation → Implementation → Verification → Archive
62
+ - 以規格(spec)作為權威來源的 AI 原生工作流程
63
+
64
+ **System B:Double-Loop TDD**
65
+ - **BDD**(外迴圈 Outer Loop)- Discovery → Formulation → Automation
66
+ - **TDD**(內迴圈 Inner Loop)- Red → Green → Refactor
67
+
68
+ **選用輸入**
69
+ - **ATDD** - Acceptance Test-Driven Development 工作坊(可饋入任一系統)
70
+
71
+ **Custom** - 使用者自訂的方法論
72
+
73
+ ---
74
+
75
+ ## 功能
76
+
77
+ ### 1. 階段感知引導(Phase-Aware Guidance)
78
+
79
+ AI 會自動追蹤當前階段,並提供符合情境的引導:
80
+
81
+ ```
82
+ ┌─────────────────────────────────────────────┐
83
+ │ 📋 Current Methodology: TDD │
84
+ │ 📍 Current Phase: 🔴 RED (1-5 min) │
85
+ │ │
86
+ │ Checklist: │
87
+ │ ✅ Test describes behavior │
88
+ │ ✅ Test name is clear │
89
+ │ ⬜ Test follows AAA pattern │
90
+ │ ⬜ Test fails when run │
91
+ │ │
92
+ │ Next: Write the test following AAA pattern │
93
+ └─────────────────────────────────────────────┘
94
+ ```
95
+
96
+ ### 2. 檢查點提醒(Checkpoint Reminders)
97
+
98
+ 依據方法論觸發條件自動提醒:
99
+
100
+ - **Phase Transition(階段轉換)**:階段完成時建議提交(commit)
101
+ - **Accumulation Warning(累積警告)**:變更超過門檻時提出警告
102
+ - **Skip Warning(略過警告)**:連續略過 check-in 後提出警示
103
+
104
+ ### 3. 方法論切換(Methodology Switching)
105
+
106
+ 隨著專案需求變化,在不同方法論之間切換:
107
+
108
+ ```
109
+ /methodology switch bdd
110
+ ```
111
+
112
+ ### 4. 自訂方法論支援(Custom Methodology Support)
113
+
114
+ 在 `.standards/methodologies/` 中定義團隊專屬的工作流程:
115
+
116
+ ```yaml
117
+ id: my-team-workflow
118
+ name: My Team Workflow
119
+ phases:
120
+ - id: plan
121
+ name: Planning
122
+ checklist:
123
+ - id: requirements-clear
124
+ text: Requirements understood
125
+ required: true
126
+ ```
127
+
128
+ ---
129
+
130
+ ## 指令
131
+
132
+ | 指令 | 說明 |
133
+ |---------|-------------|
134
+ | `/methodology` | 顯示當前方法論狀態 |
135
+ | `/methodology switch <id>` | 切換至不同的方法論 |
136
+ | `/methodology phase [phase]` | 顯示或變更當前階段 |
137
+ | `/methodology checklist` | 顯示當前階段的檢查清單 |
138
+ | `/methodology skip` | 略過當前階段(附帶警告) |
139
+ | `/methodology list` | 列出可用的方法論 |
140
+ | `/methodology create` | 建立自訂方法論 |
141
+
142
+ ---
143
+
144
+ ## 設定
145
+
146
+ 方法論設定儲存於 `.standards/manifest.json`:
147
+
148
+ ```json
149
+ {
150
+ "methodology": {
151
+ "active": "tdd",
152
+ "available": ["tdd", "bdd", "sdd", "atdd"],
153
+ "config": {
154
+ "tdd": {
155
+ "checkpointsEnabled": true,
156
+ "reminderIntensity": "suggest",
157
+ "skipLimit": 3
158
+ }
159
+ }
160
+ }
161
+ }
162
+ ```
163
+
164
+ ### 設定選項
165
+
166
+ | 選項 | 值 | 說明 |
167
+ |--------|--------|-------------|
168
+ | `active` | methodology id | 當前啟用的方法論 |
169
+ | `checkpointsEnabled` | `true`/`false` | 啟用檢查點提醒 |
170
+ | `reminderIntensity` | `suggest`/`warning`/`strict` | 強制執行檢查點的強度 |
171
+ | `skipLimit` | 數字 | 提出警告前可連續略過的次數 |
172
+
173
+ ---
174
+
175
+ ## AI 行為
176
+
177
+ ### 偵測(Detection)
178
+
179
+ 1. 檢查 `.standards/manifest.json` 中的 `methodology.active`
180
+ 2. 從以下位置載入方法論定義:
181
+ - 內建:`methodologies/{id}.methodology.yaml`
182
+ - 自訂:`.standards/methodologies/{id}.methodology.yaml`
183
+
184
+ ### 階段追蹤(Phase Tracking)
185
+
186
+ - 依據觸發條件追蹤當前階段
187
+ - 在符合退出條件時更新階段
188
+ - 提供階段專屬的引導與檢查清單
189
+
190
+ ### 情境關鍵字(Context Keywords)
191
+
192
+ 當偵測到下列關鍵字時,AI 會自動啟用對應的方法論情境:
193
+
194
+ | 系統 | 方法論 | 關鍵字 |
195
+ |--------|-------------|----------|
196
+ | A: SDD | SDD | specification, spec first, proposal, derive tests, forward derivation |
197
+ | B: Double-Loop | BDD(外迴圈) | given when then, gherkin, cucumber, scenario, discovery |
198
+ | B: Double-Loop | TDD(內迴圈) | test first, red green refactor, failing test |
199
+ | Input | ATDD | acceptance test, user story, product owner, workshop |
200
+
201
+ ---
202
+
203
+ ## 與其他標準的整合
204
+
205
+ ### Check-in Standards
206
+
207
+ 當某階段完成時,方法論系統會與 `checkin-standards.md` 整合:
208
+
209
+ ```
210
+ Phase GREEN completed.
211
+
212
+ Changes:
213
+ - Files: 3
214
+ - Lines: +45 / -2
215
+
216
+ Suggested commit:
217
+ test(auth): add login validation test
218
+ feat(auth): implement login validation
219
+
220
+ [1] Commit now [2] Continue working [3] View changes
221
+ ```
222
+
223
+ ### Code Review
224
+
225
+ 依據當前啟用的方法論,會加入額外的審查檢查項目:
226
+
227
+ - **TDD**:測試遵循命名慣例、每個測試只驗證單一行為
228
+ - **BDD**:宣告式風格、可重用的步驟
229
+ - **SDD**:變更符合規格、無範疇蔓延(scope creep)
230
+ - **ATDD**:所有驗收條件都有對應測試
231
+
232
+ ---
233
+
234
+ ## 相關技能
235
+
236
+ - [TDD Assistant](../tdd-assistant/SKILL.md) - 詳細的 TDD 引導
237
+ - [Spec-Driven Dev](../spec-driven-dev/SKILL.md) - SDD 工作流程
238
+ - [Code Review Assistant](../code-review-assistant/SKILL.md) - 審查整合
239
+
240
+ ---
241
+
242
+ ## 檔案
243
+
244
+ - [integrated-flow.md](./integrated-flow.md) - 兩套系統的完整工作流程指南
245
+ - [runtime.md](./runtime.md) - AI 行為與執行期(runtime)指南
246
+ - [create-methodology.md](./create-methodology.md) - 自訂方法論建立精靈
247
+
248
+ ---
249
+
250
+ ## 版本歷史
251
+
252
+ | 版本 | 日期 | 變更內容 |
253
+ |---------|------|---------|
254
+ | 2.0.0 | 2026-01-25 | 重構為兩套獨立系統的架構 |
255
+ | 1.0.0 | 2026-01-12 | 初版方法論系統 |
@@ -3,7 +3,8 @@ name: dev-workflow-guide
3
3
  source: ../../../../skills/dev-workflow-guide/SKILL.md
4
4
  source_version: 1.0.0
5
5
  translation_version: 1.0.0
6
- last_synced: 2026-03-24
6
+ last_synced: 2026-06-02
7
+ source_hash: 5bf83f0db544
7
8
  status: current
8
9
  description: "[UDS] 將軟體開發階段對應到 UDS 指令與功能的指南"
9
10
  ---
@@ -19,27 +20,29 @@ description: "[UDS] 將軟體開發階段對應到 UDS 指令與功能的指南"
19
20
  ## 軟體開發階段總覽
20
21
 
21
22
  ```
22
- I. 規劃設計 ──► II. 測試驅動開發 ──► III. 程式碼開發 ──► IV. 品質保證
23
+ I. Planning ──► II. Testing Design ──► III. Implementation ──► IV. Quality Gates
24
+ 需求設計 測試驅動開發 程式碼開發 品質保證
23
25
 
24
- V. 版本提交 ──► VI. 文件與架構 ──► VII. 工具與標準 ──► VIII. 進階分析
26
+ V. Release ──► VI. Documentation ──► VII. Standards ──► VIII. Advanced
27
+ 版本提交 文件與架構 工具與標準 進階分析
25
28
  ```
26
29
 
27
30
  ### 快速對照表
28
31
 
29
- | 階段 | UDS 指令 | 用途 |
30
- |------|----------|------|
31
- | **I. 規劃與設計** | `/brainstorm` `/requirement` `/sdd` `/reverse` | 需求、規格、逆向工程 |
32
- | **II. 測試驅動開發** | `/bdd` `/atdd` `/tdd` `/coverage` `/derive` | 先寫測試再寫程式 |
33
- | **III. 實作** | `/refactor` `/reverse` | 撰寫與改善程式碼 |
34
- | **IV. 品質關卡** | `/checkin` `/review` | 提交前檢查與程式碼審查 |
35
- | **V. 發布與提交** | `/commit` `/changelog` `/release` | 版本、提交、發布 |
36
- | **VI. 文件** | `/docs` `/docgen` `/struct` | 文件與專案結構 |
37
- | **VII. 工具與標準** | `/discover` `/testing` `/guide` `/git` | 參考指南 |
38
- | **VIII. 進階分析** | `/methodology` | 跨方法論工作流程 |
32
+ | 階段 | UDS 指令 | 目的 | 用途 |
33
+ |------|----------|------|------|
34
+ | **I. 規劃與設計** | `/brainstorm` `/requirement` `/sdd` `/reverse` `/api-design` `/database` | Requirements, specs, API/DB design | 需求、規格、API/DB 設計 |
35
+ | **II. 測試驅動開發** | `/bdd` `/atdd` `/tdd` `/coverage` `/derive` `/ac-coverage` | Design tests before code | 先寫測試再寫程式 |
36
+ | **III. 實作** | `/refactor` `/reverse` `/migrate` `/durable` | Write, improve, and migrate code | 撰寫、改善與遷移程式碼 |
37
+ | **IV. 品質關卡** | `/checkin` `/review` `/security` `/scan` `/incident` | Quality, security, incident response | 品質、安全、事故回應 |
38
+ | **V. 發布與提交** | `/commit` `/changelog` `/release` `/pr` `/ci-cd` | Version, commit, PR, CI/CD | 版本、提交、PR、CI/CD |
39
+ | **VI. 文件** | `/docs` `/docgen` | Docs and project structure | 文件與專案結構 |
40
+ | **VII. 工具與標準** | `/discover` `/guide` `/metrics` `/audit` | Reference guides, metrics, audit | 參考指南、指標、審計 |
41
+ | **VIII. 進階分析** | `/methodology` | Cross-methodology workflows | 跨方法論工作流程 |
39
42
 
40
43
  ## 常見場景
41
44
 
42
- ### 場景 1:新功能開發
45
+ ### 場景 1:新功能開發(Greenfield)
43
46
 
44
47
  從零開始建立新功能的推薦流程:
45
48
 
@@ -47,15 +50,15 @@ V. 版本提交 ──► VI. 文件與架構 ──► VII. 工具與標準 ─
47
50
  /brainstorm → /requirement → /sdd → /derive → /tdd → /checkin → /commit
48
51
  ```
49
52
 
50
- | 步驟 | 指令 | 做什麼 |
51
- |------|------|--------|
52
- | 1 | `/brainstorm` | 探索想法與方法 |
53
- | 2 | `/requirement` | 撰寫使用者故事(INVEST 準則) |
54
- | 3 | `/sdd` | 建立規格文件 |
55
- | 4 | `/derive` | 從規格產生測試骨架 |
56
- | 5 | `/tdd` | 用紅綠重構循環實作 |
57
- | 6 | `/checkin` | 驗證品質關卡 |
58
- | 7 | `/commit` | 建立規範化提交 |
53
+ | 步驟 | 指令 | 做什麼 | 做什麼 |
54
+ |------|------|--------|--------|
55
+ | 1 | `/brainstorm` | Explore ideas and approaches | 探索想法與方法 |
56
+ | 2 | `/requirement` | Write user stories (INVEST criteria) | 撰寫使用者故事 |
57
+ | 3 | `/sdd` | Create specification document | 建立規格文件 |
58
+ | 4 | `/derive` | Generate test skeletons from spec | 從規格產生測試骨架 |
59
+ | 5 | `/tdd` | Implement with Red-Green-Refactor | 用紅綠重構循環實作 |
60
+ | 6 | `/checkin` | Verify quality gates | 驗證品質關卡 |
61
+ | 7 | `/commit` | Create conventional commit | 建立規範化提交 |
59
62
 
60
63
  ### 場景 2:修復錯誤
61
64
 
@@ -65,13 +68,13 @@ V. 版本提交 ──► VI. 文件與架構 ──► VII. 工具與標準 ─
65
68
  /discover → /reverse → /tdd → /checkin → /commit
66
69
  ```
67
70
 
68
- | 步驟 | 指令 | 做什麼 |
69
- |------|------|--------|
70
- | 1 | `/discover` | 評估受影響區域健康度 |
71
- | 2 | `/reverse` | 理解現有程式碼結構 |
72
- | 3 | `/tdd` | 先寫失敗測試,再修復 |
73
- | 4 | `/checkin` | 驗證品質關卡 |
74
- | 5 | `/commit` | 建立規範化提交 |
71
+ | 步驟 | 指令 | 做什麼 | 做什麼 |
72
+ |------|------|--------|--------|
73
+ | 1 | `/discover` | Assess affected area health | 評估受影響區域健康度 |
74
+ | 2 | `/reverse` | Understand existing code structure | 理解現有程式碼結構 |
75
+ | 3 | `/tdd` | Write failing test, then fix | 先寫失敗測試,再修復 |
76
+ | 4 | `/checkin` | Verify quality gates | 驗證品質關卡 |
77
+ | 5 | `/commit` | Create conventional commit | 建立規範化提交 |
75
78
 
76
79
  ### 場景 3:重構
77
80
 
@@ -81,41 +84,75 @@ V. 版本提交 ──► VI. 文件與架構 ──► VII. 工具與標準 ─
81
84
  /discover → /reverse → /coverage → /refactor → /checkin → /commit
82
85
  ```
83
86
 
84
- | 步驟 | 指令 | 做什麼 |
85
- |------|------|--------|
86
- | 1 | `/discover` | 評估專案健康度與風險 |
87
- | 2 | `/reverse` | 記錄目前行為 |
88
- | 3 | `/coverage` | 確保測試安全網存在 |
89
- | 4 | `/refactor` | 套用重構策略 |
90
- | 5 | `/checkin` | 驗證品質關卡 |
91
- | 6 | `/commit` | 建立規範化提交 |
87
+ | 步驟 | 指令 | 做什麼 | 做什麼 |
88
+ |------|------|--------|--------|
89
+ | 1 | `/discover` | Assess project health and risks | 評估專案健康度與風險 |
90
+ | 2 | `/reverse` | Document current behavior | 記錄目前行為 |
91
+ | 3 | `/coverage` | Ensure test safety net exists | 確保測試安全網存在 |
92
+ | 4 | `/refactor` | Apply refactoring strategies | 套用重構策略 |
93
+ | 5 | `/checkin` | Verify quality gates | 驗證品質關卡 |
94
+ | 6 | `/commit` | Create conventional commit | 建立規範化提交 |
95
+
96
+ ### 場景 4:安全審查
97
+
98
+ 安全審查與漏洞修復的推薦流程:
99
+
100
+ ```
101
+ /scan → /security → /checkin → /commit
102
+ ```
103
+
104
+ | 步驟 | 指令 | 做什麼 | 做什麼 |
105
+ |------|------|--------|--------|
106
+ | 1 | `/scan` | Run automated security scans (deps, secrets) | 執行自動化安全掃描 |
107
+ | 2 | `/security` | Deep security review (OWASP) | 深入安全審查 |
108
+ | 3 | `/checkin` | Verify quality gates | 驗證品質關卡 |
109
+ | 4 | `/commit` | Create conventional commit | 建立規範化提交 |
110
+
111
+ ### 場景 5:API 設計與實作
112
+
113
+ API 設計與實作的推薦流程:
114
+
115
+ ```
116
+ /brainstorm → /api-design → /sdd → /derive → /tdd → /pr
117
+ ```
118
+
119
+ | 步驟 | 指令 | 做什麼 | 做什麼 |
120
+ |------|------|--------|--------|
121
+ | 1 | `/brainstorm` | Explore API approaches | 探索 API 方案 |
122
+ | 2 | `/api-design` | Design endpoints and schemas | 設計端點與 schema |
123
+ | 3 | `/sdd` | Create specification document | 建立規格文件 |
124
+ | 4 | `/derive` | Generate test skeletons | 產生測試骨架 |
125
+ | 5 | `/tdd` | Implement with tests | 搭配測試實作 |
126
+ | 6 | `/pr` | Create pull request | 建立 Pull Request |
92
127
 
93
128
  ## 使用方式
94
129
 
95
130
  ```bash
96
- /dev-workflow # 顯示完整階段總覽
97
- /dev-workflow planning # 取得第 I 階段指引
98
- /dev-workflow testing # 取得第 II 階段指引
99
- /dev-workflow new-feature # 取得新功能工作流程
100
- /dev-workflow bug-fix # 取得修復錯誤工作流程
101
- /dev-workflow refactoring # 取得重構工作流程
131
+ /dev-workflow # Show full phase overview
132
+ /dev-workflow planning # Get Phase I guidance
133
+ /dev-workflow testing # Get Phase II guidance
134
+ /dev-workflow new-feature # Get new feature workflow
135
+ /dev-workflow bug-fix # Get bug fix workflow
136
+ /dev-workflow refactoring # Get refactoring workflow
102
137
  ```
103
138
 
104
139
  ### 支援的參數
105
140
 
106
- | 參數 | 說明 |
107
- |------|------|
108
- | `planning` | I 階段:規劃與設計 |
109
- | `testing` | II 階段:測試驅動開發 |
110
- | `implementation` | III 階段:程式碼開發 |
111
- | `quality` | IV 階段:品質保證 |
112
- | `release` | V 階段:版本與提交 |
113
- | `docs` | VI 階段:文件與架構 |
114
- | `standards` | VII 階段:工具與標準 |
115
- | `advanced` | VIII 階段:進階系統分析 |
116
- | `new-feature` | 場景:新功能開發 |
117
- | `bug-fix` | 場景:修復錯誤 |
118
- | `refactoring` | 場景:重構 |
141
+ | 參數 | 說明 | 說明 |
142
+ |------|------|------|
143
+ | `planning` | Phase I: Planning & Design | 需求與設計 |
144
+ | `testing` | Phase II: Test-Driven Development | 測試驅動開發 |
145
+ | `implementation` | Phase III: Implementation | 程式碼開發 |
146
+ | `quality` | Phase IV: Quality Gates | 品質保證 |
147
+ | `release` | Phase V: Release & Commit | 版本與提交 |
148
+ | `docs` | Phase VI: Documentation | 文件與架構 |
149
+ | `standards` | Phase VII: Tools & Standards | 工具與標準 |
150
+ | `advanced` | Phase VIII: Advanced Analysis | 進階系統分析 |
151
+ | `new-feature` | Scenario: New feature workflow | 場景:新功能開發 |
152
+ | `bug-fix` | Scenario: Bug fix workflow | 場景:修復錯誤 |
153
+ | `refactoring` | Scenario: Refactoring workflow | 場景:重構 |
154
+ | `security` | Scenario: Security review workflow | 場景:安全審查 |
155
+ | `api` | Scenario: API design workflow | 場景:API 設計 |
119
156
 
120
157
  ## 工作流程行為
121
158
 
@@ -125,17 +162,41 @@ V. 版本提交 ──► VI. 文件與架構 ──► VII. 工具與標準 ─
125
162
  2. **階段參數**:顯示該階段的詳細指引,包含所有相關指令與範例
126
163
  3. **場景參數**:顯示該場景的推薦逐步工作流程
127
164
 
165
+ 此技能會從 [workflow-phases.md](./workflow-phases.md) 讀取詳細的階段資訊。
166
+
128
167
  ## 下一步引導
129
168
 
130
169
  `/dev-workflow` 完成後,AI 助手應根據使用者情況建議:
131
170
 
132
- > **工作流程已顯示。建議下一步:**
133
- > - 新功能開發 → 執行 `/brainstorm` 探索想法
134
- > - 修復錯誤 → 執行 `/discover` 評估受影響區域
135
- > - 重構程式碼 → 執行 `/discover` 評估健康度
136
- > - 遺留系統 → 執行 `/reverse` 進行系統考古
171
+ > **工作流程已顯示。建議下一步 / Workflow displayed. Suggested next steps:**
172
+ > - 新功能開發 → 執行 `/brainstorm` 探索想法 ⭐ **Recommended / 推薦** — New feature → Run `/brainstorm` to explore ideas
173
+ > - 修復錯誤 → 執行 `/discover` 評估受影響區域 — Bug fix → Run `/discover` to assess affected area
174
+ > - 重構程式碼 → 執行 `/discover` 評估健康度 — Refactoring → Run `/discover` to assess health
175
+ > - 遺留系統 → 執行 `/reverse` 進行系統考古 — Legacy system → Run `/reverse` for system archeology
176
+ > - 安全審查 → 執行 `/scan` 掃描漏洞 — Security review → Run `/scan` to find vulnerabilities
177
+ > - API 開發 → 執行 `/api-design` 設計端點 — API development → Run `/api-design` to design endpoints
178
+ > - 事故回應 → 執行 `/incident` 啟動回應流程 — Incident → Run `/incident` to start response
137
179
 
138
180
  ## 參考
139
181
 
140
- - 詳細階段指引:[workflow-phases.md](../../../../skills/dev-workflow-guide/workflow-phases.md)
141
- - 每日工作流程指南:[DAILY-WORKFLOW-GUIDE.md](../../../../adoption/DAILY-WORKFLOW-GUIDE.md)
182
+ - [詳細階段指引](./workflow-phases.md) - 完整的逐階段參考
183
+ - [每日工作流程指南](../../adoption/DAILY-WORKFLOW-GUIDE.md) - 完整的每日工作流程指南
184
+ - [功能開發工作流程](../workflows/feature-dev.yaml) - 自動化功能開發工作流程
185
+ - [整合流程工作流程](../workflows/integrated-flow.yaml) - 完整的 ATDD/SDD/BDD/TDD 工作流程
186
+
187
+ ---
188
+
189
+ ## 版本歷史
190
+
191
+ | 版本 | 日期 | 變更內容 |
192
+ |------|------|----------|
193
+ | 1.1.0 | 2026-03-24 | 新增 11 個指令、2 個新場景(安全審查、API 設計) |
194
+ | 1.0.0 | 2026-03-04 | 初版:8 個開發階段、3 個場景、以階段為基礎的導覽 |
195
+
196
+ ---
197
+
198
+ ## 授權
199
+
200
+ 本技能以 [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) 授權釋出。
201
+
202
+ **來源**:[universal-dev-standards](https://github.com/AsiaOstrich/universal-dev-standards)