universal-dev-standards 5.4.0 → 5.6.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.
- package/bundled/ai/options/testing/integration-testing.ai.yaml +2 -2
- package/bundled/ai/options/testing/unit-testing.ai.yaml +2 -2
- package/bundled/ai/standards/adversarial-test.ai.yaml +277 -0
- package/bundled/ai/standards/audit-trail.ai.yaml +113 -0
- package/bundled/ai/standards/browser-compatibility-standards.ai.yaml +63 -0
- package/bundled/ai/standards/chaos-injection-tests.ai.yaml +91 -0
- package/bundled/ai/standards/container-image-standards.ai.yaml +88 -0
- package/bundled/ai/standards/container-security.ai.yaml +331 -0
- package/bundled/ai/standards/contract-testing-standards.ai.yaml +62 -0
- package/bundled/ai/standards/cost-budget-test.ai.yaml +96 -0
- package/bundled/ai/standards/cross-flow-regression.ai.yaml +61 -0
- package/bundled/ai/standards/data-contract.ai.yaml +110 -0
- package/bundled/ai/standards/data-migration-testing.ai.yaml +96 -0
- package/bundled/ai/standards/data-pipeline.ai.yaml +113 -0
- package/bundled/ai/standards/disaster-recovery-drill.ai.yaml +89 -0
- package/bundled/ai/standards/flaky-test-management.ai.yaml +89 -0
- package/bundled/ai/standards/flow-based-testing.ai.yaml +240 -0
- package/bundled/ai/standards/full-coverage-testing.ai.yaml +192 -0
- package/bundled/ai/standards/iac-design-principles.ai.yaml +83 -0
- package/bundled/ai/standards/incident-response.ai.yaml +107 -0
- package/bundled/ai/standards/license-compliance.ai.yaml +106 -0
- package/bundled/ai/standards/llm-output-validation.ai.yaml +269 -0
- package/bundled/ai/standards/mock-boundary.ai.yaml +250 -0
- package/bundled/ai/standards/mutation-testing.ai.yaml +192 -0
- package/bundled/ai/standards/pii-classification.ai.yaml +109 -0
- package/bundled/ai/standards/policy-as-code-testing.ai.yaml +227 -0
- package/bundled/ai/standards/prd-standards.ai.yaml +88 -0
- package/bundled/ai/standards/product-metrics-standards.ai.yaml +111 -0
- package/bundled/ai/standards/prompt-regression.ai.yaml +94 -0
- package/bundled/ai/standards/property-based-testing.ai.yaml +105 -0
- package/bundled/ai/standards/release-quality-manifest.ai.yaml +135 -0
- package/bundled/ai/standards/release-readiness-gate.ai.yaml +77 -0
- package/bundled/ai/standards/replay-test.ai.yaml +111 -0
- package/bundled/ai/standards/runbook.ai.yaml +104 -0
- package/bundled/ai/standards/sast-advanced.ai.yaml +135 -0
- package/bundled/ai/standards/schema-evolution.ai.yaml +111 -0
- package/bundled/ai/standards/secret-management-standards.ai.yaml +105 -0
- package/bundled/ai/standards/secure-op.ai.yaml +365 -0
- package/bundled/ai/standards/security-testing.ai.yaml +171 -0
- package/bundled/ai/standards/server-ops-security.ai.yaml +274 -0
- package/bundled/ai/standards/slo-sli.ai.yaml +97 -0
- package/bundled/ai/standards/smoke-test.ai.yaml +87 -0
- package/bundled/ai/standards/supply-chain-attestation.ai.yaml +109 -0
- package/bundled/ai/standards/test-completeness-dimensions.ai.yaml +52 -5
- package/bundled/ai/standards/testing.ai.yaml +20 -13
- package/bundled/ai/standards/user-story-mapping.ai.yaml +108 -0
- package/bundled/core/accessibility-standards.md +58 -0
- package/bundled/core/adversarial-test.md +212 -0
- package/bundled/core/branch-completion.md +4 -0
- package/bundled/core/browser-compatibility-standards.md +220 -0
- package/bundled/core/chaos-injection-tests.md +116 -0
- package/bundled/core/checkin-standards.md +1 -0
- package/bundled/core/container-security.md +521 -0
- package/bundled/core/contract-testing-standards.md +182 -0
- package/bundled/core/cost-budget-test.md +69 -0
- package/bundled/core/cross-flow-regression.md +190 -0
- package/bundled/core/data-migration-testing.md +110 -0
- package/bundled/core/disaster-recovery-drill.md +73 -0
- package/bundled/core/flaky-test-management.md +73 -0
- package/bundled/core/flow-based-testing.md +275 -0
- package/bundled/core/full-coverage-testing.md +183 -0
- package/bundled/core/llm-output-validation.md +178 -0
- package/bundled/core/mock-boundary.md +100 -0
- package/bundled/core/mutation-testing.md +97 -0
- package/bundled/core/performance-standards.md +65 -0
- package/bundled/core/policy-as-code-testing.md +188 -0
- package/bundled/core/prompt-regression.md +72 -0
- package/bundled/core/property-based-testing.md +73 -0
- package/bundled/core/release-quality-manifest.md +193 -0
- package/bundled/core/release-readiness-gate.md +184 -0
- package/bundled/core/replay-test.md +86 -0
- package/bundled/core/sast-advanced.md +300 -0
- package/bundled/core/secure-op.md +314 -0
- package/bundled/core/security-testing.md +87 -0
- package/bundled/core/server-ops-security.md +493 -0
- package/bundled/core/smoke-test.md +65 -0
- package/bundled/core/supply-chain-attestation.md +117 -0
- package/bundled/locales/zh-CN/CHANGELOG.md +3 -3
- package/bundled/locales/zh-CN/README.md +1 -1
- package/bundled/locales/zh-CN/skills/ai-instruction-standards/SKILL.md +5 -5
- package/bundled/locales/zh-TW/CHANGELOG.md +3 -3
- package/bundled/locales/zh-TW/README.md +1 -1
- package/bundled/locales/zh-TW/core/browser-compatibility-standards.md +11 -0
- package/bundled/locales/zh-TW/core/contract-testing-standards.md +11 -0
- package/bundled/locales/zh-TW/core/cross-flow-regression.md +11 -0
- package/bundled/locales/zh-TW/core/release-readiness-gate.md +11 -0
- package/bundled/locales/zh-TW/skills/ai-instruction-standards/SKILL.md +183 -79
- package/bundled/skills/README.md +4 -3
- package/bundled/skills/SKILL_NAMING.md +94 -0
- package/bundled/skills/ai-instruction-standards/SKILL.md +181 -88
- package/bundled/skills/atdd-assistant/SKILL.md +8 -0
- package/bundled/skills/bdd-assistant/SKILL.md +7 -0
- package/bundled/skills/checkin-assistant/SKILL.md +8 -0
- package/bundled/skills/code-review-assistant/SKILL.md +7 -0
- package/bundled/skills/journey-test-assistant/SKILL.md +203 -0
- package/bundled/skills/orchestrate/SKILL.md +167 -0
- package/bundled/skills/plan/SKILL.md +234 -0
- package/bundled/skills/pr-automation-assistant/SKILL.md +8 -0
- package/bundled/skills/push/SKILL.md +49 -2
- package/bundled/skills/{process-automation → skill-builder}/SKILL.md +1 -1
- package/bundled/skills/{forward-derivation → spec-derivation}/SKILL.md +1 -1
- package/bundled/skills/spec-driven-dev/SKILL.md +7 -0
- package/bundled/skills/sweep/SKILL.md +145 -0
- package/bundled/skills/tdd-assistant/SKILL.md +7 -0
- package/package.json +6 -6
- package/src/commands/check.js +43 -0
- package/src/commands/flow.js +8 -0
- package/src/commands/init.js +2 -1
- package/src/commands/start.js +14 -0
- package/src/commands/sweep.js +8 -0
- package/src/commands/update.js +10 -0
- package/src/commands/workflow.js +8 -0
- package/standards-registry.json +483 -5
- package/bundled/locales/zh-CN/skills/ac-coverage-assistant/SKILL.md +0 -190
- package/bundled/locales/zh-CN/skills/forward-derivation/SKILL.md +0 -71
- package/bundled/locales/zh-CN/skills/forward-derivation/guide.md +0 -130
- package/bundled/locales/zh-CN/skills/methodology-system/SKILL.md +0 -88
- package/bundled/locales/zh-CN/skills/methodology-system/create-methodology.md +0 -350
- package/bundled/locales/zh-CN/skills/methodology-system/guide.md +0 -131
- package/bundled/locales/zh-CN/skills/methodology-system/runtime.md +0 -279
- package/bundled/locales/zh-CN/skills/process-automation/SKILL.md +0 -143
- package/bundled/locales/zh-TW/skills/ac-coverage-assistant/SKILL.md +0 -195
- package/bundled/locales/zh-TW/skills/deploy-assistant/SKILL.md +0 -178
- package/bundled/locales/zh-TW/skills/forward-derivation/SKILL.md +0 -69
- package/bundled/locales/zh-TW/skills/forward-derivation/guide.md +0 -415
- package/bundled/locales/zh-TW/skills/methodology-system/SKILL.md +0 -86
- package/bundled/locales/zh-TW/skills/methodology-system/create-methodology.md +0 -350
- package/bundled/locales/zh-TW/skills/methodology-system/guide.md +0 -131
- package/bundled/locales/zh-TW/skills/methodology-system/runtime.md +0 -279
- package/bundled/locales/zh-TW/skills/process-automation/SKILL.md +0 -144
- /package/bundled/skills/{ac-coverage-assistant → ac-coverage}/SKILL.md +0 -0
- /package/bundled/skills/{methodology-system → dev-methodology}/SKILL.md +0 -0
- /package/bundled/skills/{methodology-system → dev-methodology}/create-methodology.md +0 -0
- /package/bundled/skills/{methodology-system → dev-methodology}/guide.md +0 -0
- /package/bundled/skills/{methodology-system → dev-methodology}/integrated-flow.md +0 -0
- /package/bundled/skills/{methodology-system → dev-methodology}/prerequisite-check.md +0 -0
- /package/bundled/skills/{methodology-system → dev-methodology}/runtime.md +0 -0
- /package/bundled/skills/{forward-derivation → spec-derivation}/guide.md +0 -0
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: methodology-system
|
|
3
|
-
source: ../../../../skills/methodology-system/SKILL.md
|
|
4
|
-
source_version: 1.0.0
|
|
5
|
-
translation_version: 1.0.0
|
|
6
|
-
last_synced: 2026-02-10
|
|
7
|
-
status: current
|
|
8
|
-
description: "[UDS] 管理當前專案的開發方法論,支援 SDD 和雙迴圈 TDD 兩個獨立系統"
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
# 方法論系統
|
|
12
|
-
|
|
13
|
-
> **語言**: [English](../../../../skills/methodology-system/SKILL.md) | 繁體中文
|
|
14
|
-
|
|
15
|
-
> [!WARNING]
|
|
16
|
-
> **實驗性功能**
|
|
17
|
-
>
|
|
18
|
-
> 此功能正在積極開發中,可能在 v4.0 中有重大變更。
|
|
19
|
-
|
|
20
|
-
管理當前專案的開發方法論,支援兩個獨立系統。
|
|
21
|
-
|
|
22
|
-
**兩個獨立系統:**
|
|
23
|
-
- **系統 A:SDD** - 規格驅動開發(AI 時代、規格優先)
|
|
24
|
-
- **系統 B:雙迴圈 TDD** - BDD(外部迴圈)+ TDD(內部迴圈)(傳統)
|
|
25
|
-
|
|
26
|
-
**可選輸入:** ATDD - 驗收測試驅動開發(可作為任一系統的輸入)
|
|
27
|
-
|
|
28
|
-
## 動作
|
|
29
|
-
|
|
30
|
-
| 動作 | 說明 |
|
|
31
|
-
|------|------|
|
|
32
|
-
| *(無)* / `status` | 顯示當前階段和檢查清單 |
|
|
33
|
-
| `switch <id>` | 切換到不同方法論 |
|
|
34
|
-
| `phase [name]` | 顯示或變更當前階段 |
|
|
35
|
-
| `checklist` | 顯示當前階段檢查清單 |
|
|
36
|
-
| `skip` | 跳過當前階段(會有警告) |
|
|
37
|
-
| `list` | 列出可用方法論 |
|
|
38
|
-
| `create` | 建立自訂方法論 |
|
|
39
|
-
|
|
40
|
-
## 可用方法論
|
|
41
|
-
|
|
42
|
-
| 系統 | ID | 工作流程 |
|
|
43
|
-
|------|-----|---------|
|
|
44
|
-
| A:SDD | `sdd` | /sdd -> 審查 -> /derive-all -> 實作 |
|
|
45
|
-
| B:BDD | `bdd` | 探索 -> 制定 -> 自動化 |
|
|
46
|
-
| B:TDD | `tdd` | 紅 -> 綠 -> 重構 |
|
|
47
|
-
| 輸入 | `atdd` | 工作坊 -> 範例 -> 測試 |
|
|
48
|
-
|
|
49
|
-
## 使用範例
|
|
50
|
-
|
|
51
|
-
```
|
|
52
|
-
/methodology # 顯示當前狀態
|
|
53
|
-
/methodology switch sdd # 切換到規格驅動開發
|
|
54
|
-
/methodology phase green # 移至 GREEN 階段(TDD)
|
|
55
|
-
/methodology checklist # 顯示當前階段檢查清單
|
|
56
|
-
/methodology list # 列出所有可用方法論
|
|
57
|
-
/methodology skip # 跳過當前階段(會有警告)
|
|
58
|
-
/methodology create # 啟動自訂方法論精靈
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
## 配置
|
|
62
|
-
|
|
63
|
-
方法論設定儲存在 `.standards/manifest.json`:
|
|
64
|
-
|
|
65
|
-
```json
|
|
66
|
-
{
|
|
67
|
-
"methodology": {
|
|
68
|
-
"active": "sdd",
|
|
69
|
-
"available": ["tdd", "bdd", "sdd", "atdd"]
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
## 下一步引導
|
|
75
|
-
|
|
76
|
-
`/methodology` 完成後,AI 助手應根據選擇的方法論建議:
|
|
77
|
-
|
|
78
|
-
> **方法論已設定。建議下一步:**
|
|
79
|
-
> - SDD 方法論 → 執行 `/sdd` 建立規格
|
|
80
|
-
> - BDD 方法論 → 執行 `/bdd` 開始場景探索
|
|
81
|
-
> - TDD 方法論 → 執行 `/tdd` 開始紅綠重構
|
|
82
|
-
> - ATDD 方法論 → 執行 `/atdd` 定義驗收條件
|
|
83
|
-
|
|
84
|
-
## 參考
|
|
85
|
-
|
|
86
|
-
- 詳細指南:[guide.md](./guide.md)
|
|
@@ -1,350 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
source: ../../../../skills/methodology-system/create-methodology.md
|
|
3
|
-
source_version: 1.0.0
|
|
4
|
-
translation_version: 1.0.0
|
|
5
|
-
last_synced: 2026-01-12
|
|
6
|
-
status: experimental
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# 建立自訂方法論指南
|
|
10
|
-
|
|
11
|
-
> **Language**: [English](../../../../skills/methodology-system/create-methodology.md) | 繁體中文
|
|
12
|
-
|
|
13
|
-
> [!WARNING]
|
|
14
|
-
> **實驗性功能 / Experimental Feature**
|
|
15
|
-
>
|
|
16
|
-
> 此功能正在積極開發中,可能在 v4.0 中有重大變更。
|
|
17
|
-
> This feature is under active development and may change significantly in v4.0.
|
|
18
|
-
|
|
19
|
-
**版本**: 1.0.0
|
|
20
|
-
**最後更新**: 2026-01-12
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## 概述
|
|
25
|
-
|
|
26
|
-
本指南幫助您為團隊或專案建立自訂開發方法論。自訂方法論儲存在 `.standards/methodologies/` 目錄中,並遵循與內建方法論相同的 YAML 結構。
|
|
27
|
-
|
|
28
|
-
---
|
|
29
|
-
|
|
30
|
-
## 互動式建立精靈
|
|
31
|
-
|
|
32
|
-
使用 `/methodology create` 啟動互動式精靈:
|
|
33
|
-
|
|
34
|
-
### 步驟 1:基本資訊
|
|
35
|
-
|
|
36
|
-
```
|
|
37
|
-
╔════════════════════════════════════════════════╗
|
|
38
|
-
║ 建立自訂方法論 ║
|
|
39
|
-
╠════════════════════════════════════════════════╣
|
|
40
|
-
║ ║
|
|
41
|
-
║ 您的方法論名稱是什麼? ║
|
|
42
|
-
║ > 我的團隊工作流 ║
|
|
43
|
-
║ ║
|
|
44
|
-
║ 簡短描述: ║
|
|
45
|
-
║ > 我們團隊的迭代開發流程,包含規劃和審查階段 ║
|
|
46
|
-
║ ║
|
|
47
|
-
║ ID(自動產生): my-team-workflow ║
|
|
48
|
-
║ ║
|
|
49
|
-
╚════════════════════════════════════════════════╝
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
### 步驟 2:定義階段
|
|
53
|
-
|
|
54
|
-
```
|
|
55
|
-
╔════════════════════════════════════════════════╗
|
|
56
|
-
║ 定義階段 (1/?) ║
|
|
57
|
-
╠════════════════════════════════════════════════╣
|
|
58
|
-
║ ║
|
|
59
|
-
║ 階段 1: ║
|
|
60
|
-
║ ───────────────────────────────────── ║
|
|
61
|
-
║ 名稱:規劃 ║
|
|
62
|
-
║ 描述:規劃實作方法 ║
|
|
63
|
-
║ 預估時間:15-30 分鐘 ║
|
|
64
|
-
║ 表情符號:📋 ║
|
|
65
|
-
║ ║
|
|
66
|
-
║ 檢查清單項目(每行一項): ║
|
|
67
|
-
║ 在必填項目前加上 * ║
|
|
68
|
-
║ ───────────────────────────────────── ║
|
|
69
|
-
║ * 需求已理解 ║
|
|
70
|
-
║ * 設計方法已審查 ║
|
|
71
|
-
║ 相依性已識別 ║
|
|
72
|
-
║ ║
|
|
73
|
-
║ 什麼觸發離開此階段? ║
|
|
74
|
-
║ > 用戶確認規劃完成 ║
|
|
75
|
-
║ ║
|
|
76
|
-
║ 離開後的下一個階段? ║
|
|
77
|
-
║ > 實作 ║
|
|
78
|
-
║ ║
|
|
79
|
-
║ [新增另一個階段] [階段定義完成] ║
|
|
80
|
-
║ ║
|
|
81
|
-
╚════════════════════════════════════════════════╝
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
### 步驟 3:配置檢查點
|
|
85
|
-
|
|
86
|
-
```
|
|
87
|
-
╔════════════════════════════════════════════════╗
|
|
88
|
-
║ 配置檢查點 ║
|
|
89
|
-
╠════════════════════════════════════════════════╣
|
|
90
|
-
║ ║
|
|
91
|
-
║ 選擇檢查點提醒: ║
|
|
92
|
-
║ ───────────────────────────────────── ║
|
|
93
|
-
║ [x] 在階段轉換時提醒 ║
|
|
94
|
-
║ [x] 跳過 3 次簽入後警告 ║
|
|
95
|
-
║ [ ] 變更超過 200 行後提醒 ║
|
|
96
|
-
║ [ ] 30 分鐘沒有提交後提醒 ║
|
|
97
|
-
║ ║
|
|
98
|
-
║ 提醒強度: ║
|
|
99
|
-
║ ( ) 建議 - 溫和提醒 ║
|
|
100
|
-
║ (•) 警告 - 更明顯 ║
|
|
101
|
-
║ ( ) 嚴格 - 阻止直到處理 ║
|
|
102
|
-
║ ║
|
|
103
|
-
╚════════════════════════════════════════════════╝
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
### 步驟 4:審查並儲存
|
|
107
|
-
|
|
108
|
-
```
|
|
109
|
-
╔════════════════════════════════════════════════╗
|
|
110
|
-
║ 審查方法論 ║
|
|
111
|
-
╠════════════════════════════════════════════════╣
|
|
112
|
-
║ ║
|
|
113
|
-
║ 名稱:我的團隊工作流 ║
|
|
114
|
-
║ ID:my-team-workflow ║
|
|
115
|
-
║ ║
|
|
116
|
-
║ 階段: ║
|
|
117
|
-
║ ───────────────────────────────────── ║
|
|
118
|
-
║ 1. 📋 規劃 ║
|
|
119
|
-
║ └─ 檢查清單:3 項(2 項必填) ║
|
|
120
|
-
║ 2. 💻 實作 ║
|
|
121
|
-
║ └─ 檢查清單:4 項(3 項必填) ║
|
|
122
|
-
║ 3. 👀 審查 ║
|
|
123
|
-
║ └─ 檢查清單:3 項(2 項必填) ║
|
|
124
|
-
║ ║
|
|
125
|
-
║ 檢查點:2 個啟用 ║
|
|
126
|
-
║ 強度:警告 ║
|
|
127
|
-
║ ║
|
|
128
|
-
║ [儲存] [編輯] [取消] ║
|
|
129
|
-
║ ║
|
|
130
|
-
╚════════════════════════════════════════════════╝
|
|
131
|
-
|
|
132
|
-
方法論已建立!
|
|
133
|
-
|
|
134
|
-
儲存到:.standards/methodologies/my-team-workflow.methodology.yaml
|
|
135
|
-
|
|
136
|
-
啟用:/methodology switch my-team-workflow
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
---
|
|
140
|
-
|
|
141
|
-
## 手動建立
|
|
142
|
-
|
|
143
|
-
您也可以手動建立方法論檔案:
|
|
144
|
-
|
|
145
|
-
### 1. 建立目錄
|
|
146
|
-
|
|
147
|
-
```bash
|
|
148
|
-
mkdir -p .standards/methodologies
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
### 2. 建立 YAML 檔案
|
|
152
|
-
|
|
153
|
-
建立 `.standards/methodologies/my-workflow.methodology.yaml`:
|
|
154
|
-
|
|
155
|
-
```yaml
|
|
156
|
-
$schema: "https://raw.githubusercontent.com/anthropics/universal-dev-standards/main/methodologies/methodology-schema.json"
|
|
157
|
-
id: my-workflow
|
|
158
|
-
name: My Custom Workflow
|
|
159
|
-
nameZh: 我的自訂工作流
|
|
160
|
-
version: 1.0.0
|
|
161
|
-
description: A custom development workflow for our team
|
|
162
|
-
|
|
163
|
-
phases:
|
|
164
|
-
- id: plan
|
|
165
|
-
name: Planning
|
|
166
|
-
nameZh: 規劃
|
|
167
|
-
description: Plan the implementation approach
|
|
168
|
-
duration: "15-30 minutes"
|
|
169
|
-
emoji: "📋"
|
|
170
|
-
checklist:
|
|
171
|
-
- id: requirements-clear
|
|
172
|
-
text: Requirements are clearly understood
|
|
173
|
-
textZh: 需求已清楚理解
|
|
174
|
-
required: true
|
|
175
|
-
triggers:
|
|
176
|
-
exit:
|
|
177
|
-
- condition: user_confirms_plan_complete
|
|
178
|
-
nextPhase: implement
|
|
179
|
-
```
|
|
180
|
-
|
|
181
|
-
### 3. 啟用方法論
|
|
182
|
-
|
|
183
|
-
```bash
|
|
184
|
-
/methodology switch my-workflow
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
---
|
|
188
|
-
|
|
189
|
-
## Schema 參考
|
|
190
|
-
|
|
191
|
-
### 必填欄位
|
|
192
|
-
|
|
193
|
-
| 欄位 | 類型 | 說明 |
|
|
194
|
-
|------|------|------|
|
|
195
|
-
| `id` | string | 唯一識別碼(小寫、連字號) |
|
|
196
|
-
| `name` | string | 顯示名稱 |
|
|
197
|
-
| `version` | string | 語意化版本 |
|
|
198
|
-
| `phases` | array | 至少一個階段 |
|
|
199
|
-
|
|
200
|
-
### 階段欄位
|
|
201
|
-
|
|
202
|
-
| 欄位 | 類型 | 必填 | 說明 |
|
|
203
|
-
|------|------|------|------|
|
|
204
|
-
| `id` | string | 是 | 階段識別碼 |
|
|
205
|
-
| `name` | string | 是 | 顯示名稱 |
|
|
206
|
-
| `description` | string | 是 | 此階段的說明 |
|
|
207
|
-
| `checklist` | array | 否 | 驗證項目 |
|
|
208
|
-
| `triggers` | object | 否 | 進入/離開條件 |
|
|
209
|
-
| `guidance` | object | 否 | AI 提示 |
|
|
210
|
-
| `duration` | string | 否 | 預估時間 |
|
|
211
|
-
| `emoji` | string | 否 | 視覺指示器 |
|
|
212
|
-
|
|
213
|
-
---
|
|
214
|
-
|
|
215
|
-
## 最佳實踐
|
|
216
|
-
|
|
217
|
-
### 1. 保持階段專注
|
|
218
|
-
|
|
219
|
-
每個階段應有明確、單一的目的。如果一個階段有超過 5-6 個檢查項目,考慮拆分。
|
|
220
|
-
|
|
221
|
-
### 2. 使用有意義的 ID
|
|
222
|
-
|
|
223
|
-
```yaml
|
|
224
|
-
# 好的
|
|
225
|
-
id: code-review
|
|
226
|
-
id: integration-test
|
|
227
|
-
|
|
228
|
-
# 避免
|
|
229
|
-
id: phase1
|
|
230
|
-
id: step-a
|
|
231
|
-
```
|
|
232
|
-
|
|
233
|
-
### 3. 使檢查清單可操作
|
|
234
|
-
|
|
235
|
-
```yaml
|
|
236
|
-
# 好的
|
|
237
|
-
text: 測試涵蓋邊界情況
|
|
238
|
-
text: 錯誤處理已實作
|
|
239
|
-
|
|
240
|
-
# 避免
|
|
241
|
-
text: 程式碼很好
|
|
242
|
-
text: 一切正常
|
|
243
|
-
```
|
|
244
|
-
|
|
245
|
-
### 4. 提供有幫助的引導
|
|
246
|
-
|
|
247
|
-
在階段引導中包含實用提示:
|
|
248
|
-
|
|
249
|
-
```yaml
|
|
250
|
-
guidance:
|
|
251
|
-
prompt: |
|
|
252
|
-
## 審查階段
|
|
253
|
-
|
|
254
|
-
重點領域:
|
|
255
|
-
- 安全漏洞
|
|
256
|
-
- 效能影響
|
|
257
|
-
- API 契約變更
|
|
258
|
-
|
|
259
|
-
{{ checklist | format_checklist }}
|
|
260
|
-
```
|
|
261
|
-
|
|
262
|
-
### 5. 考慮本地化
|
|
263
|
-
|
|
264
|
-
始終為雙語團隊提供 `nameZh`、`textZh`、`promptZh`。
|
|
265
|
-
|
|
266
|
-
---
|
|
267
|
-
|
|
268
|
-
## 範例
|
|
269
|
-
|
|
270
|
-
### 熱修復工作流
|
|
271
|
-
|
|
272
|
-
```yaml
|
|
273
|
-
id: hotfix
|
|
274
|
-
name: Hotfix Workflow
|
|
275
|
-
nameZh: 熱修復工作流
|
|
276
|
-
phases:
|
|
277
|
-
- id: reproduce
|
|
278
|
-
name: Reproduce Issue
|
|
279
|
-
nameZh: 重現問題
|
|
280
|
-
checklist:
|
|
281
|
-
- id: issue-reproduced
|
|
282
|
-
text: Issue reproduced locally
|
|
283
|
-
textZh: 問題已在本地重現
|
|
284
|
-
required: true
|
|
285
|
-
- id: fix
|
|
286
|
-
name: Apply Fix
|
|
287
|
-
nameZh: 應用修復
|
|
288
|
-
checklist:
|
|
289
|
-
- id: minimal-fix
|
|
290
|
-
text: Fix is minimal and targeted
|
|
291
|
-
textZh: 修復是最小且針對性的
|
|
292
|
-
required: true
|
|
293
|
-
- id: verify
|
|
294
|
-
name: Verify Fix
|
|
295
|
-
nameZh: 驗證修復
|
|
296
|
-
checklist:
|
|
297
|
-
- id: issue-resolved
|
|
298
|
-
text: Original issue is resolved
|
|
299
|
-
textZh: 原始問題已解決
|
|
300
|
-
required: true
|
|
301
|
-
```
|
|
302
|
-
|
|
303
|
-
### 功能旗標工作流
|
|
304
|
-
|
|
305
|
-
```yaml
|
|
306
|
-
id: feature-flag
|
|
307
|
-
name: Feature Flag Development
|
|
308
|
-
nameZh: 功能旗標開發
|
|
309
|
-
phases:
|
|
310
|
-
- id: design-flag
|
|
311
|
-
name: Design Flag
|
|
312
|
-
nameZh: 設計旗標
|
|
313
|
-
checklist:
|
|
314
|
-
- id: flag-named
|
|
315
|
-
text: Flag has descriptive name
|
|
316
|
-
textZh: 旗標有描述性名稱
|
|
317
|
-
required: true
|
|
318
|
-
- id: implement-behind-flag
|
|
319
|
-
name: Implement Behind Flag
|
|
320
|
-
nameZh: 在旗標後實作
|
|
321
|
-
checklist:
|
|
322
|
-
- id: default-off
|
|
323
|
-
text: Flag defaults to off
|
|
324
|
-
textZh: 旗標預設為關閉
|
|
325
|
-
required: true
|
|
326
|
-
- id: gradual-rollout
|
|
327
|
-
name: Gradual Rollout
|
|
328
|
-
nameZh: 漸進式推出
|
|
329
|
-
checklist:
|
|
330
|
-
- id: metrics-monitored
|
|
331
|
-
text: Metrics being monitored
|
|
332
|
-
textZh: 正在監控指標
|
|
333
|
-
required: true
|
|
334
|
-
- id: cleanup
|
|
335
|
-
name: Cleanup
|
|
336
|
-
nameZh: 清理
|
|
337
|
-
checklist:
|
|
338
|
-
- id: flag-removed
|
|
339
|
-
text: Flag code removed after full rollout
|
|
340
|
-
textZh: 完全推出後移除旗標程式碼
|
|
341
|
-
required: true
|
|
342
|
-
```
|
|
343
|
-
|
|
344
|
-
---
|
|
345
|
-
|
|
346
|
-
## 版本歷史
|
|
347
|
-
|
|
348
|
-
| 版本 | 日期 | 變更 |
|
|
349
|
-
|------|------|------|
|
|
350
|
-
| 1.0.0 | 2026-01-12 | 初始建立指南 |
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
source: ../../../../skills/methodology-system/SKILL.md
|
|
3
|
-
source_version: 1.0.0
|
|
4
|
-
translation_version: 1.0.0
|
|
5
|
-
last_synced: 2026-01-12
|
|
6
|
-
status: experimental
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# 方法論系統 Skill
|
|
10
|
-
|
|
11
|
-
> **Language**: [English](../../../../skills/methodology-system/SKILL.md) | 繁體中文
|
|
12
|
-
|
|
13
|
-
> [!WARNING]
|
|
14
|
-
> **實驗性功能 / Experimental Feature**
|
|
15
|
-
>
|
|
16
|
-
> 此功能正在積極開發中,可能在 v4.0 中有重大變更。
|
|
17
|
-
> This feature is under active development and may change significantly in v4.0.
|
|
18
|
-
|
|
19
|
-
**版本**: 1.0.0
|
|
20
|
-
**最後更新**: 2026-01-12
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## 概述
|
|
25
|
-
|
|
26
|
-
方法論系統讓採用此規範的專案能夠選擇、配置並遵循特定的開發方法論。內建支援 TDD、BDD、SDD 和 ATDD,並可建立自訂方法論。
|
|
27
|
-
|
|
28
|
-
---
|
|
29
|
-
|
|
30
|
-
## 功能
|
|
31
|
-
|
|
32
|
-
### 核心功能
|
|
33
|
-
|
|
34
|
-
1. **方法論選擇** - 從內建方法論中選擇或建立自訂方法論
|
|
35
|
-
2. **階段追蹤** - 追蹤當前開發階段,提供階段特定的引導
|
|
36
|
-
3. **檢查點系統** - 在關鍵時刻自動提醒和驗證
|
|
37
|
-
4. **檢查清單** - 每個階段都有必須完成的檢查項目
|
|
38
|
-
5. **AI 引導** - 根據當前階段提供上下文感知的 AI 引導
|
|
39
|
-
|
|
40
|
-
### 內建方法論
|
|
41
|
-
|
|
42
|
-
| 方法論 | 說明 | 階段 |
|
|
43
|
-
|--------|------|------|
|
|
44
|
-
| **TDD** | 測試驅動開發 | 紅燈 → 綠燈 → 重構 |
|
|
45
|
-
| **BDD** | 行為驅動開發 | 探索 → 制定 → 自動化 → 活文件 |
|
|
46
|
-
| **SDD** | 規格驅動開發 | 討論 → 提案 → 審查 → 實作 → 驗證 → 歸檔 |
|
|
47
|
-
| **ATDD** | 驗收測試驅動開發 | 工作坊 → 提煉 → 開發 → 展示 |
|
|
48
|
-
|
|
49
|
-
---
|
|
50
|
-
|
|
51
|
-
## 命令
|
|
52
|
-
|
|
53
|
-
| 命令 | 說明 |
|
|
54
|
-
|------|------|
|
|
55
|
-
| `/methodology` | 顯示當前方法論狀態 |
|
|
56
|
-
| `/methodology status` | 顯示當前階段和檢查清單 |
|
|
57
|
-
| `/methodology switch <id>` | 切換到不同方法論 |
|
|
58
|
-
| `/methodology phase [name]` | 顯示或變更當前階段 |
|
|
59
|
-
| `/methodology checklist` | 顯示當前階段檢查清單 |
|
|
60
|
-
| `/methodology skip` | 跳過當前階段(會有警告) |
|
|
61
|
-
| `/methodology list` | 列出可用方法論 |
|
|
62
|
-
| `/methodology create` | 建立自訂方法論 |
|
|
63
|
-
|
|
64
|
-
---
|
|
65
|
-
|
|
66
|
-
## 配置
|
|
67
|
-
|
|
68
|
-
在 `.standards/manifest.json` 中配置方法論:
|
|
69
|
-
|
|
70
|
-
```json
|
|
71
|
-
{
|
|
72
|
-
"methodology": {
|
|
73
|
-
"active": "tdd",
|
|
74
|
-
"available": ["tdd", "bdd", "sdd", "atdd"],
|
|
75
|
-
"config": {
|
|
76
|
-
"checkpointsEnabled": true,
|
|
77
|
-
"reminderIntensity": "suggest",
|
|
78
|
-
"skipLimit": 3
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
### 配置選項
|
|
85
|
-
|
|
86
|
-
| 選項 | 類型 | 預設值 | 說明 |
|
|
87
|
-
|------|------|--------|------|
|
|
88
|
-
| `active` | string | null | 當前啟用的方法論 ID |
|
|
89
|
-
| `available` | string[] | all | 可用的方法論清單 |
|
|
90
|
-
| `checkpointsEnabled` | boolean | true | 是否啟用檢查點提醒 |
|
|
91
|
-
| `reminderIntensity` | string | "suggest" | 提醒強度:suggest、warn、block |
|
|
92
|
-
| `skipLimit` | number | 3 | 連續跳過幾次後顯示警告 |
|
|
93
|
-
|
|
94
|
-
---
|
|
95
|
-
|
|
96
|
-
## AI 行為
|
|
97
|
-
|
|
98
|
-
當方法論啟用時,AI 會:
|
|
99
|
-
|
|
100
|
-
1. **顯示階段指示器** - 使用表情符號標示當前階段(如 🔴 RED)
|
|
101
|
-
2. **提供階段引導** - 根據當前階段建議適當的行動
|
|
102
|
-
3. **追蹤檢查清單** - 自動追蹤和更新檢查項目狀態
|
|
103
|
-
4. **顯示檢查點** - 在階段轉換或大量變更時提醒用戶
|
|
104
|
-
5. **建議提交** - 根據變更累積量建議適當的提交時機
|
|
105
|
-
|
|
106
|
-
---
|
|
107
|
-
|
|
108
|
-
## 自訂方法論
|
|
109
|
-
|
|
110
|
-
可以建立自訂方法論來符合團隊需求:
|
|
111
|
-
|
|
112
|
-
1. 使用 `/methodology create` 啟動互動式建立精靈
|
|
113
|
-
2. 或手動在 `.standards/methodologies/` 建立 YAML 檔案
|
|
114
|
-
|
|
115
|
-
詳見 [建立自訂方法論](create-methodology.md)。
|
|
116
|
-
|
|
117
|
-
---
|
|
118
|
-
|
|
119
|
-
## 相關文件
|
|
120
|
-
|
|
121
|
-
- [命令文檔](../commands/methodology.md) - `/methodology` 命令詳細文檔
|
|
122
|
-
- [執行時引導](runtime.md) - AI 行為規格
|
|
123
|
-
- [建立自訂方法論](create-methodology.md) - 建立指南
|
|
124
|
-
|
|
125
|
-
---
|
|
126
|
-
|
|
127
|
-
## 版本歷史
|
|
128
|
-
|
|
129
|
-
| 版本 | 日期 | 變更 |
|
|
130
|
-
|------|------|------|
|
|
131
|
-
| 1.0.0 | 2026-01-12 | 初始方法論系統 |
|