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
@@ -0,0 +1,132 @@
1
+ # Workflow Enforcement Standards
2
+
3
+ **Applicability**: All software projects using structured development methodologies
4
+ **Scope**: universal
5
+
6
+ ## Overview
7
+
8
+ This standard defines machine-enforceable workflow gates that prevent phase skipping in development methodologies (SDD, TDD, BDD). Instead of relying on developer discipline alone, workflow gates provide automated checks at phase transitions.
9
+
10
+ ## Core Principle
11
+
12
+ > **Guide, don't just block.** When a prerequisite fails, always provide actionable guidance: what is missing, why it matters, and how to fix it.
13
+
14
+ ## Enforcement Modes
15
+
16
+ Projects can configure enforcement behavior via `.uds/config.yaml`:
17
+
18
+ | Mode | Behavior | Use Case |
19
+ |------|----------|----------|
20
+ | `enforce` | Block phase transition + show guidance | Teams committed to process discipline |
21
+ | `suggest` | Show warning + allow override | Teams adopting gradually |
22
+ | `off` | No enforcement checks | Opt-out |
23
+
24
+ **Default**: `enforce`
25
+
26
+ ```yaml
27
+ # .uds/config.yaml
28
+ workflow:
29
+ enforcement_mode: enforce # enforce | suggest | off
30
+ ```
31
+
32
+ ## Phase Gate Architecture
33
+
34
+ ### How It Works
35
+
36
+ 1. User invokes a workflow command (e.g., `/sdd implement`)
37
+ 2. AI assistant checks prerequisites for that phase
38
+ 3. If prerequisites pass → proceed normally
39
+ 4. If prerequisites fail:
40
+ - **enforce mode**: Stop, explain, guide to correct phase
41
+ - **suggest mode**: Warn, allow override
42
+ - **off mode**: Skip checks entirely
43
+
44
+ ### Gate Types
45
+
46
+ | Gate Type | Blocking | Description |
47
+ |-----------|----------|-------------|
48
+ | **Hard Gate** | Yes | Must pass to proceed (e.g., spec must be Approved before implement) |
49
+ | **Soft Gate** | No | Advisory warning (e.g., suggest spec reference in commit) |
50
+
51
+ ## SDD Phase Gates
52
+
53
+ ```
54
+ discuss → create → review → approve → implement → verify
55
+ ```
56
+
57
+ | Phase | Prerequisites |
58
+ |-------|--------------|
59
+ | discuss | None (entry point) |
60
+ | create | Check for orphan specs (soft) |
61
+ | review | Spec exists with status = Draft |
62
+ | approve | Spec exists with status = Review, all comments addressed |
63
+ | implement | Spec exists with status = Approved |
64
+ | verify | Implementation exists, all ACs have code + tests |
65
+
66
+ ## TDD Phase Gates
67
+
68
+ ```
69
+ RED → GREEN → REFACTOR → (repeat)
70
+ ```
71
+
72
+ | Phase | Prerequisites |
73
+ |-------|--------------|
74
+ | RED | Feature/behavior clearly defined |
75
+ | GREEN | At least one failing test exists (not error, but assertion failure) |
76
+ | REFACTOR | All tests passing |
77
+
78
+ **Critical Enforcement**: The AI MUST NOT write implementation code before a failing test exists. This is the fundamental TDD contract.
79
+
80
+ ## BDD Phase Gates
81
+
82
+ ```
83
+ DISCOVERY → FORMULATION → AUTOMATION → LIVING DOCS
84
+ ```
85
+
86
+ | Phase | Prerequisites |
87
+ |-------|--------------|
88
+ | DISCOVERY | Behavior/feature identified |
89
+ | FORMULATION | Concrete examples from discovery exist |
90
+ | AUTOMATION | `.feature` file with Gherkin scenarios exists |
91
+ | LIVING DOCS | Step definitions implemented, all scenarios passing |
92
+
93
+ ## Commit Gates
94
+
95
+ | Check | Type | Trigger |
96
+ |-------|------|---------|
97
+ | Staged changes exist | Hard | All commits |
98
+ | No merge conflicts | Hard | All commits |
99
+ | Tests pass | Hard | feat/fix commits |
100
+ | Spec reference | Soft | feat/fix commits with active specs |
101
+
102
+ ## Implementation Notes
103
+
104
+ ### For AI Assistants
105
+
106
+ AI assistants should:
107
+ 1. Check gates **before** executing any workflow phase
108
+ 2. Use the enforcement mode from project config
109
+ 3. Provide clear, actionable guidance when gates fail
110
+ 4. Check for resumable workflow state before starting fresh
111
+ 5. Track phase transitions in `.workflow-state/`
112
+
113
+ ### For CLI Tools
114
+
115
+ CLI tools can integrate gates via:
116
+ 1. `WorkflowGate` module — validates phase transitions
117
+ 2. Pre-commit hooks — warns on workflow compliance
118
+ 3. `uds check` — reports workflow state
119
+
120
+ ### For Git Hooks
121
+
122
+ Git-level enforcement should be **warning-only** (non-blocking) to avoid frustrating developers. The AI layer handles blocking enforcement since it can explain and guide.
123
+
124
+ ## Relationship to Other Standards
125
+
126
+ | Standard | Relationship |
127
+ |----------|-------------|
128
+ | [Workflow State Protocol](workflow-state-protocol.md) | Gates check state files managed by this protocol |
129
+ | [Spec-Driven Development](spec-driven-development.md) | SDD phase gates enforce SDD workflow |
130
+ | [Testing Standards](testing-standards.md) | TDD/BDD gates enforce testing methodology |
131
+ | [Commit Message Guide](commit-message-guide.md) | Commit gates enforce spec traceability |
132
+ | [Check-in Standards](checkin-standards.md) | Pre-commit gates complement check-in rules |
@@ -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-TW/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` 定义的安全标准
@@ -0,0 +1,301 @@
1
+ ---
2
+ source: ../../../core/acceptance-criteria-traceability.md
3
+ source_version: 1.0.0
4
+ translation_version: 1.0.0
5
+ last_synced: 2026-03-23
6
+ status: current
7
+ ---
8
+
9
+ # 验收标准可追溯性规范
10
+
11
+ > **语言**: [English](../../../core/acceptance-criteria-traceability.md) | 简体中文
12
+
13
+ **适用范围**: 所有使用规格驱动或测试驱动工作流程的软件项目
14
+ **Scope**: universal
15
+
16
+ ---
17
+
18
+ ## 概述
19
+
20
+ 验收标准可追溯性规范定义了如何追踪验收标准(AC)、测试实现与覆盖状态之间的关系。本规范确保每个 AC 都可被验证测试,并提供标准化的覆盖率分析报告格式。
21
+
22
+ ## 参考资料
23
+
24
+ | 标准 / 来源 | 内容 |
25
+ |------------|------|
26
+ | ISO/IEC/IEEE 29119-3 | 测试文档 — 可追溯性矩阵 |
27
+ | IEEE 830 | 软件需求规格 — 可追溯性 |
28
+ | ISTQB Foundation | 基于需求的测试 |
29
+ | INVEST 原则 | 验收标准品质 |
30
+
31
+ ---
32
+
33
+ ## AC 对测试的可追溯性矩阵
34
+
35
+ ### 标准矩阵格式
36
+
37
+ | AC-ID | 测试文件 | 测试名称 | 状态 | 备注 |
38
+ |-------|---------|---------|------|------|
39
+ | AC-1 | `tests/auth.test.ts` | `should login with valid credentials` | ✅ 已覆盖 | |
40
+ | AC-2 | `tests/auth.test.ts` | `should reject invalid credentials` | ✅ 已覆盖 | |
41
+ | AC-3 | — | — | ❌ 未覆盖 | 被 API 依赖性阻挡 |
42
+ | AC-4 | `tests/auth.test.ts` | `should lock account after 5 failures` | ⚠️ 部分覆盖 | 缺少边界情况 |
43
+
44
+ ### 矩阵字段
45
+
46
+ | 字段 | 必填 | 说明 |
47
+ |------|------|------|
48
+ | `AC-ID` | 是 | 规格中的唯一标识码(例如 AC-1、AC-2) |
49
+ | `Test File` | 是(若已覆盖) | 实现此 AC 的测试文件路径 |
50
+ | `Test Name` | 是(若已覆盖) | 测试用例或 describe 区块的名称 |
51
+ | `Status` | 是 | 覆盖状态:`covered`、`partial`、`uncovered` |
52
+ | `Notes` | 否 | 补充信息(阻挡因素、依赖性等) |
53
+
54
+ ### 连结惯例
55
+
56
+ 测试 **必须** 使用标准注释引用其来源 AC:
57
+
58
+ ```typescript
59
+ // TypeScript/JavaScript
60
+ describe('AC-1: User login with valid credentials', () => {
61
+ // @AC AC-1
62
+ // @SPEC SPEC-001
63
+ it('should redirect to dashboard on successful login', () => { ... });
64
+ });
65
+ ```
66
+
67
+ ```python
68
+ # Python
69
+ class TestAC1_UserLogin:
70
+ """AC-1: User login with valid credentials
71
+ @AC AC-1
72
+ @SPEC SPEC-001
73
+ """
74
+ def test_redirect_to_dashboard(self): ...
75
+ ```
76
+
77
+ ```gherkin
78
+ # BDD Feature
79
+ @SPEC-001 @AC-1
80
+ Scenario: User login with valid credentials
81
+ ```
82
+
83
+ ---
84
+
85
+ ## 覆盖状态定义
86
+
87
+ ### 状态分类
88
+
89
+ | 状态 | 符号 | 定义 | 判断标准 |
90
+ |------|------|------|---------|
91
+ | **已覆盖** | ✅ | AC 已完整测试 | AC 中所有条件都有对应的测试断言 |
92
+ | **部分覆盖** | ⚠️ | AC 已部分测试 | 部分条件已测试,但缺少边界情况或执行路径 |
93
+ | **未覆盖** | ❌ | AC 没有测试 | 没有任何测试用例引用此 AC |
94
+
95
+ ### 覆盖率计算
96
+
97
+ ```
98
+ AC Coverage % = (covered_count / total_ac_count) × 100
99
+
100
+ Where:
101
+ covered_count = count of AC with status "covered"
102
+ total_ac_count = total number of AC in specification
103
+ partial counts as 0.5 for coverage calculation
104
+ ```
105
+
106
+ ### 计算范例
107
+
108
+ ```
109
+ SPEC-001: 8 AC total
110
+ - 5 covered (✅)
111
+ - 2 partial (⚠️)
112
+ - 1 uncovered (❌)
113
+
114
+ Coverage = (5 + 2×0.5) / 8 = 6/8 = 75%
115
+ ```
116
+
117
+ ---
118
+
119
+ ## 品质门槛
120
+
121
+ ### 默认门槛
122
+
123
+ | 门槛 | 数值 | 强制执行 |
124
+ |------|------|---------|
125
+ | **最低 AC 覆盖率** | 100% | 正式发布前必须达到 |
126
+ | **签入最低要求** | 80% | 功能分支合并前必须达到 |
127
+ | **警告级别** | 60% | 触发覆盖率警告 |
128
+
129
+ ### 可配置门槛
130
+
131
+ 项目 **可以** 在配置文件中自定义门槛:
132
+
133
+ ```json
134
+ {
135
+ "acCoverage": {
136
+ "minimum": 100,
137
+ "checkinMinimum": 80,
138
+ "warningLevel": 60,
139
+ "partialWeight": 0.5
140
+ }
141
+ }
142
+ ```
143
+
144
+ ### 门槛例外
145
+
146
+ 覆盖率要求的例外情况 **必须** 记录在案:
147
+
148
+ | 例外类型 | 允许时机 | 必要文件 |
149
+ |---------|---------|---------|
150
+ | 外部依赖性阻挡 | 第三方 API 无法使用 | Issue 连结 + 时程 |
151
+ | 基础设施限制 | 测试环境限制 | 解决方案计划 |
152
+ | 延后至下一迭代 | 已与利害关系人确认 | Ticket 引用 |
153
+
154
+ ---
155
+
156
+ ## AC 覆盖率报告格式
157
+
158
+ ### 标准报告结构
159
+
160
+ ```markdown
161
+ # AC Coverage Report
162
+
163
+ **Specification**: SPEC-001 — User Authentication
164
+ **Generated**: 2026-03-23
165
+ **Coverage**: 75% (6/8 AC)
166
+
167
+ ## Summary
168
+
169
+ | Status | Count | Percentage |
170
+ |--------|-------|------------|
171
+ | ✅ Covered | 5 | 62.5% |
172
+ | ⚠️ Partial | 2 | 25.0% |
173
+ | ❌ Uncovered | 1 | 12.5% |
174
+
175
+ ## Traceability Matrix
176
+
177
+ | AC-ID | Description | Status | Test Reference |
178
+ |-------|-------------|--------|----------------|
179
+ | AC-1 | Login with valid credentials | ✅ | auth.test.ts:15 |
180
+ | AC-2 | Reject invalid credentials | ✅ | auth.test.ts:32 |
181
+ | AC-3 | Rate limit login attempts | ⚠️ | auth.test.ts:48 (missing edge case) |
182
+ | ... | ... | ... | ... |
183
+
184
+ ## Gaps
185
+
186
+ ### Uncovered AC
187
+ - **AC-8**: Social login integration — Blocked by OAuth provider sandbox
188
+
189
+ ### Partial AC
190
+ - **AC-3**: Rate limit — Missing test for concurrent requests
191
+ - **AC-6**: Session timeout — Missing test for background tab behavior
192
+
193
+ ## Action Items
194
+ 1. [ ] AC-8: Set up OAuth sandbox environment (ETA: 2026-03-25)
195
+ 2. [ ] AC-3: Add concurrent request test
196
+ 3. [ ] AC-6: Add background tab test
197
+ ```
198
+
199
+ ### 机器可读格式
200
+
201
+ ```json
202
+ {
203
+ "specId": "SPEC-001",
204
+ "specName": "User Authentication",
205
+ "generatedAt": "2026-03-23T10:00:00Z",
206
+ "coverage": {
207
+ "percentage": 75,
208
+ "covered": 5,
209
+ "partial": 2,
210
+ "uncovered": 1,
211
+ "total": 8
212
+ },
213
+ "matrix": [
214
+ {
215
+ "acId": "AC-1",
216
+ "description": "Login with valid credentials",
217
+ "status": "covered",
218
+ "testFile": "tests/auth.test.ts",
219
+ "testName": "should login with valid credentials",
220
+ "testLine": 15
221
+ }
222
+ ]
223
+ }
224
+ ```
225
+
226
+ ---
227
+
228
+ ## 自动规格生成品质规则
229
+
230
+ ### AC 品质要求
231
+
232
+ 当从 PRD、用户故事或需求自动生成规格时,所生成的 AC **必须** 符合以下品质标准:
233
+
234
+ | 标准 | 说明 | 验证方式 |
235
+ |------|------|---------|
236
+ | **具体(Specific)** | AC 描述具体、可观察的行为 | 不使用模糊用语(「应该运作正常」、「够快」) |
237
+ | **可衡量(Measurable)** | AC 有可量化或可验证的结果 | 包含预期数值、状态或行为 |
238
+ | **可达成(Achievable)** | AC 在技术上可行 | 引用已知的 API、数据或能力 |
239
+ | **相关(Relevant)** | AC 与功能目的相关 | 对应用户需求或业务需求 |
240
+ | **可测试(Testable)** | AC 可通过测试验证 | 可以用 Given-When-Then 表达 |
241
+
242
+ ### 规格生成 I/O 契约
243
+
244
+ #### 输入格式
245
+
246
+ | 输入类型 | 必要字段 | 范例 |
247
+ |---------|---------|------|
248
+ | PRD | 标题、说明、用户故事 | 产品需求文档 |
249
+ | 用户故事 | As a / I want / So that | 「As a user, I want to login...」 |
250
+ | 功能简报 | 功能名称、目标、限制 | 功能说明文档 |
251
+
252
+ #### 输出格式
253
+
254
+ 生成的规格 **必须** 包含:
255
+
256
+ | 区段 | 必填 | 说明 |
257
+ |------|------|------|
258
+ | SPEC ID | 是 | 唯一标识码(例如 SPEC-001) |
259
+ | 标题 | 是 | 功能名称 |
260
+ | 说明 | 是 | 功能描述 |
261
+ | 验收标准 | 是 | 编号 AC 清单(AC-1、AC-2、…) |
262
+ | AC 格式 | 是 | Given-When-Then 或结构化条列 |
263
+ | 可测试性标记 | 是 | 每个 AC 标记为可测试 / 不可测试 |
264
+
265
+ #### 验证规则
266
+
267
+ 1. **AC 数量**:生成的规格 **必须** 至少有 1 个 AC
268
+ 2. **AC 唯一性**:不可有重复的 AC 描述
269
+ 3. **AC 完整性**:正常路径 + 至少 1 个错误或边界情况
270
+ 4. **AC 可测试性**:100% 的 AC 必须可测试
271
+ 5. **可追溯性**:每个 AC 都连结回来源需求
272
+
273
+ ---
274
+
275
+ ## 反模式
276
+
277
+ | 反模式 | 影响 | 正确做法 |
278
+ |-------|------|---------|
279
+ | 测试无法追溯 | 无法验证规格覆盖率 | 测试中一律标注 AC-ID |
280
+ | 将部分覆盖视为完整覆盖 | 对覆盖率产生错误信心 | 使用诚实的状态分类 |
281
+ | 忽略未覆盖的 AC | 验证存在缺口 | 追踪并规划所有 AC 的覆盖工作 |
282
+ | AC 缺乏可测试性 | 无法验证 | 确保所有 AC 都可测试 |
283
+ | 覆盖但缺乏断言 | 测试执行但不验证任何内容 | 确认测试含有有意义的断言 |
284
+
285
+ ---
286
+
287
+ ## 相关规范
288
+
289
+ - [正向推演规范](forward-derivation-standards.md) — 从 AC 生成测试
290
+ - [规格驱动开发](spec-driven-development.md) — AC 定义格式
291
+ - [测试规范](testing-standards.md) — 测试实现规范
292
+ - [签入规范](checkin-standards.md) — 签入的覆盖率门槛
293
+ - [测试治理](test-governance.md) — 完成标准
294
+
295
+ ---
296
+
297
+ ## 版本历程
298
+
299
+ | 版本 | 日期 | 变更内容 |
300
+ |------|------|---------|
301
+ | 1.0.0 | 2026-03-18 | 初始版本 — 可追溯性矩阵、覆盖率计算、规格生成规则 |
@@ -0,0 +1,47 @@
1
+ ---
2
+ source: ../../../core/acceptance-test-driven-development.md
3
+ source_version: 1.1.0
4
+ translation_version: 1.1.0
5
+ last_synced: 2026-03-24
6
+ status: current
7
+ ---
8
+
9
+ > **语言**: [English](../../../core/acceptance-test-driven-development.md) | 简体中文
10
+
11
+ # 验收测试驱动开发(ATDD)标准
12
+
13
+ **版本**: 1.1.0
14
+ **最后更新**: 2026-01-25
15
+ **适用范围**: 所有采用验收测试驱动开发的项目
16
+ **范围**: universal
17
+ **行业标准**: 无(2003-2006 实践)
18
+
19
+ ---
20
+
21
+ ## 摘要
22
+
23
+ 验收测试驱动开发(ATDD)是一种传统开发方法论(2003-2006),强调在开发开始前协作定义验收条件。整个团队(业务、开发和测试)共同定义"完成"的标准,通过可执行的验收测试来表达。
24
+
25
+ ATDD 的核心价值是 **Three Amigos** 协作模式,由客户/PO、开发者和测试者共同定义验收条件。ATDD 是定义验收条件的可选协作方法 — 团队也可以通过访谈、PRD 或利益相关者讨论来收集需求,并达到类似效果。
26
+
27
+ ---
28
+
29
+ **完整指南: [ATDD Guide](../../../methodologies/guides/atdd-guide.md)**
30
+
31
+ ---
32
+
33
+ ## 快速参考
34
+
35
+ | 方面 | 说明 |
36
+ |------|------|
37
+ | **核心工作流** | 工作坊 → 提炼 → 开发 → 演示 → 完成 |
38
+ | **核心价值** | Three Amigos 协作(PO + 开发 + QA) |
39
+ | **测试层级** | 系统/验收测试 |
40
+ | **参与者** | 整个团队 + 利益相关者 |
41
+ | **工具** | FitNesse、Cucumber、Robot Framework |
42
+
43
+ ## 相关标准
44
+
45
+ - [行为驱动开发](behavior-driven-development.md)
46
+ - [测试驱动开发](../../../core/test-driven-development.md)
47
+ - [规格驱动开发](../../../core/spec-driven-development.md)