universal-dev-standards 5.15.1 → 5.17.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 (84) hide show
  1. package/bundled/ai/standards/acceptance-criteria-traceability.ai.yaml +31 -0
  2. package/bundled/ai/standards/forward-derivation-standards.ai.yaml +23 -0
  3. package/bundled/ai/standards/knowledge-graph-memory.ai.yaml +1 -1
  4. package/bundled/core/acceptance-criteria-traceability.md +46 -0
  5. package/bundled/core/forward-derivation-standards.md +19 -0
  6. package/bundled/core/knowledge-graph-memory.md +2 -2
  7. package/bundled/core/spec-driven-development.md +21 -3
  8. package/bundled/locales/zh-CN/CHANGELOG.md +23 -3
  9. package/bundled/locales/zh-CN/README.md +1 -1
  10. package/bundled/locales/zh-CN/core/acceptance-criteria-traceability.md +46 -0
  11. package/bundled/locales/zh-CN/core/forward-derivation-standards.md +19 -0
  12. package/bundled/locales/zh-CN/core/spec-driven-development.md +16 -2
  13. package/bundled/locales/zh-CN/skills/ac-coverage/SKILL.md +194 -0
  14. package/bundled/locales/zh-CN/skills/adr-assistant/SKILL.md +135 -40
  15. package/bundled/locales/zh-CN/skills/brainstorm-assistant/SKILL.md +217 -63
  16. package/bundled/locales/zh-CN/skills/brainstorm-assistant/guide.md +599 -0
  17. package/bundled/locales/zh-CN/skills/commands/brainstorm.md +92 -25
  18. package/bundled/locales/zh-CN/skills/commit-standards/SKILL.md +78 -16
  19. package/bundled/locales/zh-CN/skills/contract-test-assistant/SKILL.md +85 -26
  20. package/bundled/locales/zh-CN/skills/deploy-assistant/SKILL.md +189 -0
  21. package/bundled/locales/zh-CN/skills/dev-methodology/SKILL.md +110 -0
  22. package/bundled/locales/zh-CN/skills/dev-methodology/guide.md +255 -0
  23. package/bundled/locales/zh-CN/skills/dev-workflow-guide/SKILL.md +70 -11
  24. package/bundled/locales/zh-CN/skills/journey-test-assistant/SKILL.md +209 -0
  25. package/bundled/locales/zh-CN/skills/knowledge-graph/SKILL.md +58 -0
  26. package/bundled/locales/zh-CN/skills/knowledge-graph/guide.md +74 -0
  27. package/bundled/locales/zh-CN/skills/migration-assistant/SKILL.md +125 -8
  28. package/bundled/locales/zh-CN/skills/observability-assistant/guide.md +188 -0
  29. package/bundled/locales/zh-CN/skills/orchestrate/SKILL.md +173 -0
  30. package/bundled/locales/zh-CN/skills/plan/SKILL.md +240 -0
  31. package/bundled/locales/zh-CN/skills/push/SKILL.md +242 -0
  32. package/bundled/locales/zh-CN/skills/retrospective-assistant/SKILL.md +104 -36
  33. package/bundled/locales/zh-CN/skills/reverse-engineer/SKILL.md +88 -32
  34. package/bundled/locales/zh-CN/skills/runbook-assistant/guide.md +216 -0
  35. package/bundled/locales/zh-CN/skills/skill-builder/SKILL.md +149 -0
  36. package/bundled/locales/zh-CN/skills/slo-assistant/guide.md +188 -0
  37. package/bundled/locales/zh-CN/skills/spec-derivation/SKILL.md +86 -0
  38. package/bundled/locales/zh-CN/skills/spec-derivation/guide.md +476 -0
  39. package/bundled/locales/zh-CN/skills/spec-driven-dev/SKILL.md +155 -81
  40. package/bundled/locales/zh-CN/skills/sweep/SKILL.md +151 -0
  41. package/bundled/locales/zh-CN/skills/testing-guide/SKILL.md +207 -110
  42. package/bundled/locales/zh-TW/CHANGELOG.md +23 -3
  43. package/bundled/locales/zh-TW/README.md +1 -1
  44. package/bundled/locales/zh-TW/core/acceptance-criteria-traceability.md +46 -0
  45. package/bundled/locales/zh-TW/core/browser-compatibility-standards.md +222 -5
  46. package/bundled/locales/zh-TW/core/contract-testing-standards.md +184 -5
  47. package/bundled/locales/zh-TW/core/cross-flow-regression.md +192 -5
  48. package/bundled/locales/zh-TW/core/forward-derivation-standards.md +19 -0
  49. package/bundled/locales/zh-TW/core/knowledge-graph-memory.md +2 -2
  50. package/bundled/locales/zh-TW/core/release-readiness-gate.md +186 -5
  51. package/bundled/locales/zh-TW/core/spec-driven-development.md +20 -2
  52. package/bundled/locales/zh-TW/skills/adr-assistant/SKILL.md +21 -42
  53. package/bundled/locales/zh-TW/skills/brainstorm-assistant/SKILL.md +212 -59
  54. package/bundled/locales/zh-TW/skills/brainstorm-assistant/guide.md +266 -579
  55. package/bundled/locales/zh-TW/skills/commands/brainstorm.md +91 -26
  56. package/bundled/locales/zh-TW/skills/commit-standards/SKILL.md +77 -15
  57. package/bundled/locales/zh-TW/skills/contract-test-assistant/SKILL.md +75 -16
  58. package/bundled/locales/zh-TW/skills/dev-methodology/guide.md +255 -0
  59. package/bundled/locales/zh-TW/skills/dev-workflow-guide/SKILL.md +125 -64
  60. package/bundled/locales/zh-TW/skills/knowledge-graph/SKILL.md +5 -5
  61. package/bundled/locales/zh-TW/skills/knowledge-graph/guide.md +74 -0
  62. package/bundled/locales/zh-TW/skills/migration-assistant/SKILL.md +128 -11
  63. package/bundled/locales/zh-TW/skills/observability-assistant/guide.md +188 -0
  64. package/bundled/locales/zh-TW/skills/orchestrate/SKILL.md +3 -2
  65. package/bundled/locales/zh-TW/skills/plan/SKILL.md +3 -2
  66. package/bundled/locales/zh-TW/skills/push/SKILL.md +3 -2
  67. package/bundled/locales/zh-TW/skills/retrospective-assistant/SKILL.md +94 -28
  68. package/bundled/locales/zh-TW/skills/reverse-engineer/SKILL.md +84 -28
  69. package/bundled/locales/zh-TW/skills/runbook-assistant/guide.md +216 -0
  70. package/bundled/locales/zh-TW/skills/slo-assistant/guide.md +188 -0
  71. package/bundled/locales/zh-TW/skills/spec-derivation/guide.md +476 -0
  72. package/bundled/locales/zh-TW/skills/spec-driven-dev/SKILL.md +148 -77
  73. package/bundled/locales/zh-TW/skills/testing-guide/SKILL.md +141 -44
  74. package/bundled/skills/brainstorm-assistant/SKILL.md +142 -106
  75. package/bundled/skills/brainstorm-assistant/guide.md +256 -661
  76. package/bundled/skills/commands/brainstorm.md +51 -30
  77. package/bundled/skills/knowledge-graph/SKILL.md +5 -5
  78. package/bundled/skills/knowledge-graph/guide.md +4 -4
  79. package/bundled/skills/spec-driven-dev/SKILL.md +27 -0
  80. package/package.json +2 -2
  81. package/src/commands/check.js +11 -2
  82. package/src/lint/i18n.js +109 -23
  83. package/standards-registry.json +4 -4
  84. package/bundled/locales/zh-TW/docs/SKILL-FALLBACK-GUIDE.md +0 -407
@@ -0,0 +1,110 @@
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-06-02
7
+ source_hash: d654ee51f713
8
+ status: current
9
+ scope: partial
10
+ description: |
11
+ [UDS] /methodology: 选择并追踪开发方法论(SDD/BDD/TDD)。
12
+ Use when: 选择方法论、切换开发模式、查询当前方法论状态。
13
+ 若要查询各阶段对应命令请用 /dev-workflow。
14
+ allowed-tools: Read, Write, Grep, Glob
15
+ argument-hint: "[动作] [参数]"
16
+ ---
17
+
18
+ # 方法论系统
19
+
20
+ > **语言**: [English](../../../../skills/dev-methodology/SKILL.md) | 简体中文
21
+
22
+ > [!WARNING]
23
+ > **实验性功能**
24
+ >
25
+ > 此功能正在积极开发中,可能在 v4.0 中有重大变更。
26
+
27
+ 选择并管理当前项目启用的开发方法论。本技能专注于**选择使用哪种方法论**(SDD、BDD、TDD),并追踪所选方法论内的阶段进度。
28
+
29
+ > **相关**:如需查询开发阶段对应的 UDS 命令,请改用 `/dev-workflow`。
30
+
31
+ ### 何时使用 `/methodology` 与 `/dev-workflow`
32
+
33
+ | 场景 | `/methodology` | `/dev-workflow` |
34
+ |------|---------------|-----------------|
35
+ | 在 SDD / BDD / TDD 之间选择 | ✅ | ❌ |
36
+ | 切换不同方法论 | ✅ | ❌ |
37
+ | 追踪当前阶段进度 | ✅ | ❌ |
38
+ | 找出某个任务该用的 UDS 命令 | ❌ | ✅ |
39
+ | 取得新功能 / Bug 修复的逐步流程 | ❌ | ✅ |
40
+ | 浏览 8 个开发阶段 | ❌ | ✅ |
41
+
42
+ **两个独立系统:**
43
+ - **System A:SDD** — 规格驱动开发(AI 时代,spec-first)
44
+ - **System B:双循环 TDD** — BDD(外圈)+ TDD(内圈)(传统)
45
+
46
+ **可选输入:** ATDD — 验收测试驱动开发(可馈入任一系统)
47
+
48
+ ## 动作
49
+
50
+ | 动作 | 说明 |
51
+ |------|------|
52
+ | *(无)* / `status` | 显示当前阶段与检查清单 |
53
+ | `switch <id>` | 切换到不同方法论 |
54
+ | `phase [name]` | 显示或变更当前阶段 |
55
+ | `checklist` | 显示当前阶段检查清单 |
56
+ | `skip` | 跳过当前阶段(会出现警告) |
57
+ | `list` | 列出可用方法论 |
58
+ | `create` | 创建自定义方法论 |
59
+
60
+ ## 可用方法论
61
+
62
+ | 系统 | ID | 工作流程 | 说明 |
63
+ |------|-----|----------|------|
64
+ | A: SDD | `sdd` | /sdd → 审查 → /derive-all → 实现 | 规格优先 |
65
+ | B: BDD | `bdd` | Discovery → Formulation → Automation | 外部循环 |
66
+ | B: TDD | `tdd` | Red → Green → Refactor | 内部循环 |
67
+ | 输入 | `atdd` | Workshop → Examples → Tests | 验收测试驱动 |
68
+
69
+ ## 使用示例
70
+
71
+ ```bash
72
+ /methodology # 显示当前状态
73
+ /methodology switch sdd # 切换至规格驱动开发
74
+ /methodology phase green # 移动到 GREEN 阶段(TDD)
75
+ /methodology checklist # 显示当前阶段检查清单
76
+ /methodology list # 列出所有可用方法论
77
+ /methodology skip # 跳过当前阶段(会出现警告)
78
+ /methodology create # 启动自定义方法论向导
79
+ ```
80
+
81
+ ## 配置
82
+
83
+ 方法论设置存储于 `.standards/manifest.json`:
84
+
85
+ ```json
86
+ {
87
+ "methodology": {
88
+ "active": "sdd",
89
+ "available": ["tdd", "bdd", "sdd", "atdd"]
90
+ }
91
+ }
92
+ ```
93
+
94
+ ## 下一步引导
95
+
96
+ `/methodology` 完成后,AI 助手应依所选方法论建议下一步:
97
+
98
+ > **方法论已设置。建议下一步:**
99
+ > - SDD 方法论 → 执行 `/sdd` 创建规格 ⭐ **推荐**
100
+ > - BDD 方法论 → 执行 `/bdd` 开始场景探索
101
+ > - TDD 方法论 → 执行 `/tdd` 开始红绿重构
102
+ > - ATDD 方法论 → 执行 `/atdd` 定义验收条件
103
+
104
+ ## 参考
105
+
106
+ - 详细指南:[guide.md](./guide.md)
107
+
108
+ ## AI 代理行为
109
+
110
+ > 完整的 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
+ 管理并引导开发者完成进行中的开发方法论工作流。
11
+ 适用场景:需要 TDD、BDD、SDD、ATDD 或自定义方法论工作流时。
12
+ 关键词:方法论、工作流、TDD、BDD、SDD、ATDD、阶段、检查点、开发流程。
13
+ ---
14
+
15
+ > [!WARNING]
16
+ > **实验性功能 / 實驗性功能**
17
+ >
18
+ > 此功能正在积极开发中,可能在 v4.0 中有重大变更。
19
+ > 此功能正在積極開發中,可能在 v4.0 中有重大變更。
20
+
21
+ # 方法论系统 Skill
22
+
23
+ > **语言**:English | [繁體中文](../../locales/zh-TW/skills/methodology-system/SKILL.md)
24
+
25
+ **版本**:2.0.0
26
+ **最后更新**:2026-01-25
27
+
28
+ ---
29
+
30
+ ## 概述
31
+
32
+ 方法论系统为采用 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
+ **系统 A:SDD(规格驱动开发,Spec-Driven Development)**
61
+ - 讨论 → 提案 → 评审 → 正向推导 → 实现 → 验证 → 归档
62
+ - 以规格作为权威来源的 AI 原生工作流
63
+
64
+ **系统 B:双循环 TDD**
65
+ - **BDD**(外循环)- 发现 → 制定 → 自动化
66
+ - **TDD**(内循环)- 红 → 绿 → 重构
67
+
68
+ **可选输入**
69
+ - **ATDD** - 验收测试驱动开发研讨会(可输入到任一系统)
70
+
71
+ **自定义** - 用户自定义的方法论
72
+
73
+ ---
74
+
75
+ ## 功能特性
76
+
77
+ ### 1. 阶段感知引导
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. 检查点提醒
97
+
98
+ 基于方法论触发条件的自动提醒:
99
+
100
+ - **阶段转换**:阶段完成时建议提交(commit)
101
+ - **累积警告**:变更超过阈值时发出警告
102
+ - **跳过警告**:连续跳过检查后发出警示
103
+
104
+ ### 3. 方法论切换
105
+
106
+ 随着项目需求变化,在各方法论之间切换:
107
+
108
+ ```
109
+ /methodology switch bdd
110
+ ```
111
+
112
+ ### 4. 自定义方法论支持
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` | 方法论 id | 当前激活的方法论 |
169
+ | `checkpointsEnabled` | `true`/`false` | 启用检查点提醒 |
170
+ | `reminderIntensity` | `suggest`/`warning`/`strict` | 强制检查点的强度 |
171
+ | `skipLimit` | 数字 | 发出警告前的连续跳过次数 |
172
+
173
+ ---
174
+
175
+ ## AI 行为
176
+
177
+ ### 检测
178
+
179
+ 1. 检查 `.standards/manifest.json` 中的 `methodology.active`
180
+ 2. 从以下位置加载方法论定义:
181
+ - 内置:`methodologies/{id}.methodology.yaml`
182
+ - 自定义:`.standards/methodologies/{id}.methodology.yaml`
183
+
184
+ ### 阶段追踪
185
+
186
+ - 根据触发条件追踪当前阶段
187
+ - 当满足退出条件时更新阶段
188
+ - 提供阶段专属的引导与检查清单
189
+
190
+ ### 上下文关键词
191
+
192
+ 当检测到以下关键词时,AI 会自动激活方法论上下文:
193
+
194
+ | 系统 | 方法论 | 关键词 |
195
+ |--------|-------------|----------|
196
+ | A: SDD | SDD | specification, spec first, proposal, derive tests, forward derivation |
197
+ | B: 双循环 | BDD(外) | given when then, gherkin, cucumber, scenario, discovery |
198
+ | B: 双循环 | TDD(内) | test first, red green refactor, failing test |
199
+ | 输入 | 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
+ ### 代码评审
224
+
225
+ 会根据当前激活的方法论增加额外的评审检查项:
226
+
227
+ - **TDD**:测试遵循命名约定,每个测试只验证单一行为
228
+ - **BDD**:声明式风格,可复用的步骤
229
+ - **SDD**:变更与规格一致,无范围蔓延
230
+ - **ATDD**:所有验收条件都有对应的测试
231
+
232
+ ---
233
+
234
+ ## 相关 Skill
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 行为与运行时指南
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 | 初始方法论系统 |
@@ -2,7 +2,8 @@
2
2
  source: ../../../../skills/dev-workflow-guide/SKILL.md
3
3
  source_version: 1.0.0
4
4
  translation_version: 1.0.0
5
- last_synced: 2026-03-24
5
+ last_synced: 2026-06-02
6
+ source_hash: 5bf83f0db544
6
7
  status: current
7
8
  description: |
8
9
  将软件开发阶段对应到 UDS 命令与技能。
@@ -32,13 +33,13 @@ V. Release ──► VI. Documentation ──► VII. Standards ──► VIII.
32
33
 
33
34
  | 阶段 | UDS 命令 | 用途 |
34
35
  |------|---------|------|
35
- | **I. 规划与设计** | `/brainstorm` `/requirement` `/sdd` `/reverse` | 需求、规格、逆向工程 |
36
- | **II. 测试驱动开发** | `/bdd` `/atdd` `/tdd` `/coverage` `/derive` | 先写测试再写代码 |
37
- | **III. 实现** | `/refactor` `/reverse` | 撰写与改善代码 |
38
- | **IV. 品质关卡** | `/checkin` `/review` | 提交前检查与代码审查 |
39
- | **V. 发布与提交** | `/commit` `/changelog` `/release` | 版本、提交、发布 |
40
- | **VI. 文档** | `/docs` `/docgen` `/struct` | 文档与项目结构 |
41
- | **VII. 工具与标准** | `/discover` `/testing` `/guide` `/git` | 参考指南 |
36
+ | **I. 规划与设计** | `/brainstorm` `/requirement` `/sdd` `/reverse` `/api-design` `/database` | 需求、规格、API/DB 设计 |
37
+ | **II. 测试驱动开发** | `/bdd` `/atdd` `/tdd` `/coverage` `/derive` `/ac-coverage` | 先写测试再写代码 |
38
+ | **III. 实现** | `/refactor` `/reverse` `/migrate` `/durable` | 撰写、改善与迁移代码 |
39
+ | **IV. 品质关卡** | `/checkin` `/review` `/security` `/scan` `/incident` | 品质、安全、事故响应 |
40
+ | **V. 发布与提交** | `/commit` `/changelog` `/release` `/pr` `/ci-cd` | 版本、提交、PR、CI/CD |
41
+ | **VI. 文档** | `/docs` `/docgen` | 文档与项目结构 |
42
+ | **VII. 工具与标准** | `/discover` `/guide` `/metrics` `/audit` | 参考指南、指标、审计 |
42
43
  | **VIII. 进阶分析** | `/methodology` | 跨方法论工作流程 |
43
44
 
44
45
  ## 常见场景
@@ -54,7 +55,7 @@ V. Release ──► VI. Documentation ──► VII. Standards ──► VIII.
54
55
  | 步骤 | 命令 | 做什么 |
55
56
  |------|------|--------|
56
57
  | 1 | `/brainstorm` | 探索想法与方法 |
57
- | 2 | `/requirement` | 撰写用户故事 |
58
+ | 2 | `/requirement` | 撰写用户故事(INVEST 准则) |
58
59
  | 3 | `/sdd` | 创建规格文件 |
59
60
  | 4 | `/derive` | 从规格产生测试骨架 |
60
61
  | 5 | `/tdd` | 用红绿重构循环实现 |
@@ -94,6 +95,38 @@ V. Release ──► VI. Documentation ──► VII. Standards ──► VIII.
94
95
  | 5 | `/checkin` | 验证品质关卡 |
95
96
  | 6 | `/commit` | 创建规范化提交 |
96
97
 
98
+ ### 场景 4:安全审查
99
+
100
+ 安全审查与漏洞修复的推荐流程:
101
+
102
+ ```
103
+ /scan → /security → /checkin → /commit
104
+ ```
105
+
106
+ | 步骤 | 命令 | 做什么 |
107
+ |------|------|--------|
108
+ | 1 | `/scan` | 执行自动化安全扫描(依赖项、密钥) |
109
+ | 2 | `/security` | 深入安全审查(OWASP) |
110
+ | 3 | `/checkin` | 验证品质关卡 |
111
+ | 4 | `/commit` | 创建规范化提交 |
112
+
113
+ ### 场景 5:API 设计与实现
114
+
115
+ 设计与实现 API 的推荐流程:
116
+
117
+ ```
118
+ /brainstorm → /api-design → /sdd → /derive → /tdd → /pr
119
+ ```
120
+
121
+ | 步骤 | 命令 | 做什么 |
122
+ |------|------|--------|
123
+ | 1 | `/brainstorm` | 探索 API 方案 |
124
+ | 2 | `/api-design` | 设计端点与 schema |
125
+ | 3 | `/sdd` | 创建规格文件 |
126
+ | 4 | `/derive` | 产生测试骨架 |
127
+ | 5 | `/tdd` | 搭配测试实现 |
128
+ | 6 | `/pr` | 创建 Pull Request |
129
+
97
130
  ## 使用方式
98
131
 
99
132
  ```bash
@@ -120,6 +153,8 @@ V. Release ──► VI. Documentation ──► VII. Standards ──► VIII.
120
153
  | `new-feature` | 场景:新功能开发 |
121
154
  | `bug-fix` | 场景:修复错误 |
122
155
  | `refactoring` | 场景:重构 |
156
+ | `security` | 场景:安全审查 |
157
+ | `api` | 场景:API 设计 |
123
158
 
124
159
  ## 工作流程行为
125
160
 
@@ -129,17 +164,41 @@ V. Release ──► VI. Documentation ──► VII. Standards ──► VIII.
129
164
  2. **阶段参数**:显示该阶段的详细指引,包含所有相关命令与示例
130
165
  3. **场景参数**:显示该场景的推荐逐步工作流程
131
166
 
167
+ 此技能会从 [workflow-phases.md](./workflow-phases.md) 读取详细的阶段信息。
168
+
132
169
  ## 下一步引导
133
170
 
134
171
  `/dev-workflow` 完成后,AI 助手应根据用户情况建议:
135
172
 
136
173
  > **工作流程已显示。建议下一步:**
137
- > - 新功能开发 → 执行 `/brainstorm` 探索想法
174
+ > - 新功能开发 → 执行 `/brainstorm` 探索想法 ⭐ **推荐**
138
175
  > - 修复错误 → 执行 `/discover` 评估受影响区域
139
176
  > - 重构代码 → 执行 `/discover` 评估健康度
140
177
  > - 遗留系统 → 执行 `/reverse` 进行系统考古
178
+ > - 安全审查 → 执行 `/scan` 扫描漏洞
179
+ > - API 开发 → 执行 `/api-design` 设计端点
180
+ > - 事故响应 → 执行 `/incident` 启动响应流程
141
181
 
142
182
  ## 参考
143
183
 
144
- - [详细阶段指南](./workflow-phases.md) - 完整的阶段参考
184
+ - [详细阶段指南](./workflow-phases.md) - 完整的逐阶段参考
145
185
  - [日常工作流程指南](../../../../adoption/DAILY-WORKFLOW-GUIDE.md) - 综合日常工作流程指南
186
+ - [功能开发工作流程](../workflows/feature-dev.yaml) - 自动化功能开发工作流程
187
+ - [集成流程工作流程](../workflows/integrated-flow.yaml) - 完整的 ATDD/SDD/BDD/TDD 工作流程
188
+
189
+ ---
190
+
191
+ ## 版本历史
192
+
193
+ | 版本 | 日期 | 变更 |
194
+ |------|------|------|
195
+ | 1.1.0 | 2026-03-24 | 新增 11 个命令、2 个新场景(安全审查、API 设计) |
196
+ | 1.0.0 | 2026-03-04 | 初始版本:8 个开发阶段、3 个场景、基于阶段的导航 |
197
+
198
+ ---
199
+
200
+ ## 许可证
201
+
202
+ 本技能依 [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) 发布。
203
+
204
+ **来源**:[universal-dev-standards](https://github.com/AsiaOstrich/universal-dev-standards)