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,292 @@
1
+ /**
2
+ * WorkflowGate — Phase Transition Validator
3
+ *
4
+ * Connects WorkflowStateManager to the workflow definitions to validate
5
+ * that prerequisites are met before allowing phase transitions.
6
+ *
7
+ * @version 1.0.0
8
+ */
9
+
10
+ import { existsSync, readFileSync, readdirSync } from 'fs';
11
+ import { join, basename } from 'path';
12
+ import { execSync } from 'child_process';
13
+ import { WORKFLOW_DEFINITIONS } from '../config/workflow-definitions.js';
14
+ import { WorkflowStateManager, WorkflowStatus } from './workflow-state.js';
15
+
16
+ /**
17
+ * Gate result status
18
+ */
19
+ export const GateResult = {
20
+ ALLOWED: 'allowed',
21
+ BLOCKED: 'blocked',
22
+ WARNING: 'warning'
23
+ };
24
+
25
+ /**
26
+ * Enforcement modes
27
+ */
28
+ export const EnforcementMode = {
29
+ ENFORCE: 'enforce',
30
+ SUGGEST: 'suggest',
31
+ OFF: 'off'
32
+ };
33
+
34
+ /**
35
+ * WorkflowGate — validates phase transitions for workflows
36
+ */
37
+ export class WorkflowGate {
38
+ /**
39
+ * @param {string} projectPath - Project root path
40
+ */
41
+ constructor(projectPath) {
42
+ this.projectPath = projectPath;
43
+ this.enforcementMode = this._loadEnforcementMode();
44
+ }
45
+
46
+ /**
47
+ * Load enforcement mode from project config
48
+ * @returns {string} Enforcement mode
49
+ * @private
50
+ */
51
+ _loadEnforcementMode() {
52
+ const configPath = join(this.projectPath, '.uds', 'config.yaml');
53
+ if (!existsSync(configPath)) {
54
+ return EnforcementMode.ENFORCE; // default
55
+ }
56
+
57
+ try {
58
+ const content = readFileSync(configPath, 'utf-8');
59
+ const match = content.match(/enforcement_mode:\s*(\w+)/);
60
+ if (match && Object.values(EnforcementMode).includes(match[1])) {
61
+ return match[1];
62
+ }
63
+ } catch {
64
+ // Fall through to default
65
+ }
66
+
67
+ return EnforcementMode.ENFORCE;
68
+ }
69
+
70
+ /**
71
+ * Check if a phase transition is allowed
72
+ * @param {string} workflowName - Workflow type (sdd, tdd, bdd)
73
+ * @param {string} targetPhase - Target phase to transition to
74
+ * @param {Object} [options] - Additional options
75
+ * @param {string} [options.specFile] - Specific spec file to check
76
+ * @returns {Object} Gate result: { status, checks, message, guidance }
77
+ */
78
+ checkGate(workflowName, targetPhase, options = {}) {
79
+ // If enforcement is off, always allow
80
+ if (this.enforcementMode === EnforcementMode.OFF) {
81
+ return {
82
+ status: GateResult.ALLOWED,
83
+ checks: [],
84
+ message: 'Workflow enforcement is off',
85
+ guidance: null
86
+ };
87
+ }
88
+
89
+ const workflow = WORKFLOW_DEFINITIONS[workflowName];
90
+ if (!workflow) {
91
+ return {
92
+ status: GateResult.ALLOWED,
93
+ checks: [],
94
+ message: `Unknown workflow: ${workflowName}`,
95
+ guidance: null
96
+ };
97
+ }
98
+
99
+ // Get checks for the target phase
100
+ const phaseChecks = workflow.checks?.[targetPhase] || [];
101
+ const results = [];
102
+
103
+ for (const check of phaseChecks) {
104
+ const result = this._executeCheck(check, options);
105
+ results.push(result);
106
+ }
107
+
108
+ // Check for existing workflow state (offer resume)
109
+ const resumeInfo = this._checkForResumableState(workflowName);
110
+
111
+ // Determine overall result
112
+ const failedChecks = results.filter(r => !r.passed);
113
+
114
+ if (failedChecks.length === 0) {
115
+ return {
116
+ status: GateResult.ALLOWED,
117
+ checks: results,
118
+ message: `All prerequisites met for ${workflowName}:${targetPhase}`,
119
+ guidance: null,
120
+ resumeInfo
121
+ };
122
+ }
123
+
124
+ // In suggest mode, return warning instead of blocked
125
+ const status = this.enforcementMode === EnforcementMode.SUGGEST
126
+ ? GateResult.WARNING
127
+ : GateResult.BLOCKED;
128
+
129
+ const guidance = failedChecks
130
+ .map(c => `- ${c.checkId}: ${c.guidance}`)
131
+ .join('\n');
132
+
133
+ return {
134
+ status,
135
+ checks: results,
136
+ message: `Phase ${targetPhase} prerequisites not met`,
137
+ guidance,
138
+ resumeInfo
139
+ };
140
+ }
141
+
142
+ /**
143
+ * Execute a single prerequisite check
144
+ * @param {Object} check - Check definition
145
+ * @param {Object} options - Additional options
146
+ * @returns {Object} Check result
147
+ * @private
148
+ */
149
+ _executeCheck(check, options) {
150
+ // If check has a shell command, execute it
151
+ if (check.check) {
152
+ try {
153
+ let cmd = check.check;
154
+ // Replace SPEC-XXX with actual spec file if provided
155
+ if (options.specFile) {
156
+ cmd = cmd.replace('SPEC-XXX.md', basename(options.specFile));
157
+ }
158
+
159
+ const output = execSync(cmd, {
160
+ cwd: this.projectPath,
161
+ encoding: 'utf-8',
162
+ timeout: 5000,
163
+ stdio: ['pipe', 'pipe', 'pipe']
164
+ }).trim();
165
+
166
+ const passed = check.expectedCondition === 'non_empty'
167
+ ? output.length > 0
168
+ : output === check.expectedCondition;
169
+
170
+ return {
171
+ checkId: check.id,
172
+ passed,
173
+ description: check.description,
174
+ guidance: check.guidance,
175
+ output
176
+ };
177
+ } catch {
178
+ // Command failed (e.g., no files found by glob)
179
+ return {
180
+ checkId: check.id,
181
+ passed: false,
182
+ description: check.description,
183
+ guidance: check.guidance,
184
+ output: ''
185
+ };
186
+ }
187
+ }
188
+
189
+ // For checks without commands (manual/contextual checks), return as needing manual verification
190
+ return {
191
+ checkId: check.id,
192
+ passed: true, // Cannot verify automatically, assume ok
193
+ description: check.description,
194
+ guidance: check.guidance,
195
+ output: 'manual_check'
196
+ };
197
+ }
198
+
199
+ /**
200
+ * Check for existing resumable workflow state
201
+ * @param {string} workflowName - Workflow type
202
+ * @returns {Object|null} Resume info or null
203
+ * @private
204
+ */
205
+ _checkForResumableState(workflowName) {
206
+ const stateManager = new WorkflowStateManager(workflowName, this.projectPath);
207
+ const state = stateManager.load();
208
+
209
+ if (!state) return null;
210
+
211
+ if (stateManager.canResume()) {
212
+ const summary = stateManager.getSummary();
213
+ return {
214
+ canResume: true,
215
+ workflowName: state.workflowName,
216
+ currentStep: state.currentStepId,
217
+ status: state.status,
218
+ progress: summary?.progress,
219
+ updatedAt: state.updatedAt
220
+ };
221
+ }
222
+
223
+ return null;
224
+ }
225
+
226
+ /**
227
+ * List all active workflows in the project
228
+ * @returns {Array} List of active workflow summaries
229
+ */
230
+ listActiveWorkflows() {
231
+ const stateDir = join(this.projectPath, '.standards', 'workflow-state');
232
+ if (!existsSync(stateDir)) return [];
233
+
234
+ const activeWorkflows = [];
235
+
236
+ try {
237
+ const files = readdirSync(stateDir).filter(f => f.endsWith('.json'));
238
+ for (const file of files) {
239
+ const workflowName = file.replace('.json', '');
240
+ const stateManager = new WorkflowStateManager(workflowName, this.projectPath);
241
+ const state = stateManager.load();
242
+
243
+ if (state && [WorkflowStatus.IN_PROGRESS, WorkflowStatus.PAUSED].includes(state.status)) {
244
+ const summary = stateManager.getSummary();
245
+ activeWorkflows.push({
246
+ workflowName: state.workflowName,
247
+ status: state.status,
248
+ currentStep: state.currentStepId,
249
+ progress: summary?.progress,
250
+ updatedAt: state.updatedAt,
251
+ startedAt: state.startedAt
252
+ });
253
+ }
254
+ }
255
+ } catch {
256
+ // Return empty if can't read
257
+ }
258
+
259
+ return activeWorkflows;
260
+ }
261
+
262
+ /**
263
+ * Get a formatted report of active workflows (for session start)
264
+ * @returns {string|null} Formatted report or null if no active workflows
265
+ */
266
+ getSessionStartReport() {
267
+ const activeWorkflows = this.listActiveWorkflows();
268
+
269
+ if (activeWorkflows.length === 0) return null;
270
+
271
+ const lines = ['## Active Workflows | 進行中的工作流程', ''];
272
+
273
+ for (const wf of activeWorkflows) {
274
+ const progress = wf.progress
275
+ ? `${wf.progress.completed}/${wf.progress.total} steps (${wf.progress.percentage}%)`
276
+ : 'unknown';
277
+
278
+ lines.push(`- **${wf.workflowName}** — ${wf.status}`);
279
+ lines.push(` - Current step: ${wf.currentStep || 'N/A'}`);
280
+ lines.push(` - Progress: ${progress}`);
281
+ lines.push(` - Last updated: ${wf.updatedAt}`);
282
+ lines.push('');
283
+ }
284
+
285
+ lines.push('> Resume with the corresponding workflow command (e.g., `/sdd implement`)');
286
+ lines.push('> 使用對應的工作流程命令恢復(例如 `/sdd implement`)');
287
+
288
+ return lines.join('\n');
289
+ }
290
+ }
291
+
292
+ export default WorkflowGate;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "5.0.0-rc.8",
4
- "lastUpdated": "2026-03-16",
3
+ "version": "5.0.0",
4
+ "lastUpdated": "2026-03-23",
5
5
  "description": "Standards registry for universal-dev-standards with integrated skills and AI-optimized formats",
6
6
  "formats": {
7
7
  "ai": {
@@ -58,14 +58,14 @@
58
58
  "standards": {
59
59
  "name": "universal-dev-standards",
60
60
  "url": "https://github.com/AsiaOstrich/universal-dev-standards",
61
- "version": "5.0.0-rc.8"
61
+ "version": "5.0.0"
62
62
  },
63
63
  "skills": {
64
64
  "name": "universal-dev-standards",
65
65
  "url": "https://github.com/AsiaOstrich/universal-dev-standards",
66
66
  "localPath": "skills",
67
67
  "rawUrl": "https://raw.githubusercontent.com/AsiaOstrich/universal-dev-standards/main/skills",
68
- "version": "5.0.0-rc.8",
68
+ "version": "5.0.0",
69
69
  "note": "Skills are now included in the main repository under skills/"
70
70
  }
71
71
  },
@@ -771,6 +771,30 @@
771
771
  "skillName": null,
772
772
  "description": "Safe deployment strategies, feature flags, rollback, environment parity, and DORA metrics"
773
773
  },
774
+ {
775
+ "id": "api-design-standards",
776
+ "name": "API Design Standards",
777
+ "nameZh": "API 設計標準",
778
+ "source": {
779
+ "human": "core/api-design-standards.md",
780
+ "ai": "ai/standards/api-design-standards.ai.yaml"
781
+ },
782
+ "category": "reference",
783
+ "skillName": null,
784
+ "description": "REST, GraphQL, and gRPC API design principles, versioning, pagination, authentication, and error handling"
785
+ },
786
+ {
787
+ "id": "database-standards",
788
+ "name": "Database Standards",
789
+ "nameZh": "資料庫標準",
790
+ "source": {
791
+ "human": "core/database-standards.md",
792
+ "ai": "ai/standards/database-standards.ai.yaml"
793
+ },
794
+ "category": "reference",
795
+ "skillName": null,
796
+ "description": "Schema design, migration strategy, indexing, query optimization, and data integrity"
797
+ },
774
798
  {
775
799
  "id": "spec-driven-development",
776
800
  "name": "Spec-Driven Development",
@@ -947,6 +971,18 @@
947
971
  "skillName": null,
948
972
  "description": "Protocol for persisting and restoring workflow state across AI sessions"
949
973
  },
974
+ {
975
+ "id": "workflow-enforcement",
976
+ "name": "Workflow Enforcement",
977
+ "nameZh": "工作流程強制執行",
978
+ "source": {
979
+ "human": "core/workflow-enforcement.md",
980
+ "ai": "ai/standards/workflow-enforcement.ai.yaml"
981
+ },
982
+ "category": "reference",
983
+ "skillName": null,
984
+ "description": "Machine-enforceable workflow gates that prevent phase skipping in SDD/TDD/BDD methodologies"
985
+ },
950
986
  {
951
987
  "id": "testing",
952
988
  "name": "Testing Standards",
@@ -1162,6 +1198,17 @@
1162
1198
  "category": "reference",
1163
1199
  "description": "Protocols for establishing service-level agreements and context contracts between AI agents"
1164
1200
  },
1201
+ {
1202
+ "id": "ai-command-behavior",
1203
+ "name": "AI Command Behavior Standards",
1204
+ "nameZh": "AI 命令行為標準",
1205
+ "source": {
1206
+ "human": "core/ai-command-behavior.md",
1207
+ "ai": "ai/standards/ai-command-behavior.ai.yaml"
1208
+ },
1209
+ "category": "reference",
1210
+ "description": "Standard structure for specifying AI Agent runtime behavior in command/skill definition files"
1211
+ },
1165
1212
  {
1166
1213
  "id": "virtual-organization",
1167
1214
  "name": "Virtual Organization Standards",
@@ -1424,6 +1471,42 @@
1424
1471
  "skillName": "requirement-assistant",
1425
1472
  "description": "Template for writing comprehensive requirement documents"
1426
1473
  },
1474
+ {
1475
+ "id": "pipeline-integration",
1476
+ "name": "Pipeline Integration Standards",
1477
+ "nameZh": "Pipeline 整合標準",
1478
+ "source": {
1479
+ "human": "core/pipeline-integration-standards.md",
1480
+ "ai": "ai/standards/pipeline-integration-standards.ai.yaml"
1481
+ },
1482
+ "category": "reference",
1483
+ "skillName": null,
1484
+ "description": "Configuration contract, stage model, and context classification for automated development pipelines"
1485
+ },
1486
+ {
1487
+ "id": "acceptance-criteria-traceability",
1488
+ "name": "Acceptance Criteria Traceability Standards",
1489
+ "nameZh": "驗收條件追蹤標準",
1490
+ "source": {
1491
+ "human": "core/acceptance-criteria-traceability.md",
1492
+ "ai": "ai/standards/acceptance-criteria-traceability.ai.yaml"
1493
+ },
1494
+ "category": "reference",
1495
+ "skillName": null,
1496
+ "description": "AC-to-test traceability matrix, coverage calculation, and spec generation quality rules"
1497
+ },
1498
+ {
1499
+ "id": "change-batching",
1500
+ "name": "Change Batching Standards",
1501
+ "nameZh": "變更批次合併標準",
1502
+ "source": {
1503
+ "human": "core/change-batching-standards.md",
1504
+ "ai": "ai/standards/change-batching-standards.ai.yaml"
1505
+ },
1506
+ "category": "reference",
1507
+ "skillName": null,
1508
+ "description": "Pending changes state machine, threshold strategies, and atomicity guarantees for batch commits"
1509
+ },
1427
1510
  {
1428
1511
  "id": "migration-template",
1429
1512
  "name": "Migration Plan Template",
@@ -1433,6 +1516,78 @@
1433
1516
  "skillName": null,
1434
1517
  "description": "Template for planning technology migrations",
1435
1518
  "applicability": "Migration projects"
1519
+ },
1520
+ {
1521
+ "id": "systematic-debugging",
1522
+ "name": "Systematic Debugging Workflow",
1523
+ "nameZh": "系統化除錯工作流",
1524
+ "source": {
1525
+ "human": "core/systematic-debugging.md",
1526
+ "ai": "ai/standards/systematic-debugging.ai.yaml"
1527
+ },
1528
+ "category": "skill",
1529
+ "skillName": null,
1530
+ "description": "Four-phase debugging workflow (Root Cause → Pattern Analysis → Hypothesis Testing → Fix) with 3-Strike Rule"
1531
+ },
1532
+ {
1533
+ "id": "agent-dispatch",
1534
+ "name": "Agent Dispatch & Parallel Coordination",
1535
+ "nameZh": "子代理派遣與並行協調",
1536
+ "source": {
1537
+ "human": "core/agent-dispatch.md",
1538
+ "ai": "ai/standards/agent-dispatch.ai.yaml"
1539
+ },
1540
+ "category": "skill",
1541
+ "skillName": null,
1542
+ "description": "Sub-agent dispatch, parallel coordination, and status protocol (DONE/DONE_WITH_CONCERNS/NEEDS_CONTEXT/BLOCKED)"
1543
+ },
1544
+ {
1545
+ "id": "model-selection",
1546
+ "name": "AI Model Selection Strategy",
1547
+ "nameZh": "AI 模型分級選擇策略",
1548
+ "source": {
1549
+ "human": "core/model-selection.md",
1550
+ "ai": "ai/standards/model-selection.ai.yaml"
1551
+ },
1552
+ "category": "skill",
1553
+ "skillName": null,
1554
+ "description": "Three-tier model selection strategy (fast/standard/capable) with cost-effective escalation"
1555
+ },
1556
+ {
1557
+ "id": "git-worktree",
1558
+ "name": "Git Worktree Isolation",
1559
+ "nameZh": "Git Worktree 隔離開發",
1560
+ "source": {
1561
+ "human": "core/git-worktree.md",
1562
+ "ai": "ai/standards/git-worktree.ai.yaml"
1563
+ },
1564
+ "category": "reference",
1565
+ "skillName": null,
1566
+ "description": "Git worktree lifecycle management: setup → baseline → execute → merge → cleanup"
1567
+ },
1568
+ {
1569
+ "id": "branch-completion",
1570
+ "name": "Branch Completion Workflow",
1571
+ "nameZh": "分支完成工作流",
1572
+ "source": {
1573
+ "human": "core/branch-completion.md",
1574
+ "ai": "ai/standards/branch-completion.ai.yaml"
1575
+ },
1576
+ "category": "reference",
1577
+ "skillName": null,
1578
+ "description": "Branch completion workflow with 4 options (merge/PR/keep/discard) and prerequisite checks"
1579
+ },
1580
+ {
1581
+ "id": "verification-evidence",
1582
+ "name": "Verification Evidence Standard",
1583
+ "nameZh": "驗證證據標準",
1584
+ "source": {
1585
+ "human": "core/verification-evidence.md",
1586
+ "ai": "ai/standards/verification-evidence.ai.yaml"
1587
+ },
1588
+ "category": "skill",
1589
+ "skillName": null,
1590
+ "description": "Iron Law: no verification evidence = no completion claim. RED-GREEN cycle for bug fixes"
1436
1591
  }
1437
1592
  ]
1438
- }
1593
+ }