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,41 +1,49 @@
1
1
  ---
2
2
  description: |
3
- 引導規格驅动开发 (SDD) 工作流程,在实作前規划变更。
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
3
+ 引导规格驱动开发 (SDD) 工作流程,在实现前规划变更。
4
+ 使用时机:建立规格、提案、规划功能、使用 OpenSpec 或类似工具。
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
19
- **適用範圍**: Claude Code Skills
17
+ **版本**: 1.2.0
18
+ **最后更新**: 2026-03-23
19
+ **适用范围**: Claude Code Skills
20
20
 
21
21
  ---
22
22
 
23
23
  ## 目的
24
24
 
25
- 此技能引導您完成規格驅动开发 (SDD),确保变更在实作前經過規划、记录和批准。
25
+ 本技能引导您完成规格驱动开发 (SDD),确保变更在实现前经过规划、文档化和核准。
26
26
 
27
- ## 快速參考
27
+ ## 会话启动协议
28
+
29
+ 每次会话开始时:
30
+
31
+ 1. **检查进行中的规格**:搜索 `docs/specs/`、`specs/`、`openspec/changes/` 或 `.specify/` 中的进行中工作
32
+ 2. **若发现进行中的规格** → 通知用户并提供继续的选项
33
+ 3. 在开始新工作前**检阅上下文**
34
+
35
+ ## 快速参考
28
36
 
29
37
  ### SDD 工作流程
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,188 +51,323 @@ 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
+ ### 工作流程强制闸门
52
62
 
53
- ### 核心原則
63
+ **重要**:执行任何工作流程阶段前,必须检查先决条件。
54
64
 
55
- | 原則 | 说明 |
65
+ | 阶段 | 先决条件 | 失败时 |
66
+ |------|---------|--------|
67
+ | Proposal | Discuss 完成、范围锁定 | → 先完成 Discuss 阶段 |
68
+ | Implementation | 规格状态 = Approved | → 先取得核准 |
69
+ | Verification | 所有 AC 都有代码 + 测试 | → 完成实现 |
70
+ | Commit (feat/fix) | 检查进行中的规格 | → 建议规格参考 (Refs: SPEC-XXX) |
71
+ | Archive | 所有任务完成、已验证 | → 完成剩余任务 |
72
+
73
+ ### 核心原则
74
+
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
+ ```
60
134
 
61
- ### 「規格優先」的例外情况
135
+ #### 3. 锁定范围
62
136
 
63
- - 緊急修復(先恢復服务,之後再補文件)
64
- - 瑣碎变更(錯字、註解、格式調整)
137
+ - 定义什么在范围内、什么在范围外
138
+ - 识别可能受影响的相关规格
139
+ - 建立必读的文件/规格清单
65
140
 
66
- ## 提案範本
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
+ - 描述需要「而且」时就拆分
202
+
203
+ ## 提案模板
67
204
 
68
205
  ```markdown
69
- # [SPEC-ID] 功能標題
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
- ## 相依性
85
- 列出对其他規格或外部系统的相依性。
221
+ ## 依赖性
222
+ 列出对其他规格或外部系统的依赖。
86
223
 
87
- ## 風險
88
- 潛在風險及緩解策略。
224
+ ## 风险
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
- - [ ] 規格已批准
120
- - [ ] 实作符合規格
121
- - [ ] 测试涵蓋驗收标准
122
- - [ ] PR 中引用規格 ID
256
+ - [ ] 规格已核准
257
+ - [ ] 实现符合规格
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 登入
138
-
139
- ## 摘要
140
- 新增 Google OAuth2 登入,讓使用者可以用 Google 帳号登入。
277
+ > **注意**:当项目中检测到 SDD 工具时,优先使用其原生命令而非手动编辑文件,以确保一致性和可追溯性。
141
278
 
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** | 輕量規格追蹤 | `/sdd create`, `/sdd 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 等)
196
- 2. 检查 `CONTRIBUTING.md` 中的規格工作流程文件
197
- 3. 若無找到,**预设使用手动文件式工作流程**
335
+ 1. 检查工作区中的 SDD 工具:
336
+ - `openspec/` 目录 → 检测到 OpenSpec
337
+ - `.specify/` 目录 → 检测到 Spec Kit
338
+ - `specs/` 或 `docs/specs/` → 手动基于文件的工作流程
339
+ 2. 检查 `CONTRIBUTING.md` 中的规格工作流程文档
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
+ ## 规格驱动开发
208
351
 
209
- 我們对所有非瑣碎的变更使用規格驅动开发。
352
+ 我们对所有非琐碎的变更使用规格驱动开发。
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
- ### 規格範本
218
- 請參考 `specs/TEMPLATE.md`
360
+ ### 规格模板
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
- **來源**: [universal-dev-standards](https://github.com/AsiaOstrich/universal-dev-standards)
388
+ **来源**: [universal-dev-standards](https://github.com/AsiaOstrich/universal-dev-standards)
@@ -14,7 +14,7 @@ status: current
14
14
 
15
15
  Universal Development Standards 是一個語言無關、框架無關的文件化標準框架。它提供:
16
16
 
17
- - **核心規範** (`core/`):36 個基礎開發標準
17
+ - **核心規範** (`core/`):49 個基礎開發標準
18
18
  - **AI 技能** (`skills/`):用於 AI 輔助開發的 Claude Code 技能
19
19
  - **CLI 工具** (`cli/`):用於採用標準的 Node.js CLI
20
20
  - **整合** (`integrations/`):各種 AI 工具的配置
@@ -200,7 +200,7 @@ node cli\bin\uds.js init --help
200
200
 
201
201
  ```
202
202
  universal-dev-standards/
203
- ├── core/ # 核心規範(36 個檔案)
203
+ ├── core/ # 核心規範(49 個檔案)
204
204
  ├── skills/ # AI 工具技能
205
205
  │ └── claude-code/ # Claude Code 技能(26 個技能)
206
206
  ├── cli/ # Node.js CLI 工具
@@ -6,7 +6,7 @@
6
6
 
7
7
  > **語言**: [English](../../README.md) | 繁體中文 | [简体中文](../zh-CN/README.md)
8
8
 
9
- **版本**: 5.0.0-rc.6 (Pre-release) | **發布日期**: 2026-03-17 | **授權**: [雙重授權](../../LICENSE) (CC BY 4.0 + MIT)
9
+ **版本**: 5.0.0 | **發布日期**: 2026-03-24 | **授權**: [雙重授權](../../LICENSE) (CC BY 4.0 + MIT)
10
10
 
11
11
  語言無關、框架無關的軟體專案文件標準。透過 AI 原生工作流,確保不同技術堆疊之間的一致性、品質和可維護性。
12
12
 
@@ -55,9 +55,9 @@ npx universal-dev-standards init
55
55
  <!-- UDS_STATS_TABLE_START -->
56
56
  | 類別 | 數量 | 說明 |
57
57
  |----------|-------|-------------|
58
- | **核心標準** | 36 | 通用開發準則 |
59
- | **AI Skills** | 29 | 互動式技能 |
60
- | **斜線命令** | 30 | 快速操作 |
58
+ | **核心標準** | 49 | 通用開發準則 |
59
+ | **AI Skills** | 40 | 互動式技能 |
60
+ | **斜線命令** | 45 | 快速操作 |
61
61
  | **CLI 指令** | 6 | list, init, configure, check, update, skills |
62
62
  <!-- UDS_STATS_TABLE_END -->
63
63
 
@@ -0,0 +1,92 @@
1
+ # 安全政策
2
+
3
+ ## 支援的版本
4
+
5
+ <!-- UDS_SUPPORTED_VERSIONS_START -->
6
+ | 版本 | 支援狀態 |
7
+ |------|--------|
8
+ | 5.0.0 | ✅ 最新正式版 |
9
+ | < 5.0.0 | ❌ 已終止支援 |
10
+ <!-- UDS_SUPPORTED_VERSIONS_END -->
11
+
12
+ > **說明**:僅最新正式版與當前預發布分支會收到安全更新。
13
+
14
+ ---
15
+
16
+ ## 回報漏洞
17
+
18
+ ### 如何回報
19
+
20
+ **請勿**以公開 GitHub issue 回報安全漏洞。
21
+
22
+ 請透過以下管道回報:
23
+
24
+ 1. **GitHub Security Advisories**(推薦)
25
+ - 前往 [Security Advisories](https://github.com/AsiaOstrich/universal-dev-standards/security/advisories/new)
26
+ - 這能確保回報是私密且可追蹤的
27
+
28
+ 2. **GitHub 私密漏洞回報**
29
+ - 前往 [回報漏洞](https://github.com/AsiaOstrich/universal-dev-standards/security)
30
+ - 依照引導流程回報
31
+
32
+ ### 回報內容
33
+
34
+ 請包含以下資訊:
35
+
36
+ - **描述**:清楚說明漏洞內容
37
+ - **重現步驟**:詳細的重現步驟
38
+ - **影響範圍**:攻擊者可達成的影響
39
+ - **受影響版本**:哪些版本受影響
40
+ - **建議修復方式**:如果您有建議(選填)
41
+
42
+ ### 回應時間
43
+
44
+ | 動作 | 時間 |
45
+ |------|------|
46
+ | 確認收到 | 48 小時內 |
47
+ | 初步評估 | 7 天內 |
48
+ | 修復發布(嚴重) | 14 天內 |
49
+ | 修復發布(非嚴重) | 下次排程發布 |
50
+
51
+ ---
52
+
53
+ ## 安全範疇
54
+
55
+ ### 在範疇內
56
+
57
+ | 元件 | 說明 |
58
+ |------|------|
59
+ | CLI 工具 (`cli/`) | 指令注入、路徑穿越、依賴漏洞 |
60
+ | 標準內容 (`core/`) | 可能導致不安全實作的指引 |
61
+ | GitHub Actions (`.github/workflows/`) | 工作流程注入、機密洩漏 |
62
+
63
+ ### 不在範疇內
64
+
65
+ - 第三方依賴的漏洞(請回報給上游維護者)
66
+ - 採用 UDS 標準的使用者專案中的問題
67
+ - 社交工程攻擊
68
+
69
+ ---
70
+
71
+ ## 揭露政策
72
+
73
+ 我們遵循**協調揭露**原則:
74
+
75
+ 1. 回報者私下提交漏洞
76
+ 2. 我們確認並評估
77
+ 3. 我們開發並測試修復
78
+ 4. 我們發布修復
79
+ 5. 我們公開揭露漏洞(附上回報者致謝)
80
+
81
+ 除非回報者希望匿名,否則我們會在發布說明中致謝。
82
+
83
+ ---
84
+
85
+ ## 使用者安全建議
86
+
87
+ 在您的專案中使用 UDS 時:
88
+
89
+ - 保持 UDS CLI 為最新版本
90
+ - 採用前審閱標準(特別是 `security-standards.md`)
91
+ - 定期對專案執行 `npm audit`
92
+ - 遵循 `core/security-standards.md` 定義的安全標準