universal-dev-standards 5.0.0-rc.8 → 5.0.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 (355) hide show
  1. package/bin/uds.js +5 -3
  2. package/bundled/ai/standards/acceptance-criteria-traceability.ai.yaml +178 -0
  3. package/bundled/ai/standards/agent-dispatch.ai.yaml +69 -0
  4. package/bundled/ai/standards/ai-command-behavior.ai.yaml +45 -0
  5. package/bundled/ai/standards/api-design-standards.ai.yaml +192 -0
  6. package/bundled/ai/standards/branch-completion.ai.yaml +82 -0
  7. package/bundled/ai/standards/change-batching-standards.ai.yaml +195 -0
  8. package/bundled/ai/standards/database-standards.ai.yaml +220 -0
  9. package/bundled/ai/standards/error-codes.ai.yaml +37 -2
  10. package/bundled/ai/standards/git-worktree.ai.yaml +77 -0
  11. package/bundled/ai/standards/logging.ai.yaml +21 -2
  12. package/bundled/ai/standards/model-selection.ai.yaml +81 -0
  13. package/bundled/ai/standards/pipeline-integration-standards.ai.yaml +184 -0
  14. package/bundled/ai/standards/systematic-debugging.ai.yaml +73 -0
  15. package/bundled/ai/standards/verification-evidence.ai.yaml +84 -0
  16. package/bundled/ai/standards/workflow-enforcement.ai.yaml +253 -0
  17. package/bundled/core/acceptance-criteria-traceability.md +293 -0
  18. package/bundled/core/agent-dispatch.md +149 -0
  19. package/bundled/core/ai-command-behavior.md +239 -0
  20. package/bundled/core/api-design-standards.md +938 -0
  21. package/bundled/core/branch-completion.md +158 -0
  22. package/bundled/core/change-batching-standards.md +257 -0
  23. package/bundled/core/checkin-standards.md +43 -6
  24. package/bundled/core/database-standards.md +828 -0
  25. package/bundled/core/error-code-standards.md +228 -2
  26. package/bundled/core/forward-derivation-standards.md +54 -2
  27. package/bundled/core/git-worktree.md +131 -0
  28. package/bundled/core/model-selection.md +153 -0
  29. package/bundled/core/pipeline-integration-standards.md +230 -0
  30. package/bundled/core/systematic-debugging.md +156 -0
  31. package/bundled/core/testing-standards.md +49 -39
  32. package/bundled/core/verification-evidence.md +172 -0
  33. package/bundled/core/workflow-enforcement.md +132 -0
  34. package/bundled/locales/zh-CN/CLAUDE.md +2 -2
  35. package/bundled/locales/zh-CN/README.md +4 -4
  36. package/bundled/locales/zh-CN/SECURITY.md +92 -0
  37. package/bundled/locales/zh-CN/core/acceptance-criteria-traceability.md +301 -0
  38. package/bundled/locales/zh-CN/core/acceptance-test-driven-development.md +47 -0
  39. package/bundled/locales/zh-CN/core/accessibility-standards.md +124 -0
  40. package/bundled/locales/zh-CN/core/agent-dispatch.md +113 -0
  41. package/bundled/locales/zh-CN/core/ai-agreement-standards.md +103 -0
  42. package/bundled/locales/zh-CN/core/ai-command-behavior.md +247 -0
  43. package/bundled/locales/zh-CN/core/api-design-standards.md +946 -0
  44. package/bundled/locales/zh-CN/core/behavior-driven-development.md +48 -0
  45. package/bundled/locales/zh-CN/core/branch-completion.md +112 -0
  46. package/bundled/locales/zh-CN/core/change-batching-standards.md +265 -0
  47. package/bundled/locales/zh-CN/core/checkin-standards.md +43 -5
  48. package/bundled/locales/zh-CN/core/context-aware-loading.md +106 -0
  49. package/bundled/locales/zh-CN/core/database-standards.md +836 -0
  50. package/bundled/locales/zh-CN/core/deployment-standards.md +80 -0
  51. package/bundled/locales/zh-CN/core/error-code-standards.md +2 -2
  52. package/bundled/locales/zh-CN/core/forward-derivation-standards.md +493 -0
  53. package/bundled/locales/zh-CN/core/git-worktree.md +101 -0
  54. package/bundled/locales/zh-CN/core/model-selection.md +112 -0
  55. package/bundled/locales/zh-CN/core/performance-standards.md +104 -0
  56. package/bundled/locales/zh-CN/core/pipeline-integration-standards.md +238 -0
  57. package/bundled/locales/zh-CN/core/project-context-memory.md +124 -0
  58. package/bundled/locales/zh-CN/core/requirement-engineering.md +49 -0
  59. package/bundled/locales/zh-CN/core/security-standards.md +100 -0
  60. package/bundled/locales/zh-CN/core/systematic-debugging.md +106 -0
  61. package/bundled/locales/zh-CN/core/test-governance.md +116 -0
  62. package/bundled/locales/zh-CN/core/testing-standards.md +392 -156
  63. package/bundled/locales/zh-CN/core/verification-evidence.md +118 -0
  64. package/bundled/locales/zh-CN/core/virtual-organization-standards.md +104 -0
  65. package/bundled/locales/zh-CN/core/workflow-enforcement.md +132 -0
  66. package/bundled/locales/zh-CN/docs/CHEATSHEET.md +27 -1
  67. package/bundled/locales/zh-CN/docs/CLI-INIT-OPTIONS.md +9 -1
  68. package/bundled/locales/zh-CN/docs/FEATURE-REFERENCE.md +37 -9
  69. package/bundled/locales/zh-CN/docs/USER-MANUAL.md +652 -0
  70. package/bundled/locales/zh-CN/integrations/github-copilot/copilot-instructions.md +1 -1
  71. package/bundled/locales/zh-CN/integrations/openspec/AGENTS.md +29 -4
  72. package/bundled/locales/zh-CN/integrations/spec-kit/AGENTS.md +143 -72
  73. package/bundled/locales/zh-CN/skills/ac-coverage-assistant/SKILL.md +126 -0
  74. package/bundled/locales/zh-CN/skills/api-design-assistant/SKILL.md +100 -0
  75. package/bundled/locales/zh-CN/skills/brainstorm-assistant/SKILL.md +119 -0
  76. package/bundled/locales/zh-CN/skills/ci-cd-assistant/SKILL.md +82 -0
  77. package/bundled/locales/zh-CN/skills/commands/ac-coverage.md +97 -0
  78. package/bundled/locales/zh-CN/skills/commands/api-design.md +94 -0
  79. package/bundled/locales/zh-CN/skills/commands/atdd.md +163 -0
  80. package/bundled/locales/zh-CN/skills/commands/audit.md +77 -0
  81. package/bundled/locales/zh-CN/skills/commands/bdd.md +1 -1
  82. package/bundled/locales/zh-CN/skills/commands/brainstorm.md +87 -0
  83. package/bundled/locales/zh-CN/skills/commands/changelog.md +63 -0
  84. package/bundled/locales/zh-CN/skills/commands/check.md +219 -0
  85. package/bundled/locales/zh-CN/skills/commands/checkin.md +61 -0
  86. package/bundled/locales/zh-CN/skills/commands/ci-cd.md +77 -0
  87. package/bundled/locales/zh-CN/skills/commands/commit.md +81 -0
  88. package/bundled/locales/zh-CN/skills/commands/config.md +207 -0
  89. package/bundled/locales/zh-CN/skills/commands/coverage.md +74 -0
  90. package/bundled/locales/zh-CN/skills/commands/database.md +78 -0
  91. package/bundled/locales/zh-CN/skills/commands/derive-all.md +58 -0
  92. package/bundled/locales/zh-CN/skills/commands/derive-atdd.md +54 -0
  93. package/bundled/locales/zh-CN/skills/commands/derive-bdd.md +53 -0
  94. package/bundled/locales/zh-CN/skills/commands/derive-tdd.md +54 -0
  95. package/bundled/locales/zh-CN/skills/commands/derive.md +78 -0
  96. package/bundled/locales/zh-CN/skills/commands/dev-workflow.md +119 -0
  97. package/bundled/locales/zh-CN/skills/commands/discover.md +86 -0
  98. package/bundled/locales/zh-CN/skills/commands/docgen.md +67 -0
  99. package/bundled/locales/zh-CN/skills/commands/docs.md +65 -0
  100. package/bundled/locales/zh-CN/skills/commands/durable.md +87 -0
  101. package/bundled/locales/zh-CN/skills/commands/guide.md +52 -0
  102. package/bundled/locales/zh-CN/skills/commands/incident.md +92 -0
  103. package/bundled/locales/zh-CN/skills/commands/init.md +272 -0
  104. package/bundled/locales/zh-CN/skills/commands/methodology.md +1 -1
  105. package/bundled/locales/zh-CN/skills/commands/metrics.md +73 -0
  106. package/bundled/locales/zh-CN/skills/commands/migrate.md +92 -0
  107. package/bundled/locales/zh-CN/skills/commands/pr.md +80 -0
  108. package/bundled/locales/zh-CN/skills/commands/refactor.md +1 -1
  109. package/bundled/locales/zh-CN/skills/commands/release.md +62 -0
  110. package/bundled/locales/zh-CN/skills/commands/requirement.md +54 -0
  111. package/bundled/locales/zh-CN/skills/commands/reverse-bdd.md +47 -0
  112. package/bundled/locales/zh-CN/skills/commands/reverse-sdd.md +51 -0
  113. package/bundled/locales/zh-CN/skills/commands/reverse-tdd.md +51 -0
  114. package/bundled/locales/zh-CN/skills/commands/reverse.md +63 -0
  115. package/bundled/locales/zh-CN/skills/commands/review.md +50 -0
  116. package/bundled/locales/zh-CN/skills/commands/scan.md +76 -0
  117. package/bundled/locales/zh-CN/skills/commands/sdd-retro.md +40 -0
  118. package/bundled/locales/zh-CN/skills/commands/sdd.md +379 -0
  119. package/bundled/locales/zh-CN/skills/commands/security.md +75 -0
  120. package/bundled/locales/zh-CN/skills/commands/tdd.md +111 -0
  121. package/bundled/locales/zh-CN/skills/commands/update.md +337 -0
  122. package/bundled/locales/zh-CN/skills/commit-standards/SKILL.md +1 -2
  123. package/bundled/locales/zh-CN/skills/database-assistant/SKILL.md +97 -0
  124. package/bundled/locales/zh-CN/skills/dev-workflow-guide/SKILL.md +145 -0
  125. package/bundled/locales/zh-CN/skills/durable-execution-assistant/SKILL.md +84 -0
  126. package/bundled/locales/zh-CN/skills/incident-response-assistant/SKILL.md +107 -0
  127. package/bundled/locales/zh-CN/skills/metrics-dashboard-assistant/SKILL.md +67 -0
  128. package/bundled/locales/zh-CN/skills/migration-assistant/SKILL.md +77 -0
  129. package/bundled/locales/zh-CN/skills/pr-automation-assistant/SKILL.md +90 -0
  130. package/bundled/locales/zh-CN/skills/security-assistant/SKILL.md +79 -0
  131. package/bundled/locales/zh-CN/skills/security-scan-assistant/SKILL.md +72 -0
  132. package/bundled/locales/zh-CN/skills/spec-driven-dev/SKILL.md +73 -10
  133. package/bundled/locales/zh-CN/skills/spec-driven-dev/guide.md +267 -122
  134. package/bundled/locales/zh-TW/CLAUDE.md +2 -2
  135. package/bundled/locales/zh-TW/README.md +4 -4
  136. package/bundled/locales/zh-TW/SECURITY.md +92 -0
  137. package/bundled/locales/zh-TW/core/acceptance-criteria-traceability.md +301 -0
  138. package/bundled/locales/zh-TW/core/acceptance-test-driven-development.md +47 -0
  139. package/bundled/locales/zh-TW/core/accessibility-standards.md +84 -0
  140. package/bundled/locales/zh-TW/core/agent-dispatch.md +89 -0
  141. package/bundled/locales/zh-TW/core/ai-agreement-standards.md +87 -0
  142. package/bundled/locales/zh-TW/core/ai-command-behavior.md +247 -0
  143. package/bundled/locales/zh-TW/core/api-design-standards.md +946 -0
  144. package/bundled/locales/zh-TW/core/behavior-driven-development.md +63 -0
  145. package/bundled/locales/zh-TW/core/branch-completion.md +76 -0
  146. package/bundled/locales/zh-TW/core/change-batching-standards.md +265 -0
  147. package/bundled/locales/zh-TW/core/checkin-standards.md +39 -5
  148. package/bundled/locales/zh-TW/core/context-aware-loading.md +86 -0
  149. package/bundled/locales/zh-TW/core/database-standards.md +836 -0
  150. package/bundled/locales/zh-TW/core/deployment-standards.md +66 -0
  151. package/bundled/locales/zh-TW/core/error-code-standards.md +230 -4
  152. package/bundled/locales/zh-TW/core/forward-derivation-standards.md +62 -2
  153. package/bundled/locales/zh-TW/core/git-worktree.md +104 -0
  154. package/bundled/locales/zh-TW/core/model-selection.md +83 -0
  155. package/bundled/locales/zh-TW/core/performance-standards.md +84 -0
  156. package/bundled/locales/zh-TW/core/pipeline-integration-standards.md +238 -0
  157. package/bundled/locales/zh-TW/core/project-context-memory.md +79 -0
  158. package/bundled/locales/zh-TW/core/requirement-engineering.md +79 -0
  159. package/bundled/locales/zh-TW/core/security-standards.md +74 -0
  160. package/bundled/locales/zh-TW/core/systematic-debugging.md +95 -0
  161. package/bundled/locales/zh-TW/core/test-governance.md +88 -0
  162. package/bundled/locales/zh-TW/core/testing-standards.md +309 -86
  163. package/bundled/locales/zh-TW/core/verification-evidence.md +94 -0
  164. package/bundled/locales/zh-TW/core/virtual-organization-standards.md +88 -0
  165. package/bundled/locales/zh-TW/core/workflow-enforcement.md +132 -0
  166. package/bundled/locales/zh-TW/docs/CHEATSHEET.md +27 -1
  167. package/bundled/locales/zh-TW/docs/CLI-INIT-OPTIONS.md +9 -1
  168. package/bundled/locales/zh-TW/docs/FEATURE-REFERENCE.md +37 -9
  169. package/bundled/locales/zh-TW/docs/USER-MANUAL.md +652 -0
  170. package/bundled/locales/zh-TW/integrations/github-copilot/copilot-instructions.md +1 -1
  171. package/bundled/locales/zh-TW/integrations/openspec/AGENTS.md +29 -4
  172. package/bundled/locales/zh-TW/integrations/spec-kit/AGENTS.md +142 -71
  173. package/bundled/locales/zh-TW/skills/ac-coverage-assistant/SKILL.md +127 -0
  174. package/bundled/locales/zh-TW/skills/ai-friendly-architecture/SKILL.md +1 -4
  175. package/bundled/locales/zh-TW/skills/ai-instruction-standards/SKILL.md +1 -4
  176. package/bundled/locales/zh-TW/skills/api-design-assistant/SKILL.md +97 -0
  177. package/bundled/locales/zh-TW/skills/atdd-assistant/SKILL.md +1 -4
  178. package/bundled/locales/zh-TW/skills/audit-assistant/SKILL.md +1 -4
  179. package/bundled/locales/zh-TW/skills/bdd-assistant/SKILL.md +1 -4
  180. package/bundled/locales/zh-TW/skills/brainstorm-assistant/SKILL.md +1 -4
  181. package/bundled/locales/zh-TW/skills/changelog-guide/SKILL.md +1 -4
  182. package/bundled/locales/zh-TW/skills/checkin-assistant/SKILL.md +1 -4
  183. package/bundled/locales/zh-TW/skills/ci-cd-assistant/SKILL.md +79 -0
  184. package/bundled/locales/zh-TW/skills/code-review-assistant/SKILL.md +1 -4
  185. package/bundled/locales/zh-TW/skills/commands/ac-coverage.md +95 -0
  186. package/bundled/locales/zh-TW/skills/commands/api-design.md +92 -0
  187. package/bundled/locales/zh-TW/skills/commands/atdd.md +167 -0
  188. package/bundled/locales/zh-TW/skills/commands/audit.md +75 -0
  189. package/bundled/locales/zh-TW/skills/commands/bdd.md +1 -1
  190. package/bundled/locales/zh-TW/skills/commands/brainstorm.md +91 -0
  191. package/bundled/locales/zh-TW/skills/commands/changelog.md +67 -0
  192. package/bundled/locales/zh-TW/skills/commands/check.md +223 -0
  193. package/bundled/locales/zh-TW/skills/commands/checkin.md +65 -0
  194. package/bundled/locales/zh-TW/skills/commands/ci-cd.md +75 -0
  195. package/bundled/locales/zh-TW/skills/commands/commit.md +85 -0
  196. package/bundled/locales/zh-TW/skills/commands/config.md +211 -0
  197. package/bundled/locales/zh-TW/skills/commands/coverage.md +78 -0
  198. package/bundled/locales/zh-TW/skills/commands/database.md +76 -0
  199. package/bundled/locales/zh-TW/skills/commands/derive-all.md +62 -0
  200. package/bundled/locales/zh-TW/skills/commands/derive-atdd.md +58 -0
  201. package/bundled/locales/zh-TW/skills/commands/derive-bdd.md +54 -0
  202. package/bundled/locales/zh-TW/skills/commands/derive-tdd.md +55 -0
  203. package/bundled/locales/zh-TW/skills/commands/derive.md +79 -0
  204. package/bundled/locales/zh-TW/skills/commands/dev-workflow.md +120 -0
  205. package/bundled/locales/zh-TW/skills/commands/discover.md +87 -0
  206. package/bundled/locales/zh-TW/skills/commands/docgen.md +68 -0
  207. package/bundled/locales/zh-TW/skills/commands/docs.md +66 -0
  208. package/bundled/locales/zh-TW/skills/commands/durable.md +85 -0
  209. package/bundled/locales/zh-TW/skills/commands/guide.md +51 -0
  210. package/bundled/locales/zh-TW/skills/commands/incident.md +90 -0
  211. package/bundled/locales/zh-TW/skills/commands/init.md +273 -0
  212. package/bundled/locales/zh-TW/skills/commands/methodology.md +1 -1
  213. package/bundled/locales/zh-TW/skills/commands/metrics.md +71 -0
  214. package/bundled/locales/zh-TW/skills/commands/migrate.md +90 -0
  215. package/bundled/locales/zh-TW/skills/commands/pr.md +78 -0
  216. package/bundled/locales/zh-TW/skills/commands/refactor.md +1 -1
  217. package/bundled/locales/zh-TW/skills/commands/release.md +63 -0
  218. package/bundled/locales/zh-TW/skills/commands/requirement.md +61 -0
  219. package/bundled/locales/zh-TW/skills/commands/reverse-bdd.md +54 -0
  220. package/bundled/locales/zh-TW/skills/commands/reverse-sdd.md +58 -0
  221. package/bundled/locales/zh-TW/skills/commands/reverse-tdd.md +58 -0
  222. package/bundled/locales/zh-TW/skills/commands/reverse.md +70 -0
  223. package/bundled/locales/zh-TW/skills/commands/review.md +57 -0
  224. package/bundled/locales/zh-TW/skills/commands/scan.md +74 -0
  225. package/bundled/locales/zh-TW/skills/commands/sdd-retro.md +47 -0
  226. package/bundled/locales/zh-TW/skills/commands/sdd.md +362 -0
  227. package/bundled/locales/zh-TW/skills/commands/security.md +73 -0
  228. package/bundled/locales/zh-TW/skills/commands/tdd.md +115 -0
  229. package/bundled/locales/zh-TW/skills/commands/update.md +326 -0
  230. package/bundled/locales/zh-TW/skills/commit-standards/SKILL.md +2 -6
  231. package/bundled/locales/zh-TW/skills/database-assistant/SKILL.md +94 -0
  232. package/bundled/locales/zh-TW/skills/dev-workflow-guide/SKILL.md +140 -0
  233. package/bundled/locales/zh-TW/skills/docs-generator/SKILL.md +1 -4
  234. package/bundled/locales/zh-TW/skills/documentation-guide/SKILL.md +1 -4
  235. package/bundled/locales/zh-TW/skills/durable-execution-assistant/SKILL.md +81 -0
  236. package/bundled/locales/zh-TW/skills/error-code-guide/SKILL.md +1 -4
  237. package/bundled/locales/zh-TW/skills/forward-derivation/SKILL.md +1 -4
  238. package/bundled/locales/zh-TW/skills/git-workflow-guide/SKILL.md +1 -4
  239. package/bundled/locales/zh-TW/skills/incident-response-assistant/SKILL.md +104 -0
  240. package/bundled/locales/zh-TW/skills/logging-guide/SKILL.md +1 -4
  241. package/bundled/locales/zh-TW/skills/methodology-system/SKILL.md +1 -4
  242. package/bundled/locales/zh-TW/skills/metrics-dashboard-assistant/SKILL.md +64 -0
  243. package/bundled/locales/zh-TW/skills/migration-assistant/SKILL.md +74 -0
  244. package/bundled/locales/zh-TW/skills/pr-automation-assistant/SKILL.md +87 -0
  245. package/bundled/locales/zh-TW/skills/project-discovery/SKILL.md +1 -4
  246. package/bundled/locales/zh-TW/skills/refactoring-assistant/SKILL.md +1 -4
  247. package/bundled/locales/zh-TW/skills/release-standards/SKILL.md +1 -4
  248. package/bundled/locales/zh-TW/skills/requirement-assistant/SKILL.md +1 -4
  249. package/bundled/locales/zh-TW/skills/reverse-engineer/SKILL.md +1 -4
  250. package/bundled/locales/zh-TW/skills/security-assistant/SKILL.md +76 -0
  251. package/bundled/locales/zh-TW/skills/security-scan-assistant/SKILL.md +69 -0
  252. package/bundled/locales/zh-TW/skills/spec-driven-dev/SKILL.md +74 -14
  253. package/bundled/locales/zh-TW/skills/spec-driven-dev/guide.md +243 -98
  254. package/bundled/locales/zh-TW/skills/tdd-assistant/SKILL.md +1 -4
  255. package/bundled/locales/zh-TW/skills/test-coverage-assistant/SKILL.md +1 -4
  256. package/bundled/locales/zh-TW/skills/testing-guide/SKILL.md +1 -5
  257. package/bundled/skills/README.md +11 -0
  258. package/bundled/skills/ac-coverage-assistant/SKILL.md +127 -0
  259. package/bundled/skills/ai-collaboration-standards/SKILL.md +10 -0
  260. package/bundled/skills/ai-friendly-architecture/SKILL.md +10 -0
  261. package/bundled/skills/ai-instruction-standards/SKILL.md +10 -0
  262. package/bundled/skills/api-design-assistant/SKILL.md +119 -0
  263. package/bundled/skills/atdd-assistant/SKILL.md +7 -0
  264. package/bundled/skills/bdd-assistant/SKILL.md +7 -0
  265. package/bundled/skills/brainstorm-assistant/SKILL.md +7 -0
  266. package/bundled/skills/checkin-assistant/SKILL.md +7 -0
  267. package/bundled/skills/ci-cd-assistant/SKILL.md +97 -0
  268. package/bundled/skills/code-review-assistant/SKILL.md +7 -0
  269. package/bundled/skills/commands/README.md +70 -0
  270. package/bundled/skills/commands/ac-coverage.md +135 -0
  271. package/bundled/skills/commands/api-design.md +86 -0
  272. package/bundled/skills/commands/atdd.md +69 -0
  273. package/bundled/skills/commands/audit.md +69 -0
  274. package/bundled/skills/commands/bdd.md +101 -0
  275. package/bundled/skills/commands/brainstorm.md +45 -0
  276. package/bundled/skills/commands/changelog.md +34 -0
  277. package/bundled/skills/commands/check.md +52 -1
  278. package/bundled/skills/commands/checkin.md +46 -0
  279. package/bundled/skills/commands/ci-cd.md +69 -0
  280. package/bundled/skills/commands/commit.md +79 -0
  281. package/bundled/skills/commands/config.md +48 -0
  282. package/bundled/skills/commands/coverage.md +53 -0
  283. package/bundled/skills/commands/database.md +70 -0
  284. package/bundled/skills/commands/derive-all.md +40 -0
  285. package/bundled/skills/commands/derive-atdd.md +33 -0
  286. package/bundled/skills/commands/derive-bdd.md +39 -0
  287. package/bundled/skills/commands/derive-tdd.md +40 -0
  288. package/bundled/skills/commands/derive.md +47 -0
  289. package/bundled/skills/commands/dev-workflow.md +104 -7
  290. package/bundled/skills/commands/discover.md +39 -0
  291. package/bundled/skills/commands/docgen.md +35 -0
  292. package/bundled/skills/commands/docs.md +40 -0
  293. package/bundled/skills/commands/durable.md +79 -0
  294. package/bundled/skills/commands/incident.md +84 -0
  295. package/bundled/skills/commands/init.md +55 -0
  296. package/bundled/skills/commands/methodology.md +72 -0
  297. package/bundled/skills/commands/metrics.md +65 -0
  298. package/bundled/skills/commands/migrate.md +84 -0
  299. package/bundled/skills/commands/pr.md +72 -0
  300. package/bundled/skills/commands/refactor.md +51 -0
  301. package/bundled/skills/commands/release.md +60 -0
  302. package/bundled/skills/commands/requirement.md +38 -0
  303. package/bundled/skills/commands/reverse-bdd.md +34 -0
  304. package/bundled/skills/commands/reverse-sdd.md +42 -0
  305. package/bundled/skills/commands/reverse-tdd.md +40 -0
  306. package/bundled/skills/commands/reverse.md +41 -0
  307. package/bundled/skills/commands/review.md +39 -0
  308. package/bundled/skills/commands/scan.md +68 -0
  309. package/bundled/skills/commands/sdd-retro.md +48 -0
  310. package/bundled/skills/commands/sdd.md +220 -0
  311. package/bundled/skills/commands/security.md +67 -0
  312. package/bundled/skills/commands/tdd.md +101 -0
  313. package/bundled/skills/commands/update.md +61 -0
  314. package/bundled/skills/commit-standards/SKILL.md +8 -2
  315. package/bundled/skills/database-assistant/SKILL.md +118 -0
  316. package/bundled/skills/dev-workflow-guide/SKILL.md +53 -7
  317. package/bundled/skills/dev-workflow-guide/workflow-phases.md +24 -0
  318. package/bundled/skills/durable-execution-assistant/SKILL.md +116 -0
  319. package/bundled/skills/forward-derivation/SKILL.md +7 -0
  320. package/bundled/skills/incident-response-assistant/SKILL.md +132 -0
  321. package/bundled/skills/methodology-system/SKILL.md +24 -2
  322. package/bundled/skills/metrics-dashboard-assistant/SKILL.md +109 -0
  323. package/bundled/skills/migration-assistant/SKILL.md +119 -0
  324. package/bundled/skills/pr-automation-assistant/SKILL.md +114 -0
  325. package/bundled/skills/project-discovery/SKILL.md +7 -0
  326. package/bundled/skills/refactoring-assistant/SKILL.md +7 -0
  327. package/bundled/skills/release-standards/SKILL.md +7 -0
  328. package/bundled/skills/requirement-assistant/SKILL.md +7 -0
  329. package/bundled/skills/reverse-engineer/SKILL.md +7 -0
  330. package/bundled/skills/security-assistant/SKILL.md +105 -0
  331. package/bundled/skills/security-scan-assistant/SKILL.md +96 -0
  332. package/bundled/skills/spec-driven-dev/SKILL.md +84 -4
  333. package/bundled/skills/spec-driven-dev/guide.md +156 -22
  334. package/bundled/skills/tdd-assistant/SKILL.md +7 -0
  335. package/bundled/skills/test-coverage-assistant/SKILL.md +11 -0
  336. package/bundled/skills/testing-guide/SKILL.md +23 -0
  337. package/package.json +1 -1
  338. package/src/commands/check.js +154 -8
  339. package/src/commands/config.js +231 -104
  340. package/src/commands/init.js +23 -3
  341. package/src/commands/update.js +250 -25
  342. package/src/config/ai-agent-paths.js +16 -0
  343. package/src/config/workflow-definitions.js +184 -0
  344. package/src/core/constants.js +6 -0
  345. package/src/flows/init-flow.js +23 -6
  346. package/src/i18n/messages.js +51 -3
  347. package/src/installers/integration-installer.js +67 -2
  348. package/src/installers/manifest-installer.js +1 -0
  349. package/src/installers/standards-installer.js +3 -2
  350. package/src/prompts/init.js +50 -3
  351. package/src/reconciler/manifest-migrator.js +2 -2
  352. package/src/reconciler/plan-executor.js +11 -0
  353. package/src/utils/integration-generator.js +327 -14
  354. package/src/utils/workflow-gate.js +292 -0
  355. package/standards-registry.json +160 -5
@@ -1,13 +1,10 @@
1
1
  ---
2
2
  source: ../../../../skills/spec-driven-dev/SKILL.md
3
- source_version: 1.1.0
4
- translation_version: 1.1.0
5
- last_synced: 2026-02-10
3
+ source_version: 1.2.0
4
+ translation_version: 1.2.0
5
+ last_synced: 2026-03-23
6
6
  status: current
7
- description: |
8
- 在撰寫程式碼前,建立、審查和管理規格文件。
9
- 使用時機:建立規格、審查設計、規格驅動開發流程。
10
- 關鍵字:spec, specification, SDD, design, review, 規格, 設計, 審查, 驗證。
7
+ description: "[UDS] 在撰寫程式碼前,建立、審查和管理規格文件"
11
8
  ---
12
9
 
13
10
  # 規格驅動開發助手
@@ -16,9 +13,37 @@ description: |
16
13
 
17
14
  在撰寫程式碼前,建立、審查和管理規格文件。
18
15
 
16
+ ## 快速檢查清單
17
+
18
+ - 搜尋現有規格:查看 `specs/`、`docs/specs/` 或專案規格目錄
19
+ - 決定範圍:新功能 vs 修改現有功能
20
+ - 選擇唯一的規格 ID:`SPEC-NNN` 或 kebab-case 變更 ID
21
+ - 撰寫包含明確 AC(Given/When/Then 格式)的提案
22
+ - 實作前取得核准
23
+ - 依序實作任務,對照規格驗證
24
+ - 完成後歸檔規格
25
+
26
+ ## 決策樹
27
+
28
+ ```
29
+ 新需求?
30
+ ├─ 修復符合規格行為的 Bug? → 直接修復
31
+ ├─ 錯字/格式/註解? → 直接修復
32
+ ├─ 相依套件更新(不破壞相容性)? → 直接修復
33
+ ├─ 新功能/能力? → 建立提案
34
+ ├─ 破壞性變更? → 建立提案
35
+ ├─ 架構變更? → 建立提案
36
+ └─ 不確定? → 建立提案(較安全)
37
+ ```
38
+
19
39
  ## 工作流程
20
40
 
21
- CREATE ──► REVIEW ──► APPROVE ──► IMPLEMENT ──► VERIFY
41
+ ```
42
+ DISCUSS ──► CREATE ──► REVIEW ──► APPROVE ──► IMPLEMENT ──► VERIFY ──► ARCHIVE
43
+ ```
44
+
45
+ ### 0. Discuss - 釐清範圍
46
+ 在撰寫規格前,捕捉模糊地帶、建立治理原則、解決歧義。
22
47
 
23
48
  ### 1. Create - 撰寫規格
24
49
  定義需求、技術設計、驗收條件和測試計畫。
@@ -35,6 +60,9 @@ CREATE ──► REVIEW ──► APPROVE ──► IMPLEMENT ──► VERIFY
35
60
  ### 5. Verify - 驗證
36
61
  確保實作符合規格,所有測試通過,驗收條件已滿足。
37
62
 
63
+ ### 6. Archive - 歸檔
64
+ 歸檔已完成的規格,連結至 commits/PRs。
65
+
38
66
  ## 規格狀態
39
67
 
40
68
  | 狀態 | 說明 | State | Description |
@@ -48,20 +76,52 @@ CREATE ──► REVIEW ──► APPROVE ──► IMPLEMENT ──► VERIFY
48
76
  ## 規格結構
49
77
 
50
78
  ```markdown
51
- # Feature: [Name]
79
+ # [SPEC-ID] Feature: [Name]
80
+
52
81
  ## Overview
53
- Brief description.
82
+ 簡短描述提案變更。
83
+
84
+ ## Motivation
85
+ 為什麼需要這個變更?解決什麼問題?
86
+
54
87
  ## Requirements
55
- - REQ-001: [Description]
88
+ ### Requirement: [Name]
89
+ 系統 SHALL [行為描述]。
90
+
91
+ #### Scenario: [成功案例]
92
+ - **GIVEN** [初始情境]
93
+ - **WHEN** [執行動作]
94
+ - **THEN** [預期結果]
95
+
56
96
  ## Acceptance Criteria
57
97
  - AC-1: Given [context], when [action], then [result]
98
+
58
99
  ## Technical Design
59
- [Architecture, API changes, database changes]
100
+ [架構、API 變更、資料庫變更]
101
+
60
102
  ## Test Plan
61
- - [ ] Unit tests for [component]
62
- - [ ] Integration tests for [flow]
103
+ - [ ] [元件] 的單元測試
104
+ - [ ] [流程] 的整合測試
63
105
  ```
64
106
 
107
+ ### 場景格式規則
108
+
109
+ - 使用 `#### Scenario:` (h4 標題) 撰寫每個場景
110
+ - 每個需求必須至少有一個場景
111
+ - 使用 **GIVEN/WHEN/THEN** 格式描述結構化行為
112
+ - 使用 **SHALL/MUST** 表達強制需求,**SHOULD** 表達建議
113
+
114
+ ## 變更操作
115
+
116
+ 修改現有規格時,使用 delta 區段:
117
+
118
+ | 操作 | 說明 |
119
+ |------|------|
120
+ | `## ADDED Requirements` | 新增功能 |
121
+ | `## MODIFIED Requirements` | 修改行為 |
122
+ | `## REMOVED Requirements` | 移除功能 |
123
+ | `## RENAMED Requirements` | 重新命名 |
124
+
65
125
  ## 使用方式
66
126
 
67
127
  - `/sdd` - 互動式規格建立精靈
@@ -2,27 +2,35 @@
2
2
  description: |
3
3
  引導規格驅動開發 (SDD) 工作流程,在實作前規劃變更。
4
4
  使用時機:建立規格、提案、規劃功能、使用 OpenSpec 或類似工具。
5
- 關鍵字:spec, specification, SDD, proposal, openspec, design doc, 規格, 提案, 設計文件。
6
- source: ../../../../skills/spec-driven-dev/SKILL.md
7
- source_version: 1.1.0
8
- translation_version: 1.1.0
9
- last_synced: 2026-01-25
5
+ 關鍵字:spec, specification, SDD, proposal, openspec, spec-kit, design doc, 規格, 提案, 設計文件。
6
+ source: ../../../../skills/spec-driven-dev/guide.md
7
+ source_version: 1.2.0
8
+ translation_version: 1.2.0
9
+ last_synced: 2026-03-23
10
10
  status: current
11
11
  ---
12
12
 
13
13
  # 規格驅動開發指南
14
14
 
15
- > **語言**: [English](../../../../skills/spec-driven-dev/SKILL.md) | 繁體中文
15
+ > **語言**: [English](../../../../skills/spec-driven-dev/guide.md) | 繁體中文
16
16
 
17
- **版本**: 1.0.0
18
- **最後更新**: 2025-12-30
17
+ **版本**: 1.2.0
18
+ **最後更新**: 2026-03-23
19
19
  **適用範圍**: Claude Code Skills
20
20
 
21
21
  ---
22
22
 
23
23
  ## 目的
24
24
 
25
- 此技能引導您完成規格驅動開發 (SDD),確保變更在實作前經過規劃、記錄和批准。
25
+ 本技能引導您完成規格驅動開發 (SDD),確保變更在實作前經過規劃、文件化和核准。
26
+
27
+ ## 會話啟動協議
28
+
29
+ 每次會話開始時:
30
+
31
+ 1. **檢查進行中的規格**:搜尋 `docs/specs/`、`specs/`、`openspec/changes/` 或 `.specify/` 中的進行中工作
32
+ 2. **若發現進行中的規格** → 通知使用者並提供繼續的選項
33
+ 3. 在開始新工作前**檢閱上下文**
26
34
 
27
35
  ## 快速參考
28
36
 
@@ -30,12 +38,12 @@ status: current
30
38
 
31
39
  ```
32
40
  ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐
33
- 討論 │───▶│ 提案 │───▶│ 審查 │───▶│ 實作
41
+ Discuss │───▶│ Proposal │───▶│ Review │───▶│Implementation
34
42
  └──────────────┘ └──────────────┘ └──────────────┘ └──────────────┘
35
43
 
36
44
 
37
45
  ┌──────────────┐ ┌──────────────┐
38
- 封存 │◀───│ 驗證
46
+ Archive │◀───│ Verification
39
47
  └──────────────┘ └──────────────┘
40
48
  ```
41
49
 
@@ -43,25 +51,154 @@ status: current
43
51
 
44
52
  | 階段 | 說明 | 產出 |
45
53
  |------|------|------|
46
- | **討論** | 釐清需求與探索方案 | 討論紀錄 |
47
- | **提案** | 定義變更內容與原因 | `proposal.md` |
48
- | **審查** | 利害關係人批准 | 批准記錄 |
49
- | **實作** | 執行已批准的規格 | 程式碼、測試、文件 |
50
- | **驗證** | 確認實作符合規格 | 測試結果 |
51
- | **封存** | 關閉並封存 | 封存的規格及連結 |
54
+ | **Discuss** | 捕捉模糊地帶、鎖定範圍、建立必讀清單 | 範圍定義、規範參考 |
55
+ | **Proposal** | 定義要變更什麼以及為什麼 | `proposal.md` |
56
+ | **Review** | 利害關係人核准 | 核准記錄 |
57
+ | **Implementation** | 執行已核准的規格 | 程式碼、測試、文件 |
58
+ | **Verification** | 確認實作符合規格(最多 3 次迭代) | 測試結果、追溯矩陣 |
59
+ | **Archive** | 關閉並歸檔 | 帶連結的已歸檔規格 |
60
+
61
+ ### 工作流程強制閘門
62
+
63
+ **重要**:執行任何工作流程階段前,必須檢查先決條件。
64
+
65
+ | 階段 | 先決條件 | 失敗時 |
66
+ |------|---------|--------|
67
+ | Proposal | Discuss 完成、範圍鎖定 | → 先完成 Discuss 階段 |
68
+ | Implementation | 規格狀態 = Approved | → 先取得核准 |
69
+ | Verification | 所有 AC 都有程式碼 + 測試 | → 完成實作 |
70
+ | Commit (feat/fix) | 檢查進行中的規格 | → 建議規格參考 (Refs: SPEC-XXX) |
71
+ | Archive | 所有任務完成、已驗證 | → 完成剩餘任務 |
52
72
 
53
73
  ### 核心原則
54
74
 
55
75
  | 原則 | 說明 |
56
76
  |------|------|
57
- | **規格優先** | 沒有批准的規格就不能進行功能變更 |
58
- | **工具優先** | SDD 工具時優先使用工具指令 |
59
- | **方法論 > 工具** | SDD 可搭配任何工具或手動流程運作 |
77
+ | **先評估** | 建立規格前評估範圍和同步需求 |
78
+ | **規格優先** | 沒有已核准的規格不進行功能性變更 |
79
+ | **工具優先** | SDD 工具時優先使用其命令 |
80
+ | **方法論 > 工具** | SDD 可搭配任何工具或手動流程 |
81
+ | **雙向同步** | 變更傳播到所有相關產物 |
82
+ | **簡單優先** | 選擇最簡單的可行方案 |
83
+
84
+ ### 規格前評估
85
+
86
+ 建立規格前,回答以下問題:
87
+
88
+ | 問題 | 選項 | 結果 |
89
+ |------|------|------|
90
+ | **範圍?** | 專案特定 / 通用 | 決定是否需要核心規範 |
91
+ | **互動式?** | 是 / 否 | 決定是否需要技能 |
92
+ | **使用者觸發?** | 是 / 否 | 決定是否需要命令 |
93
+
94
+ ### 建立規格前
95
+
96
+ - 總是先檢查專案中是否已存在類似的規格
97
+ - 建立新規格前先搜尋現有規格目錄
98
+ - 優先修改現有規格而非建立重複的
99
+ - 若需求不明確,先提出 1-2 個釐清問題
100
+
101
+ ### 「規格優先」的例外
102
+
103
+ - 緊急修復(立即恢復服務,之後補文件)
104
+ - 瑣碎變更(錯字、註解、格式)
105
+ - 相依套件更新(不破壞相容性)
106
+ - 設定變更
107
+
108
+ ## 詳細階段指引
109
+
110
+ ### Discuss 階段
111
+
112
+ Discuss 階段確保在撰寫規格前解決所有歧義。
113
+
114
+ #### 1. 建立治理原則
115
+
116
+ 預先定義專案慣例、約束和不可妥協的事項:
117
+
118
+ - 專案的核心架構決策是什麼?
119
+ - 不可妥協的約束是什麼(效能、安全、相容性)?
120
+ - 記錄在 `project.md`、`CONTRIBUTING.md` 或等效文件中
121
+
122
+ #### 2. 結構化釐清
123
+
124
+ 列出所有模糊點作為明確問題,逐一解決後再繼續:
125
+
126
+ ```markdown
127
+ ## 釐清記錄
128
+
129
+ | # | 問題 | 選項 | 決定 | 理由 |
130
+ |---|------|------|------|------|
131
+ | 1 | 認證方式? | OAuth2 / JWT / Session | OAuth2 | 業界標準,支援 SSO |
132
+ | 2 | Token 儲存? | Cookie / LocalStorage | HttpOnly Cookie | XSS 防護 |
133
+ ```
134
+
135
+ #### 3. 鎖定範圍
60
136
 
61
- ### 「規格優先」的例外情況
137
+ - 定義什麼在範圍內、什麼在範圍外
138
+ - 識別可能受影響的相關規格
139
+ - 建立必讀的檔案/規格清單
62
140
 
63
- - 緊急修復(先恢復服務,之後再補文件)
64
- - 瑣碎變更(錯字、註解、格式調整)
141
+ ### Implementation 階段
142
+
143
+ 實作時遵循結構化方法:
144
+
145
+ 1. **仔細閱讀提案/規格** — 理解所有需求和 AC
146
+ 2. **建立任務清單** — 分解為循序任務(在 `tasks.md` 或規格內)
147
+ 3. **依序實作任務** — 按順序完成每個任務
148
+ 4. **完成後更新清單** — 標記任務為已完成
149
+ 5. **不要跳到下一階段** — 直到所有任務完成
150
+
151
+ ### 需求用語
152
+
153
+ 在規格中使用精確語言:
154
+
155
+ | 關鍵字 | 含義 | 用法 |
156
+ |--------|------|------|
157
+ | **SHALL/MUST** | 強制需求 | 「系統 SHALL 驗證輸入」 |
158
+ | **SHOULD** | 建議做法 | 「API SHOULD 在 200ms 內回應」 |
159
+ | **MAY** | 選用功能 | 「UI MAY 顯示載入動畫」 |
160
+
161
+ 避免模糊用語:「should try」、「might need」、「could possibly」
162
+
163
+ ## 簡單優先
164
+
165
+ ### 預設原則
166
+
167
+ - 每次變更預設少於 100 行新程式碼
168
+ - 單一檔案實作直到證明不足
169
+ - 沒有明確理由不引入框架
170
+ - 選擇無聊但經過驗證的模式
171
+
172
+ ### 複雜度觸發條件
173
+
174
+ 只有在具體證據下才增加複雜度:
175
+
176
+ | 觸發條件 | 需要的證據 |
177
+ |---------|-----------|
178
+ | 效能優化 | 分析數據顯示瓶頸 |
179
+ | 抽象層 | 3+ 個具體使用案例需要 |
180
+ | 外部相依 | 相較內建方案的明確理由 |
181
+ | 多服務拆分 | 規模需求(>1000 使用者、>100MB 資料) |
182
+
183
+ ## 命名規範
184
+
185
+ ### 規格 ID
186
+
187
+ - 格式:`SPEC-NNN`(例如 `SPEC-001`、`SPEC-042`)
188
+ - 在專案內循序編號
189
+
190
+ ### 變更 ID
191
+
192
+ - 格式:kebab-case,動詞開頭
193
+ - 前綴:`add-`、`update-`、`remove-`、`refactor-`
194
+ - 範例:`add-two-factor-auth`、`update-payment-flow`、`remove-legacy-api`
195
+
196
+ ### 功能名稱
197
+
198
+ - 格式:動詞-名詞(例如 `user-auth`、`payment-capture`)
199
+ - 每個功能單一目的
200
+ - 10 分鐘可理解性規則:若需要更久才能理解,就拆分
201
+ - 描述需要「而且」時就拆分
65
202
 
66
203
  ## 提案範本
67
204
 
@@ -69,139 +206,145 @@ status: current
69
206
  # [SPEC-ID] 功能標題
70
207
 
71
208
  ## 摘要
72
- 簡要描述提案的變更。
209
+ 簡短描述提案變更。
73
210
 
74
211
  ## 動機
75
212
  為什麼需要這個變更?解決什麼問題?
76
213
 
77
214
  ## 詳細設計
78
- 技術方案、受影響的元件、資料流程。
215
+ 技術方法、受影響的元件、資料流。
79
216
 
80
- ## 驗收標準
81
- - [ ] 標準 1
82
- - [ ] 標準 2
217
+ ## 驗收條件
218
+ - [ ] 條件 1
219
+ - [ ] 條件 2
83
220
 
84
221
  ## 相依性
85
- 列出對其他規格或外部系統的相依性。
222
+ 列出對其他規格或外部系統的相依。
86
223
 
87
224
  ## 風險
88
- 潛在風險及緩解策略。
225
+ 潛在風險和緩解策略。
89
226
  ```
90
227
 
91
228
  ## 詳細指南
92
229
 
93
- 完整標準請參考:
94
- - [規格驅動開發標準](../../core/spec-driven-development.md)
230
+ 完整標準請參閱:
231
+ - [規格驅動開發標準](../../../../core/spec-driven-development.md)
95
232
 
96
- ### AI 優化格式(節省 Token)
233
+ ### AI 優化格式(Token 效率)
97
234
 
98
- AI 助手可使用 YAML 格式檔案以減少 Token 使用量:
99
- - 基礎標準:`ai/standards/spec-driven-development.ai.yaml`
235
+ AI 助手可使用 YAML 格式檔案以減少 token 用量:
236
+ - 基本標準:`ai/standards/spec-driven-development.ai.yaml`
100
237
 
101
238
  ## 與其他標準的整合
102
239
 
103
- ### 與提交訊息整合
240
+ ### 與 Commit 訊息
104
241
 
105
- 在提交訊息中引用規格 ID:
242
+ commit 訊息中參照規格 ID:
106
243
 
107
244
  ```
108
- feat(auth): implement login feature
245
+ feat(auth): 實作登入功能
109
246
 
110
- Implements SPEC-001 login functionality with OAuth2 support.
247
+ 實作 SPEC-001 使用 OAuth2 支援的登入功能。
111
248
 
112
249
  Refs: SPEC-001
113
250
  ```
114
251
 
115
- ### 與 Check-in 標準整合
252
+ ### 與提交規範
116
253
 
117
254
  為規格提交程式碼前:
118
255
 
119
- - [ ] 規格已批准
256
+ - [ ] 規格已核准
120
257
  - [ ] 實作符合規格
121
- - [ ] 測試涵蓋驗收標準
122
- - [ ] PR 中引用規格 ID
258
+ - [ ] 測試涵蓋驗收條件
259
+ - [ ] PR 中參照規格 ID
123
260
 
124
- ### 與程式碼審查整合
261
+ ### 與程式碼審查
125
262
 
126
263
  審查者應驗證:
127
264
 
128
- - [ ] 變更符合已批准的規格
129
- - [ ] 沒有超出規格的範圍擴張
130
- - [ ] 規格驗收標準已達成
265
+ - [ ] 變更符合已核准的規格
266
+ - [ ] 沒有超出規格的範圍蔓延
267
+ - [ ] 規格的驗收條件已滿足
131
268
 
132
- ## 範例
269
+ ## 常見 SDD 工具
133
270
 
134
- ### 良好做法
271
+ | 工具 | 說明 | 主要命令 |
272
+ |------|------|---------|
273
+ | **OpenSpec** | 規格管理 CLI | `openspec list`、`openspec show`、`openspec validate`、`openspec archive` |
274
+ | **Spec Kit** | 斜線命令驅動的 SDD | `specify init`、`/specify`、`/clarify`、`/plan`、`/tasks`、`/implement` |
275
+ | **手動** | 無工具,基於檔案 | 手動建立 `specs/SPEC-XXX.md` |
135
276
 
136
- ```markdown
137
- # SPEC-001 新增 OAuth2 登入
277
+ > **注意**:當專案中偵測到 SDD 工具時,優先使用其原生命令而非手動編輯檔案,以確保一致性和可追溯性。
138
278
 
139
- ## 摘要
140
- 新增 Google OAuth2 登入,讓使用者可以用 Google 帳號登入。
141
-
142
- ## 動機
143
- - 減少新使用者註冊的摩擦
144
- - 不儲存密碼以提升安全性
279
+ ## 同步驗證
145
280
 
146
- ## 驗收標準
147
- - [ ] 使用者可以點擊「使用 Google 登入」按鈕
148
- - [ ] 新使用者自動註冊
149
- - [ ] 現有使用者可連結 Google 帳號
150
- ```
281
+ 完成規格後,驗證同步:
151
282
 
152
- ### ❌ 不良做法
283
+ ### 同步清單
153
284
 
154
285
  ```markdown
155
- # 新增登入
286
+ ## 同步狀態
287
+
288
+ ### 範圍:[通用|專案|工具]
156
289
 
157
- 新增登入功能。
290
+ - [ ] 核心規範:[已建立|已更新|不適用]
291
+ - [ ] 技能:[已建立|已更新|不適用]
292
+ - [ ] 命令:[已建立|已更新|不適用]
293
+ - [ ] 翻譯:[已同步|待處理|不適用]
158
294
  ```
159
- - 缺少規格 ID
160
- - 沒有動機說明
161
- - 沒有驗收標準
162
295
 
163
- ## 常見 SDD 工具
296
+ ### 同步矩陣
164
297
 
165
- | 工具 | 說明 | 指令範例 |
166
- |------|------|----------|
167
- | **OpenSpec** | 規格管理 | `/openspec proposal`, `/openspec approve` |
168
- | **Spec Kit** | 輕量規格追蹤 | `/spec create`, `/spec close` |
169
- | **手動** | 無工具,檔案式 | 手動建立 `specs/SPEC-XXX.md` |
298
+ | 變更來源 | 同步至 |
299
+ |---------|--------|
300
+ | 核心規範 | 技能、命令、翻譯 |
301
+ | 技能 | 核心規範、命令、翻譯 |
302
+ | 命令 | 技能、翻譯 |
170
303
 
171
304
  ## 最佳實踐
172
305
 
173
- ### 建議做法
306
+ ### 應該做的
174
307
 
175
- - ✅ 保持規格專注且原子化(一個規格一個變更)
176
- - ✅ 包含清晰的驗收標準
177
- - ✅ 將規格連結到實作 PR
178
- - 完成後封存規格
308
+ - 建立規格前評估範圍
309
+ - 建立新規格前檢查是否已存在
310
+ - 保持規格聚焦且原子化(一個規格一個變更)
311
+ - 包含使用 Given/When/Then 的明確驗收條件
312
+ - 使用 SHALL/MUST 表達強制需求
313
+ - 將規格連結到實作 PR
314
+ - 完成後歸檔規格
315
+ - 關閉前驗證同步狀態
179
316
 
180
- ### 避免做法
317
+ ### 不應該做的
181
318
 
182
- - ❌ 在規格批准前開始寫程式
183
- - 實作期間修改範圍但不更新規格
184
- - ❌ 讓規格處於懸置狀態(務必關閉或封存)
185
- - ❌ 跳過驗證步驟
319
+ - 規格核准前就開始寫程式
320
+ - 跳過範圍評估或 Discuss 階段
321
+ - 實作期間修改範圍而不更新規格
322
+ - 讓規格處於懸而未決狀態(一定要關閉或歸檔)
323
+ - 跳過驗證步驟
324
+ - 忘記同步相關產物
325
+ - 沒有具體證據就增加複雜度
186
326
 
187
327
  ---
188
328
 
189
329
  ## 設定偵測
190
330
 
191
- 此技能支援專案特定設定。
331
+ 本技能支援專案特定的設定。
192
332
 
193
333
  ### 偵測順序
194
334
 
195
- 1. 檢查工作區是否有 SDD 工具(OpenSpec、Spec Kit 等)
335
+ 1. 檢查工作區中的 SDD 工具:
336
+ - `openspec/` 目錄 → 偵測到 OpenSpec
337
+ - `.specify/` 目錄 → 偵測到 Spec Kit
338
+ - `specs/` 或 `docs/specs/` → 手動基於檔案的工作流程
196
339
  2. 檢查 `CONTRIBUTING.md` 中的規格工作流程文件
197
- 3. 若無找到,**預設使用手動檔案式工作流程**
340
+ 3. 若未找到,**預設使用手動基於檔案的工作流程**
198
341
 
199
342
  ### 首次設定
200
343
 
201
344
  若未找到設定:
202
345
 
203
- 1. 詢問使用者:「此專案尚未設定 SDD。您要設定 specs 目錄嗎?」
204
- 2. 建議在 `CONTRIBUTING.md` 中記錄:
346
+ 1. 詢問使用者:「此專案尚未設定 SDD。是否要設定規格目錄?」
347
+ 2. 建議記錄在 `CONTRIBUTING.md`:
205
348
 
206
349
  ```markdown
207
350
  ## 規格驅動開發
@@ -210,21 +353,21 @@ Refs: SPEC-001
210
353
 
211
354
  ### 流程
212
355
  1. 在 `specs/` 目錄建立提案
213
- 2. 取得團隊負責人批准
214
- 3. 實作並在 PR 中引用規格
215
- 4. 合併後封存規格
356
+ 2. 取得團隊負責人核准
357
+ 3. 實作並在 PR 中參照規格
358
+ 4. 合併後歸檔規格
216
359
 
217
360
  ### 規格範本
218
- 請參考 `specs/TEMPLATE.md`
361
+ 請參閱 `specs/TEMPLATE.md`
219
362
  ```
220
363
 
221
364
  ---
222
365
 
223
366
  ## 相關標準
224
367
 
225
- - [規格驅動開發標準](../../core/spec-driven-development.md)
226
- - [提交訊息指南](../../core/commit-message-guide.md)
227
- - [程式碼審查檢查清單](../../core/code-review-checklist.md)
368
+ - [規格驅動開發標準](../../../../core/spec-driven-development.md)
369
+ - [Commit 訊息指南](../../../../core/commit-message-guide.md)
370
+ - [程式碼審查清單](../../../../core/code-review-checklist.md)
228
371
 
229
372
  ---
230
373
 
@@ -232,12 +375,14 @@ Refs: SPEC-001
232
375
 
233
376
  | 版本 | 日期 | 變更 |
234
377
  |------|------|------|
235
- | 1.0.0 | 2025-12-30 | 初始發布 |
378
+ | 1.2.0 | 2026-03-23 | 新增:會話啟動協議、工作流程強制閘門、Discuss 階段(治理原則 + 釐清)、簡單優先、命名規範、Implementation 階段強化、需求用語、搜尋指引、更新常見 SDD 工具 |
379
+ | 1.1.0 | 2026-01-26 | 新增:規格前評估、同步驗證、同步矩陣、強化最佳實踐 |
380
+ | 1.0.0 | 2025-12-30 | 初始版本 |
236
381
 
237
382
  ---
238
383
 
239
384
  ## 授權
240
385
 
241
- 此技能採用 [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) 授權。
386
+ 本技能以 [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) 授權釋出。
242
387
 
243
388
  **來源**: [universal-dev-standards](https://github.com/AsiaOstrich/universal-dev-standards)
@@ -4,10 +4,7 @@ source_version: 1.0.0
4
4
  translation_version: 1.0.0
5
5
  last_synced: 2026-02-10
6
6
  status: current
7
- description: |
8
- 引導測試驅動開發(TDD)流程:紅-綠-重構。
9
- 使用時機:TDD 開發、撰寫測試先行的程式碼、學習 TDD。
10
- 關鍵字:TDD, test-driven, red-green-refactor, 測試驅動, 紅綠重構。
7
+ description: "[UDS] 引導測試驅動開發(TDD)流程:紅-綠-重構"
11
8
  ---
12
9
 
13
10
  # TDD 助手
@@ -4,10 +4,7 @@ source_version: 1.1.0
4
4
  translation_version: 1.1.0
5
5
  last_synced: 2026-02-10
6
6
  status: current
7
- description: |
8
- 多維度分析測試覆蓋率並提供可執行的建議。
9
- 使用時機:分析覆蓋率、識別測試缺口、制定測試策略。
10
- 關鍵字:coverage, test, analysis, dimension, 覆蓋率, 測試, 分析, 維度。
7
+ description: "[UDS] 多維度分析測試覆蓋率並提供可執行的建議"
11
8
  ---
12
9
 
13
10
  # 測試覆蓋率助手
@@ -5,11 +5,7 @@ translation_version: 1.2.0
5
5
  last_synced: 2026-02-10
6
6
  status: current
7
7
  name: testing
8
- description: |
9
- Testing pyramid and test writing standards for UT/IT/ST/E2E.
10
- Supports ISTQB and Industry Pyramid frameworks.
11
- Use when: writing tests, discussing test coverage, test strategy, or test naming.
12
- Keywords: test, unit, integration, e2e, coverage, mock, ISTQB, SIT, 測試, 單元, 整合, 端對端.
8
+ description: "[UDS] 測試金字塔與 UT/IT/ST/E2E 測試撰寫標準"
13
9
  ---
14
10
 
15
11
  # 測試指南
@@ -47,6 +47,17 @@ These skills provide standard guidance and workflows. They can be accessed via s
47
47
  | `changelog-guide` | `/changelog` | [UDS] Generate changelog entries |
48
48
  | `dev-workflow-guide` | `/dev-workflow` | [UDS] Map development phases to UDS commands |
49
49
  | `docs-generator` | `/docgen` | [UDS] Generate usage documentation |
50
+ | `security-assistant` | `/security` | [UDS] Security review and vulnerability assessment |
51
+ | `security-scan-assistant` | `/scan` | [UDS] Automated security scanning and dependency audit |
52
+ | `api-design-assistant` | `/api-design` | [UDS] API design (REST, GraphQL, gRPC) |
53
+ | `database-assistant` | `/database` | [UDS] Database design, migration, query optimization |
54
+ | `ci-cd-assistant` | `/ci-cd` | [UDS] CI/CD pipeline design and optimization |
55
+ | `incident-response-assistant` | `/incident` | [UDS] Incident response and post-mortem |
56
+ | `pr-automation-assistant` | `/pr` | [UDS] Pull request creation and review automation |
57
+ | `metrics-dashboard-assistant` | `/metrics` | [UDS] Development metrics and project health |
58
+ | `durable-execution-assistant` | `/durable` | [UDS] Workflow fault recovery and rollback |
59
+ | `migration-assistant` | `/migrate` | [UDS] Code migration and framework upgrades |
60
+ | `audit-assistant` | `/audit` | [UDS] Standards compliance audit |
50
61
 
51
62
  > **Note**: For reference guides (e.g., Git Workflow, Logging, Error Codes), use the `/guide` command.
52
63